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.
21 * A combo box for selecting LyXLength::UNIT types.
23 class LengthCombo : public QComboBox {
26 LengthCombo(QWidget * parent);
28 /// set the current item from unit
29 virtual void setCurrentItem(LyXLength::UNIT unit);
30 /// set the current item from int
31 virtual void setCurrentItem(int item);
32 /// get the current item
33 LyXLength::UNIT currentLengthItem() const;
35 virtual void setEnabled(bool b);
37 virtual void noPercents();
40 virtual void has_activated(int index);
42 /// the current selection has changed
43 void selectionChanged(LyXLength::UNIT unit);
47 #endif // LENGTHCOMBO_H