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);
37 /// set the x,y of the top level window
38 virtual void setPosition(unsigned int, unsigned int);
41 * show - display the top-level window
42 * @param place general placement (FIXME: GUII)
43 * @param border border border type (FIXME: GUII)
44 * @param title window title
46 virtual void show(int, int, string const & t = string("LyX"));
48 /// start modal operation
49 virtual void prohibitInput() const;
50 /// end modal operation
51 virtual void allowInput() const;
53 /// redraw the main form.
57 /// menu item has been selected
58 void activated(int id);
61 /// make sure we quit cleanly
62 virtual void closeEvent(QCloseEvent * e);
66 * setWindowTitle - set title of window
67 * @param t main window title
68 * @param it iconified (short) title
70 virtual void setWindowTitle(string const & t, string const & it) {
71 setCaption(t.c_str());
72 setIconText(it.c_str());