X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2Fqt4%2FTocWidget.h;h=608920a42ad3f7b7f03519895e6686c1930d9301;hb=59e0cb8f85f0d2f985b31532dd3308315659c662;hp=12f691c182bf6bf889682a310195422288bcd823;hpb=c127d83b66c1216fd1d3884c6c16f628100404c2;p=lyx.git diff --git a/src/frontends/qt4/TocWidget.h b/src/frontends/qt4/TocWidget.h index 12f691c182..608920a42a 100644 --- a/src/frontends/qt4/TocWidget.h +++ b/src/frontends/qt4/TocWidget.h @@ -16,6 +16,7 @@ #include "ui_TocUi.h" #include "Cursor.h" +#include "FuncCode.h" #include @@ -43,8 +44,10 @@ public: const; public Q_SLOTS: - /// Update the display of the dialog whilst it is still visible. + /// Schedule new update of the display unless already scheduled. void updateView(); + /// Update the display of the dialog whilst it is still visible. + void updateViewForce(); protected Q_SLOTS: /// @@ -85,7 +88,7 @@ private: /// void setTreeDepth(int depth); /// - void outline(int func_code); + void outline(FuncCode func_code); /// finds the inset that is connected to the current item, /// if any, otherwise return null Inset * itemInset() const; @@ -98,6 +101,8 @@ private: bool persistent_; /// GuiView & gui_view_; + // next delay for outliner update in ms. -1 when already scheduled. + int update_delay_; }; } // namespace frontend