1 #ifndef _ide_IconDes_IconDes_h_ 2 #define _ide_IconDes_IconDes_h_ 3 4 #include <ide/Common/Common.h> 5 #include <IconDes/IconDes.h> 6 7 struct IdeIconDes : IdeDesigner, IconDes { 8 virtual String GetFileName() const; 9 virtual void Save(); 10 virtual void SaveEditPos(); 11 virtual void RestoreEditPos(); 12 virtual void EditMenu(Bar& menu); DesignerCtrlIdeIconDes13 virtual Ctrl& DesignerCtrl() { return *this; } 14 15 virtual void Serialize(Stream& s); 16 17 int format; 18 String filename; 19 Time filetime; 20 String EOL = "\r\n"; 21 22 virtual void ToolEx(Bar& bar); 23 virtual void ListMenuEx(Bar& bar); 24 25 bool Load(const char *filename); 26 void FileProperties(); 27 void CopyId(const String& n); 28 void FindId(const String& id); 29 30 typedef IdeIconDes CLASSNAME; 31 IdeIconDesIdeIconDes32 IdeIconDes() { format = 0; } 33 }; 34 35 struct IdeIconEditPos : IconDes::EditPos, Moveable<IdeIconEditPos> { 36 Time filetime; 37 IdeIconEditPosIdeIconEditPos38 IdeIconEditPos() { filetime = Null; } 39 }; 40 41 INITIALIZE(IconDes); 42 43 #endif 44