]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/LengthCombo.h
QDialogButtonBox for the remaining dialogs.
[lyx.git] / src / frontends / qt4 / LengthCombo.h
index 7c7557f9f3a924a12689a8ac7b471b478569ffba..2545a9660634a9baa792110229c7a2cf38210691 100644 (file)
 
 #include <QComboBox>
 
-#include "VSpace.h"
+#include "Length.h"
 
 
-//namespace lyx {
+namespace lyx {
+namespace frontend {
 
 /**
  * A combo box for selecting Length::UNIT types.
@@ -29,7 +30,7 @@ public:
        LengthCombo(QWidget * parent);
 
        /// set the current item from unit
-       virtual void setCurrentItem(lyx::Length::UNIT unit);
+       void setCurrentItem(lyx::Length::UNIT unit);
        /// set the current item from length string
        virtual void setCurrentItem(QString const & item);
        /// set the current item from int
@@ -39,11 +40,13 @@ public:
        /// enable the widget
        virtual void setEnabled(bool b);
        /// use the %-items?
-       virtual void noPercents();
+       void noPercents();
+       /// Remove EM, EX and MU units
+       void removeFontDependent();
        /// remove a unit from the combo
-       virtual void removeUnit(lyx::Length::UNIT unit);
+       void removeUnit(lyx::Length::UNIT unit);
        /// add a unit to the combo
-       virtual void addUnit(lyx::Length::UNIT unit);
+       void addUnit(lyx::Length::UNIT unit);
 
 protected Q_SLOTS:
        virtual void hasActivated(int index);
@@ -53,6 +56,7 @@ Q_SIGNALS:
 };
 
 
-//} // namespace lyx
+} // namespace frontend
+} // namespace lyx
 
 #endif // LENGTHCOMBO_H