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