mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-08 10:51:03 +00:00
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:
parent
74dfd86649
commit
baa9153134
@ -12,8 +12,8 @@
|
||||
#ifndef BUTTONCONTROLLER_H
|
||||
#define BUTTONCONTROLLER_H
|
||||
|
||||
#include <list>
|
||||
#include "ButtonPolicy.h"
|
||||
|
||||
#include "gettext.h"
|
||||
|
||||
#include <list>
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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:
|
||||
|
@ -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:
|
||||
|
@ -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.
|
||||
|
@ -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();
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user