]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/LengthCombo.h
If we are in a closeEvent, we don't want to close all buffers, because these may...
[lyx.git] / src / frontends / qt4 / LengthCombo.h
index 32e98c48d43f8d4ca85bd39f0c97833f80680b7c..f47a178ba89ab1098a3aee91ce0ec330f84e5729 100644 (file)
@@ -30,6 +30,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,16 +41,12 @@ 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);