Remove unused code.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21717 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2007-11-22 22:20:51 +00:00
parent 74dfd86649
commit baa9153134
7 changed files with 1 additions and 44 deletions

View File

@ -12,8 +12,8 @@
#ifndef BUTTONCONTROLLER_H #ifndef BUTTONCONTROLLER_H
#define BUTTONCONTROLLER_H #define BUTTONCONTROLLER_H
#include <list>
#include "ButtonPolicy.h" #include "ButtonPolicy.h"
#include "gettext.h" #include "gettext.h"
#include <list> #include <list>

View File

@ -62,16 +62,6 @@ public:
virtual void hide() {} 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. /** Check whether we may apply our data.
@ -106,9 +96,6 @@ public:
/// Hide the dialog from sight /// Hide the dialog from sight
virtual void hideView() = 0; 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. /// Create the dialog if necessary, update it and display it.
virtual void showView() = 0; virtual void showView() = 0;
@ -119,13 +106,6 @@ public:
virtual bool isVisibleView() const = 0; 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; virtual std::string name() const = 0;

View File

@ -73,8 +73,6 @@ public:
} }
bool isVisibleView() const { return QDialog::isVisible(); } bool isVisibleView() const { return QDialog::isVisible(); }
void checkStatus() { updateView(); } void checkStatus() { updateView(); }
void redraw() { redrawView(); }
void redrawView() {}
void updateData(std::string const & data) void updateData(std::string const & data)
{ {
initialiseParams(data); initialiseParams(data);
@ -84,7 +82,6 @@ public:
{ {
widget_->updateView(); widget_->updateView();
} }
void partialUpdateView(int /*id*/) {}
std::string name() const { return name_; } std::string name() const { return name_; }
//@} //@}
private: private:

View File

@ -59,15 +59,12 @@ public:
} }
bool isVisibleView() const { return QDockWidget::isVisible(); } bool isVisibleView() const { return QDockWidget::isVisible(); }
void checkStatus() { updateView(); } void checkStatus() { updateView(); }
void redraw() { redrawView(); }
void redrawView() {}
void updateData(std::string const & data) void updateData(std::string const & data)
{ {
initialiseParams(data); initialiseParams(data);
updateView(); updateView();
} }
bool isClosing() const { return false; } bool isClosing() const { return false; }
void partialUpdateView(int /*id*/) {}
std::string name() const { return name_; } std::string name() const { return name_; }
//@} //@}
private: private:

View File

@ -40,8 +40,6 @@ public:
void applyView(); void applyView();
/// Hide the dialog from sight /// Hide the dialog from sight
void hideView(); 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. /// Create the dialog if necessary, update it and display it.
void showView(); void showView();
/// \return true if the dialog is visible. /// \return true if the dialog is visible.

View File

@ -108,10 +108,6 @@ public:
void hide(); 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 /** When applying, it's useful to know whether the dialog is about
@ -119,18 +115,10 @@ public:
*/ */
bool isClosing() const { return is_closing_; } 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_; } std::string name() const { return name_; }
void apply(); void apply();
void redrawView() {}
/// Update the display of the dialog whilst it is still visible. /// Update the display of the dialog whilst it is still visible.
virtual void updateView(); virtual void updateView();

View File

@ -82,14 +82,11 @@ private:
} }
bool isVisibleView() const { return QDialog::isVisible(); } bool isVisibleView() const { return QDialog::isVisible(); }
void checkStatus() { updateView(); } void checkStatus() { updateView(); }
void redraw() { redrawView(); }
void redrawView() {}
void updateData(std::string const & data) void updateData(std::string const & data)
{ {
initialiseParams(data); initialiseParams(data);
updateView(); updateView();
} }
void partialUpdateView(int /*id*/) {}
std::string name() const { return "paragraph"; } std::string name() const { return "paragraph"; }
private: private: