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
19 #include <qcombobox.h>
24 * A combo box for selecting LyXLength::UNIT types.
26 class LengthCombo : public QComboBox {
29 LengthCombo(QWidget * parent, char * name);
31 /// set the current item
32 virtual void setCurrentItem(LyXLength::UNIT unit);
33 /// get the current item
34 LyXLength::UNIT currentLengthItem() const;
36 virtual void setEnabled(bool b);
39 virtual void has_activated(int index);
41 /// the current selection has changed
42 void selectionChanged(LyXLength::UNIT unit);
46 #endif // LENGTHCOMBO_H