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.
18 #include "frontends/LyXView.h"
20 #include <qmainwindow.h>
31 * QtView - Qt implementation of LyXView
33 * Qt-private implementation of the main LyX window.
35 class QtView : public QMainWindow, public LyXView {
38 /// create a main window of the given dimensions
43 /// initialise the object members (menubars, toolbars, etc..)
46 /// show - display the top-level window
50 virtual void busy(bool) const;
52 /// display a status message
53 virtual void message(std::string const & str);
55 /// clear status message
56 virtual void clearMessage();
58 /// add the command buffer
59 void addCommandBuffer(QWidget * parent);
61 /// menu item has been selected
62 void activated(FuncRequest const &);
64 // returns true if this view has the focus.
65 virtual bool hasFocus() const;
68 void initFloatingGeometry(QRect const &);
72 void update_view_state_qt();
75 virtual void resizeEvent(QResizeEvent * e);
78 virtual void moveEvent(QMoveEvent * e);
81 /// make sure we quit cleanly
82 virtual void closeEvent(QCloseEvent * e);
84 /// focus the command buffer widget
85 void focus_command_widget();
88 void update_view_state();
91 * setWindowTitle - set title of window
92 * @param t main window title
93 * @param it iconified (short) title
95 virtual void setWindowTitle(std::string const & t, std::string const & it);
97 QTimer statusbar_timer_;
100 QCommandBuffer * commandbuffer_;
103 void updateFloatingGeometry();
105 QRect floatingGeometry_;
110 } // namespace frontend