Changeset 624 in dev for trunk/ab5.0/abdev/abdev/include/ProjectManager
- Timestamp:
- May 23, 2008, 10:35:36 PM (17 years ago)
- Location:
- trunk/ab5.0/abdev/abdev/include/ProjectManager
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ab5.0/abdev/abdev/include/ProjectManager/ProjectManager.h
r623 r624 2 2 3 3 4 namespace ActiveBasic{ namespace IDE{4 namespace ActiveBasic{ namespace PM{ 5 5 6 6 class Project … … 83 83 }} 84 84 85 extern ActiveBasic:: IDE::Project projectInfo;85 extern ActiveBasic::PM::Project projectInfo; -
trunk/ab5.0/abdev/abdev/include/ProjectManager/WindowManager.h
r617 r624 2 2 3 3 4 namespace ActiveBasic{ namespace IDE{5 6 /* 4 namespace ActiveBasic{ namespace PM{ 5 6 7 7 struct ImageReferenceType 8 8 { … … 14 14 }; 15 15 16 struct IMAGECTRLINFO 17 { 16 class ImageControlInfo 17 { 18 public: 18 19 ImageReferenceType::EnumType type; 19 20 std::string path; 20 }; 21 */ 22 23 }} 24 25 26 //イメージタイプ 27 #define IMGTYPE_FILE 0 28 #define IMGTYPE_RES 1 29 30 struct IMAGECTRLINFO{ 31 int type; 32 char *path; 33 }; 34 35 class CHILDINFO 36 { 37 public: 38 char *IdName; 21 22 bool IsFile() const 23 { 24 return ( type == ImageReferenceType::File ); 25 } 26 bool IsResource() const 27 { 28 return ( type == ImageReferenceType::Resource ); 29 } 30 }; 31 32 class WindowInfoBase 33 { 34 public: 35 const std::string &GetName() const 36 { 37 return name; 38 } 39 void SetName( const std::string &name ) 40 { 41 this->name = name; 42 } 43 44 const std::string &GetCaption() const 45 { 46 return caption; 47 } 48 void SetCaption( const std::string &caption ) 49 { 50 this->caption = caption; 51 } 52 53 DWORD GetStyle() const 54 { 55 return style; 56 } 57 void SetStyle( DWORD style ) 58 { 59 this->style = style; 60 } 61 void AddStyle( DWORD style ) 62 { 63 this->style |= style; 64 } 65 void AndStyle( DWORD style ) 66 { 67 this->style &= style; 68 } 69 void DeleteStyle( DWORD style ) 70 { 71 this->style &= ~style; 72 } 73 74 DWORD GetExStyle() const 75 { 76 return exstyle; 77 } 78 void SetExStyle( DWORD exstyle ) 79 { 80 this->exstyle = exstyle; 81 } 82 void AddExStyle( DWORD exstyle ) 83 { 84 this->exstyle |= exstyle; 85 } 86 87 private: 88 std::string name; 89 std::string caption; 90 DWORD style; 91 DWORD exstyle; 92 93 public: 39 94 POINT pos; 40 95 SIZE size; 41 char *caption; 42 DWORD style; 43 DWORD ExStyle; 96 }; 97 98 class ChildWindowInfo 99 : public WindowInfoBase 100 { 101 public: 44 102 int Control; 45 103 46 IMAGECTRLINFO ImageCtrlInfo; 47 }; 104 ImageControlInfo image; 105 }; 106 typedef std::vector<ChildWindowInfo *> ChildWindowInfos; 48 107 class WindowInfo 108 : public WindowInfoBase 49 109 { 50 110 public: 51 111 WindowInfo() 52 : caption( NULL ) 53 , MenuID( NULL ) 54 , IconResName( NULL ) 55 , ClassName( NULL ) 112 : WindowInfoBase() 56 113 , CallBackName( NULL ) 57 114 { 58 115 } 59 116 60 void SetName( const std::string &name ) 61 { 62 this->name = name; 63 } 64 const std::string &GetName() const 65 { 66 return name; 67 } 68 117 const std::string &GetClassName() const 118 { 119 return className; 120 } 121 void SetClassName( const std::string &className ) 122 { 123 this->className = className; 124 } 125 126 const std::string &GetHandleName() const 127 { 128 return handleName; 129 } 69 130 void SetHandleName( const std::string &handleName ) 70 131 { 71 132 this->handleName = handleName; 72 133 } 73 const std::string &GetHandleName() const 74 { 75 return handleName; 134 135 const std::string &GetMenuIdName() const 136 { 137 return menuIdName; 138 } 139 void SetMenuIdName( const std::string &menuIdName ) 140 { 141 this->menuIdName = menuIdName; 142 } 143 bool HasMenu() const 144 { 145 return !menuIdName.empty(); 146 } 147 148 int GetBackgroundColor() const 149 { 150 return backgroundColor; 151 } 152 void SetBackgroundColor( int backgroundColor ) 153 { 154 this->backgroundColor = backgroundColor; 155 } 156 157 const std::string &GetIconResourceName() const 158 { 159 return iconResourceName; 160 } 161 void SetIconResourceName( const std::string &iconResourceName ) 162 { 163 this->iconResourceName = iconResourceName; 164 } 165 bool HasIcon() const 166 { 167 return !iconResourceName.empty(); 76 168 } 77 169 78 170 //ウィンドウデータ 79 POINT pos;80 SIZE size;81 char *caption;82 DWORD style;83 DWORD ExStyle;84 char *MenuID;85 int id;86 int bgColor;87 171 LOGFONT LogFont; 88 char *IconResName;89 char *ClassName;90 172 char *CallBackName; 91 173 long type; … … 93 175 94 176 //子ウィンドウ管理 95 std::vector<CHILDINFO *>childWindowInfos;177 ChildWindowInfos childWindowInfos; 96 178 97 179 //ツリー項目 … … 99 181 100 182 private: 101 std::string name;183 std::string className; 102 184 std::string handleName; 185 std::string menuIdName; 186 int backgroundColor; 187 std::string iconResourceName; 103 188 }; 104 189 … … 133 218 } 134 219 }; 220 221 222 }}
Note:
See TracChangeset
for help on using the changeset viewer.