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, char * name);
28 LengthCombo(QWidget * parent);
30 /// set the current item from unit
31 virtual void setCurrentItem(LyXLength::UNIT unit);
32 /// set the current item from int
33 virtual void setCurrentItem(int item);
34 /// get the current item
35 LyXLength::UNIT currentLengthItem() const;
37 virtual void setEnabled(bool b);
39 virtual void noPercents();
42 virtual void has_activated(int index);
44 /// the current selection has changed
45 void selectionChanged(LyXLength::UNIT unit);
49 #endif // LENGTHCOMBO_H