GNU Octave
4.0.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
|
#include "shortcut-manager.h"
Classes | |
class | shortcut_t |
Public Member Functions | |
shortcut_manager () | |
~shortcut_manager () | |
Static Public Member Functions | |
static void | fill_treewidget (QTreeWidget *tree_view) |
static void | import_export (bool import, int set) |
static void | init_data () |
static void | set_shortcut (QAction *action, const QString &key) |
static void | write_shortcuts (int set, QSettings *settings, bool closing) |
Protected Slots | |
void | handle_double_clicked (QTreeWidgetItem *, int) |
void | shortcut_dialog_finished (int) |
void | shortcut_dialog_set_default () |
Private Member Functions | |
shortcut_manager (const shortcut_manager &) | |
void | do_fill_treewidget (QTreeWidget *tree_view) |
void | do_import_export (bool import, int set) |
void | do_init_data () |
void | do_set_shortcut (QAction *action, const QString &key) |
void | do_write_shortcuts (int set, QSettings *settings, bool closing) |
void | import_shortcuts (int set, QSettings *settings) |
void | init (QString, QString, QKeySequence) |
shortcut_manager & | operator= (const shortcut_manager &) |
void | shortcut_dialog (int) |
Static Private Member Functions | |
static void | cleanup_instance (void) |
static bool | instance_ok (void) |
Private Attributes | |
QHash< QString, int > | _action_hash |
QDialog * | _dialog |
enter_shortcut * | _edit_actual |
int | _handled_index |
QHash< int, QTreeWidgetItem * > | _index_item_hash |
QHash< QTreeWidgetItem *, int > | _item_index_hash |
QLabel * | _label_default |
QHash< QString, QTreeWidgetItem * > | _level_hash |
QList< shortcut_t > | _sc |
int | _selected_set |
QSettings * | _settings |
QHash< QString, int > | _shortcut_hash |
Static Private Attributes | |
static shortcut_manager * | instance = 0 |
Definition at line 52 of file shortcut-manager.h.
shortcut_manager::shortcut_manager | ( | ) |
Definition at line 47 of file shortcut-manager.cc.
References _settings, and resource_manager::get_settings().
Referenced by instance_ok().
shortcut_manager::~shortcut_manager | ( | ) |
Definition at line 59 of file shortcut-manager.cc.
|
private |
|
inlinestaticprivate |
Definition at line 105 of file shortcut-manager.h.
References instance.
Referenced by instance_ok().
|
private |
Definition at line 351 of file shortcut-manager.cc.
References _dialog, _index_item_hash, _item_index_hash, _level_hash, _sc, shortcut_manager::shortcut_t::actual_sc, shortcut_manager::shortcut_t::default_sc, shortcut_manager::shortcut_t::description, handle_double_clicked(), main(), and shortcut_manager::shortcut_t::settings_key.
Referenced by fill_treewidget().
Definition at line 663 of file shortcut-manager.cc.
References arg(), do_write_shortcuts(), and import_shortcuts().
Referenced by import_export().
|
private |
|
private |
Definition at line 471 of file shortcut-manager.cc.
References _action_hash, _sc, and _settings.
Referenced by set_shortcut().
Definition at line 435 of file shortcut-manager.cc.
Referenced by do_import_export(), and write_shortcuts().
|
inlinestatic |
Definition at line 78 of file shortcut-manager.h.
References do_fill_treewidget(), instance, and instance_ok().
Referenced by settings_dialog::settings_dialog().
|
protectedslot |
Definition at line 490 of file shortcut-manager.cc.
References _item_index_hash, _selected_set, and shortcut_dialog().
Referenced by do_fill_treewidget().
Definition at line 84 of file shortcut-manager.h.
References do_import_export(), instance, and instance_ok().
Referenced by settings_dialog::export_shortcut_set1(), settings_dialog::export_shortcut_set2(), settings_dialog::import_shortcut_set1(), and settings_dialog::import_shortcut_set2().
|
private |
Definition at line 643 of file shortcut-manager.cc.
References _index_item_hash, _sc, shortcut_manager::shortcut_t::actual_sc, and shortcut_manager::shortcut_t::settings_key.
Referenced by do_import_export().
|
private |
Definition at line 322 of file shortcut-manager.cc.
References _action_hash, _sc, _settings, _shortcut_hash, and shortcut_manager::shortcut_t::description.
Referenced by do_init_data().
|
inlinestatic |
Definition at line 60 of file shortcut-manager.h.
References do_init_data(), instance, and instance_ok().
Referenced by octave_start_gui().
|
staticprivate |
Definition at line 64 of file shortcut-manager.cc.
References singleton_cleanup_list::add(), cleanup_instance(), error(), instance, and shortcut_manager().
Referenced by fill_treewidget(), import_export(), init_data(), set_shortcut(), and write_shortcuts().
|
private |
|
inlinestatic |
Definition at line 72 of file shortcut-manager.h.
References do_set_shortcut(), instance, and instance_ok().
Referenced by main_window::configure_shortcuts(), and main_window::set_global_edit_shortcuts().
|
private |
Definition at line 511 of file shortcut-manager.cc.
References _dialog, _edit_actual, _handled_index, _label_default, _sc, _selected_set, arg(), box(), shortcut_dialog_finished(), and shortcut_dialog_set_default().
Referenced by handle_double_clicked().
|
protectedslot |
Definition at line 582 of file shortcut-manager.cc.
References _edit_actual, _handled_index, _index_item_hash, _sc, _selected_set, _shortcut_hash, shortcut_manager::shortcut_t::actual_sc, arg(), and warning().
Referenced by shortcut_dialog().
|
protectedslot |
Definition at line 636 of file shortcut-manager.cc.
References _edit_actual, and _label_default.
Referenced by shortcut_dialog().
|
inlinestatic |
Definition at line 66 of file shortcut-manager.h.
References do_write_shortcuts(), instance, and instance_ok().
Referenced by settings_dialog::write_changed_settings().
|
private |
Definition at line 186 of file shortcut-manager.h.
Referenced by do_set_shortcut(), and init().
|
private |
Definition at line 191 of file shortcut-manager.h.
Referenced by do_fill_treewidget(), do_write_shortcuts(), and shortcut_dialog().
|
private |
Definition at line 192 of file shortcut-manager.h.
Referenced by shortcut_dialog(), shortcut_dialog_finished(), and shortcut_dialog_set_default().
|
private |
Definition at line 194 of file shortcut-manager.h.
Referenced by shortcut_dialog(), and shortcut_dialog_finished().
|
private |
Definition at line 188 of file shortcut-manager.h.
Referenced by do_fill_treewidget(), import_shortcuts(), and shortcut_dialog_finished().
|
private |
Definition at line 189 of file shortcut-manager.h.
Referenced by do_fill_treewidget(), and handle_double_clicked().
|
private |
Definition at line 193 of file shortcut-manager.h.
Referenced by shortcut_dialog(), and shortcut_dialog_set_default().
|
private |
Definition at line 187 of file shortcut-manager.h.
Referenced by do_fill_treewidget().
|
private |
Definition at line 184 of file shortcut-manager.h.
Referenced by do_fill_treewidget(), do_set_shortcut(), do_write_shortcuts(), import_shortcuts(), init(), shortcut_dialog(), and shortcut_dialog_finished().
|
private |
Definition at line 197 of file shortcut-manager.h.
Referenced by handle_double_clicked(), shortcut_dialog(), and shortcut_dialog_finished().
|
private |
Definition at line 196 of file shortcut-manager.h.
Referenced by do_set_shortcut(), init(), and shortcut_manager().
|
private |
Definition at line 185 of file shortcut-manager.h.
Referenced by init(), and shortcut_dialog_finished().
|
staticprivate |
Definition at line 104 of file shortcut-manager.h.
Referenced by cleanup_instance(), fill_treewidget(), import_export(), init_data(), instance_ok(), set_shortcut(), and write_shortcuts().