]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/TocWidget.h
QDialogButtonBox for the remaining dialogs.
[lyx.git] / src / frontends / qt4 / TocWidget.h
index ec1d5ad2643731c91f4e4e688990cb4e57b58521..9cb21bfcbfc61f8b1ebdd9221de44f1aeed38efe 100644 (file)
@@ -40,16 +40,17 @@ public:
        void init(QString const & str);
        ///
        void doDispatch(Cursor & cur, FuncRequest const & fr);
+       ///send request to lyx::dispatch with proper guiview handle
+       ///(if ToC is detached current_view can be different window)
+       void sendDispatch(FuncRequest fr);
        ///
        bool getStatus(Cursor & cur, FuncRequest const & fr, FuncStatus & status)
                const;
-       // update the view when the model has changed
-       void checkModelChanged();
 
 public Q_SLOTS:
-       /// Schedule an update of the dialog after a delay
+       /// Schedule an update of the dialog, delaying expensive operations
        void updateView();
-       /// Schedule an update of the dialog immediately
+       /// Update completely without delay
        void updateViewNow();
 
 protected Q_SLOTS:
@@ -74,8 +75,8 @@ protected Q_SLOTS:
        void showContextMenu(const QPoint & pos);
 
 private Q_SLOTS:
-       /// Update the display of the dialog
-       void realUpdateView();
+       /// Perform the expensive update operations
+       void finishUpdateView();
 
 private:
        ///
@@ -108,12 +109,8 @@ private:
        bool persistent_;
        ///
        GuiView & gui_view_;
-       // Timers for scheduling updates: one immediately and one after a delay.
-       // This is according to the logic of the previous code: when at rest, the
-       // update is carried out immediately, and when an update was done recently,
-       // we schedule an update to occur 2s after resting.
-       QTimer * update_timer_short_;
-       QTimer * update_timer_long_;
+       // Timer for scheduling expensive update operations
+       QTimer * timer_;
 };
 
 } // namespace frontend