]> git.lyx.org Git - lyx.git/blob - src/frontends/qt2/lengthcombo.h
Some string(widget->text()) fixes. Weirdness
[lyx.git] / src / frontends / qt2 / lengthcombo.h
1 // -*- C++ -*-
2 /**
3  * \file lengthcombo.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author John Levon
8  *
9  * Full author contact details are available in file CREDITS
10  */
11
12 #ifndef LENGTHCOMBO_H
13 #define LENGTHCOMBO_H
14
15 #ifdef __GNUG__
16 #pragma interface
17 #endif
18
19 #include <qcombobox.h>
20
21 #include "vspace.h"
22
23 /**
24  * A combo box for selecting LyXLength::UNIT types.
25  */
26 class LengthCombo : public QComboBox {
27         Q_OBJECT
28 public:
29         LengthCombo(QWidget * parent, char * name);
30
31         /// set the current item
32         virtual void setCurrentItem(LyXLength::UNIT unit);
33         /// get the current item
34         LyXLength::UNIT currentLengthItem() const;
35         /// enable the widget
36         virtual void setEnabled(bool b);
37
38 protected slots:
39         virtual void has_activated(int index);
40 signals:
41         /// the current selection has changed
42         void selectionChanged(LyXLength::UNIT unit);
43
44 };
45
46 #endif // LENGTHCOMBO_H