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
10 * Full author contact details are available in file CREDITS
16 // Must be here because of moc.
19 #include "frontends/LyXView.h"
21 #include <qmainwindow.h>
27 * QtView - Qt implementation of LyXView
29 * Qt-private implementation of the main LyX window.
31 class QtView : public QMainWindow, public LyXView {
34 /// create a main window of the given dimensions
35 QtView(unsigned int w, unsigned int h);
39 /// show - display the top-level window
43 virtual void busy(bool) const;
45 /// display a status message
46 virtual void message(string const & str);
48 /// clear status message
49 virtual void clearMessage();
51 /// add the command buffer
52 void addCommandBuffer(QWidget * parent);
55 /// menu item has been selected
56 void activated(int id);
59 void update_view_state_qt();
61 /// make sure we quit cleanly
62 virtual void closeEvent(QCloseEvent * e);
64 /// focus the command buffer widget
65 void focus_command_widget();
68 void update_view_state();
71 * setWindowTitle - set title of window
72 * @param t main window title
73 * @param it iconified (short) title
75 virtual void setWindowTitle(string const & t, string const & it);
77 QTimer statusbar_timer_;
80 QCommandBuffer * commandbuffer_;