preferences
=== Author: Assaf Ben Zur ===
A Simple global UI class to handle global setting within the package.
All global changeable variables should be inserted into this UI.
Handeling is semi-procedural, drawing and retreiving all setting procedurally, although the implementation will look for specific widget names to handle the settings.
"restore factory defaults" is also contained within this UI, actual implementation is within mnsUtils.
Classes
MnsPreferences [Class]
Main UI class
Constructor: | MnsPreferences(parent(str) ; [default: mnsUIUtils.get_maya_window()]) |
Inherits from: | form_class, base_class |
Class Members: |
|
Methods: |
|
MnsPreferences methods
connectSignals [MnsPreferences class method]
Connect all the UI signals
Constructor: | connectSignals(self) |
Return: | None |
Arguments: |
|
Optional Arguments: |
initView [MnsPreferences class method]
Constructor: | initView(self) |
Return: | None |
Arguments: |
|
Optional Arguments: |
loadCategoryPrefs [MnsPreferences class method]
Constructor: | loadCategoryPrefs(self, currentItem, previousItem) |
Return: | None |
Arguments: |
|
Optional Arguments: |
loadPath [MnsPreferences class method]
Constructor: | loadPath(self, lineEditWidget) |
Return: | None |
Arguments: |
|
Optional Arguments: |
loadWindow [MnsPreferences class method]
Main window load.
Constructor: | loadWindow(self) |
Return: | None |
Arguments: |
|
Optional Arguments: |
restoreDefaults [MnsPreferences class method]
Constructor: | restoreDefaults(self) |
Return: | None |
Arguments: |
|
Optional Arguments: |
saveSetting [MnsPreferences class method]
Constructor: | saveSetting(self) |
Return: | None |
Arguments: |
|
Optional Arguments: |
updateColorValue [MnsPreferences class method]
Constructor: | updateColorValue(self, colBtn, settingCat, setting) |
Return: | None |
Arguments: |
|
Optional Arguments: |
updateLineEditValue [MnsPreferences class method]
Constructor: | updateLineEditValue(self, setWid, settingCat, setting, text) |
Return: | None |
Arguments: |
|
Optional Arguments: |
updateValue [MnsPreferences class method]
Constructor: | updateValue(self, settingCat, setting, setWid, dummyA = None, dummyB = None, dummyC = None) |
Return: | None |
Arguments: |
|
Optional Arguments: |
Defenitions
loadPreferences
Load the Preferences UI from globals, avoid UI duplication.
Constructor: | loadPreferences() |
Return: | None |
Arguments: | |
Keyword Arguments: |