Package client :: Module Preferences :: Class ToolBarPreferences
[hide private]
[frames] | no frames]

Class ToolBarPreferences

source code


Overview

This class is another section of settings that will dictate what actions are available to the user from the tool bar. At this point, they can select only entire packages to be displayed or removed from it.

Also, currently there is just a single order that they are displayed with. This means that File actions will always be at the beginning of the toolbar, Plotting next, etc, without being re-ordered.

Nested Classes [hide private]

Inherited from PyQt4.QtGui.QBoxLayout: Direction

Inherited from PyQt4.QtGui.QLayout: SizeConstraint

Instance Methods [hide private]
 
__init__(self, bridge)
This initialization requires only the Bridge object to work properly.
source code
 
updateCategory(self, item)
This method is called whenever an item is clicked on the left-hand list, the package list.
source code
 
saveSettings(self)
ToolBarPreferences.saveSettings (self)
source code

Inherited from PyQt4.QtGui.QVBoxLayout: addChildLayout, addChildWidget, alignmentRect, childEvent, connectNotify, customEvent, disconnectNotify, insertItem, receivers, sender, timerEvent, widgetEvent

Inherited from PyQt4.QtGui.QBoxLayout: addItem, addLayout, addSpacing, addStretch, addStrut, addWidget, count, direction, expandingDirections, hasHeightForWidth, heightForWidth, insertLayout, insertSpacing, insertStretch, insertWidget, invalidate, itemAt, maximumSize, minimumHeightForWidth, minimumSize, setDirection, setGeometry, setStretchFactor, sizeHint, takeAt

Inherited from PyQt4.QtGui.QLayout: activate, closestAcceptableSize, geometry, indexOf, isEmpty, isEnabled, layout, margin, menuBar, parentWidget, removeItem, removeWidget, setAlignment, setEnabled, setMargin, setMenuBar, setSizeConstraint, setSpacing, sizeConstraint, spacing, totalHeightForWidth, totalMaximumSize, totalMinimumSize, totalSizeHint, update

Inherited from PyQt4.QtCore.QObject: blockSignals, children, connect, deleteLater, disconnect, dumpObjectInfo, dumpObjectTree, dynamicPropertyNames, emit, event, eventFilter, findChild, findChildren, inherits, installEventFilter, isWidgetType, killTimer, metaObject, moveToThread, objectName, parent, property, removeEventFilter, setObjectName, setParent, setProperty, signalsBlocked, startTimer, thread, tr, trUtf8

Inherited from PyQt4.QtGui.QLayoutItem: alignment, spacerItem, widget

Inherited from sip.wrapper: __delattr__, __getattribute__, __new__, __setattr__

Inherited from object: __hash__, __reduce__, __reduce_ex__, __repr__, __str__

Class Variables [hide private]

Inherited from PyQt4.QtGui.QBoxLayout: BottomToTop, Down, LeftToRight, RightToLeft, TopToBottom, Up

Inherited from PyQt4.QtGui.QLayout: SetDefaultConstraint, SetFixedSize, SetMaximumSize, SetMinAndMaxSize, SetMinimumSize, SetNoConstraint

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, bridge)
(Constructor)

source code 

Overview

This initialization requires only the Bridge object to work properly. It will essentially create 2 lists, one with the packages, and the other with the individial actions in each package.

The list of actions is really just to inform the user what is exactly in each package. The list of packages, however, have checkboxes so that the user can choose which packages they would like on their toolbar.

Overrides: object.__init__

updateCategory(self, item)

source code 

Overview

This method is called whenever an item is clicked on the left-hand list, the package list. It will automatically update the right-hand action list to reflect the actions in the newly selected package.

saveSettings(self)

source code 

ToolBarPreferences.saveSettings (self)

This method is called whenever settings are applied