GNU Octave  6.2.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
octave::documentation Class Reference

The documentation main class derived from QSplitter. More...

#include "documentation.h"

Inheritance diagram for octave::documentation:
Collaboration diagram for octave::documentation:

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_browserm_doc_browser
 
QWidgetm_doc_widget
 
QComboBox * m_filter
 
QLineEditm_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
 
QMenum_next_pages_menu
 
base_qobjectm_octave_qobj
 
QAction * m_prev_pages_actions [max_history_entries]
 
int m_prev_pages_count
 
QMenum_prev_pages_menu
 
QString m_query_string
 
int m_search_anchor_position
 
QToolBar * m_tool_bar
 

Detailed Description

The documentation main class derived from QSplitter.

Definition at line 95 of file documentation.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
private
Enumerator
max_history_entries 

Definition at line 171 of file documentation.h.

Constructor & Destructor Documentation

◆ documentation()

◆ ~documentation()

octave::documentation::~documentation ( void  )

Member Function Documentation

◆ activate_find

void octave::documentation::activate_find ( void  )
privateslot

Definition at line 691 of file documentation.cc.

References m_doc_browser, and m_find_line_edit.

Referenced by construct_tool_bar().

◆ add_action()

QAction * octave::documentation::add_action ( const QIcon &  icon,
const QString &  text,
const char *  member,
QWidget receiver = nullptr,
QToolBar *  tool_bar = nullptr 
)
private

Definition at line 317 of file documentation.cc.

References m_doc_widget, and r.

Referenced by construct_tool_bar().

◆ construct_tool_bar()

◆ copyClipboard

void octave::documentation::copyClipboard ( void  )
slot

Definition at line 618 of file documentation.cc.

References m_doc_browser.

Referenced by octave::documentation_dock_widget::copyClipboard().

◆ filter_update

void octave::documentation::filter_update ( const QString &  expression)
privateslot

Definition at line 706 of file documentation.cc.

References m_help_engine.

Referenced by documentation().

◆ filter_update_history

void octave::documentation::filter_update_history ( void  )
privateslot

Definition at line 718 of file documentation.cc.

References m_filter.

Referenced by documentation().

◆ find

void octave::documentation::find ( bool  backward = false)
privateslot

◆ find_backward

void octave::documentation::find_backward ( void  )
privateslot

Definition at line 730 of file documentation.cc.

References find().

Referenced by documentation().

◆ find_forward_from_anchor

void octave::documentation::find_forward_from_anchor ( const QString &  text)
privateslot

Definition at line 759 of file documentation.cc.

References m_doc_browser, m_help_engine, and m_search_anchor_position.

Referenced by documentation().

◆ global_search

void octave::documentation::global_search ( void  )
privateslot

Definition at line 419 of file documentation.cc.

References m_help_engine, and m_internal_search.

Referenced by documentation().

◆ global_search_finished

void octave::documentation::global_search_finished ( int  hits)
privateslot

◆ global_search_started

void octave::documentation::global_search_started ( void  )
privateslot

Definition at line 456 of file documentation.cc.

Referenced by documentation().

◆ handle_cursor_position_change

void octave::documentation::handle_cursor_position_change ( void  )
privateslot

Definition at line 786 of file documentation.cc.

References m_doc_browser, m_help_engine, and record_anchor_position().

Referenced by documentation().

◆ handle_search_result_clicked

void octave::documentation::handle_search_result_clicked ( const QUrl &  url)
privateslot

◆ load_ref

void octave::documentation::load_ref ( const QString &  name)
slot

◆ notice_settings

◆ open_hist_url

void octave::documentation::open_hist_url ( QAction *  a)
privateslot

Definition at line 922 of file documentation.cc.

References m_doc_browser.

Referenced by construct_tool_bar().

◆ pasteClipboard

void octave::documentation::pasteClipboard ( void  )
slot

Definition at line 626 of file documentation.cc.

Referenced by octave::documentation_dock_widget::pasteClipboard().

◆ record_anchor_position

void octave::documentation::record_anchor_position ( void  )
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().

◆ registerDoc

void octave::documentation::registerDoc ( const QString &  name)
slot

Definition at line 795 of file documentation.cc.

References m_help_engine, and warning().

Referenced by octave::documentation_dock_widget::registerDoc().

◆ select_all_occurrences()

void octave::documentation::select_all_occurrences ( const QString &  text)
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().

◆ selectAll

void octave::documentation::selectAll ( void  )
slot

Definition at line 628 of file documentation.cc.

Referenced by octave::documentation_dock_widget::selectAll().

◆ show_single_result

void octave::documentation::show_single_result ( const QUrl &  )
signal

Referenced by global_search_finished().

◆ unregisterDoc

void octave::documentation::unregisterDoc ( const QString &  name)
slot

