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

◆ __init__()

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

Definition at line 62 of file perspective_manager.py.

Member Function Documentation

◆ _add_perspective_action()

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

Definition at line 284 of file perspective_manager.py.

◆ _choose_new_perspective_name()

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

Definition at line 201 of file perspective_manager.py.

◆ _convert_values()

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

Definition at line 416 of file perspective_manager.py.

◆ _create_perspective()

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

Definition at line 251 of file perspective_manager.py.

◆ _create_perspective_continued()

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

Definition at line 271 of file perspective_manager.py.

◆ _export_value()

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

Definition at line 433 of file perspective_manager.py.

◆ _get_dict_from_settings()

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

Definition at line 405 of file perspective_manager.py.

◆ _get_perspective_settings()

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

Definition at line 190 of file perspective_manager.py.

◆ _import_value()

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

Definition at line 424 of file perspective_manager.py.

◆ _on_create_perspective()

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

Definition at line 193 of file perspective_manager.py.

◆ _on_export_perspective()

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

Definition at line 377 of file perspective_manager.py.

◆ _on_export_perspective_continued()

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

Definition at line 395 of file perspective_manager.py.

◆ _on_import_perspective()

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

Definition at line 331 of file perspective_manager.py.

◆ _on_remove_perspective()

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

Definition at line 298 of file perspective_manager.py.

◆ _remove_perspective()

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

Definition at line 311 of file perspective_manager.py.

◆ _set_dict_on_settings()

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 367 of file perspective_manager.py.

◆ _strip_qt_binding_prefix()

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

Definition at line 470 of file perspective_manager.py.

◆ _switch_perspective()

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

Definition at line 149 of file perspective_manager.py.

◆ import_perspective_from_file()

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

Definition at line 349 of file perspective_manager.py.

◆ save_settings_completed()

def qt_gui.perspective_manager.PerspectiveManager.save_settings_completed (   self)

Definition at line 182 of file perspective_manager.py.

◆ set_menu()

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

Definition at line 93 of file perspective_manager.py.

◆ set_perspective()

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.

◆ switch_perspective()

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

Definition at line 138 of file perspective_manager.py.

Member Data Documentation

◆ _callback

qt_gui.perspective_manager.PerspectiveManager._callback
private

Definition at line 84 of file perspective_manager.py.

◆ _callback_args

qt_gui.perspective_manager.PerspectiveManager._callback_args
private

Definition at line 85 of file perspective_manager.py.

◆ _create_perspective_dialog

qt_gui.perspective_manager.PerspectiveManager._create_perspective_dialog
private

Definition at line 71 of file perspective_manager.py.

◆ _current_perspective

qt_gui.perspective_manager.PerspectiveManager._current_perspective
private

Definition at line 81 of file perspective_manager.py.

◆ _dbus_server

qt_gui.perspective_manager.PerspectiveManager._dbus_server
private

Definition at line 91 of file perspective_manager.py.

◆ _file_path

qt_gui.perspective_manager.PerspectiveManager._file_path
private

Definition at line 87 of file perspective_manager.py.

◆ _global_settings

qt_gui.perspective_manager.PerspectiveManager._global_settings
private

Definition at line 69 of file perspective_manager.py.

◆ _menu_manager

qt_gui.perspective_manager.PerspectiveManager._menu_manager
private

Definition at line 73 of file perspective_manager.py.

◆ _perspective_mapper

qt_gui.perspective_manager.PerspectiveManager._perspective_mapper
private

Definition at line 74 of file perspective_manager.py.

◆ _perspective_settings

qt_gui.perspective_manager.PerspectiveManager._perspective_settings
private

Definition at line 70 of file perspective_manager.py.

◆ _qtgui_path

qt_gui.perspective_manager.PerspectiveManager._qtgui_path
private

Definition at line 66 of file perspective_manager.py.

◆ _remove_action

qt_gui.perspective_manager.PerspectiveManager._remove_action
private

Definition at line 82 of file perspective_manager.py.

◆ _settings_proxy

qt_gui.perspective_manager.PerspectiveManager._settings_proxy
private

Definition at line 68 of file perspective_manager.py.

◆ HIDDEN_PREFIX

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

Definition at line 60 of file perspective_manager.py.

◆ perspective_changed_signal

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

Definition at line 55 of file perspective_manager.py.

◆ perspectives

qt_gui.perspective_manager.PerspectiveManager.perspectives

Definition at line 77 of file perspective_manager.py.

◆ restore_settings_signal

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

Definition at line 57 of file perspective_manager.py.

◆ restore_settings_without_plugin_changes_signal

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

Definition at line 58 of file perspective_manager.py.

◆ save_settings_signal

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 Sat Jun 25 2022 02:15:05