Classes | |
class | Item |
class | Spacer |
Public Member Functions | |
def | __init__ |
def | getSpacerA |
def | getSpacerB |
def | removeItemSpacers |
Public Attributes | |
parent | |
Properties | |
spacerType = property(_get_spacerType,_set_spacerType) | |
Private Member Functions | |
def | _get_spacerType |
def | _release |
def | _set_spacerType |
Private Attributes | |
_spacers | |
_spacerType |
A SpacerContainer is a specialized widget for creating artifical spacing between other widgets "inside" it. These spaces consist of Spacer objects, which are usually drawn blank to give the same effect as margins. Items and spacers occur in a linear arrangement, but the direction is unspecified. The items and spacers are intended to be linked together using an AnchoredLayout, as part of a two level layout process. The first level is called 'linking', in which we actually reassign new AnchoredLayout properties to objects that are defined to be beside each other. The second level is for the layout mechanism to perform the acutal layout, with items being children of the SpacerContainer's parent object and Spacers being children of the SpacerContainer itself. Spacer objects can be used as targets for drag and drop operations. This code is a generalization of repeated code used in qtview. +--------+ +---------+ +--------+ | Item A | Spacer A | Current | Spacer B | Item B | +--------+ +---------+ +--------+ +--------+ +--------+ | Item A | Spacer | Item B | +--------+ +--------+
Definition at line 9 of file SpacerContainer.py.
def diarc.qt_view.SpacerContainer.SpacerContainer.__init__ | ( | self, | |
parent | |||
) |
Definition at line 32 of file SpacerContainer.py.
def diarc.qt_view.SpacerContainer.SpacerContainer._get_spacerType | ( | self | ) | [private] |
Definition at line 134 of file SpacerContainer.py.
def diarc.qt_view.SpacerContainer.SpacerContainer._release | ( | self | ) | [private] |
releases all spacer objects and dissasociates from parent
Definition at line 42 of file SpacerContainer.py.
def diarc.qt_view.SpacerContainer.SpacerContainer._set_spacerType | ( | self, | |
spacerType | |||
) | [private] |
Definition at line 138 of file SpacerContainer.py.
def diarc.qt_view.SpacerContainer.SpacerContainer.getSpacerA | ( | self, | |
item | |||
) |
Return the current spacer, or create a new one, in the direction of the current item's 'itemA'. This is used by SpacerContainer.Item objects during the linking process.
Definition at line 68 of file SpacerContainer.py.
def diarc.qt_view.SpacerContainer.SpacerContainer.getSpacerB | ( | self, | |
item | |||
) |
Finds the spacer for an item in direction b
Definition at line 102 of file SpacerContainer.py.
def diarc.qt_view.SpacerContainer.SpacerContainer.removeItemSpacers | ( | self, | |
item | |||
) |
Removes spacers that touch a particular item. Used by SpacerContainter.Item when it is being released.
Definition at line 52 of file SpacerContainer.py.
Definition at line 33 of file SpacerContainer.py.
Definition at line 33 of file SpacerContainer.py.
Definition at line 33 of file SpacerContainer.py.
diarc::qt_view::SpacerContainer.SpacerContainer::spacerType = property(_get_spacerType,_set_spacerType) [static] |
Definition at line 141 of file SpacerContainer.py.