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>
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);
38 * show - display the top-level window
41 * @param title window title
43 void show(int x, int y, string const & t = string("LyX"));
45 /// start modal operation
46 virtual void prohibitInput() const;
47 /// end modal operation
48 virtual void allowInput() const;
51 /// menu item has been selected
52 void activated(int id);
55 /// make sure we quit cleanly
56 virtual void closeEvent(QCloseEvent * e);
60 * setWindowTitle - set title of window
61 * @param t main window title
62 * @param it iconified (short) title
64 virtual void setWindowTitle(string const & t, string const & it) {
65 setCaption(t.c_str());
66 setIconText(it.c_str());