orca.orca_gui_prefs (version 1973, $Date$)
index
/usr/lib/python2.5/site-packages/orca/orca_gui_prefs.py

Displays a GUI for the user to set Orca preferences.

 
Modules
       
orca.acss
orca.braille
commands
orca.debug
orca.default
gettext
gobject
gtk
orca.input_event
orca.keybindings
locale
orca.orca
orca.orca_glade
orca.orca_prefs
orca.orca_state
os
pango
orca.platform
orca.settings
orca.speech
orca.speechserver
sys

 
Classes
       
orca.orca_glade.GladeWrapper
orcaSetupGUI

 
class orcaSetupGUI(orca.orca_glade.GladeWrapper)
     Methods defined here:
abbrevRolenamesChecked(self, widget)
Signal handler for the "toggled" signal for the abbrevRolenames
   GtkCheckButton widget. The user has [un]checked the 'Abbreviated
   Rolenames" checkbox. Set the 'brailleRolenameStyle' preference
   to the new value.
 
Arguments:
- widget: the component that generated the signal.
actionKeysChecked(self, widget)
Signal handler for the "toggled" signal for the
   actionCheckbutton GtkCheckButton widget. The user has
   [un]checked the 'Enable action keys" checkbox. Set the
   'enableActionKeys' preference to the new value.
 
Arguments:
- widget: the component that generated the signal.
applyButtonClicked(self, widget)
Signal handler for the "clicked" signal for the applyButton
   GtkButton widget. The user has clicked the Apply button.
   Write out the users preferences. If GNOME accessibility hadn't
   previously been enabled, warn the user that they will need to
   log out. Shut down any active speech servers that were started.
   Reload the users preferences to get the new speech, braille and
   key echo value to take effect. Do not dismiss the configuration
   window.
 
Arguments:
- widget: the component that generated the signal.
brailleMonitorChecked(self, widget)
Signal handler for the "toggled" signal for the
   brailleMonitorCheckbutton GtkCheckButton widget. The user has
   [un]checked the 'Enable Braille monitor" checkbox. Set the
   'enableBrailleMonitor' preference to the new value.
 
Arguments:
- widget: the component that generated the signal.
brailleSupportChecked(self, widget)
Signal handler for the "toggled" signal for the
   brailleSupportCheckbutton GtkCheckButton widget. The user has
   [un]checked the 'Enable Braille support" checkbox. Set the
   'enableBraille' preference to the new value.
 
Arguments:
- widget: the component that generated the signal.
brailleVerbosityChanged(self, widget)
Signal handler for the "toggled" signal for the brailleBriefButton,
   or brailleVerboseButton GtkRadioButton widgets. The user has
   toggled the braille verbosity level value. If this signal was
   generated as the result of a radio button getting selected
   (as opposed to a radio button losing the selection), set the
   'brailleVerbosityLevel' preference to the new value.
 
Arguments:
- widget: the component that generated the signal.
cancelButtonClicked(self, widget)
Signal handler for the "clicked" signal for the cancelButton
   GtkButton widget. The user has clicked the Cancel button.
   Don't write out the preferences. Destroy the configuration window.
 
Arguments:
- widget: the component that generated the signal.
disableKeyGrabChecked(self, widget)
Signal handler for the "toggled" signal for the
   disableKeyGrabCheckButton GtkCheckButton widget.
   The user has [un]checked the 'Disable gksu keyboard grab'
   checkbox. Set the gconf '/apps/gksu/disable-grab' resource
   to the new value.
 
Arguments:
- widget: the component that generated the signal.
echoByWordChecked(self, widget)
Signal handler for the "toggled" signal for the
   echoByWordCheckbutton GtkCheckButton widget. The user has
   [un]checked the 'Enable Echo by Word" checkbox. Set the
   'enableEchoByWord' preference to the new value.
 
Arguments:
- widget: the component that generated the signal.
editedKey(self, cell, path, new_text, treeModel, modMask, modUsed, key, text)
The user changes the key for a Keybinding:
update the model of the treeview
editingKey(self, cell, editable, path, treeModel)
Starts user input of a Key for a selected key binding
functionKeysChecked(self, widget)
Signal handler for the "toggled" signal for the
   functionCheckbutton GtkCheckButton widget. The user has
   [un]checked the 'Enable locking keys" checkbox. Set the
   'enableLockingKeys' preference to the new value.
 
Arguments:
- widget: the component that generated the signal.
helpButtonClicked(self, widget)
Signal handler for the "clicked" signal for the helpButton
   GtkButton widget. The user has clicked the Help button.
 
