Classes | Public Member Functions | Public Attributes | Properties | Private Member Functions | Private Attributes
diarc.qt_view.SpacerContainer.SpacerContainer Class Reference

List of all members.

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

Detailed Description

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.


Constructor & Destructor Documentation

Definition at line 32 of file SpacerContainer.py.


Member Function Documentation

Definition at line 134 of file SpacerContainer.py.

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.

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.

Finds the spacer for an item in direction b 

Definition at line 102 of file SpacerContainer.py.

Removes spacers that touch a particular item. Used by SpacerContainter.Item
when it is being released.

Definition at line 52 of file SpacerContainer.py.


Member Data Documentation

Definition at line 33 of file SpacerContainer.py.

Definition at line 33 of file SpacerContainer.py.

Definition at line 33 of file SpacerContainer.py.


Property Documentation

Definition at line 141 of file SpacerContainer.py.


The documentation for this class was generated from the following file:


rqt_graphprofiler
Author(s): Dan Brooks
autogenerated on Thu Jun 6 2019 20:29:31