]> git.lyx.org Git - lyx.git/blob - src/frontends/qt2/lengthcombo.h
fix typo that put too many include paths for most people
[lyx.git] / src / frontends / qt2 / lengthcombo.h
1 /**
2  * \file lengthcombo.h
3  * Copyright 2001 the LyX Team
4  * Read the file COPYING
5  *
6  * \author John Levon
7  */
8
9 #ifndef LENGTHCOMBO_H
10 #define LENGTHCOMBO_H
11
12 #include <config.h>
13
14 #include <qcombobox.h>
15
16 #include "vspace.h"
17
18 /**
19  * A combo box for selecting LyXLength::UNIT types.
20  */
21 class LengthCombo : public QComboBox {
22         Q_OBJECT
23 public:
24         LengthCombo(QWidget * parent, char * name);
25
26         /// set the current item
27         virtual void setCurrentItem(LyXLength::UNIT unit);
28
29         /// get the current item
30         LyXLength::UNIT currentLengthItem() const;
31
32 protected slots:
33         virtual void has_activated(int index);
34
35 signals:
36         /// the current selection has changed
37         void selectionChanged(LyXLength::UNIT unit);
38
39 };
40
41 #endif