Changeset 625 in dev for trunk/ab5.0/abdev/abdev/include/ProjectManager
- Timestamp:
- May 27, 2008, 9:17:34 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ab5.0/abdev/abdev/include/ProjectManager/WindowManager.h
r624 r625 105 105 }; 106 106 typedef std::vector<ChildWindowInfo *> ChildWindowInfos; 107 108 struct WindowType 109 { 110 enum EnumType 111 { 112 Default = 0, 113 ModalDlg = 1, 114 ModelessDlg = 3, 115 }; 116 }; 117 107 118 class WindowInfo 108 119 : public WindowInfoBase 109 120 { 110 121 public: 111 WindowInfo() 112 : WindowInfoBase()113 , CallBackName( NULL )114 {122 123 const std::string GetSourceFileName() const 124 { 125 return this->GetName() + ".ab"; 115 126 } 116 127 … … 124 135 } 125 136 126 const std::string &GetHandleName() const 127 { 128 return handleName; 129 } 130 void SetHandleName( const std::string &handleName ) 131 { 132 this->handleName = handleName; 137 const std::string GetHandleName() const 138 { 139 return "h" + this->GetName(); 140 } 141 142 const std::string GetCallbackName() const 143 { 144 return this->GetName() + "Proc"; 133 145 } 134 146 … … 166 178 { 167 179 return !iconResourceName.empty(); 180 } 181 182 WindowType::EnumType GetType() const 183 { 184 return type; 185 } 186 void SetType( WindowType::EnumType type ) 187 { 188 this->type = type; 189 } 190 bool IsDefaultWindow() const 191 { 192 return ( type == WindowType::Default ); 193 } 194 bool IsModalDlg() const 195 { 196 return ( type == WindowType::ModalDlg ); 197 } 198 bool IsModelessDlg() const 199 { 200 return ( type == WindowType::ModelessDlg ); 168 201 } 169 202 170 203 //ウィンドウデータ 171 204 LOGFONT LogFont; 172 char *CallBackName;173 long type;174 char *filepath;175 205 176 206 //子ウィンドウ管理 … … 186 216 int backgroundColor; 187 217 std::string iconResourceName; 218 WindowType::EnumType type; 188 219 }; 189 220 … … 211 242 { 212 243 WindowInfos::iterator it = this->begin(); 213 for( int i=0; i!=index ;i++, it++ ) 244 int i = 0; 245 while( i < index ) 214 246 { 215 delete *it; 247 i ++; 248 it ++; 216 249 } 217 250 this->erase( it );
Note:
See TracChangeset
for help on using the changeset viewer.