toolbar - remove dead code

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4753 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
John Levon 2002-07-22 21:43:27 +00:00
parent 92c15c86a5
commit b26e3ab3bb
6 changed files with 13 additions and 21 deletions

View File

@ -1,3 +1,11 @@
2002-07-22 John Levon <moz@compsoc.man.ac.uk>
* QCommandBuffer.C: probably compile fix
* QtView.C:
* Toolbar_pimpl.h:
* Toolbar_pimpl.C: remove dead code
2002-07-22 John Levon <moz@compsoc.man.ac.uk> 2002-07-22 John Levon <moz@compsoc.man.ac.uk>
* lyx_gui.C: add exit() so we don't busy loop ! * lyx_gui.C: add exit() so we don't busy loop !

View File

@ -18,6 +18,7 @@
#include <qcombobox.h> #include <qcombobox.h>
#include <qtoolbutton.h> #include <qtoolbutton.h>
#include <qsize.h>
#include <qpixmap.h> #include <qpixmap.h>
namespace { namespace {

View File

@ -66,7 +66,6 @@ QtView::QtView(unsigned int width, unsigned int height)
this, SLOT(activated(int))); this, SLOT(activated(int)));
toolbar_.reset(new Toolbar(this, *getDialogs(), 0, 0, toolbardefaults)); toolbar_.reset(new Toolbar(this, *getDialogs(), 0, 0, toolbardefaults));
toolbar_->set(true);
statusBar()->setSizeGripEnabled(false); statusBar()->setSizeGripEnabled(false);

View File

@ -109,4 +109,3 @@ QtView
Toolbar_pimpl Toolbar_pimpl
- mathed symbols (*) - mathed symbols (*)
- set() ??

View File

@ -224,13 +224,7 @@ void Toolbar::Pimpl::openLayoutList()
} }
void Toolbar::Pimpl::set(bool) void Toolbar::Pimpl::add(int action)
{
// FIXME: ???
}
void Toolbar::Pimpl::add(int action, bool)
{ {
if (!toolbars_.size()) { if (!toolbars_.size()) {
toolbars_.push_back(new QToolBar(owner_)); toolbars_.push_back(new QToolBar(owner_));

View File

@ -36,22 +36,13 @@ struct Toolbar::Pimpl {
friend class ToolbarProxy; friend class ToolbarProxy;
public: public:
///
Pimpl(LyXView * o, Dialogs &, int x, int y); Pimpl(LyXView * o, Dialogs &, int x, int y);
///
~Pimpl(); ~Pimpl();
/// (re)sets the toolbar
void set(bool doingmain = false);
void reset() { }
/** this is to be the entry point to the toolbar
frame, where you can change the toolbar realtime.
*/
void edit();
/// add a new button to the toolbar. /// add a new button to the toolbar.
void add(int, bool doclean = true); void add(int action);
/// update the state of the icons /// update the state of the icons
void update(); void update();