cleanup DialogView based classes.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22775 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2008-02-04 17:06:34 +00:00
parent 1ccb7f1f8b
commit dbfa1a6f46
3 changed files with 28 additions and 38 deletions

View 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

View 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();

View 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() {}
typedef std::map<LyXAlignment, QRadioButton *> RadioMap;
///
void dispatchParams();
RadioMap radioMap;
///
bool isBufferDependent() const { return true; }
typedef std::map<LyXAlignment, docstring> AlignmentLabels;
///
ParagraphParameters & params();
AlignmentLabels labelMap;
///
ParagraphParameters const & params() const;
QString const alignDefaultLabel;
///
bool haveMulitParSelection();
///
bool canIndent() const;
///
LyXAlignment alignPossible() const;
///
LyXAlignment alignDefault() const;
private:
ParagraphParameters multiparsel_;
};