GNU Octave  4.0.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Classes | Public Member Functions | Static Public Member Functions | Protected Slots | Private Member Functions | Static Private Member Functions | Private Attributes | Static Private Attributes | List of all members
shortcut_manager Class Reference

#include "shortcut-manager.h"

Inheritance diagram for shortcut_manager:
Inheritance graph
[legend]
Collaboration diagram for shortcut_manager:
Collaboration graph
[legend]

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_manageroperator= (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_managerinstance = 0
 

Detailed Description

Definition at line 52 of file shortcut-manager.h.

Constructor & Destructor Documentation

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.

shortcut_manager::shortcut_manager ( const shortcut_manager )
private

Member Function Documentation

static void shortcut_manager::cleanup_instance ( void  )
inlinestaticprivate

Definition at line 105 of file shortcut-manager.h.

References instance.

Referenced by instance_ok().

void shortcut_manager::do_fill_treewidget ( QTreeWidget *  tree_view)
private
void shortcut_manager::do_import_export ( bool  import,
int  set 
)
private

Definition at line 663 of file shortcut-manager.cc.

References arg(), do_write_shortcuts(), and import_shortcuts().

Referenced by import_export().

void shortcut_manager::do_init_data ( )
private

Definition at line 87 of file shortcut-manager.cc.

References init().

Referenced by init_data().

void shortcut_manager::do_set_shortcut ( QAction *  action,
const QString &  key 
)
private

Definition at line 471 of file shortcut-manager.cc.

References _action_hash, _sc, and _settings.

Referenced by set_shortcut().

void shortcut_manager::do_write_shortcuts ( int  set,
QSettings *  settings,
bool  closing 
)
private

Definition at line 435 of file shortcut-manager.cc.

References _dialog, and _sc.

Referenced by do_import_export(), and write_shortcuts().

static void shortcut_manager::fill_treewidget ( QTreeWidget *  tree_view)
inlinestatic

Definition at line 78 of file shortcut-manager.h.

References do_fill_treewidget(), instance, and instance_ok().

Referenced by settings_dialog::settings_dialog().

void shortcut_manager::handle_double_clicked ( QTreeWidgetItem *  item,
int  col 
)
protectedslot

Definition at line 490 of file shortcut-manager.cc.

References _item_index_hash, _selected_set, and shortcut_dialog().

Referenced by do_fill_treewidget().

static void shortcut_manager::import_export ( bool  import,
int  set 
)
inlinestatic
void shortcut_manager::import_shortcuts ( int  set,
QSettings *  settings 
)
private
void shortcut_manager::init ( QString  description,
QString  key,
QKeySequence  def_sc 
)
private
static void shortcut_manager::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().

bool shortcut_manager::instance_ok ( void  )
staticprivate
shortcut_manager& shortcut_manager::operator= ( const shortcut_manager )
private
static void shortcut_manager::set_shortcut ( QAction *  action,
const QString &  key 
)
inlinestatic
void shortcut_manager::shortcut_dialog ( int  index)
private
void shortcut_manager::shortcut_dialog_finished ( int  result)
protectedslot
void shortcut_manager::shortcut_dialog_set_default ( )
protectedslot

Definition at line 636 of file shortcut-manager.cc.

References _edit_actual, and _label_default.

Referenced by shortcut_dialog().

static void shortcut_manager::write_shortcuts ( int  set,
QSettings *  settings,
bool  closing 
)
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().

Member Data Documentation

QHash<QString, int> shortcut_manager::_action_hash
private

Definition at line 186 of file shortcut-manager.h.

Referenced by do_set_shortcut(), and init().

QDialog* shortcut_manager::_dialog
private

Definition at line 191 of file shortcut-manager.h.

Referenced by do_fill_treewidget(), do_write_shortcuts(), and shortcut_dialog().

enter_shortcut* shortcut_manager::_edit_actual
private
int shortcut_manager::_handled_index
private

Definition at line 194 of file shortcut-manager.h.

Referenced by shortcut_dialog(), and shortcut_dialog_finished().

QHash<int, QTreeWidgetItem*> shortcut_manager::_index_item_hash
private
QHash<QTreeWidgetItem*, int> shortcut_manager::_item_index_hash
private

Definition at line 189 of file shortcut-manager.h.

Referenced by do_fill_treewidget(), and handle_double_clicked().

QLabel* shortcut_manager::_label_default
private

Definition at line 193 of file shortcut-manager.h.

Referenced by shortcut_dialog(), and shortcut_dialog_set_default().

QHash<QString, QTreeWidgetItem*> shortcut_manager::_level_hash
private

Definition at line 187 of file shortcut-manager.h.

Referenced by do_fill_treewidget().

QList<shortcut_t> shortcut_manager::_sc
private
int shortcut_manager::_selected_set
private
QSettings* shortcut_manager::_settings
private

Definition at line 196 of file shortcut-manager.h.

Referenced by do_set_shortcut(), init(), and shortcut_manager().

QHash<QString, int> shortcut_manager::_shortcut_hash
private

Definition at line 185 of file shortcut-manager.h.

Referenced by init(), and shortcut_dialog_finished().

shortcut_manager * shortcut_manager::instance = 0
staticprivate

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