4 * Copyright 1995-2002 the LyX Team
5 * Read the file COPYING
7 * \author Lars Gullik Bjornes <larsbj@lyx.org>
8 * \author John Levon <moz@compsoc.man.ac.uk>
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);
57 /// menu item has been selected
58 void activated(int id);
61 void update_view_state_qt();
64 /// make sure we quit cleanly
65 virtual void closeEvent(QCloseEvent * e);
68 /// focus the command buffer widget
69 void focus_command_widget();
72 void update_view_state();
75 * setWindowTitle - set title of window
76 * @param t main window title
77 * @param it iconified (short) title
79 virtual void setWindowTitle(string const & t, string const & it) {
80 setCaption(t.c_str());
81 setIconText(it.c_str());
88 QCommandBuffer * commandbuffer_;