Arguments:
- widget: the component that generated the signal.
keyEchoChecked(self, widget)
Signal handler for the "toggled" signal for the
   keyEchoCheckbutton GtkCheckButton widget. The user has
   [un]checked the 'Enable Key Echo" checkbox. Set the
   'enableKeyEcho' preference to the new value. [In]sensitize
   the checkboxes for the various types of key echo, depending
   upon whether this value is checked or unchecked.
 
Arguments:
- widget: the component that generated the signal.
keyModifiedToggle(self, cell, path, model, col)
When the user changes a checkbox field (boolean field)
keyboardLayoutChanged(self, widget)
Signal handler for the "toggled" signal for the generalDesktopButton,
   or generalLaptopButton GtkRadioButton widgets. The user has
   toggled the keyboard layout value. If this signal was
   generated as the result of a radio button getting selected
   (as opposed to a radio button losing the selection), set the
   'keyboardLayout' preference to the new value. Also set the
   matching list of Orca modifier keys
 
Arguments:
- widget: the component that generated the signal.
lockingKeysChecked(self, widget)
Signal handler for the "toggled" signal for the
   lockingCheckbutton GtkCheckButton widget. The user has
   [un]checked the 'Enable locking keys" checkbox. Set the
   'enableLockingKeys' preference to the new value.
 
Arguments:
- widget: the component that generated the signal.
magCrossHairClipOnOffChecked(self, widget)
Signal handler for the "toggled" signal for the
   magCrossHairClipCheckButton GtkCheckButton widget.
   The user has [un]checked the magnification cross-hair settings
   'Cross-hair clip on/off' checkbox. Set the 'enableMagCrossHairClip'
   preference to the new value.
 
Arguments:
- widget: the component that generated the signal.
magCrossHairOnOffChecked(self, widget)
Signal handler for the "toggled" signal for the
   magCrossHairOnOffCheckButton GtkCheckButton widget.
   The user has [un]checked the magnification cross-hair settings
   'Cross-hair on/off' checkbox. Set the 'enableMagCrossHair'
   preference to the new value.
 
Arguments:
- widget: the component that generated the signal.
magCrossHairSizeValueChanged(self, widget)
Signal handler for the "value_changed" signal for the
   magCrossHairSizeSpinButton GtkSpinButton widget.
   The user has changed the value of the magnification
   cross-hair settings cross-hair size spin button. Set the
   'magCrossHairSize' preference to the new integer value.
 
Arguments:
- widget: the component that generated the signal.
magCursorColorSet(self, widget)
Signal handler for the "color_set" signal for the
   magCursorColorButton GtkColorButton widget.
   The user has changed the value of the magnification
   cursor settings cursor color button. Set the 'magCursorColor'
   preference to the new value.
 
Arguments:
- widget: the component that generated the signal.
magCursorExplicitSizeChecked(self, widget)
Signal handler for the "toggled" signal for the
   magCursorSizeCheckButton GtkCheckButton widget.
   The user has [un]checked the magnification cursor settings
   'Explicit cursor size' checkbox. Set the
   'enableMagCursorExplicitSize' preference to the new value.
   [Un]sensitize the cursor size spin button and label depending
   upon whether this checkbox is checked.
 
Arguments:
- widget: the component that generated the signal.
magCursorOnOffChecked(self, widget)
Signal handler for the "toggled" signal for the
   magCursorOnOffCheckButton GtkCheckButton widget.
   The user has [un]checked the magnification cursor settings
   'Cursor on/off' checkbox. Set the 'enableMagCursor' preference
   to the new value.
 
Arguments:
- widget: the component that generated the signal.
magCursorSizeValueChanged(self, widget)
Signal handler for the "value_changed" signal for the
   magCursorSizeSpinButton GtkSpinButton widget.
   The user has changed the value of the magnification
   cursor settings cursor size spin button. Set the
   'magCursorSize' preference to the new integer value.
 
Arguments:
- widget: the component that generated the signal.
magInvertColorsChecked(self, widget)
Signal handler for the "toggled" signal for the
   magCrossHairOnOffCheckButton GtkCheckButton widget.
   The user has [un]checked the magnification 'Invert Colors'
   checkbox. Set the 'enableMagZoomerColorInversion' preference
   to the new value.
 
Arguments:
- widget: the component that generated the signal.
magMouseTrackingChanged(self, widget)
Signal handler for the "changed" signal for the
   magMouseTrackingComboBox GtkComboBox widget. The user has
   selected a different magnification mouse tracking style.
   Set the 'magMouseTrackingMode' preference to the new value.
 
Arguments:
- widget: the component that generated the signal.
magSmoothingChanged(self, widget)
Signal handler for the "changed" signal for the
   magSmoothingComboBox GtkComboBox widget. The user has
   selected a different magnification smoothing style.
   Set the 'magSmoothingMode' preference to the new value.
 
Arguments:
- widget: the component that generated the signal.
magSourceDisplayChanged(self, widget)
Signal handler for the "changed" signal for the
   magSourceDisplayDisplayEntry GtkEntry widget.
   The user has changed the value of the magnification source
   display. Set the 'magSourceDisplay' preference
   to the new value.
 
Arguments:
- widget: the component that generated the signal.
magTargetDisplayChanged(self, widget)
Signal handler for the "changed" signal for the
   magTargetDisplayEntry GtkEntry widget.
   The user has changed the value of the magnification target
   display. Set the 'magTargetDisplay' preference
   to the new value.
 
Arguments:
- widget: the component that generated the signal.
magZoomFactorValueChanged(self, widget)
Signal handler for the "value_changed" signal for the
   magZoomFactorSpinButton GtkSpinButton widget.
   The user has changed the value of the magnification
   zoom factor spin button. Set the 'magZoomFactor'
   preference to the new value.
 
Arguments:
- widget: the component that generated the signal.
magZoomerBottomValueChanged(self, widget)
Signal handler for the "value_changed" signal for the
   magZoomerBottomSpinButton GtkSpinButton widget.
   The user has changed the value of the magnification
   zoomer placement bottom spin button. Set the 'magZoomerBottom'
   preference to the new integer value.
 
Arguments:
- widget: the component that generated the signal.
magZoomerLeftValueChanged(self, widget)
Signal handler for the "value_changed" signal for the
   magZoomerLeftSpinButton GtkSpinButton widget.
   The user has changed the value of the magnification
   zoomer placement left spin button. Set the 'magZoomerLeft'
   preference to the new integer value.
 
Arguments:
- widget: the component that generated the signal.
magZoomerRightValueChanged(self, widget)
Signal handler for the "value_changed" signal for the
   magZoomerRightSpinButton GtkSpinButton widget.
   The user has changed the value of the magnification
   zoomer placement right spin button. Set the 'magZoomerRight'
   preference to the new integer value.
 
Arguments:
- widget: the component that generated the signal.
magZoomerTopValueChanged(self, widget)
Signal handler for the "value_changed" signal for the
   magZoomerTopSpinButton GtkSpinButton widget.
   The user has changed the value of the magnification
   zoomer placement top spin button. Set the 'magZoomerTop'
   preference to the new integer value.
 
Arguments:
- widget: the component that generated the signal.
magnifierSupportChecked(self, widget)
Signal handler for the "toggled" signal for the
   magnifierSupportCheckbutton GtkCheckButton widget.
   The user has [un]checked the 'Enable Magnification" checkbox.
   Set the 'enableMagnifier' preference to the new value.
   Set the rest of the magnifier pane items [in]sensensitive
   depending upon whether this checkbox is checked.
 
Arguments:
- widget: the component that generated the signal.
modifierKeysChecked(self, widget)
Signal handler for the "toggled" signal for the
   modifierCheckbutton GtkCheckButton widget. The user has
   [un]checked the 'Enable modifier keys" checkbox. Set the
   'enableModifierKeys' preference to the new value.
 
Arguments:
- widget: the component that generated the signal.
okButtonClicked(self, widget)
Signal handler for the "clicked" signal for the okButton
   GtkButton widget. The user has clicked the OK button.
   Write out the users preferences. If GNOME accessibility hadn't
   previously been enabled, warn the user that they will need to
   log out. Shut down any active speech servers that were started.
   Reload the users preferences to get the new speech, braille and
   key echo value to take effect. Hide the configuration window.
 
Arguments:
- widget: the component that generated the signal.
pitchValueChanged(self, widget)
Signal handler for the "value_changed" signal for the pitchScale
   GtkHScale widget. The user has changed the current pitch value.
   Save the new pitch value based on the currently selected voice
   type.
 
Arguments:
- widget: the component that generated the signal.
printableKeysChecked(self, widget)
Signal handler for the "toggled" signal for the
   printableCheckbutton GtkCheckButton widget. The user has
   [un]checked the 'Enable alphanumeric and punctuation keys"
   checkbox. Set the 'enablePrintableKeys' preference to the
   new value.
 
Arguments:
- widget: the component that generated the signal.
punctuationLevelChanged(self, widget)
Signal handler for the "toggled" signal for the noneButton,
   someButton or allButton GtkRadioButton widgets. The user has
   toggled the speech punctuation level value. If this signal
   was generated as the result of a radio button getting selected
   (as opposed to a radio button losing the selection), set the
   'verbalizePunctuationStyle' preference to the new value.
 
Arguments:
- widget: the component that generated the signal.
rateValueChanged(self, widget)
Signal handler for the "value_changed" signal for the rateScale
   GtkHScale widget. The user has changed the current rate value.
   Save the new rate value based on the currently selected voice
   type.
 
Arguments:
- widget: the component that generated the signal.
showMainWindowChecked(self, widget)
Signal handler for the "toggled" signal for the
   showMainWindowCheckButton GtkCheckButton widget.
   The user has [un]checked the 'Show Orca main window'
   checkbox. Set the 'showMainWindow' preference
   to the new value.
 
Arguments:
- widget: the component that generated the signal.
speakBlankLinesChecked(self, widget)
Signal handler for the "toggled" signal for the
   speakBlankLinesCheckButton GtkCheckButton widget. The user has
   [un]checked the 'Speak blank lines' checkbox.
   Set the 'speakBlankLines' preference to the new value.
 
Arguments:
- widget: the component that generated the signal.
speechFamiliesChanged(self, widget)
Signal handler for the "value_changed" signal for the families
   GtkComboBox widget. The user has selected a different voice
   family. Save the new voice family name based on the new choice.
 
Arguments:
- widget: the component that generated the signal.
speechIndentationChecked(self, widget)
Signal handler for the "toggled" signal for the
   speechIndentationCheckbutton GtkCheckButton widget. The user has
   [un]checked the 'Speak indentation and justification' checkbox.
   Set the 'enableSpeechIndentation' preference to the new value.
 
Arguments:
- widget: the component that generated the signal.
speechServersChanged(self, widget)
Signal handler for the "changed" signal for the speechServers
   GtkComboBox widget. The user has selected a different speech
   server. Clear the existing list of voices, and setup a new
   list of voices based on the new choice.
 
Arguments:
- widget: the component that generated the signal.
speechSupportChecked(self, widget)
Signal handler for the "toggled" signal for the
   speechSupportCheckbutton GtkCheckButton widget. The user has
   [un]checked the 'Enable Speech" checkbox. Set the 'enableSpeech'
   preference to the new value. Set the rest of the speech pane items
   [in]sensensitive depending upon whether this checkbox is checked.
 
Arguments:
- widget: the component that generated the signal.
speechSystemsChanged(self, widget)
Signal handler for the "changed" signal for the speechSystems
   GtkComboBox widget. The user has selected a different speech
   system. Clear the existing list of speech servers, and setup
   a new list of speech servers based on the new choice. Setup a
   new list of voices for the first speech server in the list.
 
Arguments:
- widget: the component that generated the signal.
speechVerbosityChanged(self, widget)
Signal handler for the "toggled" signal for the speechBriefButton,
   or speechVerboseButton GtkRadioButton widgets. The user has
   toggled the speech verbosity level value. If this signal was
   generated as the result of a radio button getting selected
   (as opposed to a radio button losing the selection), set the
   'speechVerbosityLevel' preference to the new value.
 
Arguments:
- widget: the component that generated the signal.
tableSpeechChanged(self, widget)
Signal handler for the "toggled" signal for the cellSpeechButton,
   or rowSpeechButton GtkRadioButton widgets. The user has
   toggled the table row speech type value. If this signal was
   generated as the result of a radio button getting selected
   (as opposed to a radio button losing the selection), set the
   'readTableCellRow' preference to the new value.
 
Arguments:
- widget: the component that generated the signal.
voiceTypesChanged(self, widget)
Signal handler for the "changed" signal for the voiceTypes
   GtkComboBox widget. The user has selected a different voice
   type. Setup the new family, rate, pitch and volume component
   values based on the new choice.
 
Arguments:
- widget: the component that generated the signal.
volumeValueChanged(self, widget)
Signal handler for the "value_changed" signal for the voiceScale
   GtkHScale widget. The user has changed the current volume value.
   Save the new volume value based on the currently selected voice
   type.
 
Arguments:
- widget: the component that generated the signal.
windowDestroyed(self, widget)
Signal handler for the "destroyed" signal for the orcaSetupWindow
   GtkWindow widget. Reset OS to None, so that the GUI can be rebuilt
   from the Glade file the next time the user wants to display the
   configuration GUI.
 
Arguments:
- widget: the component that generated the signal.

Methods inherited from orca.orca_glade.GladeWrapper:
__getattr__(self, attribute)
__init__(self, Filename, WindowName)

 
Functions
       
main()
showPreferencesUI()

 
Data
        DESCRIP = 1
EDITABLE = 11
HANDLER = 0
KEY1 = 4
KEY2 = 8
MODIF = 10
MOD_MASK1 = 2
MOD_MASK2 = 6
MOD_USED1 = 3
MOD_USED2 = 7
OS = None
TEXT1 = 5
TEXT2 = 9
__copyright__ = 'Copyright (c) 2005-2006 Sun Microsystems Inc.'
__date__ = '$Date$'
__id__ = '$Id$'
__license__ = 'LGPL'
__version__ = '$Revision$'