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