4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
7 * \author Lars Gullik Bjornes
9 * \author Abdelrazak Younes
11 * Full author contact details are available in file CREDITS.
17 // Must be here because of moc.
20 #include "frontends/LyXView.h"
21 #include "funcrequest.h"
23 #include <QMainWindow>
26 #include <QCloseEvent>
39 QWidget* mainWindow();
42 * GuiView - Qt4 implementation of LyXView
44 * qt4-private implementation of the main LyX window.
46 class GuiView : public QMainWindow, public LyXView {
49 /// create a main window of the given dimensions
56 virtual void setGeometry(
61 virtual void saveGeometry();
62 virtual void busy(bool) const;
63 Toolbars::ToolbarPtr makeToolbar(ToolbarBackend::Toolbar const & tbb);
64 virtual void updateStatusBar();
65 virtual void message(lyx::docstring const & str);
66 virtual void clearMessage();
67 virtual bool hasFocus() const;
69 /// show - display the top-level window
72 /// add the command buffer
73 void addCommandBuffer(QToolBar * toolbar);
75 /// menu item has been selected
76 void activated(FuncRequest const &);
84 void update_view_state_qt();
86 /// populate a toplevel menu and all its children on demand
87 void updateMenu(QAction *);
90 /// make sure we quit cleanly
91 virtual void closeEvent(QCloseEvent * e);
94 virtual void resizeEvent(QResizeEvent * e);
97 virtual void moveEvent(QMoveEvent * e);
100 /// focus the command buffer widget
101 void focus_command_widget();
104 * setWindowTitle - set title of window
105 * @param t main window title
106 * @param it iconified (short) title
108 virtual void setWindowTitle(lyx::docstring const & t, lyx::docstring const & it);
110 QTimer statusbar_timer_;
113 QCommandBuffer * commandbuffer_;
116 void updateFloatingGeometry();
118 QRect floatingGeometry_;
121 } // namespace frontend