1 /*! 2 @file 3 @author Albert Semenov 4 @date 07/2012 5 */ 6 7 #ifndef _d92392a8_2d98_4639_8dfe_7cb945c817b5_ 8 #define _d92392a8_2d98_4639_8dfe_7cb945c817b5_ 9 10 #include "Action.h" 11 #include "Data.h" 12 13 namespace tools 14 { 15 16 class MYGUI_EXPORT_DLL ActionDestroyData : 17 public Action 18 { 19 public: 20 ActionDestroyData(); 21 22 virtual void doAction(); 23 virtual void undoAction(); 24 25 void setData(DataPtr _data); 26 void setUniqueProperty(const std::string& _value); 27 28 private: 29 DataPtr mData; 30 DataPtr mParent; 31 size_t mIndex; 32 std::string mUniqueProperty; 33 34 typedef std::pair<PropertyPtr, std::string> PairProprty; 35 typedef std::vector<PairProprty> VectorPairProperty; 36 VectorPairProperty mOldValues; 37 }; 38 39 } 40 41 #endif 42