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), )
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
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), )
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(), )
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), )
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), )
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), )
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), )
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), )
def __init__(self, alModel, alView): Command.__init__(self, name="ExportAsHtmlCmd") self.alModel = alModel self.alView = alView
def __init__(self, alctrl, mdiArea): Command.__init__(self, name="PreviewArmyListCmd") self._ctrl = alctrl self._mdiArea = mdiArea
def __init__(self, mdiArea): Command.__init__(self, name="SaveArmyListCmd") self._mdiArea = mdiArea
def __init__(self, alModel, alView, saveAs=False): Command.__init__(self, name="SaveArmyListCmd") self.saveAs = saveAs self.alModel = alModel self.alView = alView
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), )
def __init__(self, model, detachment, units): Command.__init__(self, name="DuplicateUnitCmd") ReversibleCommandMixin.__init__(self) self._model = model self._detachment = detachment self._dupUnits = units
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), )
def __init__(self, alModel, detachment): Command.__init__(self, name="AddDefaultUnitCmd") ReversibleCommandMixin.__init__(self) self._alModel = alModel self._detachment = detachment self.hints = (ALH.ModifyDetachmentHint(detachment), )