Documentation browser derived from Textbrowser. More...
#include "documentation.h"
Public Slots | |
void | handle_index_clicked (const QUrl &url, const QString &keyword=QString()) |
void | notice_settings (const gui_settings *settings) |
void | save_settings (gui_settings *settings) |
void | zoom_in (void) |
Zooming in and out while taking care of the zoom level. More... | |
void | zoom_out (void) |
Zooming in and out while taking care of the zoom level. More... | |
void | zoom_original (void) |
Zooming in and out while taking care of the zoom level. More... | |
Public Member Functions | |
documentation_browser (QHelpEngine *help_engine, QWidget *parent=nullptr) | |
~documentation_browser (void)=default | |
virtual QVariant | loadResource (int type, const QUrl &url) |
Protected Member Functions | |
void | wheelEvent (QWheelEvent *we) |
Private Types | |
enum | { min_zoom_level = -5 , max_zoom_level = 10 } |
Minimal and maximal zoom level avoiding calling zoom_in and zoom_out without actually zooming but with changing the stored zoom level. More... | |
Private Attributes | |
QHelpEngine * | m_help_engine |
int | m_zoom_level |
Store the current zoom level. More... | |
Documentation browser derived from Textbrowser.
Definition at line 50 of file documentation.h.
|
private |
Minimal and maximal zoom level avoiding calling zoom_in and zoom_out without actually zooming but with changing the stored zoom level.
Enumerator | |
---|---|
min_zoom_level | |
max_zoom_level |
Definition at line 89 of file documentation.h.
documentation_browser::documentation_browser | ( | QHelpEngine * | help_engine, |
QWidget * | parent = nullptr |
||
) |
Definition at line 991 of file documentation.cc.
References dir_sep_str(), Utils::fromStdString(), and handle_index_clicked().
|
default |
|
slot |
Definition at line 1033 of file documentation.cc.
Referenced by documentation::documentation(), documentation_browser(), and documentation::handle_search_result_clicked().
|
virtual |
Definition at line 1052 of file documentation.cc.
References m_help_engine.
|
slot |
Definition at line 1042 of file documentation.cc.
References dc_browser_zoom_level(), m_zoom_level, and max_zoom_level.
Referenced by documentation::notice_settings().
|
slot |
Definition at line 1060 of file documentation.cc.
References dc_browser_zoom_level(), gui_pref::key, and m_zoom_level.
Referenced by documentation::save_settings().
|
protected |
Definition at line 1091 of file documentation.cc.
References we, zoom_in(), and zoom_out().
|
slot |
Zooming in and out while taking care of the zoom level.
Definition at line 1067 of file documentation.cc.
References m_zoom_level, and max_zoom_level.
Referenced by wheelEvent().
|
slot |
Zooming in and out while taking care of the zoom level.
Definition at line 1085 of file documentation.cc.
References m_zoom_level.
|
slot |
Zooming in and out while taking care of the zoom level.
Definition at line 1076 of file documentation.cc.
References m_zoom_level, and min_zoom_level.
Referenced by wheelEvent().
|
private |
Definition at line 81 of file documentation.h.
Referenced by loadResource().
|
private |
Store the current zoom level.
Definition at line 84 of file documentation.h.
Referenced by notice_settings(), save_settings(), zoom_in(), zoom_original(), and zoom_out().