Ejemplo n.º 1
0
 def __init__(self, model, detachment, units):
    Command.__init__(self, name="DeleteUnitCmd")
    ReversibleCommandMixin.__init__(self)
    self._model = model
    self._detachment = detachment
    self._delUnits = units
    self.hints = (ALH.ModifyDetachmentHint(self._detachment), )
Ejemplo n.º 2
0
 def __init__(self, model, setting, value, hints, touchModel=True):
    Command.__init__(self, name="SetModelSettingCmd")
    self._model = model
    self._setting = setting
    self._value = value
    self.hints = hints
    self._touch = touchModel
Ejemplo n.º 3
0
 def __init__(self, alModel, detachment, unitname):
    Command.__init__(self, name="AddSpecificUnitCmd")
    ReversibleCommandMixin.__init__(self)
    self._alModel = alModel
    self._unitname = UnitProfile.NameFromDisplayName(unitname)
    self._detachment = detachment
    self.hints = (ALH.ModifyDetachmentHint(detachment), )
Ejemplo n.º 4
0
 def __init__(self, alModel, detachment, makePrimary):
    Command.__init__(self, name="SetPrimaryDetachmentCmd")
    ReversibleCommandMixin.__init__(self)
    self.alModel = alModel
    self.detachment = detachment
    self.makePrimary = makePrimary
    self.hints = (ALH.ChangePrimaryDetachmentHint(), )
Ejemplo n.º 5
0
 def __init__(self, alModel, detachment, newName):
    Command.__init__(self, name="RenameDetachmentCmd")
    ReversibleCommandMixin.__init__(self)
    self.alModel = alModel
    self.detachment = detachment
    self.newName = newName
    self.hints = (ALH.ChangeNameHint(self.detachment), )
Ejemplo n.º 6
0
 def __init__(self, alModel, unit, options):
    Command.__init__(self, name="SetUnitOptionsCmd")
    ReversibleCommandMixin.__init__(self)
    self._alModel = alModel
    self._unit = unit
    self._options = options
    
    self.hints = (ModifyUnitHint(self._unit), )
Ejemplo n.º 7
0
 def __init__(self, alModel, unit, newSize):
    Command.__init__(self, name="ChangeUnitSizeCmd")
    ReversibleCommandMixin.__init__(self)
    
    self._alModel = alModel
    self._unit = unit
    self._newSize = newSize
    self.hints = (ALH.ModifyUnitHint(unit), )
Ejemplo n.º 8
0
 def __init__(self, model, detachment, unitIdx, newUnitName):
    Command.__init__(self, name="ChangeUnitCmd")
    ReversibleCommandMixin.__init__(self)
    self._model = model
    self._detachment = detachment
    self._unitIdx = unitIdx
    self._newUnitName = UnitProfile.NameFromDisplayName(newUnitName)
    self.hints = (ALH.ModifyDetachmentHint(self._detachment), )
Ejemplo n.º 9
0
 def __init__(self, alModel, detachment):
    Command.__init__(self, name="RemoveDetachmentCmd")
    ReversibleCommandMixin.__init__(self)
    self._model = alModel
    self._detachment = detachment
    self.hints = (ALH.ModifyDetachmentHint(self._detachment), )
Ejemplo n.º 10
0
 def __init__(self, alModel, alView):
    Command.__init__(self, name="ExportAsHtmlCmd")
    self.alModel = alModel
    self.alView = alView
Ejemplo n.º 11
0
 def __init__(self, alctrl, mdiArea):
    Command.__init__(self, name="PreviewArmyListCmd")
    self._ctrl = alctrl
    self._mdiArea = mdiArea
Ejemplo n.º 12
0
 def __init__(self, mdiArea):
    Command.__init__(self, name="SaveArmyListCmd")
    self._mdiArea = mdiArea
Ejemplo n.º 13
0
 def __init__(self, alModel, alView, saveAs=False):
    Command.__init__(self, name="SaveArmyListCmd")
    self.saveAs = saveAs
    self.alModel = alModel
    self.alView = alView
Ejemplo n.º 14
0
 def __init__(self, unit, item):
    Command.__init__(self, name="ChangeUnitItemCmd")
    ReversibleCommandMixin.__init__(self)
    self._unit = unit
    self._item = item
    self.hints = (ALH.ModifyUnitHint(self._unit), )
Ejemplo n.º 15
0
 def __init__(self, model, detachment, units):
    Command.__init__(self, name="DuplicateUnitCmd")
    ReversibleCommandMixin.__init__(self)
    self._model = model
    self._detachment = detachment
    self._dupUnits = units
Ejemplo n.º 16
0
 def __init__(self, model, newName):
    Command.__init__(self, name="RenameArmyListCmd")
    ReversibleCommandMixin.__init__(self)
    self._newName = newName
    self._model = model
    self.hints = (ALH.ChangeNameHint(self._model), )
Ejemplo n.º 17
0
 def __init__(self, alModel, detachment):
    Command.__init__(self, name="AddDefaultUnitCmd")
    ReversibleCommandMixin.__init__(self)
    self._alModel = alModel
    self._detachment = detachment
    self.hints = (ALH.ModifyDetachmentHint(detachment), )