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);
41 * show - display the top-level window
44 * @param title window title
46 void show(int x, int y, string const & t = string("LyX"));
48 /// start modal operation
49 virtual void prohibitInput() const;
50 /// end modal operation
51 virtual void allowInput() const;
53 /// display a status message
54 virtual void message(string const & str);
56 /// menu item has been selected
57 void activated(int id);
60 void update_view_state_qt();
62 /// make sure we quit cleanly
63 virtual void closeEvent(QCloseEvent * e);
65 /// focus the command buffer widget
66 void focus_command_widget();
69 void update_view_state();
72 * setWindowTitle - set title of window
73 * @param t main window title
74 * @param it iconified (short) title
76 virtual void setWindowTitle(string const & t, string const & it) {
77 setCaption(t.c_str());
78 setIconText(it.c_str());
85 QCommandBuffer * commandbuffer_;