]> git.lyx.org Git - features.git/commitdiff
cleanup DialogView based classes.
authorAbdelrazak Younes <younes@lyx.org>
Mon, 4 Feb 2008 17:06:34 +0000 (17:06 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Mon, 4 Feb 2008 17:06:34 +0000 (17:06 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22775 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/DialogView.h
src/frontends/qt4/GuiParagraph.cpp
src/frontends/qt4/GuiParagraph.h

index 959423281f2be0e48bb5c00f8f2103bf25d2ec20..9036960305c23ce303ee0c6eb9b686cec5376df7 100644 (file)
@@ -42,6 +42,13 @@ public:
 protected:
        ///
        void setViewTitle(docstring const & title);
+
+       /// Dialog inherited methods
+       //@{
+       void applyView() {}
+       bool initialiseParams(std::string const & /*data*/) { return true; }
+       void clearParams() {}
+       //@}
 };
 
 } // namespace frontend
index e2fbc78f3a8a7c16e9b237d5db400a7f74a6578d..007531cccf091ed3e6ce4618a6b1b5a58c2f4b41 100644 (file)
@@ -19,8 +19,6 @@
 #include "BufferParams.h"
 #include "BufferView.h"
 #include "Cursor.h"
-//#include "DialogView.h"
-//#include "DockView.h"
 #include "FuncRequest.h"
 #include "GuiView.h"
 #include "Lexer.h"
@@ -209,11 +207,6 @@ void GuiParagraph::on_restorePB_clicked()
 }
 
 
-void GuiParagraph::enableView(bool enable)
-{
-}
-
-
 void GuiParagraph::updateView()
 {
        on_synchronizedViewCB_toggled();
index feddbbd709f967e072e362bc4ff0fe217d6304a2..07f0c4863dd0e61794dafa8e82b5c81dc81276ac 100644 (file)
@@ -44,8 +44,12 @@ class GuiParagraph
 public:
        GuiParagraph(GuiView & lv);
 
-       /// update
+       /// Dialog inherited methods
+       //@{
        void updateView();
+       void dispatchParams();
+       bool isBufferDependent() const { return true; }
+       //@}
 
 private:
        ///
@@ -55,20 +59,17 @@ private:
        ///
        LyXAlignment getAlignmentFromDialog();
        ///
-       typedef std::map<LyXAlignment, QRadioButton *> RadioMap;
-       RadioMap radioMap;
-       typedef std::map<LyXAlignment, docstring> AlignmentLabels;
-       AlignmentLabels labelMap;
-
-       QString const alignDefaultLabel;
-
-       void applyView() {}
-       void enableView(bool enable);
-
-       std::string name() const { return "paragraph"; }
-
-private:
-       QString name_;
+       ParagraphParameters & params();
+       ///
+       ParagraphParameters const & params() const;
+       ///
+       bool haveMulitParSelection();
+       ///
+       bool canIndent() const;
+       ///
+       LyXAlignment alignPossible() const;
+       ///
+       LyXAlignment alignDefault() const;
 
 private Q_SLOTS:
        ///
@@ -84,27 +85,16 @@ private Q_SLOTS:
 
 private:
        ///
-       bool initialiseParams(std::string const & /*data*/) { return true; }
-       /// clean-up on hide.
-       void clearParams() {}
-       ///
-       void dispatchParams();
-       ///
-       bool isBufferDependent() const { return true; }
-       ///
-       ParagraphParameters & params();
+       typedef std::map<LyXAlignment, QRadioButton *> RadioMap;
        ///
-       ParagraphParameters const & params() const;
+       RadioMap radioMap;
        ///
-       bool haveMulitParSelection();
+       typedef std::map<LyXAlignment, docstring> AlignmentLabels;
        ///
-       bool canIndent() const;
+       AlignmentLabels labelMap;
        ///
-       LyXAlignment alignPossible() const;
+       QString const alignDefaultLabel;
        ///
-       LyXAlignment alignDefault() const;
-
-private:
        ParagraphParameters multiparsel_;
 };