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
54 /// initialize the object
58 virtual void setGeometry(
64 /// show - display the top-level window
68 virtual void busy(bool) const;
70 Toolbars::ToolbarPtr makeToolbar(ToolbarBackend::Toolbar const & tbb);
72 /// display a status message
73 virtual void message(lyx::docstring const & str);
75 /// clear status message
76 virtual void clearMessage();
78 /// update the status bar
79 virtual void updateStatusBar();
81 /// add the command buffer
82 void addCommandBuffer(QToolBar * toolbar);
84 /// menu item has been selected
85 void activated(FuncRequest const &);
87 /// returns true if this view has the focus.
88 virtual bool hasFocus() const;
92 void update_view_state_qt();
94 /// populate a toplevel menu and all its children on demand
95 void updateMenu(QAction *);
98 /// make sure we quit cleanly
99 virtual void closeEvent(QCloseEvent * e);
102 virtual void resizeEvent(QResizeEvent * e);
105 virtual void moveEvent(QMoveEvent * e);
108 /// focus the command buffer widget
109 void focus_command_widget();
112 * setWindowTitle - set title of window
113 * @param t main window title
114 * @param it iconified (short) title
116 virtual void setWindowTitle(lyx::docstring const & t, lyx::docstring const & it);
118 QTimer statusbar_timer_;
121 QCommandBuffer * commandbuffer_;
124 void updateFloatingGeometry();
126 QRect floatingGeometry_;
129 } // namespace frontend