%PDF- %PDF-
Direktori : /lib/python3/dist-packages/orca/__pycache__/ |
Current File : //lib/python3/dist-packages/orca/__pycache__/settings_manager.cpython-312.pyc |
� g f�i � �h � d Z dZdZdZdZdZddlZddlZddlm Z m Z d d lmZ d dlm Z d dlmZ d d lmZ d dlmZ d dlmZ d dlmZ e j, j/ e j0 j2 e j4 j6 ddddd� Z G d� de� Z e� Z d� Z!y# e$ r dZY �w xY w)z\Settings manager module. This will load/save user settings from a defined settings backend.z$Id$z $Revision$z$Date$z2Copyright (c) 2010 Consorcio Fernando de los Rios.�LGPL� N)�Gio�GLib� )�debug)� orca_i18n)�settings)�pronunciation_dict)�ACSS)�AXObject)� KeyBindingzorg.a11y.Busz /org/a11y/buszorg.freedesktop.DBus.Propertiesc �, � e Zd ZdZdZd� Zd-d�Zdi fd�Zd� Zd� Z d� Z d � Zd � Zd� Z d� Zd � Zd� Zd� Zd.d�Zd� Zd/d�Zd� Zd� Zd� Zd� Zd� Zd/d�Zd� Zd0d�Zd� Zd� Zd� Zd.d�Z d.d�Z!d.d �Z"d!� Z#d"� Z$d#� Z%d$� Z&d%� Z'd&� Z(d1d'�Z)d(� Z*d2d)�Z+d*� Z,d1d+�Z-d,� Z.y)3�SettingsManagerz^Settings backend manager. This class manages orca user's settings using different backendsNc �p � dt | � vrt j | g|��i |��| _ | j S )N� __instance)�vars�object�__new__�_SettingsManager__instance)�cls�args�kwargss �7/usr/lib/python3/dist-packages/orca/settings_manager.pyr zSettingsManager.__new__= s2 � ��t�C�y�(�#�^�^�C�A�$�A�&�A�C�N��~�~�� c � � t j t j dd� d| _ d| _ d| _ || _ d| _ i | _ i | _ i | _ i | _ i | _ i | _ i | _ i | _ i | _ d| _ i | _ i | _ i | _ | j+ � st- d� �i | _ d| _ dg| _ t j t j dd� y) z�Initialize a SettingsManager Object. If backend isn't defined then uses default backend, in this case json-backend. backend parameter can use the follow values: backend='json' zSETTINGS MANAGER: InitializingTN� z$SettingsManager._loadBackend failed.F�app-settingszSETTINGS MANAGER: Initialized)r �printMessage� LEVEL_INFO� backendModule�_backend�profile�backendName� _prefsDir�defaultGeneral�defaultPronunciations�defaultKeybindings�profileGeneral�profilePronunciations�profileKeybindings�general�pronunciations�keybindings� _activeApp�_appGeneral�_appPronunciations�_appKeybindings�_loadBackend� Exception�customizedSettings�_customizationCompleted�settingsPackages��self�backends r �__init__zSettingsManager.__init__B s� � � ���5�+�+�-M�t�T�!����� ����"������ !���%'��"�"$��� !���%'��"�"$��� ��� ������������"$���!���� � �"��B�C�C�"$���',��$� "0� 0��� ���5�+�+�-L�d�Sr c � � t j t j dd� | j j |� |xs2 t j j t j � d� | _ | j j | j � | _ | j � | j � | j! � | j"