Beispiel #1
0
    def __init__(self, parent=None, name=None, fl=0):
        self.__class__.tr = OverlayDesignerMainWindow._OverlayDesignerMainWindow__tr

        self.logger = logging.getLogger('gui')
        self.__setupXMLParser()

        OverlayDesignerMainWindow.__init__(self, parent, name, fl)

        self.delete_icon = qt.QIconSet( self.slosl_foreach_remove_button.pixmap() )

        self.loadPreferences(self._xml_parser)
        self.pref_dialog  = PreferenceDialog(self, self.storePreferences,
                                             self.preferences)
        self.about_dialog = OverlayDesigner_aboutdialog(modal=True)

        self.class_name_validator      = ClassNameValidator(self)
        self.class_name_list_validator = ClassNameValidator(self, allow_list=True)
        self.identifier_validator      = IdentifierValidator(self)
        self.identifier_list_validator = IdentifierValidator(self, allow_list=True)

        for supertype in (MenuFunctions, AttributeEditor, MessageEditor,
                          SLOSLEditor, EDSMEditor, TestEditor):
            supertype.__init__(self)

        self.setupModelFromTree(self.current_tree)
 def __init__(self,parent = None,name = None,fl = 0):
     OverlayDesignerMainWindow.__init__(self,parent,name,fl)
Beispiel #3
0
 def polish(self):
     OverlayDesignerMainWindow.polish(self)
     self.FileToolbar.hide()