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>
* lyx_gui.C: add exit() so we don't busy loop !

View File

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

View File

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

View File

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

View File

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

View File

@ -36,22 +36,13 @@ struct Toolbar::Pimpl {
friend class ToolbarProxy;
public:
///
Pimpl(LyXView * o, Dialogs &, int x, int y);
///
~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.
void add(int, bool doclean = true);
void add(int action);
/// update the state of the icons
void update();