The documentation main class derived from QSplitter. More...
#include "documentation.h"
Public Slots | |
void | copyClipboard (void) |
void | load_ref (const QString &name) |
void | notice_settings (const gui_settings *settings) |
void | pasteClipboard (void) |
void | registerDoc (const QString &name) |
void | selectAll (void) |
void | unregisterDoc (const QString &name) |
Signals | |
void | show_single_result (const QUrl &) |
Public Member Functions | |
documentation (QWidget *parent, base_qobject &oct_qobj) | |
~documentation (void) | |
Private Types | |
enum | { max_history_entries = 10 } |
Private Slots | |
void | activate_find (void) |
void | filter_update (const QString &expression) |
void | filter_update_history (void) |
void | find (bool backward=false) |
void | find_backward (void) |
void | find_forward_from_anchor (const QString &text) |
void | global_search (void) |
void | global_search_finished (int hits) |
void | global_search_started (void) |
void | handle_cursor_position_change (void) |
void | handle_search_result_clicked (const QUrl &url) |
void | open_hist_url (QAction *a) |
void | record_anchor_position (void) |
void | update_history_menus (void) |
Private Member Functions | |
QAction * | add_action (const QIcon &icon, const QString &text, const char *member, QWidget *receiver=nullptr, QToolBar *tool_bar=nullptr) |
void | construct_tool_bar (void) |
void | select_all_occurrences (const QString &text) |
Select all occurrences of a string in the doc browser. More... | |
void | update_history (int new_count, QAction **actions) |
Private Attributes | |
QAction * | m_action_find |
QAction * | m_action_go_home |
QAction * | m_action_go_next |
QAction * | m_action_go_prev |
QAction * | m_action_zoom_in |
QAction * | m_action_zoom_original |
QAction * | m_action_zoom_out |
QString | m_collection |
documentation_browser * | m_doc_browser |
QWidget * | m_doc_widget |
QComboBox * | m_filter |
QLineEdit * | m_find_line_edit |
QShortcut * | m_findnext_shortcut |
QShortcut * | m_findprev_shortcut |
QHelpEngine * | m_help_engine |
QString | m_internal_search |
QAction * | m_next_pages_actions [max_history_entries] |
int | m_next_pages_count |
QMenu * | m_next_pages_menu |
base_qobject & | m_octave_qobj |
QAction * | m_prev_pages_actions [max_history_entries] |
int | m_prev_pages_count |
QMenu * | m_prev_pages_menu |
QString | m_query_string |
int | m_search_anchor_position |
QToolBar * | m_tool_bar |
The documentation main class derived from QSplitter.
Definition at line 95 of file documentation.h.
|
private |
Enumerator | |
---|---|
max_history_entries |
Definition at line 171 of file documentation.h.
octave::documentation::documentation | ( | QWidget * | parent, |
base_qobject & | oct_qobj | ||
) |
Definition at line 66 of file documentation.cc.
References construct_tool_bar(), octave::sys::file_ops::dir_sep_str(), filter_update(), filter_update_history(), find(), find_backward(), find_forward_from_anchor(), QtHandles::Utils::fromStdString(), octave::base_qobject::get_resource_manager(), octave::resource_manager::get_settings(), global_search(), global_search_finished(), global_search_started(), handle_cursor_position_change(), handle_search_result_clicked(), octave::resource_manager::icon(), link(), m_collection, m_doc_browser, m_filter, m_find_line_edit, m_findnext_shortcut, m_findprev_shortcut, m_help_engine, m_octave_qobj, m_search_anchor_position, m_tool_bar, notice_settings(), octave::config::oct_doc_dir(), search(), octave::sys::tempnam(), and warning().
octave::documentation::~documentation | ( | void | ) |
Definition at line 292 of file documentation.cc.
References octave::fi, m_collection, m_help_engine, and octave::sys::recursive_rmdir().
|
privateslot |
Definition at line 691 of file documentation.cc.
References m_doc_browser, and m_find_line_edit.
Referenced by construct_tool_bar().
|
private |
Definition at line 317 of file documentation.cc.
References m_doc_widget, and r.
Referenced by construct_tool_bar().
|
private |
Definition at line 338 of file documentation.cc.
References activate_find(), add_action(), octave::base_qobject::get_resource_manager(), octave::resource_manager::icon(), m_action_find, m_action_go_home, m_action_go_next, m_action_go_prev, m_action_zoom_in, m_action_zoom_original, m_action_zoom_out, m_doc_browser, m_next_pages_actions, m_next_pages_menu, m_octave_qobj, m_prev_pages_actions, m_prev_pages_menu, m_tool_bar, max_history_entries, open_hist_url(), and update_history_menus().
Referenced by documentation().
|
slot |
Definition at line 618 of file documentation.cc.
References m_doc_browser.
Referenced by octave::documentation_dock_widget::copyClipboard().
|
privateslot |
Definition at line 706 of file documentation.cc.
References m_help_engine.
Referenced by documentation().
|
privateslot |
Definition at line 718 of file documentation.cc.
References m_filter.
Referenced by documentation().
|
privateslot |
Definition at line 735 of file documentation.cc.
References m_doc_browser, m_find_line_edit, m_help_engine, and record_anchor_position().
Referenced by documentation(), and find_backward().
|
privateslot |
|
privateslot |
Definition at line 759 of file documentation.cc.
References m_doc_browser, m_help_engine, and m_search_anchor_position.
Referenced by documentation().
|
privateslot |
Definition at line 419 of file documentation.cc.
References m_help_engine, and m_internal_search.
Referenced by documentation().
|
privateslot |
Definition at line 461 of file documentation.cc.
References handle_search_result_clicked(), m_help_engine, m_internal_search, m_query_string, r, and show_single_result().
Referenced by documentation().
|
privateslot |
Definition at line 456 of file documentation.cc.
Referenced by documentation().
|
privateslot |
Definition at line 786 of file documentation.cc.
References m_doc_browser, m_help_engine, and record_anchor_position().
Referenced by documentation().
|
privateslot |
Definition at line 535 of file documentation.cc.
References octave::documentation_browser::handle_index_clicked(), m_doc_browser, m_find_line_edit, m_query_string, and select_all_occurrences().
Referenced by documentation(), and global_search_finished().
|
slot |
Definition at line 630 of file documentation.cc.
References m_doc_browser, m_help_engine, and m_internal_search.
Referenced by octave::documentation_dock_widget::showDoc().
|
slot |
Definition at line 589 of file documentation.cc.
References octave::base_qobject::get_shortcut_manager(), global_icon_size(), global_icon_sizes, m_action_find, m_action_go_home, m_action_go_next, m_action_go_prev, m_action_zoom_in, m_action_zoom_original, m_action_zoom_out, m_findnext_shortcut, m_findprev_shortcut, m_help_engine, m_octave_qobj, m_tool_bar, sc_doc_go_back(), sc_doc_go_home(), sc_doc_go_next(), sc_edit_edit_find_next(), sc_edit_edit_find_previous(), sc_edit_edit_find_replace(), sc_edit_view_zoom_in(), sc_edit_view_zoom_normal(), sc_edit_view_zoom_out(), octave::shortcut_manager::set_shortcut(), and octave::shortcut_manager::shortcut().
Referenced by documentation(), and octave::documentation_dock_widget::notice_settings().
|
privateslot |
Definition at line 922 of file documentation.cc.
References m_doc_browser.
Referenced by construct_tool_bar().
|
slot |
Definition at line 626 of file documentation.cc.
Referenced by octave::documentation_dock_widget::pasteClipboard().
|
privateslot |
Definition at line 778 of file documentation.cc.
References m_doc_browser, m_help_engine, and m_search_anchor_position.
Referenced by find(), and handle_cursor_position_change().
|
slot |
Definition at line 795 of file documentation.cc.
References m_help_engine, and warning().
Referenced by octave::documentation_dock_widget::registerDoc().
|
private |
Select all occurrences of a string in the doc browser.
Definition at line 561 of file documentation.cc.
References octave::format(), and m_doc_browser.
Referenced by handle_search_result_clicked().
|
slot |
Definition at line 628 of file documentation.cc.
Referenced by octave::documentation_dock_widget::selectAll().
|
signal |
Referenced by global_search_finished().
|
slot |
Definition at line 824 of file documentation.cc.
References m_help_engine.
Referenced by octave::documentation_dock_widget::unregisterDoc().
|
private |
Definition at line 856 of file documentation.cc.
References m_action_go_next, m_action_go_prev, m_doc_browser, m_next_pages_actions, and max_history_entries.
Referenced by update_history_menus().
|
privateslot |
Definition at line 839 of file documentation.cc.
References m_doc_browser, m_next_pages_actions, m_next_pages_count, m_prev_pages_actions, m_prev_pages_count, and update_history().
Referenced by construct_tool_bar().
|
private |
Definition at line 175 of file documentation.h.
Referenced by construct_tool_bar(), and notice_settings().
|
private |
Definition at line 163 of file documentation.h.
Referenced by construct_tool_bar(), and notice_settings().
|
private |
Definition at line 165 of file documentation.h.
Referenced by construct_tool_bar(), notice_settings(), and update_history().
|
private |
Definition at line 164 of file documentation.h.
Referenced by construct_tool_bar(), notice_settings(), and update_history().
|
private |
Definition at line 179 of file documentation.h.
Referenced by construct_tool_bar(), and notice_settings().
|
private |
Definition at line 181 of file documentation.h.
Referenced by construct_tool_bar(), and notice_settings().
|
private |
Definition at line 180 of file documentation.h.
Referenced by construct_tool_bar(), and notice_settings().
|
private |
Definition at line 157 of file documentation.h.
Referenced by documentation(), and ~documentation().
|
private |
Definition at line 153 of file documentation.h.
Referenced by documentation(), activate_find(), construct_tool_bar(), copyClipboard(), find(), find_forward_from_anchor(), handle_cursor_position_change(), handle_search_result_clicked(), load_ref(), open_hist_url(), record_anchor_position(), select_all_occurrences(), update_history(), and update_history_menus().
|
private |
Definition at line 159 of file documentation.h.
Referenced by add_action().
|
private |
Definition at line 156 of file documentation.h.
Referenced by documentation(), and filter_update_history().
|
private |
Definition at line 154 of file documentation.h.
Referenced by documentation(), activate_find(), find(), and handle_search_result_clicked().
|
private |
Definition at line 176 of file documentation.h.
Referenced by documentation(), and notice_settings().
|
private |
Definition at line 177 of file documentation.h.
Referenced by documentation(), and notice_settings().
|
private |
Definition at line 151 of file documentation.h.
Referenced by documentation(), ~documentation(), filter_update(), find(), find_forward_from_anchor(), global_search(), global_search_finished(), handle_cursor_position_change(), load_ref(), notice_settings(), record_anchor_position(), registerDoc(), and unregisterDoc().
|
private |
Definition at line 152 of file documentation.h.
Referenced by global_search(), global_search_finished(), and load_ref().
|
private |
Definition at line 173 of file documentation.h.
Referenced by construct_tool_bar(), update_history(), and update_history_menus().
|
private |
Definition at line 169 of file documentation.h.
Referenced by update_history_menus().
|
private |
Definition at line 167 of file documentation.h.
Referenced by construct_tool_bar().
|
private |
Definition at line 149 of file documentation.h.
Referenced by documentation(), construct_tool_bar(), and notice_settings().
|
private |
Definition at line 172 of file documentation.h.
Referenced by construct_tool_bar(), and update_history_menus().
|
private |
Definition at line 168 of file documentation.h.
Referenced by update_history_menus().
|
private |
Definition at line 166 of file documentation.h.
Referenced by construct_tool_bar().
|
private |
Definition at line 161 of file documentation.h.
Referenced by global_search_finished(), and handle_search_result_clicked().
|
private |
Definition at line 155 of file documentation.h.
Referenced by documentation(), find_forward_from_anchor(), and record_anchor_position().
|
private |
Definition at line 160 of file documentation.h.
Referenced by documentation(), construct_tool_bar(), and notice_settings().