]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiView.h
enable Font cache only for MacOSX and inline width() for other platform.
[lyx.git] / src / frontends / qt4 / GuiView.h
index 6173ac5fbb4102c1c0f8708e7c40f4c21b90892b..509807d2c8f6fe832a513656f298899e2dd2dcc2 100644 (file)
@@ -47,25 +47,37 @@ class GuiView : public QMainWindow, public LyXView {
        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);
 
@@ -75,10 +87,7 @@ public:
        /// 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();
 
@@ -99,24 +108,18 @@ private:
        /// 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();
        ///