Mercurial > octave
diff libgui/src/documentation.h @ 29779:58e7df720752
fix doc browser startup when launched from cli
* documentation.cc (documentation): init new data members, connect
indexingFinished signal to new slot load_index, do not load index
automatically;
(load_index): new slot for indexingFinished signal, loading index
or the desired page if given by the user;
(load_ref): store ref name in new data member for later use in
load:index, return if indexing not yet ready
* documentation.h new slot load_index, load_ref with emtpy argument
by default, new data memebrs m_indexed and m_current_ref_name
author | Torsten Lilge <ttl-octave@mailbox.org> |
---|---|
date | Fri, 18 Jun 2021 21:22:21 +0200 |
parents | 7a0be7c8b7ca |
children | d4d83344d653 |
line wrap: on
line diff
--- a/libgui/src/documentation.h Fri Jun 18 08:55:00 2021 +0200 +++ b/libgui/src/documentation.h Fri Jun 18 21:22:21 2021 +0200 @@ -129,7 +129,8 @@ void pasteClipboard (void); void selectAll (void); - void load_ref (const QString & name); + void load_index (void); + void load_ref (const QString & name = QString ()); void registerDoc (const QString & name); void unregisterDoc (const QString & name); @@ -177,6 +178,9 @@ QToolBar *m_tool_bar; QString m_query_string; + bool m_indexed; + QString m_current_ref_name; + QAction *m_action_go_home; QAction *m_action_go_prev; QAction *m_action_go_next;