]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/LengthCombo.h
On Linux show in crash message box the backtrace
[lyx.git] / src / frontends / qt4 / LengthCombo.h
index 32e98c48d43f8d4ca85bd39f0c97833f80680b7c..1701dcfa0fc73a20b57909f9ca17ad06ed1420ca 100644 (file)
@@ -17,7 +17,8 @@
 #include "VSpace.h"
 
 
-//namespace lyx {
+namespace lyx {
+namespace frontend {
 
 /**
  * A combo box for selecting Length::UNIT types.
@@ -30,6 +31,8 @@ public:
 
        /// set the current item from unit
        virtual 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
        virtual void setCurrentItem(int item);
        /// get the current item
@@ -39,22 +42,19 @@ public:
        /// use the %-items?
        virtual void noPercents();
        /// remove a unit from the combo
-       virtual void removeItem(lyx::Length::UNIT unit);
-       /// remove an item to the combo
-       virtual void removeItem(int item);
+       virtual void removeUnit(lyx::Length::UNIT unit);
        /// add a unit to the combo
-       virtual void addItem(lyx::Length::UNIT unit);
-       /// add an item to the combo
-       virtual void addItem(QString const item);
+       virtual void addUnit(lyx::Length::UNIT unit);
 
 protected Q_SLOTS:
-       virtual void has_activated(int index);
+       virtual void hasActivated(int index);
 Q_SIGNALS:
        /// the current selection has changed
        void selectionChanged(lyx::Length::UNIT unit);
 };
 
 
-//} // namespace lyx
+} // namesapce frontend
+} // namespace lyx
 
 #endif // LENGTHCOMBO_H