]> git.lyx.org Git - features.git/commitdiff
Remove unused code.
authorAbdelrazak Younes <younes@lyx.org>
Thu, 22 Nov 2007 22:20:51 +0000 (22:20 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Thu, 22 Nov 2007 22:20:51 +0000 (22:20 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21717 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/ButtonController.h
src/frontends/qt4/Dialog.h
src/frontends/qt4/DialogView.h
src/frontends/qt4/DockView.h
src/frontends/qt4/GuiCitation.h
src/frontends/qt4/GuiDialog.h
src/frontends/qt4/GuiParagraph.h

index 6e32c897e80ff690eddfb9535dd332406fcd4e33..e282787dda202aeaf46198788e02176df07d6738 100644 (file)
@@ -12,8 +12,8 @@
 #ifndef BUTTONCONTROLLER_H
 #define BUTTONCONTROLLER_H
 
-#include <list>
 #include "ButtonPolicy.h"
+
 #include "gettext.h"
 
 #include <list>
index 6a168382e0f8ab801d9528ea3b40530370aaa8b7..485df55ee8577247b72e71b0c4f4ba43ca0a0f22 100644 (file)
@@ -62,16 +62,6 @@ public:
 
        virtual void hide() {}
 
-       // Override in GuiDialog
-       virtual void slotOK() {}
-       virtual void slotApply() {}
-       virtual void slotRestore() {}
-       virtual void slotClose() {}
-
-       /** This function is called, for example, if the GUI colours
-        *  have been changed.
-        */
-       virtual void redraw() {}
        //@}
 
        /** Check whether we may apply our data.
@@ -106,9 +96,6 @@ public:
        /// Hide the dialog from sight
        virtual void hideView() = 0;
 
-       /// Redraw the dialog (e.g. if the colors have been remapped).
-       virtual void redrawView() = 0;
-
        /// Create the dialog if necessary, update it and display it.
        virtual void showView() = 0;
 
@@ -119,13 +106,6 @@ public:
        virtual bool isVisibleView() const = 0;
        //@}
 
-       /** Defaults to nothing. Can be used by the Controller, however, to
-        *  indicate to the View that something has changed and that the
-        *  dialog therefore needs updating.
-        *  \param id identifies what should be updated.
-        */
-       virtual void partialUpdateView(int /*id*/) = 0;
-
        ///
        virtual std::string name() const = 0;
 
index a2ac06abfde6a39284e5ec32ea62c46e6fefe288..b73814ff13af9a6ca19f37ad517430ff518bac36 100644 (file)
@@ -73,8 +73,6 @@ public:
        }
        bool isVisibleView() const { return QDialog::isVisible(); }
        void checkStatus() { updateView(); }
-       void redraw() { redrawView(); }
-       void redrawView() {}
        void updateData(std::string const & data)
        {
                initialiseParams(data);
@@ -84,7 +82,6 @@ public:
        {
                widget_->updateView();
        }
-       void partialUpdateView(int /*id*/) {}
        std::string name() const { return name_; }
        //@}
 private:
index c93e4e9a7b836d2b1a6d884ce0012d09133b5fb1..7b8db928e204f8a253895fcaf410ff6e69024e4b 100644 (file)
@@ -59,15 +59,12 @@ public:
        }
        bool isVisibleView() const { return QDockWidget::isVisible(); }
        void checkStatus() { updateView(); }
-       void redraw() { redrawView(); }
-       void redrawView() {}
        void updateData(std::string const & data)
        {
                initialiseParams(data);
                updateView();
        }
        bool isClosing() const { return false; }
-       void partialUpdateView(int /*id*/) {}
        std::string name() const { return name_; }
        //@}
 private:
index d2f27a9daaffc13ed688fdf02a429dbdbbae3652..dc3b18ae98a1920f2fa323f3be33dd2b1aee1442 100644 (file)
@@ -40,8 +40,6 @@ public:
        void applyView();
        /// Hide the dialog from sight
        void hideView();
-       /// Redraw the dialog (e.g. if the colors have been remapped).
-       void redrawView() {}
        /// Create the dialog if necessary, update it and display it.
        void showView();
        /// \return true if the dialog is visible.
index 6e3618b888113facfb436bcedc73a59dc78f9b95..29f450e3a2e4cc8f35dfea9fcc0bd77ab79e2bed 100644 (file)
@@ -108,10 +108,6 @@ public:
 
        void hide();
 
-       /** This function is called, for example, if the GUI colours
-        *  have been changed.
-        */
-       void redraw() { redrawView(); }
        //@}
 
        /** When applying, it's useful to know whether the dialog is about
@@ -119,18 +115,10 @@ public:
         */
        bool isClosing() const { return is_closing_; }
 
-       /** Defaults to nothing. Can be used by the Controller, however, to
-        *  indicate to the View that something has changed and that the
-        *  dialog therefore needs updating.
-        *  \param id identifies what should be updated.
-        */
-       virtual void partialUpdateView(int /*id*/) {}
-
        ///
        std::string name() const { return name_; }
 
        void apply();
-       void redrawView() {}
 
        /// Update the display of the dialog whilst it is still visible.
        virtual void updateView();
index 310345dbb192a5536cb19cce8d417781aa9d4cc7..4ea59f1c6c612cf7641f94567d9a8e2d5850840d 100644 (file)
@@ -82,14 +82,11 @@ private:
        }
        bool isVisibleView() const { return QDialog::isVisible(); }
        void checkStatus() { updateView(); }
-       void redraw() { redrawView(); }
-       void redrawView() {}
        void updateData(std::string const & data)
        {
                initialiseParams(data);
                updateView();
        }
-       void partialUpdateView(int /*id*/) {}
        std::string name() const { return "paragraph"; }
 
 private: