Public Member Functions | Public Attributes | Static Public Attributes | Private Member Functions | Private Attributes | List of all members
qt_gui.perspective_manager.PerspectiveManager Class Reference
Inheritance diagram for qt_gui.perspective_manager.PerspectiveManager:
Inheritance graph
[legend]

Public Member Functions

def __init__ (self, settings, application_context)
 
def import_perspective_from_file (self, path, perspective_name)
 
def save_settings_completed (self)
 
def set_menu (self, menu)
 
def set_perspective (self, name, hide_and_without_plugin_changes=False)
 
def switch_perspective (self, name, settings_changed=True, save_before=True, without_plugin_changes=False)
 

Public Attributes

 perspectives
 

Static Public Attributes

string HIDDEN_PREFIX = '@'
 
 perspective_changed_signal = Signal(str)
 
 restore_settings_signal = Signal(Settings, Settings)
 
 restore_settings_without_plugin_changes_signal = Signal(Settings, Settings)
 
 save_settings_signal = Signal(Settings, Settings)
 

Private Member Functions

def _add_perspective_action (self, name)
 
def _choose_new_perspective_name (self, show_cloning=True)
 
def _convert_values (self, data, convert_function)
 
def _create_perspective (self, name, clone_perspective=True)
 
def _create_perspective_continued (self, name, clone_perspective)
 
def _export_value (self, value)
 
def _get_dict_from_settings (self, settings)
 
def _get_perspective_settings (self, perspective_name)
 
def _import_value (self, value)
 
def _on_create_perspective (self)
 
def _on_export_perspective (self)
 
def _on_export_perspective_continued (self, file_name)
 
def _on_import_perspective (self)
 
def _on_remove_perspective (self)
 
def _remove_perspective (self, name)
 
def _set_dict_on_settings (self, data, settings)
 
def _strip_qt_binding_prefix (self, obj, data)
 
def _switch_perspective (self, name, settings_changed, save_before, without_plugin_changes=False)
 

Private Attributes

 _callback
 
 _callback_args
 
 _create_perspective_dialog
 
 _current_perspective
 
 _dbus_server
 
 _file_path
 
 _global_settings
 
 _menu_manager
 
 _perspective_mapper
 
 _perspective_settings
 
 _qtgui_path
 
 _remove_action
 
 _settings_proxy
 

Detailed Description

Manager for perspectives associated with specific sets of `Settings`.

Definition at line 52 of file perspective_manager.py.

Constructor & Destructor Documentation

def qt_gui.perspective_manager.PerspectiveManager.__init__ (   self,
  settings,
  application_context 
)

Definition at line 62 of file perspective_manager.py.

Member Function Documentation

def qt_gui.perspective_manager.PerspectiveManager._add_perspective_action (   self,
  name 
)
private

Definition at line 285 of file perspective_manager.py.

def qt_gui.perspective_manager.PerspectiveManager._choose_new_perspective_name (   self,
  show_cloning = True 
)
private

Definition at line 201 of file perspective_manager.py.

def qt_gui.perspective_manager.PerspectiveManager._convert_values (   self,
  data,
  convert_function 
)
private

Definition at line 417 of file perspective_manager.py.

def qt_gui.perspective_manager.PerspectiveManager._create_perspective (   self,
  name,
  clone_perspective = True 
)
private

Definition at line 252 of file perspective_manager.py.

def qt_gui.perspective_manager.PerspectiveManager._create_perspective_continued (   self,
  name,
  clone_perspective 
)
private

Definition at line 272 of file perspective_manager.py.

def qt_gui.perspective_manager.PerspectiveManager._export_value (   self,
  value 
)
private

Definition at line 434 of file perspective_manager.py.

def qt_gui.perspective_manager.PerspectiveManager._get_dict_from_settings (   self,
  settings 
)
private
Convert data of Settings instance to dictionary.

Definition at line 406 of file perspective_manager.py.

def qt_gui.perspective_manager.PerspectiveManager._get_perspective_settings (   self,
  perspective_name 
)
private

Definition at line 190 of file perspective_manager.py.

def qt_gui.perspective_manager.PerspectiveManager._import_value (   self,
  value 
)
private

Definition at line 425 of file perspective_manager.py.

def qt_gui.perspective_manager.PerspectiveManager._on_create_perspective (   self)
private

Definition at line 193 of file perspective_manager.py.

def qt_gui.perspective_manager.PerspectiveManager._on_export_perspective (   self)
private

Definition at line 378 of file perspective_manager.py.

def qt_gui.perspective_manager.PerspectiveManager._on_export_perspective_continued (   self,
  file_name 
)
private

Definition at line 396 of file perspective_manager.py.

