Definition at line 29 of file CreateLinkType.py.
Public Member Functions | |
def | __init__ |
def | CheckboxClicked |
def | OnAdd |
def | OnRemove |
def | SaveObject |
def | OkButtonClicked |
def | IsCreationMode |
def | GetLinkTypeObj |
Public Attributes | |
main | |
linktypeobj | |
renameobj | |
lktypeobj | |
Private Attributes | |
__creationmode | |
__linktypes | |
__panel | |
__linktypeidcaption | |
__linktypeidtxtbox | |
__linktypecaption | |
__linktypetxtbox | |
__compositelinktype | |
__linktypescaption | |
__linktypescmbbox | |
__addbutton | |
__rembutton | |
__complinktypes | |
__okbutton | |
__cancelbutton | |
__layout |
def CreateLinkType::CreateLinkTypeWindow::__init__ | ( | self, | ||
parent, | ||||
id, | ||||
selectedsystem, | ||||
creationmode = True , |
||||
linktypeobj = None , |
||||
linktypes = [] | ||||
) |
Constructor.
Parameters: - parent window to this window (usually MainWindow) - id of this window (set by its parent) - the subsystem to create this link type in - if True, then the link type is being created, if False the link type is being modified (already exists) - if we're in modifying a link type, then we have to send a link type object with all the variables set to be able to show the attributes to the user so he/she can modify them - a list of names of link types available in the ConfDB; to check that we don't get name conflicts and also for adding simple link types to a composite link type.
Definition at line 47 of file CreateLinkType.py.
def CreateLinkType::CreateLinkTypeWindow::CheckboxClicked | ( | self, | ||
event = None | ||||
) |
Enable/Disable the controls for composite link type.
Definition at line 152 of file CreateLinkType.py.
def CreateLinkType::CreateLinkTypeWindow::OnAdd | ( | self, | ||
event | ||||
) |
Add a link type (selected in the combo box) to the collection of link types for the current composite link type.
Definition at line 171 of file CreateLinkType.py.
def CreateLinkType::CreateLinkTypeWindow::OnRemove | ( | self, | ||
event | ||||
) |
Remove a link type (selected in the combo box) from the collection of link types for the current composite link type
Definition at line 184 of file CreateLinkType.py.
def CreateLinkType::CreateLinkTypeWindow::SaveObject | ( | self | ) |
Excessive validation and create/modify the link type object.
!return - True if successful, False if not.
Definition at line 200 of file CreateLinkType.py.
def CreateLinkType::CreateLinkTypeWindow::OkButtonClicked | ( | self, | ||
event | ||||
) |
Simple validation before trying to create the link type object.
!return - False if unsuccessful, no return if successful; window is closed
Definition at line 255 of file CreateLinkType.py.
def CreateLinkType::CreateLinkTypeWindow::IsCreationMode | ( | self | ) |
Whether we create or modify a link type
!return - True if we create a link type, False if we modify
Definition at line 272 of file CreateLinkType.py.
def CreateLinkType::CreateLinkTypeWindow::GetLinkTypeObj | ( | self | ) |
Return link type object (and rename object).
!return - The created link type object if we Create, The modified link type object if we modify (and a rename object if we renamed)
Definition at line 283 of file CreateLinkType.py.
Definition at line 49 of file CreateLinkType.py.
Definition at line 50 of file CreateLinkType.py.
Definition at line 51 of file CreateLinkType.py.
Definition at line 58 of file CreateLinkType.py.
Definition at line 59 of file CreateLinkType.py.
Definition at line 74 of file CreateLinkType.py.
Definition at line 79 of file CreateLinkType.py.
Definition at line 80 of file CreateLinkType.py.
Definition at line 89 of file CreateLinkType.py.
Definition at line 90 of file CreateLinkType.py.
Definition at line 93 of file CreateLinkType.py.
Definition at line 96 of file CreateLinkType.py.
Definition at line 97 of file CreateLinkType.py.
Definition at line 98 of file CreateLinkType.py.
Definition at line 100 of file CreateLinkType.py.
Definition at line 102 of file CreateLinkType.py.
Definition at line 107 of file CreateLinkType.py.
Definition at line 108 of file CreateLinkType.py.
Definition at line 113 of file CreateLinkType.py.
Definition at line 227 of file CreateLinkType.py.