4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
9 * Full author contact details are available in file CREDITS
16 #include <qcombobox.h>
21 * A combo box for selecting LyXLength::UNIT types.
23 class LengthCombo : public QComboBox {
26 LengthCombo(QWidget * parent, char * name);
28 /// set the current item
29 virtual void setCurrentItem(LyXLength::UNIT unit);
30 /// get the current item
31 LyXLength::UNIT currentLengthItem() const;
33 virtual void setEnabled(bool b);
36 virtual void has_activated(int index);
38 /// the current selection has changed
39 void selectionChanged(LyXLength::UNIT unit);
43 #endif // LENGTHCOMBO_H