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.
16 // Must be here because of moc.
19 #include "frontends/LyXView.h"
21 #include <qmainwindow.h>
32 * QtView - Qt implementation of LyXView
34 * Qt-private implementation of the main LyX window.
36 class QtView : public QMainWindow, public LyXView {
39 /// create a main window of the given dimensions
40 QtView(unsigned int w, unsigned int h);
44 /// show - display the top-level window
48 virtual void busy(bool) const;
50 /// display a status message
51 virtual void message(std::string const & str);
53 /// clear status message
54 virtual void clearMessage();
56 /// add the command buffer
57 void addCommandBuffer(QWidget * parent);
59 /// menu item has been selected
60 void activated(FuncRequest const &);
62 // returns true if this view has the focus.
63 virtual bool hasFocus() const;
67 void update_view_state_qt();
69 /// make sure we quit cleanly
70 virtual void closeEvent(QCloseEvent * e);
72 /// focus the command buffer widget
73 void focus_command_widget();
76 void update_view_state();
79 * setWindowTitle - set title of window
80 * @param t main window title
81 * @param it iconified (short) title
83 virtual void setWindowTitle(std::string const & t, std::string const & it);
85 QTimer statusbar_timer_;
88 QCommandBuffer * commandbuffer_;
91 } // namespace frontend