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
17 #include "frontends/LyXView.h"
19 #include <qmainwindow.h>
25 * QtView - Qt implementation of LyXView
27 * Qt-private implementation of the main LyX window.
29 class QtView : public QMainWindow, public LyXView {
32 /// create a main window of the given dimensions
33 QtView(unsigned int w, unsigned int h);
37 /// show - display the top-level window
40 /// start modal operation
41 virtual void prohibitInput() const;
42 /// end modal operation
43 virtual void allowInput() const;
45 /// display a status message
46 virtual void message(string const & str);
48 /// menu item has been selected
49 void activated(int id);
52 void update_view_state_qt();
54 /// make sure we quit cleanly
55 virtual void closeEvent(QCloseEvent * e);
57 /// focus the command buffer widget
58 void focus_command_widget();
61 void update_view_state();
64 * setWindowTitle - set title of window
65 * @param t main window title
66 * @param it iconified (short) title
68 virtual void setWindowTitle(string const & t, string const & it);
74 QCommandBuffer * commandbuffer_;