// EMERGENT GAME TECHNOLOGIES PROPRIETARY INFORMATION // // This software is supplied under the terms of a license agreement or // nondisclosure agreement with Emergent Game Technologies and may not // be copied or disclosed except in accordance with the terms of that // agreement. // // Copyright (c) 1996-2007 Emergent Game Technologies. // All Rights Reserved. // // Emergent Game Technologies, Chapel Hill, North Carolina 27517 // http://www.emergent.net #ifndef NIRENAMESELECTIONSETCOMMAND_H #define NIRENAMESELECTIONSETCOMMAND_H #include #include #include "NiEntityCommandInterface.h" #include "NiEntitySelectionSet.h" class NIENTITY_ENTRY NiRenameSelectionSetCommand : public NiRefObject, public NiEntityCommandInterface { public: NiRenameSelectionSetCommand(NiEntitySelectionSet* pkSelectionSet, const NiFixedString& kNewName); NiEntitySelectionSet* GetSelectionSet() const; const NiFixedString& GetNewName() const; const NiFixedString& GetOldName() const; private: NiEntitySelectionSetPtr m_spSelectionSet; NiFixedString m_kNewName; NiFixedString m_kOldName; NiFixedString m_kCommandName; bool m_bOldDataValid; public: // NiEntityCommandInterface overrides. virtual void AddReference(); virtual void RemoveReference(); virtual NiFixedString GetName(); virtual void DoCommand(NiEntityErrorInterface* pkErrors, bool bUndoable); virtual void UndoCommand(NiEntityErrorInterface* pkErrors); }; NiSmartPointer(NiRenameSelectionSetCommand); #include "NiRenameSelectionSetCommand.inl" #endif // NIRENAMESELECTIONSETCOMMAND_H