def qt_gui.perspective_manager.PerspectiveManager._on_import_perspective (   self)
private

Definition at line 332 of file perspective_manager.py.

def qt_gui.perspective_manager.PerspectiveManager._on_remove_perspective (   self)
private

Definition at line 299 of file perspective_manager.py.

def qt_gui.perspective_manager.PerspectiveManager._remove_perspective (   self,
  name 
)
private

Definition at line 312 of file perspective_manager.py.

def qt_gui.perspective_manager.PerspectiveManager._set_dict_on_settings (   self,
  data,
  settings 
)
private
Set dictionary key-value pairs on Settings instance.

Definition at line 368 of file perspective_manager.py.

def qt_gui.perspective_manager.PerspectiveManager._strip_qt_binding_prefix (   self,
  obj,
  data 
)
private
Strip binding specific prefix from type string.

Definition at line 469 of file perspective_manager.py.

def qt_gui.perspective_manager.PerspectiveManager._switch_perspective (   self,
  name,
  settings_changed,
  save_before,
  without_plugin_changes = False 
)
private

Definition at line 150 of file perspective_manager.py.

def qt_gui.perspective_manager.PerspectiveManager.import_perspective_from_file (   self,
  path,
  perspective_name 
)

Definition at line 350 of file perspective_manager.py.

def qt_gui.perspective_manager.PerspectiveManager.save_settings_completed (   self)

Definition at line 182 of file perspective_manager.py.

def qt_gui.perspective_manager.PerspectiveManager.set_menu (   self,
  menu 
)

Definition at line 93 of file perspective_manager.py.

def qt_gui.perspective_manager.PerspectiveManager.set_perspective (   self,
  name,
  hide_and_without_plugin_changes = False 
)

Definition at line 127 of file perspective_manager.py.

def qt_gui.perspective_manager.PerspectiveManager.switch_perspective (   self,
  name,
  settings_changed = True,
  save_before = True,
  without_plugin_changes = False 
)

Definition at line 139 of file perspective_manager.py.

Member Data Documentation

qt_gui.perspective_manager.PerspectiveManager._callback
private

Definition at line 84 of file perspective_manager.py.

qt_gui.perspective_manager.PerspectiveManager._callback_args
private

Definition at line 85 of file perspective_manager.py.

qt_gui.perspective_manager.PerspectiveManager._create_perspective_dialog
private

Definition at line 71 of file perspective_manager.py.

qt_gui.perspective_manager.PerspectiveManager._current_perspective
private

Definition at line 81 of file perspective_manager.py.

qt_gui.perspective_manager.PerspectiveManager._dbus_server
private

Definition at line 91 of file perspective_manager.py.

qt_gui.perspective_manager.PerspectiveManager._file_path
private

Definition at line 87 of file perspective_manager.py.

qt_gui.perspective_manager.PerspectiveManager._global_settings
private

Definition at line 69 of file perspective_manager.py.

qt_gui.perspective_manager.PerspectiveManager._menu_manager
private

Definition at line 73 of file perspective_manager.py.

qt_gui.perspective_manager.PerspectiveManager._perspective_mapper
private

Definition at line 74 of file perspective_manager.py.

qt_gui.perspective_manager.PerspectiveManager._perspective_settings
private

Definition at line 70 of file perspective_manager.py.

qt_gui.perspective_manager.PerspectiveManager._qtgui_path
private

Definition at line 66 of file perspective_manager.py.

qt_gui.perspective_manager.PerspectiveManager._remove_action
private

Definition at line 82 of file perspective_manager.py.

qt_gui.perspective_manager.PerspectiveManager._settings_proxy
private

Definition at line 68 of file perspective_manager.py.

string qt_gui.perspective_manager.PerspectiveManager.HIDDEN_PREFIX = '@'
static

Definition at line 60 of file perspective_manager.py.

qt_gui.perspective_manager.PerspectiveManager.perspective_changed_signal = Signal(str)
static

Definition at line 55 of file perspective_manager.py.

qt_gui.perspective_manager.PerspectiveManager.perspectives

Definition at line 77 of file perspective_manager.py.

qt_gui.perspective_manager.PerspectiveManager.restore_settings_signal = Signal(Settings, Settings)
static

Definition at line 57 of file perspective_manager.py.

qt_gui.perspective_manager.PerspectiveManager.restore_settings_without_plugin_changes_signal = Signal(Settings, Settings)
static

Definition at line 58 of file perspective_manager.py.

qt_gui.perspective_manager.PerspectiveManager.save_settings_signal = Signal(Settings, Settings)
static

Definition at line 56 of file perspective_manager.py.


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


qt_gui
Author(s): Dirk Thomas
autogenerated on Thu Jun 6 2019 19:54:27