Definition at line 824 of file documentation.cc.

References m_help_engine.

Referenced by octave::documentation_dock_widget::unregisterDoc().

◆ update_history()

void octave::documentation::update_history ( int  new_count,
QAction **  actions 
)
private

◆ update_history_menus

void octave::documentation::update_history_menus ( void  )
privateslot

Member Data Documentation

◆ m_action_find

QAction* octave::documentation::m_action_find
private

Definition at line 175 of file documentation.h.

Referenced by construct_tool_bar(), and notice_settings().

◆ m_action_go_home

QAction* octave::documentation::m_action_go_home
private

Definition at line 163 of file documentation.h.

Referenced by construct_tool_bar(), and notice_settings().

◆ m_action_go_next

QAction* octave::documentation::m_action_go_next
private

Definition at line 165 of file documentation.h.

Referenced by construct_tool_bar(), notice_settings(), and update_history().

◆ m_action_go_prev

QAction* octave::documentation::m_action_go_prev
private

Definition at line 164 of file documentation.h.

Referenced by construct_tool_bar(), notice_settings(), and update_history().

◆ m_action_zoom_in

QAction* octave::documentation::m_action_zoom_in
private

Definition at line 179 of file documentation.h.

Referenced by construct_tool_bar(), and notice_settings().

◆ m_action_zoom_original

QAction* octave::documentation::m_action_zoom_original
private

Definition at line 181 of file documentation.h.

Referenced by construct_tool_bar(), and notice_settings().

◆ m_action_zoom_out

QAction* octave::documentation::m_action_zoom_out
private

Definition at line 180 of file documentation.h.

Referenced by construct_tool_bar(), and notice_settings().

◆ m_collection

QString octave::documentation::m_collection
private

Definition at line 157 of file documentation.h.

Referenced by documentation(), and ~documentation().

◆ m_doc_browser

◆ m_doc_widget

QWidget* octave::documentation::m_doc_widget
private

Definition at line 159 of file documentation.h.

Referenced by add_action().

◆ m_filter

QComboBox* octave::documentation::m_filter
private

Definition at line 156 of file documentation.h.

Referenced by documentation(), and filter_update_history().

◆ m_find_line_edit

QLineEdit* octave::documentation::m_find_line_edit
private

Definition at line 154 of file documentation.h.

Referenced by documentation(), activate_find(), find(), and handle_search_result_clicked().

◆ m_findnext_shortcut

QShortcut* octave::documentation::m_findnext_shortcut
private

Definition at line 176 of file documentation.h.

Referenced by documentation(), and notice_settings().

◆ m_findprev_shortcut

QShortcut* octave::documentation::m_findprev_shortcut
private

Definition at line 177 of file documentation.h.

Referenced by documentation(), and notice_settings().

◆ m_help_engine

◆ m_internal_search

QString octave::documentation::m_internal_search
private

Definition at line 152 of file documentation.h.

Referenced by global_search(), global_search_finished(), and load_ref().

◆ m_next_pages_actions

QAction* octave::documentation::m_next_pages_actions[max_history_entries]
private

Definition at line 173 of file documentation.h.

Referenced by construct_tool_bar(), update_history(), and update_history_menus().

◆ m_next_pages_count

int octave::documentation::m_next_pages_count
private

Definition at line 169 of file documentation.h.

Referenced by update_history_menus().

◆ m_next_pages_menu

QMenu* octave::documentation::m_next_pages_menu
private

Definition at line 167 of file documentation.h.

Referenced by construct_tool_bar().

◆ m_octave_qobj

base_qobject& octave::documentation::m_octave_qobj
private

Definition at line 149 of file documentation.h.

Referenced by documentation(), construct_tool_bar(), and notice_settings().

◆ m_prev_pages_actions

QAction* octave::documentation::m_prev_pages_actions[max_history_entries]
private

Definition at line 172 of file documentation.h.

Referenced by construct_tool_bar(), and update_history_menus().

◆ m_prev_pages_count

int octave::documentation::m_prev_pages_count
private

Definition at line 168 of file documentation.h.

Referenced by update_history_menus().

◆ m_prev_pages_menu

QMenu* octave::documentation::m_prev_pages_menu
private

Definition at line 166 of file documentation.h.

Referenced by construct_tool_bar().

◆ m_query_string

QString octave::documentation::m_query_string
private

Definition at line 161 of file documentation.h.

Referenced by global_search_finished(), and handle_search_result_clicked().

◆ m_search_anchor_position

int octave::documentation::m_search_anchor_position
private

◆ m_tool_bar

QToolBar* octave::documentation::m_tool_bar
private

Definition at line 160 of file documentation.h.

Referenced by documentation(), construct_tool_bar(), and notice_settings().


The documentation for this class was generated from the following files: