usdmanager.preferences_dialog module

class usdmanager.preferences_dialog.PreferencesDialog(parent, **kwargs)[source]

Bases: sphinx.ext.autodoc.importer._MockObject

Preferences dialog

connectSignals()[source]

Connect signals to slots.

deleteItems(layout)[source]
Parameters:
layout : QLayout

Delete all items in given layout.

getPrefAutoCompleteAddressBar()[source]
Returns:State of “Auto complete paths in address bar” check box.
Rtype:bool
getPrefDiffTool()[source]
Returns:Text in Diff tool QTextEdit.
Rtype:str
getPrefFont()[source]
Returns:Font selected for documents.
Rtype:QFont
getPrefLineLimit()[source]
Returns:Number of lines to display before truncating a file.
Rtype:int
getPrefLineNumbers()[source]
Returns:State of “Show line numbers” check box.
Rtype:bool
getPrefNewTab()[source]
Returns:State of “Open links in new tabs” check box.
Rtype:bool
Returns:Search for links in the opened file. Disable this for huge files that freeze the app.
Rtype:bool
getPrefPrograms()[source]
Returns:Dictionary of extension: program pairs of strings.
Rtype:dict
getPrefShowAllMessages()[source]
Returns:State of “Show success messages” check box.
Rtype:bool
getPrefShowHiddenFiles()[source]
Returns:State of “Show hidden files” check box.
Rtype:bool
getPrefSyntaxHighlighting()[source]
Returns:State of “Enable syntax highlighting” check box.
Rtype:bool
getPrefTabSpaces()[source]
Returns:Number of spaces to use instead of a tab. Only use this number of use spaces is also True.
Rtype:int
getPrefTeletypeConversion()[source]
Returns:State of “Display teletype colors” check box.
Rtype:bool
getPrefTextEditor()[source]
Returns:Text in Text editor QTextEdit.
Rtype:str
getPrefTheme()[source]

Get the selected theme.

We may eventually make this a combo box supporting multiple themes, so use the string name instead of just a boolean.

Returns:Selected theme name, or None if the default
Rtype:str | None
getPrefUseSpaces()[source]
Returns:State of “Use spaces instead of tabs” check box.
Rtype:bool
newProgField(*args)[source]
populateProgsAndExts(programs)[source]
Parameters:
programs : dict

Dictionary of extension: program pairs of strings.

restoreDefaults(btn)[source]

Restore the GUI to the program’s default settings. Don’t update the actual preferences (that happens if OK is pressed).

selectFont(*args)[source]
setupUi(widget)[source]

Creates and lays out the widgets defined in the ui file.

Parameters:
widget : QtGui.QWidget

Base widget

updateFontLabel()[source]
validate()[source]

Make sure everything has valid input. Make sure there are no duplicate extensions. Accepts or rejects accepted() signal accordingly.