Skip to content

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:
    • currentPrefs
Methods:

MnsPreferences methods


connectSignals [MnsPreferences class method]


Connect all the UI signals

Constructor: connectSignals(self)
Return: None
Arguments:
  • self
Optional Arguments:

initView [MnsPreferences class method]

Constructor: initView(self)
Return: None
Arguments:
  • self
Optional Arguments:

loadCategoryPrefs [MnsPreferences class method]

Constructor: loadCategoryPrefs(self, currentItem, previousItem)
Return: None
Arguments:
  • self
  • currentItem
  • previousItem
Optional Arguments:

loadPath [MnsPreferences class method]

Constructor: loadPath(self, lineEditWidget)
Return: None
Arguments:
  • self
  • lineEditWidget
Optional Arguments:

loadWindow [MnsPreferences class method]


Main window load.

Constructor: loadWindow(self)
Return: None
Arguments:
  • self
Optional Arguments:

restoreDefaults [MnsPreferences class method]

Constructor: restoreDefaults(self)
Return: None
Arguments:
  • self
Optional Arguments:

saveSetting [MnsPreferences class method]

Constructor: saveSetting(self)
Return: None
Arguments:
  • self
Optional Arguments:

updateColorValue [MnsPreferences class method]

Constructor: updateColorValue(self, colBtn, settingCat, setting)
Return: None
Arguments:
  • self
  • colBtn
  • settingCat
  • setting
Optional Arguments:

updateLineEditValue [MnsPreferences class method]

Constructor: updateLineEditValue(self, setWid, settingCat, setting, text)
Return: None
Arguments:
  • self
  • setWid
  • settingCat
  • setting
  • text
Optional Arguments:

updateValue [MnsPreferences class method]

Constructor: updateValue(self, settingCat, setting, setWid, dummyA = None, dummyB = None, dummyC = None)
Return: None
Arguments:
  • self
  • settingCat
  • setting
  • setWid
  • dummyA(str) ; [default: None]
  • dummyB(str) ; [default: None]
  • dummyC(str) ; [default: None]
Optional Arguments:


Defenitions


loadPreferences

Load the Preferences UI from globals, avoid UI duplication.


Constructor: loadPreferences()
Return: None
Arguments:
Keyword Arguments: