Q_OBJECT
public:
/// create a main window of the given dimensions
- GuiView(Gui & owner);
+ GuiView();
~GuiView();
/// initialize the object
virtual void init();
+ ///
+ virtual void setGeometry(
+ unsigned int width,
+ unsigned int height,
+ int posx, int posy,
+ bool maximize);
+
/// show - display the top-level window
void show();
/// show busy cursor
virtual void busy(bool) const;
+ Toolbars::ToolbarPtr makeToolbar(ToolbarBackend::Toolbar const & tbb);
+
/// display a status message
- virtual void message(std::string const & str);
+ virtual void message(lyx::docstring const & str);
/// clear status message
virtual void clearMessage();
+ /// update the status bar
+ virtual void updateStatusBar();
+
/// add the command buffer
void addCommandBuffer(QToolBar * toolbar);
/// returns true if this view has the focus.
virtual bool hasFocus() const;
- ///
- static QMainWindow* mainWidget();
-
-public slots:
+public Q_SLOTS:
/// idle timeout
void update_view_state_qt();
/// focus the command buffer widget
void focus_command_widget();
- /// update status bar
- void update_view_state();
-
/**
* setWindowTitle - set title of window
* @param t main window title
* @param it iconified (short) title
*/
- virtual void setWindowTitle(std::string const & t, std::string const & it);
+ virtual void setWindowTitle(lyx::docstring const & t, lyx::docstring const & it);
QTimer statusbar_timer_;
/// command buffer
QCommandBuffer * commandbuffer_;
- ///
- static QMainWindow* mainWidget_;
-
///
void updateFloatingGeometry();
///