#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 (void) | |
shortcut_manager (const shortcut_manager &)=delete | |
~shortcut_manager (void)=default | |
shortcut_manager & | operator= (const shortcut_manager &)=delete |
Static Public Member Functions | |
static void | fill_treewidget (QTreeWidget *tree_view) |
static void | import_export (int action) |
static void | init_data (void) |
static void | set_shortcut (QAction *action, const QString &key) |
static void | write_shortcuts (QSettings *settings, bool closing) |
Static Public Attributes | |
static shortcut_manager * | instance = nullptr |
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 > | m_action_hash |
QDialog * | m_dialog |
enter_shortcut * | m_edit_actual |
int | m_handled_index |
QHash< int, QTreeWidgetItem * > | m_index_item_hash |
QHash< QTreeWidgetItem *, int > | m_item_index_hash |
QLabel * | m_label_default |
QHash< QString, QTreeWidgetItem * > | m_level_hash |
QList< shortcut_t > | m_sc |
QSettings * | m_settings |
QHash< QString, int > | m_shortcut_hash |
Definition at line 57 of file shortcut-manager.h.
anonymous enum |
Enumerator | |
---|---|
OSC_IMPORT | |
OSC_EXPORT | |
OSC_DEFAULT |
Definition at line 63 of file shortcut-manager.h.
octave::shortcut_manager::shortcut_manager | ( | void | ) |
Definition at line 97 of file shortcut-manager.cc.
References octave::resource_manager::get_settings(), and m_settings.
Referenced by instance_ok().
|
delete |
|
default |
|
inlinestaticslot |
Definition at line 114 of file shortcut-manager.h.
References instance.
|
private |
Definition at line 512 of file shortcut-manager.cc.
References handle_double_clicked(), i, m_dialog, m_index_item_hash, m_item_index_hash, m_level_hash, m_sc, main(), and sc.
Referenced by fill_treewidget().
|
private |
Definition at line 613 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 210 of file shortcut-manager.cc.
References init(), and m_settings.
Referenced by init_data().
|
private |
Definition at line 499 of file shortcut-manager.cc.
References m_action_hash, m_sc, and m_settings.
Referenced by set_shortcut().
|
private |
Definition at line 473 of file shortcut-manager.cc.
References i, m_dialog, and m_sc.
Referenced by do_import_export(), and write_shortcuts().
|
inlinestatic |
Definition at line 98 of file shortcut-manager.h.
References do_fill_treewidget(), instance, and instance_ok().
|
protectedslot |
Definition at line 109 of file shortcut-manager.cc.
References i, m_item_index_hash, and shortcut_dialog().
Referenced by do_fill_treewidget().
|
inlinestatic |
Definition at line 104 of file shortcut-manager.h.
References do_import_export(), instance, and instance_ok().
|
private |
Definition at line 737 of file shortcut-manager.cc.
References i, m_index_item_hash, m_sc, and sc.
Referenced by do_import_export().
|
private |
Definition at line 185 of file shortcut-manager.cc.
References m_action_hash, octave::shortcut_manager::shortcut_t::m_description, m_sc, m_settings, and m_shortcut_hash.
Referenced by do_init_data().
|
inlinestatic |
Definition at line 80 of file shortcut-manager.h.
References do_init_data(), instance, and instance_ok().
Referenced by octave::gui_application::execute().
|
staticprivate |
Definition at line 168 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().
|
delete |
|
private |
Definition at line 761 of file shortcut-manager.cc.
References do_import_export(), and OSC_EXPORT.
Referenced by do_import_export().
|
inlinestatic |
Definition at line 92 of file shortcut-manager.h.
References do_set_shortcut(), instance, and instance_ok().
Referenced by octave::main_window::configure_shortcuts(), octave::file_editor::handle_exit_debug_mode(), and octave::file_editor::set_shortcuts().
|
private |
Definition at line 666 of file shortcut-manager.cc.
References box(), i, m_dialog, m_edit_actual, m_handled_index, m_label_default, m_sc, shortcut_dialog_finished(), and shortcut_dialog_set_default().
Referenced by handle_double_clicked().
|
protectedslot |
Definition at line 121 of file shortcut-manager.cc.
References arg, octave::shortcut_manager::shortcut_t::m_actual_sc, m_edit_actual, m_handled_index, m_index_item_hash, m_sc, m_shortcut_hash, No, result, and warning().
Referenced by shortcut_dialog().
|
protectedslot |
Definition at line 163 of file shortcut-manager.cc.
References m_edit_actual, and m_label_default.
Referenced by shortcut_dialog().
|
inlinestatic |
Definition at line 86 of file shortcut-manager.h.
References do_write_shortcuts(), instance, and instance_ok().
|
static |
Definition at line 110 of file shortcut-manager.h.
Referenced by cleanup_instance(), octave::main_window::construct(), fill_treewidget(), import_export(), init_data(), instance_ok(), set_shortcut(), and write_shortcuts().
|
private |
Definition at line 182 of file shortcut-manager.h.
Referenced by do_set_shortcut(), and init().
|
private |
Definition at line 187 of file shortcut-manager.h.
Referenced by do_fill_treewidget(), do_write_shortcuts(), and shortcut_dialog().
|
private |
Definition at line 188 of file shortcut-manager.h.
Referenced by shortcut_dialog(), shortcut_dialog_finished(), and shortcut_dialog_set_default().
|
private |
Definition at line 190 of file shortcut-manager.h.
Referenced by shortcut_dialog(), and shortcut_dialog_finished().
|
private |
Definition at line 184 of file shortcut-manager.h.
Referenced by do_fill_treewidget(), import_shortcuts(), and shortcut_dialog_finished().
|
private |
Definition at line 185 of file shortcut-manager.h.
Referenced by do_fill_treewidget(), and handle_double_clicked().
|
private |
Definition at line 189 of file shortcut-manager.h.
Referenced by shortcut_dialog(), and shortcut_dialog_set_default().
|
private |
Definition at line 183 of file shortcut-manager.h.
Referenced by do_fill_treewidget().
|
private |
Definition at line 180 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 192 of file shortcut-manager.h.
Referenced by do_init_data(), do_set_shortcut(), init(), and shortcut_manager().
|
private |
Definition at line 181 of file shortcut-manager.h.
Referenced by init(), and shortcut_dialog_finished().