示例#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), )
示例#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
示例#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), )
示例#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(), )
示例#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), )
示例#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), )
示例#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), )
示例#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), )
示例#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), )
示例#10
0
 def __init__(self, alModel, alView):
    Command.__init__(self, name="ExportAsHtmlCmd")
    self.alModel = alModel
    self.alView = alView
示例#11
0
 def __init__(self, alctrl, mdiArea):
    Command.__init__(self, name="PreviewArmyListCmd")
    self._ctrl = alctrl
    self._mdiArea = mdiArea
示例#12
0
 def __init__(self, mdiArea):
    Command.__init__(self, name="SaveArmyListCmd")
    self._mdiArea = mdiArea
示例#13
0
 def __init__(self, alModel, alView, saveAs=False):
    Command.__init__(self, name="SaveArmyListCmd")
    self.saveAs = saveAs
    self.alModel = alModel
    self.alView = alView
示例#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), )
示例#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
示例#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), )
示例#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), )