Public Member Functions | |
def | __init__ |
def | bring_band_to_front |
def | reorder_bands |
def | reorder_blocks |
def | reorder_snaps |
Private Attributes | |
_topology | |
_view |
Interface definations provided by the Adapter for use by the View. NOTE: There should be no Qt specific code here!
Definition at line 1 of file adapter.py.
def diarc::diarc::adapter::Adapter::__init__ | ( | self, | |
model, | |||
view | |||
) |
Definition at line 7 of file adapter.py.
def diarc::diarc::adapter::Adapter::bring_band_to_front | ( | self, | |
altitude | |||
) |
change a bands rank to bring it to the front. This should not affect the relative order of the other band's ranks, but may change their actual rank value.
Definition at line 38 of file adapter.py.
def diarc::diarc::adapter::Adapter::reorder_bands | ( | self, | |
srcAlt, | |||
lowerAlt, | |||
upperAlt | |||
) |
Move band with altitude srcAlt between bands with lowerAlt and upperAlt. Bands cannot be dragged to the opposite side of the BlockContainer, that is, positive bands can only be dragged with positive bands.
Definition at line 22 of file adapter.py.
def diarc::diarc::adapter::Adapter::reorder_blocks | ( | self, | |
srcIdx, | |||
lowerIdx, | |||
upperIdx | |||
) |
Move block with index srcIdx between blocks with lowerIdx and upperIdx. Associated BlockItems are also be updated as necessary to reflect the change. srcIdx, lowerIdx, and upperIdx should all be ints, except for when lowerIdx or upperIdx does not exists (at the far left and right) in which case they should be None.
Definition at line 12 of file adapter.py.
def diarc::diarc::adapter::Adapter::reorder_snaps | ( | self, | |
blockIdx, | |||
container, | |||
srcIdx, | |||
lowerIdx, | |||
upperIdx | |||
) |
Move a snap with order srcIdx between snaps in the same container of the same block with index blockIdx with orders lowerIdx and upperIdx. blockIdx - the index of the block the snaps are in container - either "emitter" or "collector"
Definition at line 29 of file adapter.py.
Definition at line 7 of file adapter.py.
diarc::diarc::adapter::Adapter::_view [private] |
Definition at line 7 of file adapter.py.