GNU Octave
4.2.1
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
|
#include "shortcut-manager.h"
Classes | |
class | shortcut_t |
Public Types | |
enum | { OSC_IMPORT = 0, OSC_EXPORT = 1, OSC_DEFAULT = 2 } |
Public Slots | |
static void | cleanup_instance (void) |
Public Member Functions | |
shortcut_manager () | |
~shortcut_manager () | |
Static Public Member Functions | |
static void | fill_treewidget (QTreeWidget *tree_view) |
static void | import_export (int action) |
static void | init_data () |
static void | set_shortcut (QAction *action, const QString &key) |
static void | write_shortcuts (QSettings *settings, bool closing) |
Static Public Attributes | |
static shortcut_manager * | instance = 0 |
Protected Slots | |
void | handle_double_clicked (QTreeWidgetItem *, int) |
void | shortcut_dialog_finished (int) |
void | shortcut_dialog_set_default () |
Private Member Functions | |
void | do_fill_treewidget (QTreeWidget *tree_view) |
bool | do_import_export (int action) |
void | do_init_data () |
void | do_set_shortcut (QAction *action, const QString &key) |
void | do_write_shortcuts (QSettings *settings, bool closing) |
void | import_shortcuts (QSettings *settings) |
void | init (const QString &, const QString &, const QKeySequence &) |
bool | overwrite_all_shortcuts (void) |
void | shortcut_dialog (int) |
Static Private Member Functions | |
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 |
QSettings * | _settings |
QHash< QString, int > | _shortcut_hash |
Definition at line 52 of file shortcut-manager.h.
anonymous enum |
Enumerator | |
---|---|
OSC_IMPORT | |
OSC_EXPORT | |
OSC_DEFAULT |
Definition at line 58 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.
|
inlinestaticslot |
Definition at line 102 of file shortcut-manager.h.
References instance.
|
private |
Definition at line 360 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(), sc, and shortcut_manager::shortcut_t::settings_key.
Referenced by fill_treewidget().
Definition at line 678 of file shortcut-manager.cc.
References do_write_shortcuts(), file, import_shortcuts(), OSC_DEFAULT, OSC_EXPORT, OSC_IMPORT, and overwrite_all_shortcuts().
Referenced by import_export(), and overwrite_all_shortcuts().
|
private |
Definition at line 81 of file shortcut-manager.cc.
References _settings, and init().
Referenced by init_data().
|
private |
Definition at line 475 of file shortcut-manager.cc.
References _action_hash, _sc, and _settings.
Referenced by set_shortcut().
|
private |
Definition at line 448 of file shortcut-manager.cc.
Referenced by do_import_export(), and write_shortcuts().
|
inlinestatic |
Definition at line 86 of file shortcut-manager.h.
References do_fill_treewidget(), instance, and instance_ok().
Referenced by settings_dialog::settings_dialog().
|
protectedslot |
Definition at line 489 of file shortcut-manager.cc.
References _item_index_hash, and shortcut_dialog().
Referenced by do_fill_treewidget().
|
inlinestatic |
Definition at line 92 of file shortcut-manager.h.
References do_import_export(), instance, and instance_ok().
Referenced by settings_dialog::default_shortcut_set(), settings_dialog::export_shortcut_set(), and settings_dialog::import_shortcut_set().
|
private |
Definition at line 623 of file shortcut-manager.cc.
References _index_item_hash, _sc, shortcut_manager::shortcut_t::actual_sc, shortcut_manager::shortcut_t::default_sc, sc, and shortcut_manager::shortcut_t::settings_key.
Referenced by do_import_export().
|
private |
Definition at line 334 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 68 of file shortcut-manager.h.
References do_init_data(), instance, and instance_ok().
Referenced by octave::gui_application::execute().
|
staticprivate |
Definition at line 63 of file shortcut-manager.cc.
References error(), instance, retval, and shortcut_manager().
Referenced by fill_treewidget(), import_export(), init_data(), set_shortcut(), and write_shortcuts().
|
private |
Definition at line 648 of file shortcut-manager.cc.
References do_import_export(), and OSC_EXPORT.
Referenced by do_import_export().
|
inlinestatic |
Definition at line 80 of file shortcut-manager.h.
References do_set_shortcut(), instance, and instance_ok().
Referenced by main_window::configure_shortcuts(), file_editor::handle_exit_debug_mode(), and file_editor::set_shortcuts().
|
private |
Definition at line 502 of file shortcut-manager.cc.
References _dialog, _edit_actual, _handled_index, _label_default, _sc, box(), shortcut_dialog_finished(), and shortcut_dialog_set_default().
Referenced by handle_double_clicked().
|
protectedslot |
Definition at line 572 of file shortcut-manager.cc.
References _edit_actual, _handled_index, _index_item_hash, _sc, _shortcut_hash, shortcut_manager::shortcut_t::actual_sc, arg, No, and warning().
Referenced by shortcut_dialog().
|
protectedslot |
Definition at line 615 of file shortcut-manager.cc.
References _edit_actual, and _label_default.
Referenced by shortcut_dialog().
|
inlinestatic |
Definition at line 74 of file shortcut-manager.h.
References do_write_shortcuts(), instance, and instance_ok().
Referenced by settings_dialog::write_changed_settings().
|
private |
Definition at line 177 of file shortcut-manager.h.
Referenced by do_set_shortcut(), and init().
|
private |
Definition at line 182 of file shortcut-manager.h.
Referenced by do_fill_treewidget(), do_write_shortcuts(), and shortcut_dialog().
|
private |
Definition at line 183 of file shortcut-manager.h.
Referenced by shortcut_dialog(), shortcut_dialog_finished(), and shortcut_dialog_set_default().
|
private |
Definition at line 185 of file shortcut-manager.h.
Referenced by shortcut_dialog(), and shortcut_dialog_finished().
|
private |
Definition at line 179 of file shortcut-manager.h.
Referenced by do_fill_treewidget(), import_shortcuts(), and shortcut_dialog_finished().
|
private |
Definition at line 180 of file shortcut-manager.h.
Referenced by do_fill_treewidget(), and handle_double_clicked().
|
private |
Definition at line 184 of file shortcut-manager.h.
Referenced by shortcut_dialog(), and shortcut_dialog_set_default().
|
private |
Definition at line 178 of file shortcut-manager.h.
Referenced by do_fill_treewidget().
|
private |
Definition at line 175 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 187 of file shortcut-manager.h.
Referenced by do_init_data(), do_set_shortcut(), init(), and shortcut_manager().
|
private |
Definition at line 176 of file shortcut-manager.h.
Referenced by init(), and shortcut_dialog_finished().
|
static |
Definition at line 98 of file shortcut-manager.h.
Referenced by cleanup_instance(), main_window::construct(), fill_treewidget(), import_export(), init_data(), instance_ok(), set_shortcut(), and write_shortcuts().