Some cosmetics and a gcc compile fix.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21581 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2007-11-13 13:23:44 +00:00
parent 37d4a67e0d
commit f111a8e322
7 changed files with 7 additions and 25 deletions

View File

@ -116,7 +116,6 @@ public:
/// updates the possible layouts selectable /// updates the possible layouts selectable
virtual void updateLayoutChoice(bool force) = 0; virtual void updateLayoutChoice(bool force) = 0;
/// update the toolbar /// update the toolbar
virtual void updateToolbars() = 0; virtual void updateToolbars() = 0;
/// get toolbar info /// get toolbar info
@ -125,13 +124,9 @@ public:
virtual void toggleToolbarState(std::string const & name, bool allowauto) = 0; virtual void toggleToolbarState(std::string const & name, bool allowauto) = 0;
/// update the status bar /// update the status bar
virtual void updateStatusBar() = 0; virtual void updateStatusBar() = 0;
/// display a message in the view /// display a message in the view
virtual void message(docstring const &) = 0; virtual void message(docstring const &) = 0;
/// clear any temporary message and replace with current status
virtual void clearMessage() = 0;
/// dispatch to current BufferView /// dispatch to current BufferView
virtual void dispatch(FuncRequest const & cmd) = 0; virtual void dispatch(FuncRequest const & cmd) = 0;
@ -143,7 +138,6 @@ public:
/// returns true if this view has the focus. /// returns true if this view has the focus.
virtual bool hasFocus() const = 0; virtual bool hasFocus() const = 0;
/// ///
virtual void restartCursor() = 0; virtual void restartCursor() = 0;

View File

@ -12,8 +12,6 @@
#include "Action.h" #include "Action.h"
#include "frontends/LyXView.h"
#include "debug.h" #include "debug.h"
#include "FuncRequest.h" #include "FuncRequest.h"
#include "FuncStatus.h" #include "FuncStatus.h"

View File

@ -24,8 +24,6 @@
#include "LyXAction.h" #include "LyXAction.h"
#include "FuncRequest.h" #include "FuncRequest.h"
#include "frontends/LyXView.h"
#include "support/lyxalgo.h" #include "support/lyxalgo.h"
#include "support/lstrings.h" #include "support/lstrings.h"

View File

@ -31,8 +31,6 @@
#include "gettext.h" #include "gettext.h"
#include "TextClass.h" #include "TextClass.h"
#include "frontends/LyXView.h"
#include "support/convert.h" #include "support/convert.h"
#include <algorithm> #include <algorithm>

View File

@ -362,7 +362,7 @@ void GuiView::init()
statusBar()->setSizeGripEnabled(true); statusBar()->setSizeGripEnabled(true);
QObject::connect(&statusbar_timer_, SIGNAL(timeout()), QObject::connect(&statusbar_timer_, SIGNAL(timeout()),
this, SLOT(update_view_state_qt())); this, SLOT(clearMessage()));
d.setBackground(); d.setBackground();
} }
@ -608,12 +608,6 @@ void GuiView::message(docstring const & str)
} }
void GuiView::clearMessage()
{
update_view_state_qt();
}
void GuiView::setIconSize(unsigned int size) void GuiView::setIconSize(unsigned int size)
{ {
d.lastIconSize = size; d.lastIconSize = size;
@ -639,7 +633,7 @@ void GuiView::bigSizedIcons()
} }
void GuiView::update_view_state_qt() void GuiView::clearMessage()
{ {
if (!hasFocus()) if (!hasFocus())
return; return;

View File

@ -72,7 +72,6 @@ public:
GuiToolbar * makeToolbar(ToolbarInfo const & tbinfo, bool newline); GuiToolbar * makeToolbar(ToolbarInfo const & tbinfo, bool newline);
virtual void updateStatusBar(); virtual void updateStatusBar();
virtual void message(docstring const & str); virtual void message(docstring const & str);
virtual void clearMessage();
virtual bool hasFocus() const; virtual bool hasFocus() const;
void showMiniBuffer(bool); void showMiniBuffer(bool);
void openMenu(docstring const &); void openMenu(docstring const &);
@ -108,8 +107,9 @@ Q_SIGNALS:
void closing(int); void closing(int);
public Q_SLOTS: public Q_SLOTS:
/// idle timeout /// idle timeout.
void update_view_state_qt(); /// clear any temporary message and replace with current status.
void clearMessage();
/// ///
void updateWindowTitle(GuiWorkArea * wa); void updateWindowTitle(GuiWorkArea * wa);
@ -123,7 +123,7 @@ public Q_SLOTS:
void bigSizedIcons(); void bigSizedIcons();
private: private:
friend GuiWorkArea; friend class GuiWorkArea;
/// make sure we quit cleanly /// make sure we quit cleanly
virtual void closeEvent(QCloseEvent * e); virtual void closeEvent(QCloseEvent * e);

View File

@ -13,12 +13,12 @@
#ifndef INSERTTABLEWIDGET_H #ifndef INSERTTABLEWIDGET_H
#define INSERTTABLEWIDGET_H #define INSERTTABLEWIDGET_H
#include "frontends/LyXView.h"
#include <QWidget> #include <QWidget>
namespace lyx { namespace lyx {
namespace frontend { namespace frontend {
class LyXView;
class InsertTableWidget : public QWidget { class InsertTableWidget : public QWidget {
Q_OBJECT Q_OBJECT