| 1 |
#include "import_from_wxFB.h" |
| 2 |
|
| 3 |
#include "allocator_mgr.h" |
| 4 |
#include "file_logger.h" |
| 5 |
#include "import_dlg.h" |
| 6 |
#include "notebook_base_wrapper.h" |
| 7 |
#include "notebook_page_wrapper.h" |
| 8 |
#include "wxc_project_metadata.h" |
| 9 |
#include "wxgui_helpers.h" |
| 10 |
#include "xmlutils.h" |
| 11 |
|
| 12 |
#include <wx/log.h> |
| 13 |
#include <wx/msgdlg.h> |
| 14 |
#include <wx/window.h> |
| 15 |
#include <wx/xml/xml.h> |
| 16 |
|
| 17 |
std::map<wxString, wxString> ImportFromwxFB::sm_eventMap; |
| 18 |
|
| 19 |
ImportFromwxFB::ImportFromwxFB(wxWindow* parent) |
| 20 |
: m_Parent(parent) |
| 21 |
{ |
| 22 |
} |
| 23 |
|
| 24 |
ImportFromwxFB::~ImportFromwxFB() {} |
| 25 |
|
| 26 |
bool ImportFromwxFB::ImportProject(ImportDlg::ImportFileData& data, const wxString& sourceFile) const |
| 27 |
{ |
| 28 |
ImportDlg dlg(ImportDlg::IPD_FB, m_Parent, sourceFile); |
| 29 |
|
| 30 |
if(dlg.ShowModal() != wxID_OK) { |
| 31 |
return false; |
| 32 |
} |
| 33 |
|
| 34 |
wxString filepath = dlg.GetFilepath(); |
| 35 |
if(filepath.empty() || !wxFileExists(filepath)) { |
| 36 |
return false; |
| 37 |
} |
| 38 |
|
| 39 |
wxXmlDocument doc(filepath); |
| 40 |
if(!doc.IsOk()) { |
| 41 |
wxMessageBox(_("Failed to load the file to import"), _("CodeLite"), wxICON_ERROR | wxOK, m_Parent); |
| 42 |
return false; |
| 43 |
} |
| 44 |
|
| 45 |
wxcWidget::List_t toplevels; |
| 46 |
if(ParseFile(doc, toplevels) && !toplevels.empty()) { |
| 47 |
wxcProjectMetadata::Get().Serialize(toplevels, wxFileName(dlg.GetOutputFilepath())); |
| 48 |
data = dlg.GetData(); |
| 49 |
return true; |
| 50 |
} |
| 51 |
return false; |
| 52 |
} |
| 53 |
|
| 54 |
bool ImportFromwxFB::ParseFile(wxXmlDocument& doc, wxcWidget::List_t& toplevels) const |
| 55 |
{ |
| 56 |
wxString abortmsg(_("This doesn't seem to be a valid wxFormBuilder project file. Aborting.")); |
| 57 |
wxXmlNode* wxFBProj = XmlUtils::FindFirstByTagName(doc.GetRoot(), wxT("object")); |
| 58 |
if(!wxFBProj) { |
| 59 |
wxMessageBox(abortmsg, _("CodeLite"), wxICON_ERROR | wxOK, m_Parent); |
| 60 |
return false; |
| 61 |
} |
| 62 |
|
| 63 |
if(XmlUtils::ReadString(wxFBProj, wxT("class")) != "Project") { |
| 64 |
wxMessageBox(abortmsg, _("CodeLite"), wxICON_ERROR | wxOK, m_Parent); |
| 65 |
return false; |
| 66 |
} |
| 67 |
|
| 68 |
// The file starts with cruft, which we ignore. e.g. |
| 69 |
// <wxFormBuilder_Project> |
| 70 |
// <FileVersion major="1" minor="11" /> |
| 71 |
// <object class="Project" expanded="1"> |
| 72 |
// <property name="class_decoration"></property> |
| 73 |
// <property name="code_generation">C++</property> |
| 74 |
// <property name="disconnect_events">1</property> |
| 75 |
// etc etc |
| 76 |
// The only ones that sound relevant are 'name', 'path' and possibly 'file'. Maybe a ToDo |
| 77 |
// Everything is parented by <object class="Project"...> though, so we need to get that |
| 78 |
|
| 79 |
// The first interesting thing is a child node of Project e.g. <object class="Dialog" expanded="1"> |
| 80 |
wxXmlNode* toplevelnode = XmlUtils::FindFirstByTagName(wxFBProj, wxT("object")); |
| 81 |
if(!toplevelnode) { |
| 82 |
wxMessageBox(abortmsg, _("CodeLite"), wxICON_ERROR | wxOK, m_Parent); |
| 83 |
return false; |
| 84 |
} |
| 85 |
|
| 86 |
while(toplevelnode) { |
| 87 |
wxString tag = toplevelnode->GetName(); |
| 88 |
if(tag != wxT("object")) { |
| 89 |
wxMessageBox(abortmsg, _("CodeLite"), wxICON_ERROR | wxOK, m_Parent); |
| 90 |
return false; |
| 91 |
} |
| 92 |
|
| 93 |
bool alreadyParented(false); |
| 94 |
wxcWidget* wrapper = ParseNode(toplevelnode, NULL, alreadyParented); |
| 95 |
if(wrapper) { |
| 96 |
toplevels.push_back(wrapper); |
| 97 |
} |
| 98 |
|
| 99 |
toplevelnode = toplevelnode->GetNext(); |
| 100 |
} |
| 101 |
|
| 102 |
return true; |
| 103 |
} |
| 104 |
|
| 105 |
wxcWidget* ImportFromwxFB::ParseNode(wxXmlNode* node, wxcWidget* parentwrapper, bool& alreadyParented) const |
| 106 |
{ |
| 107 |
wxcWidget* wrapper = NULL; |
| 108 |
|
| 109 |
wxString tag = node->GetName(); |
| 110 |
wxCHECK_MSG(tag == wxT("object"), NULL, wxT("Passed a node that isn't an object")); |
| 111 |
|
| 112 |
wxString classname = XmlUtils::ReadString(node, wxT("class")); |
| 113 |
wxCHECK_MSG(!classname.empty(), NULL, wxT("Object node doesn't have a 'class' attribute")); |
| 114 |
|
| 115 |
wxXmlNode* sizeritemnode = node; |
| 116 |
wxXmlNode* gbsizeritemnode = node; |
| 117 |
wxXmlNode* booknode = NULL; |
| 118 |
|
| 119 |
if(classname == wxT("sizeritem")) { |
| 120 |
// See the comment in import_from_xrc. Replace node with the contained object node |
| 121 |
// We'll process sizeritemnode node separately later |
| 122 |
node = XmlUtils::FindFirstByTagName(node, wxT("object")); |
| 123 |
if(!node) { |
| 124 |
// I don't think this can happen, but... |
| 125 |
return NULL; |
| 126 |
} |
| 127 |
|
| 128 |
// Read the class of the new node |
| 129 |
classname = XmlUtils::ReadString(node, wxT("class")); |
| 130 |
} |
| 131 |
|
| 132 |
else if(classname == "gbsizeritem") { |
| 133 |
// wxFB deals with this separately |
| 134 |
// We'll process gbsizeritem node separately later |
| 135 |
gbsizeritemnode = node; |
| 136 |
node = XmlUtils::FindFirstByTagName(node, wxT("object")); |
| 137 |
if(!node) { |
| 138 |
// I don't think this can happen, but... |
| 139 |
return NULL; |
| 140 |
} |
| 141 |
|
| 142 |
// Read the class of the new node |
| 143 |
classname = XmlUtils::ReadString(node, wxT("class")); |
| 144 |
} |
| 145 |
|
| 146 |
else if(classname.Contains(wxT("bookpage"))) { |
| 147 |
// See the above comment. Replace node with the contained object node |
| 148 |
// We'll process booknode node separately later |
| 149 |
booknode = node; |
| 150 |
node = XmlUtils::FindFirstByTagName(node, wxT("object")); |
| 151 |
if(!node) { |
| 152 |
// I don't think this can happen, but... |
| 153 |
return NULL; |
| 154 |
} |
| 155 |
|
| 156 |
// Read the class of the new node |
| 157 |
classname = XmlUtils::ReadString(node, wxT("class")); |
| 158 |
} |
| 159 |
|
| 160 |
else if(classname == "splitteritem") { |
| 161 |
// wxFB uses this for a splitterwindow page, but it holds no extra info :/ |
| 162 |
// so just substitute the contained object |
| 163 |
node = XmlUtils::FindFirstByTagName(node, wxT("object")); |
| 164 |
if(!node) { |
| 165 |
// I don't think this can happen, but... |
| 166 |
return NULL; |
| 167 |
} |
| 168 |
classname = XmlUtils::ReadString(node, wxT("class")); |
| 169 |
} |
| 170 |
|
| 171 |
int Id = Allocator::StringToId(classname); |
| 172 |
if(Id == wxNOT_FOUND) { |
| 173 |
wxLogWarning(wxString::Format(_("Can't import unknown class %s from wxFB"), classname)); |
| 174 |
return NULL; |
| 175 |
} |
| 176 |
|
| 177 |
if((Id == ID_WXPANEL) && (parentwrapper == NULL)) { |
| 178 |
Id = ID_WXPANEL_TOPLEVEL; |
| 179 |
|
| 180 |
} else if(Id == ID_WXPANEL && parentwrapper && parentwrapper->GetType() == ID_WXSPLITTERWINDOW) { |
| 181 |
Id = ID_WXSPLITTERWINDOW_PAGE; |
| 182 |
} |
| 183 |
|
| 184 |
if(booknode) { |
| 185 |
// Correctly label a wxPanel that's really a notebookpage |
| 186 |
Id = ID_WXPANEL_NOTEBOOK_PAGE; |
| 187 |
} |
| 188 |
|
| 189 |
wrapper = Allocator::Instance()->Create(Id); |
| 190 |
wxCHECK_MSG(wrapper, NULL, wxT("Failed to create a wrapper")); |
| 191 |
|
| 192 |
wrapper->LoadPropertiesFromwxFB(node); |
| 193 |
|
| 194 |
GetSizeritemContents(sizeritemnode, wrapper); // Now we have a valid wrapper, we can store the sizeritem info in it |
| 195 |
GetGridBagSizerItem(gbsizeritemnode, wrapper); // Similarly with these, which wxFB stores separately |
| 196 |
|
| 197 |
int depth = 0; |
| 198 |
if(booknode) { |
| 199 |
// For book pages, extract any info from the <foobookpage> node |
| 200 |
NotebookPageWrapper* nbwrapper = dynamic_cast<NotebookPageWrapper*>(wrapper); |
| 201 |
wxCHECK_MSG(nbwrapper, NULL, wxT("A booknode which has no NotebookPageWrapper")); |
| 202 |
GetBookitemContents(booknode, nbwrapper, depth); |
| 203 |
|
| 204 |
// If this is a treebook subpage, it needs to be parented by a page, not the book |
| 205 |
// depth will only be >0 in that situation |
| 206 |
if(depth) { |
| 207 |
NotebookBaseWrapper* nb = dynamic_cast<NotebookBaseWrapper*>(parentwrapper); |
| 208 |
wxCHECK_MSG(nb, NULL, wxT("treebookpage 'parent' not a book")); |
| 209 |
|
| 210 |
wxcWidget* item = nb->GetChildPageAtDepth(depth - 1); |
| 211 |
if(item) { |
| 212 |
item->AddChild(wrapper); |
| 213 |
alreadyParented = true; |
| 214 |
} else { |
| 215 |
// If the XRC held an invalid depth (i.e. there was no suitable parent found) |
| 216 |
// just mention the fact, and add the page anyway at depth 0 |
| 217 |
wxLogWarning("Trying to add to a wxTreebook a page with invalid depth"); |
| 218 |
} |
| 219 |
} |
| 220 |
} |
| 221 |
|
| 222 |
wxXmlNode* child = node->GetChildren(); |
| 223 |
while(child) { |
| 224 |
wxString childname(child->GetName()); |
| 225 |
if(childname == wxT("object")) { |
| 226 |
bool alreadyParented(false); |
| 227 |
wxcWidget* childwrapper = ParseNode(child, wrapper, alreadyParented); |
| 228 |
if(childwrapper && !alreadyParented) { |
| 229 |
wrapper->AddChild(childwrapper); |
| 230 |
} |
| 231 |
} |
| 232 |
|
| 233 |
child = child->GetNext(); |
| 234 |
} |
| 235 |
|
| 236 |
return wrapper; |
| 237 |
} |
| 238 |
|
| 239 |
void ImportFromwxFB::GetSizeritemContents(const wxXmlNode* node, wxcWidget* wrapper) const |
| 240 |
{ |
| 241 |
wrapper->ClearSizerAll(); // otherwise the default ones will remain |
| 242 |
|
| 243 |
// Unlike XRC, wxFB stores everything in <property name=foo>value</property> nodes |
| 244 |
wxXmlNode* child = node->GetChildren(); |
| 245 |
while(child) { |
| 246 |
wxString childname(child->GetName()); |
| 247 |
if(childname == wxT("property")) { |
| 248 |
|
| 249 |
if(XmlUtils::ReadString(child, wxT("name")) == "flag") { |
| 250 |
wxString flags = child->GetNodeContent(); |
| 251 |
// We must cope with wxC's American misspellings... |
| 252 |
flags.Replace("wxALIGN_CENTRE", "wxALIGN_CENTER"); |
| 253 |
|
| 254 |
// if left|right|top|bottom add wxALL. Duplication does no harm here |
| 255 |
if(flags.Contains("wxLEFT") && flags.Contains("wxRIGHT") && flags.Contains("wxTOP") && |
| 256 |
flags.Contains("wxBOTTOM")) { |
| 257 |
flags << "|wxALL"; |
| 258 |
} |
| 259 |
|
| 260 |
wxArrayString flagsarray = wxCrafter::Split(flags, "|"); |
| 261 |
|
| 262 |
// Eran: If flagsarray contains 'wxALL' - make sure all the other four stars are also there... |
| 263 |
if(flagsarray.Index("wxALL") != wxNOT_FOUND) { |
| 264 |
flagsarray.Add("wxLEFT"); |
| 265 |
flagsarray.Add("wxRIGHT"); |
| 266 |
flagsarray.Add("wxTOP"); |
| 267 |
flagsarray.Add("wxBOTTOM"); |
| 268 |
flagsarray = wxCrafter::MakeUnique(flagsarray); |
| 269 |
} |
| 270 |
|
| 271 |
for(size_t n = 0; n < flagsarray.GetCount(); ++n) { |
| 272 |
wrapper->EnableSizerFlag(flagsarray.Item(n), true); |
| 273 |
} |
| 274 |
} |
| 275 |
|
| 276 |
if(XmlUtils::ReadString(child, wxT("name")) == "proportion") { |
| 277 |
wxString proportion = child->GetNodeContent(); |
| 278 |
wrapper->SizerItem().SetProportion(wxCrafter::ToNumber(proportion, 0)); |
| 279 |
} |
| 280 |
|
| 281 |
if(XmlUtils::ReadString(child, wxT("name")) == "border") { |
| 282 |
wxString border = child->GetNodeContent(); |
| 283 |
wrapper->SizerItem().SetBorder(wxCrafter::ToNumber(border, 0)); |
| 284 |
} |
| 285 |
} |
| 286 |
|
| 287 |
child = child->GetNext(); |
| 288 |
} |
| 289 |
} |
| 290 |
|
| 291 |
void ImportFromwxFB::GetGridBagSizerItem(const wxXmlNode* node, wxcWidget* wrapper) const |
| 292 |
{ |
| 293 |
// The gbsizeritem node contains 'flag' and 'border' (though not 'proportion') so process them with |
| 294 |
// GetSizeritemContents() |
| 295 |
GetSizeritemContents(node, wrapper); |
| 296 |
|
| 297 |
wxString row, column, rowspan, colspan; // wxFB holds these individually; wxC needs pairs |
| 298 |
|
| 299 |
wxXmlNode* child = node->GetChildren(); |
| 300 |
while(child) { |
| 301 |
wxString childname(child->GetName()); |
| 302 |
if(childname == wxT("property")) { |
| 303 |
if(XmlUtils::ReadString(child, wxT("name")) == "row") { |
| 304 |
row = child->GetNodeContent(); |
| 305 |
} |
| 306 |
|
| 307 |
if(XmlUtils::ReadString(child, wxT("name")) == "column") { |
| 308 |
column = child->GetNodeContent(); |
| 309 |
} |
| 310 |
if(XmlUtils::ReadString(child, wxT("name")) == "rowspan") { |
| 311 |
rowspan = child->GetNodeContent(); |
| 312 |
} |
| 313 |
|
| 314 |
if(XmlUtils::ReadString(child, wxT("name")) == "colspan") { |
| 315 |
colspan = child->GetNodeContent(); |
| 316 |
} |
| 317 |
} |
| 318 |
|
| 319 |
child = child->GetNext(); |
| 320 |
} |
| 321 |
wrapper->SetGbPos(row + ',' + column); |
| 322 |
wrapper->SetGbSpan(rowspan + ',' + colspan); |
| 323 |
} |
| 324 |
|
| 325 |
void ImportFromwxFB::GetBookitemContents(const wxXmlNode* node, NotebookPageWrapper* wrapper, int& depth) const |
| 326 |
{ |
| 327 |
wxString classname = XmlUtils::ReadString(node, wxT("class")); |
| 328 |
|
| 329 |
wxXmlNode* propertynode = XmlUtils::FindNodeByName(node, "property", "select"); |
| 330 |
if(propertynode) { |
| 331 |
wxString selected = propertynode->GetNodeContent(); |
| 332 |
if(selected == "1") { |
| 333 |
wrapper->SetSelected(true); |
| 334 |
} |
| 335 |
} |
| 336 |
|
| 337 |
propertynode = XmlUtils::FindNodeByName(node, "property", "label"); |
| 338 |
if(propertynode) { |
| 339 |
wxString label = propertynode->GetNodeContent(); |
| 340 |
PropertyBase* prop = wrapper->GetProperty(PROP_LABEL); |
| 341 |
if(prop) { |
| 342 |
prop->SetValue(label); |
| 343 |
} |
| 344 |
} |
| 345 |
|
| 346 |
if(classname != "choicebookpage") { // which don't have bitmaps |
| 347 |
propertynode = XmlUtils::FindNodeByName(node, "property", "bitmap"); |
| 348 |
if(propertynode) { |
| 349 |
wxString bitmap = propertynode->GetNodeContent(); |
| 350 |
ProcessBitmapProperty(bitmap, wrapper); |
| 351 |
} |
| 352 |
} |
| 353 |
/* wxFB doesn't seem to do treebooks |
| 354 |
if (classname == "treebookpage") { |
| 355 |
propertynode = XmlUtils::FindNodeByName(node, "property", "depth"); |
| 356 |
if (propertynode) { |
| 357 |
depth = wxCrafter::ToNumber(propertynode->GetNodeContent(), 0); |
| 358 |
} |
| 359 |
}*/ |
| 360 |
} |
| 361 |
|
| 362 |
bool ImportFromwxFB::GetProject() const { return false; } |
| 363 |
|
| 364 |
// static |
| 365 |
wxString ImportFromwxFB::ConvertFBOptionsString(const wxString& content, const wxString& separator /*= ";"*/) |
| 366 |
{ |
| 367 |
// wxFB stores the contents of e.g. a wxComboBox in the format: |
| 368 |
// <property name="choices">"First string" "Second string"</property> |
| 369 |
// We want: First string;Second string |
| 370 |
// (I thought the "s would need decoding, but wx seems to cope) |
| 371 |
wxString options(content); |
| 372 |
options.Remove(0, 1).RemoveLast(1); // Remove the unwanted first and last '"' |
| 373 |
options.Replace("\" \"", separator); // and replace " " with ; |
| 374 |
return options; |
| 375 |
} |
| 376 |
|
| 377 |
// static |
| 378 |
void ImportFromwxFB::ProcessBitmapProperty(const wxString& bitmapinfo, wxcWidget* wrapper, |
| 379 |
const wxString& property /*= PROP_BITMAP_PATH*/, |
| 380 |
const wxString& client_hint /*=""*/) |
| 381 |
{ |
| 382 |
if(bitmapinfo.empty()) { |
| 383 |
return; // This isn't an error; the field may well be empty |
| 384 |
} |
| 385 |
|
| 386 |
// wxFB stores the contents of e.g. a wxComboBox in the format: |
| 387 |
// <property name="bitmap">Load From Art Provider; wxART_GO_HOME; wxART_BUTTON</property> |
| 388 |
// or: <property name="bitmap">Load From File; /full/path/to/foo.png</property> *** Or vice versa! |
| 389 |
// or: <property name="bitmap">Load From Embedded File; /full/path/to/foo.png</property> |
| 390 |
// or: <property name="bitmap">Load From Resource; resourcename</property> |
| 391 |
// or: <property name="bitmap">Load From Icon Resource; resourcename; [-1; -1]</property> |
| 392 |
wxArrayString arr = |
| 393 |
wxCrafter::Split(bitmapinfo, ";"); // ToDo: when we can load an icon resource, deal with the ';' in [-1; -1]! |
| 394 |
if(bitmapinfo.Contains("Load From File")) { |
| 395 |
wxString bitmappath; |
| 396 |
if(arr.Item(0).Contains("Load From File")) { |
| 397 |
bitmappath = arr.Item(1); |
| 398 |
} else if(arr.Item(1).Contains("Load From File")) { |
| 399 |
bitmappath = arr.Item(0); |
| 400 |
} |
| 401 |
if(!bitmappath.empty()) { |
| 402 |
PropertyBase* prop = wrapper->GetProperty(property); // Either PROP_BITMAP_PATH or PROP_DISABLED_BITMAP_PATH |
| 403 |
if(prop) { |
| 404 |
wxFileName fn(bitmappath.Trim(false)); // wxFB will probably have supplied a relative path |
| 405 |
if(fn.Normalize()) { |
| 406 |
prop->SetValue(fn.GetFullPath()); |
| 407 |
} |
| 408 |
} |
| 409 |
} |
| 410 |
} |
| 411 |
|
| 412 |
else if(bitmapinfo.Contains("Load From Art Provider")) { |
| 413 |
// "Load From Art Provider; wxART_GO_HOME; wxART_BUTTON" |
| 414 |
// but we don't know for sure that the stock_client attribute will be present, or which order they'll be in. |
| 415 |
// So: |
| 416 |
wxString idstring, clientstring, sizeHint; |
| 417 |
for(size_t n = 0; n < arr.GetCount(); ++n) { |
| 418 |
if(arr.Item(n).Contains("wxART_")) { |
| 419 |
// Could be e.g. wxART_GO_HOME, or the client hint e.g. wxART_BUTTON. Abuse IsArtProviderBitmap() to |
| 420 |
// find out which |
| 421 |
wxString artId, clientId, fake = arr.Item(n) + ",foo"; |
| 422 |
if(wxCrafter::IsArtProviderBitmap(fake, artId, clientId, sizeHint)) { |
| 423 |
idstring = arr.Item(n); |
| 424 |
} else { |
| 425 |
clientstring = arr.Item(n); |
| 426 |
} |
| 427 |
} |
| 428 |
} |
| 429 |
if(!idstring.empty()) { |
| 430 |
PropertyBase* prop = wrapper->GetProperty(property); |
| 431 |
if(prop) { |
| 432 |
wxString artdata = idstring; |
| 433 |
if(clientstring.empty()) { |
| 434 |
clientstring = client_hint; // Use any hint we were given |
| 435 |
} |
| 436 |
if(!clientstring.empty()) { |
| 437 |
artdata << "," << clientstring; |
| 438 |
} |
| 439 |
prop->SetValue(artdata); |
| 440 |
} |
| 441 |
} |
| 442 |
} |
| 443 |
// More to follow when wxC does the other types |
| 444 |
} |
| 445 |
|
| 446 |
// static |
| 447 |
wxString ImportFromwxFB::GetEventtypeFromHandlerstub(const wxString& stub) |
| 448 |
{ |
| 449 |
// Despite the class name, this does XRC and wxSmith too. The 'duplicate' events are their way of labelling |
| 450 |
|
| 451 |
if(sm_eventMap.size() == 0) { |
| 452 |
// 'Common' eventtypes |
| 453 |
sm_eventMap.insert(std::pair<wxString, wxString>("OnKeyDown", "wxEVT_KEY_DOWN")); |
| 454 |
sm_eventMap.insert(std::pair<wxString, wxString>("EVT_KEY_DOWN", "wxEVT_KEY_DOWN")); |
| 455 |
sm_eventMap.insert(std::pair<wxString, wxString>("OnKeyUp", "wxEVT_KEY_UP")); |
| 456 |
sm_eventMap.insert(std::pair<wxString, wxString>("EVT_KEY_UP", "wxEVT_KEY_UP")); |
| 457 |
sm_eventMap.insert(std::pair<wxString, wxString>("OnChar", "wxEVT_CHAR")); |
| 458 |
sm_eventMap.insert(std::pair<wxString, wxString>("EVT_CHAR", "wxEVT_CHAR")); |
| 459 |
sm_eventMap.insert(std::pair<wxString, wxString>("OnLeftDown", "wxEVT_LEFT_DOWN")); |
| 460 |
sm_eventMap.insert(std::pair<wxString, wxString>("EVT_LEFT_DOWN", "wxEVT_LEFT_DOWN")); |
| 461 |
sm_eventMap.insert(std::pair<wxString, wxString>("OnLeftUp", "wxEVT_LEFT_UP")); |
| 462 |
sm_eventMap.insert(std::pair<wxString, wxString>("OnLeftDClick", "wxEVT_LEFT_DCLICK")); |
| 463 |
sm_eventMap.insert(std::pair<wxString, wxString>("EVT_LEFT_DCLICK", "wxEVT_LEFT_DCLICK")); |
| 464 |
sm_eventMap.insert(std::pair<wxString, wxString>("OnMiddleDown", "wxEVT_MIDDLE_DOWN")); |
| 465 |
sm_eventMap.insert(std::pair<wxString, wxString>("EVT_MIDDLE_DOWN", "wxEVT_MIDDLE_DOWN")); |
| 466 |
sm_eventMap.insert(std::pair<wxString, wxString>("OnMiddleUp", "wxEVT_MIDDLE_UP")); |
| 467 |
sm_eventMap.insert(std::pair<wxString, wxString>("OnMiddleDClick", "wxEVT_MIDDLE_DCLICK")); |
| 468 |
sm_eventMap.insert(std::pair<wxString, wxString>("EVT_MIDDLE_DCLICK", "wxEVT_MIDDLE_DCLICK")); |
| 469 |
sm_eventMap.insert(std::pair<wxString, wxString>("EVT_RIGHT_DOWN", "wxEVT_RIGHT_DOWN")); |
| 470 |
sm_eventMap.insert(std::pair<wxString, wxString>("OnRightDown", "wxEVT_RIGHT_DOWN")); |
| 471 |
sm_eventMap.insert(std::pair<wxString, wxString>("OnRightUp", "wxEVT_RIGHT_UP")); |
| 472 |
sm_eventMap.insert(std::pair<wxString, wxString>("OnRightDClick", "wxEVT_RIGHT_DCLICK")); |
| 473 |
sm_eventMap.insert(std::pair<wxString, wxString>("EVT_RIGHT_DCLICK", "wxEVT_RIGHT_DCLICK")); |
| 474 |
sm_eventMap.insert(std::pair<wxString, wxString>("OnMotion", "wxEVT_MOTION")); |
| 475 |
sm_eventMap.insert(std::pair<wxString, wxString>("EVT_MOTION", "wxEVT_MOTION")); |
| 476 |
sm_eventMap.insert(std::pair<wxString, wxString>("OnEnterWindow", "wxEVT_ENTER_WINDOW")); |
| 477 |
sm_eventMap.insert(std::pair<wxString, wxString>("EVT_ENTER_WINDOW", "wxEVT_ENTER_WINDOW")); |
| 478 |
sm_eventMap.insert(std::pair<wxString, wxString>("OnLeaveWindow", "wxEVT_LEAVE_WINDOW")); |
| 479 |
sm_eventMap.insert(std::pair<wxString, wxString>("EVT_LEAVE_WINDOW", "wxEVT_LEAVE_WINDOW")); |
| 480 |
sm_eventMap.insert(std::pair<wxString, wxString>("OnMouseWheel", "wxEVT_MOUSEWHEEL")); |
| 481 |
sm_eventMap.insert(std::pair<wxString, wxString>("EVT_MOUSEWHEEL", "wxEVT_MOUSEWHEEL")); |
| 482 |
sm_eventMap.insert(std::pair<wxString, wxString>("OnSetFocus", "wxEVT_SET_FOCUS")); |
| 483 |
sm_eventMap.insert(std::pair<wxString, wxString>("EVT_SET_FOCUS", "wxEVT_SET_FOCUS")); |
| 484 |
sm_eventMap.insert(std::pair<wxString, wxString>("OnKillFocus", "wxEVT_KILL_FOCUS")); |
| 485 |
sm_eventMap.insert(std::pair<wxString, wxString>("EVT_KILL_FOCUS", "wxEVT_KILL_FOCUS")); |
| 486 |
sm_eventMap.insert(std::pair<wxString, wxString>("OnPaint", "wxEVT_PAINT")); |
| 487 |
sm_eventMap.insert(std::pair<wxString, wxString>("EVT_PAINT", "wxEVT_PAINT")); |
| 488 |
sm_eventMap.insert(std::pair<wxString, wxString>("OnEraseBackground", "wxEVT_ERASE_BACKGROUND")); |
| 489 |
sm_eventMap.insert(std::pair<wxString, wxString>("EVT_ERASE_BACKGROUND", "wxEVT_ERASE_BACKGROUND")); |
| 490 |
sm_eventMap.insert(std::pair<wxString, wxString>("OnSize", "wxEVT_SIZE")); |
| 491 |
sm_eventMap.insert(std::pair<wxString, wxString>("EVT_SIZE", "wxEVT_SIZE")); |
| 492 |
sm_eventMap.insert(std::pair<wxString, wxString>("OnUpdateUI", "wxEVT_UPDATE_UI")); |
| 493 |
sm_eventMap.insert(std::pair<wxString, wxString>("EVT_UPDATE_UI", "wxEVT_UPDATE_UI")); |
| 494 |
|
| 495 |
// Control-specific eventtypes |
| 496 |
sm_eventMap.insert(std::pair<wxString, wxString>("OnActivate", "wxEVT_ACTIVATE")); |
| 497 |
sm_eventMap.insert(std::pair<wxString, wxString>("OnActivateApp", "wxEVT_ACTIVATE_APP")); |
| 498 |
/* sm_eventMap.insert(std::pair<wxString, wxString>("OnApplyButtonClick |
| 499 |
sm_eventMap.insert(std::pair<wxString, wxString>("OnAuiFindManager |
| 500 |
sm_eventMap.insert(std::pair<wxString, wxString>("OnAuiPaneButton |
| 501 |
sm_eventMap.insert(std::pair<wxString, wxString>("OnAuiPaneClose |
| 502 |
sm_eventMap.insert(std::pair<wxString, wxString>("OnAuiPaneMaximize |
| 503 |
sm_eventMap.insert(std::pair<wxString, wxString>("OnAuiPaneRestore |
| 504 |
sm_eventMap.insert(std::pair<wxString, wxString>("OnAuiRender*/ |
| 505 |
sm_eventMap.insert(std::pair<wxString, wxString>("OnButtonClick", "wxEVT_COMMAND_BUTTON_CLICKED")); |
| 506 |
sm_eventMap.insert(std::pair<wxString, wxString>("EVT_BUTTON", "wxEVT_COMMAND_BUTTON_CLICKED")); |
| 507 |
sm_eventMap.insert(std::pair<wxString, wxString>("OnCalendar", "wxEVT_CALENDAR_DOUBLECLICKED")); |
| 508 |
sm_eventMap.insert(std::pair<wxString, wxString>("EVT_CALENDAR_DOUBLECLICKED", "wxEVT_CALENDAR_DOUBLECLICKED")); |
| 509 |
sm_eventMap.insert(std::pair<wxString, wxString>("EVT_CALENDAR", "wxEVT_CALENDAR_DOUBLECLICKED")); |
| 510 |
sm_eventMap.insert(std::pair<wxString, wxString>("OnCalendarDay", "wxEVT_CALENDAR_DAY_CHANGED")); |
| 511 |
sm_eventMap.insert(std::pair<wxString, wxString>("EVT_CALENDAR_DAY_CHANGED", "wxEVT_CALENDAR_DAY_CHANGED")); |
| 512 |
sm_eventMap.insert(std::pair<wxString, wxString>("EVT_CALENDAR_DAY", "wxEVT_CALENDAR_DAY_CHANGED")); |
| 513 |
sm_eventMap.insert(std::pair<wxString, wxString>("OnCalendarMonth", "wxEVT_CALENDAR_MONTH_CHANGED")); |
| 514 |
sm_eventMap.insert(std::pair<wxString, wxString>("EVT_CALENDAR_MONTH_CHANGED", "wxEVT_CALENDAR_MONTH_CHANGED")); |
| 515 |
sm_eventMap.insert(std::pair<wxString, wxString>("EVT_CALENDAR_MONTH", "wxEVT_CALENDAR_MONTH_CHANGED")); |
| 516 |
sm_eventMap.insert(std::pair<wxString, wxString>("OnCalendarSelChanged", "wxEVT_CALENDAR_SEL_CHANGED")); |
| 517 |
sm_eventMap.insert(std::pair<wxString, wxString>("EVT_CALENDAR_SEL_CHANGED", "wxEVT_CALENDAR_SEL_CHANGED")); |
| 518 |
sm_eventMap.insert(std::pair<wxString, wxString>("OnCalendarWeekDayClicked", "wxEVT_CALENDAR_WEEKDAY_CLICKED")); |
| 519 |
sm_eventMap.insert( |
| 520 |
std::pair<wxString, wxString>("EVT_CALENDAR_WEEKDAY_CLICKED", "wxEVT_CALENDAR_WEEKDAY_CLICKED")); |
| 521 |
sm_eventMap.insert(std::pair<wxString, wxString>("OnCalendarYear", "wxEVT_CALENDAR_YEAR_CHANGED")); |
| 522 |
sm_eventMap.insert(std::pair<wxString, wxString>("EVT_CALENDAR_YEAR_CHANGED", "wxEVT_CALENDAR_YEAR_CHANGED")); |
| 523 |
sm_eventMap.insert(std::pair<wxString, wxString>("EVT_CALENDAR_YEAR", "wxEVT_CALENDAR_YEAR_CHANGED")); |
| 524 |
sm_eventMap.insert(std::pair<wxString, wxString>("OnCancelButtonClick", "wxEVT_COMMAND_BUTTON_CLICKED")); |
| 525 |
sm_eventMap.insert(std::pair<wxString, wxString>("OnCheckBox", "wxEVT_COMMAND_CHECKBOX_CLICKED")); |
| 526 |
sm_eventMap.insert(std::pair<wxString, wxString>("EVT_CHECKBOX", "wxEVT_COMMAND_CHECKBOX_CLICKED")); |
| 527 |
/* sm_eventMap.insert(std::pair<wxString, wxString>("OnCheckListBox |
| 528 |
sm_eventMap.insert(std::pair<wxString, wxString>("OnCheckListBoxDClick*/ |
| 529 |
sm_eventMap.insert( |
| 530 |
std::pair<wxString, wxString>("OnCheckListBoxToggled", "wxEVT_COMMAND_CHECKLISTBOX_TOGGLED")); |
| 531 |
sm_eventMap.insert(std::pair<wxString, wxString>("EVT_CHECKLISTBOX", "wxEVT_COMMAND_CHECKLISTBOX_TOGGLED")); |
| 532 |
sm_eventMap.insert(std::pair<wxString, wxString>("OnChoice", "wxEVT_COMMAND_CHOICE_SELECTED")); |
| 533 |
sm_eventMap.insert(std::pair<wxString, wxString>("EVT_CHOICE", "wxEVT_COMMAND_CHOICE_SELECTED")); |
| 534 |
sm_eventMap.insert( |
| 535 |
std::pair<wxString, wxString>("OnChoicebookPageChanged", "wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED")); |
| 536 |
sm_eventMap.insert( |
| 537 |
std::pair<wxString, wxString>("OnChoicebookPageChanging", "wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING")); |
| 538 |
sm_eventMap.insert(std::pair<wxString, wxString>("OnClose", "wxEVT_CLOSE_WINDOW")); |
| 539 |
sm_eventMap.insert(std::pair<wxString, wxString>("EVT_CLOSE", "wxEVT_CLOSE_WINDOW")); |
| 540 |
sm_eventMap.insert(std::pair<wxString, wxString>("OnColourChanged", "wxEVT_COMMAND_COLOURPICKER_CHANGED")); |
| 541 |
sm_eventMap.insert( |
| 542 |
std::pair<wxString, wxString>("EVT_COMMAND_COLOURPICKER_CHANGED", "wxEVT_COMMAND_COLOURPICKER_CHANGED")); |
| 543 |
sm_eventMap.insert( |
| 544 |
std::pair<wxString, wxString>("EVT_COLOURPICKER_CHANGED", "wxEVT_COMMAND_COLOURPICKER_CHANGED")); |
| 545 |
sm_eventMap.insert(std::pair<wxString, wxString>("OnFontChanged", "wxEVT_COMMAND_FONTPICKER_CHANGED")); |
| 546 |
sm_eventMap.insert(std::pair<wxString, wxString>("EVT_FONTPICKER_CHANGED", "wxEVT_COMMAND_FONTPICKER_CHANGED")); |
| 547 |
// sm_eventMap.insert(std::pair<wxString, wxString>("", "wxEVT_TIME_CHANGED")); wxTimePickerCtrl, which afaict |
| 548 |
// nobody implements atm |
| 549 |
sm_eventMap.insert(std::pair<wxString, wxString>("OnCombobox", "wxEVT_COMMAND_COMBOBOX_SELECTED")); |
| 550 |
sm_eventMap.insert(std::pair<wxString, wxString>("EVT_COMBOBOX", "wxEVT_COMMAND_COMBOBOX_SELECTED")); |
| 551 |
/* sm_eventMap.insert(std::pair<wxString, wxString>("OnCommandScroll*/ |
| 552 |
sm_eventMap.insert(std::pair<wxString, wxString>("OnCommandScrollBottom", "wxEVT_SCROLL_BOTTOM")); |
| 553 |
sm_eventMap.insert(std::pair<wxString, wxString>("OnCommandScrollChanged", "wxEVT_SCROLL_CHANGED")); |
| 554 |
sm_eventMap.insert(std::pair<wxString, wxString>("OnCommandScrollLineDown", "wxEVT_SCROLL_LINEDOWN")); |
| 555 |
sm_eventMap.insert(std::pair<wxString, wxString>("OnCommandScrollLineUp", "wxEVT_SCROLL_LINEUP")); |
| 556 |
sm_eventMap.insert(std::pair<wxString, wxString>("OnCommandScrollPageDown", "wxEVT_SCROLL_PAGEDOWN")); |
| 557 |
sm_eventMap.insert(std::pair<wxString, wxString>("OnCommandScrollPageUp", "wxEVT_SCROLL_PAGEUP")); |
| 558 |
sm_eventMap.insert(std::pair<wxString, wxString>("OnCommandScrollThumbRelease", "wxEVT_SCROLL_THUMBRELEASE")); |
| 559 |
sm_eventMap.insert(std::pair<wxString, wxString>("OnCommandScrollThumbTrack", "wxEVT_SCROLL_THUMBTRACK")); |
| 560 |
sm_eventMap.insert(std::pair<wxString, wxString>("OnCommandScrollTop", "wxEVT_SCROLL_TOP")); |
| 561 |
sm_eventMap.insert(std::pair<wxString, wxString>("OnContextHelpButtonClick", "wxEVT_COMMAND_BUTTON_CLICKED")); |
| 562 |
sm_eventMap.insert(std::pair<wxString, wxString>("OnDateChanged", "wxEVT_DATE_CHANGED")); |
| 563 |
sm_eventMap.insert(std::pair<wxString, wxString>("EVT_DATE_CHANGED", "wxEVT_DATE_CHANGED")); |
| 564 |
sm_eventMap.insert(std::pair<wxString, wxString>("OnGridCellChange", "wxEVT_GRID_CELL_CHANGE")); |
| 565 |
sm_eventMap.insert(std::pair<wxString, wxString>("EVT_GRID_CELL_CHANGE", "wxEVT_GRID_CELL_CHANGE")); |
| 566 |
sm_eventMap.insert(std::pair<wxString, wxString>("EVT_CMD_GRID_CELL_CHANGE", "wxEVT_GRID_CELL_CHANGE")); |
| 567 |
sm_eventMap.insert(std::pair<wxString, wxString>("OnGridCellLeftClick", "wxEVT_GRID_CELL_LEFT_CLICK")); |
| 568 |
sm_eventMap.insert(std::pair<wxString, wxString>("EVT_GRID_CELL_LEFT_CLICK", "wxEVT_GRID_CELL_LEFT_CLICK")); |
| 569 |
sm_eventMap.insert(std::pair<wxString, wxString>("EVT_CMD_GRID_CELL_LEFT_CLICK", "wxEVT_GRID_CELL_LEFT_CLICK")); |
| 570 |
sm_eventMap.insert(std::pair<wxString, wxString>("OnGridCellLeftDClick", "wxEVT_GRID_CELL_LEFT_DCLICK")); |
| 571 |
sm_eventMap.insert(std::pair<wxString, wxString>("EVT_GRID_CELL_LEFT_DCLICK", "wxEVT_GRID_CELL_LEFT_DCLICK")); |
| 572 |
sm_eventMap.insert( |
| 573 |
std::pair<wxString, wxString>("EVT_CMD_GRID_CELL_LEFT_DCLICK", "wxEVT_GRID_CELL_LEFT_DCLICK")); |
| 574 |
sm_eventMap.insert(std::pair<wxString, wxString>("OnGridCellRightClick", "wxEVT_GRID_CELL_RIGHT_CLICK")); |
| 575 |
sm_eventMap.insert(std::pair<wxString, wxString>("EVT_GRID_CELL_RIGHT_CLICK", "wxEVT_GRID_CELL_RIGHT_CLICK")); |
| 576 |
sm_eventMap.insert( |
| 577 |
std::pair<wxString, wxString>("EVT_CMD_GRID_CELL_RIGHT_CLICK", "wxEVT_GRID_CELL_RIGHT_CLICK")); |
| 578 |
sm_eventMap.insert(std::pair<wxString, wxString>("OnGridCellRightDClick", "wxEVT_GRID_CELL_RIGHT_DCLICK")); |
| 579 |
sm_eventMap.insert(std::pair<wxString, wxString>("EVT_GRID_CELL_RIGHT_DCLICK", "wxEVT_GRID_CELL_RIGHT_DCLICK")); |
| 580 |
sm_eventMap.insert( |
| 581 |
std::pair<wxString, wxString>("EVT_CMD_GRID_CELL_RIGHT_DCLICK", "wxEVT_GRID_CELL_RIGHT_DCLICK")); |
| 582 |
/* sm_eventMap.insert(std::pair<wxString, wxString>("OnGridCmdCellChange |
| 583 |
sm_eventMap.insert(std::pair<wxString, wxString>("OnGridCmdCellLeftClick |
| 584 |
sm_eventMap.insert(std::pair<wxString, wxString>("OnGridCmdCellLeftDClick |
| 585 |
sm_eventMap.insert(std::pair<wxString, wxString>("OnGridCmdCellRightClick |
| 586 |
sm_eventMap.insert(std::pair<wxString, wxString>("OnGridCmdCellRightDClick |
| 587 |
sm_eventMap.insert(std::pair<wxString, wxString>("OnGridCmdColSize*/ |
| 588 |
sm_eventMap.insert(std::pair<wxString, wxString>("OnGridCmdEditorCreated", "wxEVT_GRID_EDITOR_CREATED")); |
| 589 |
sm_eventMap.insert(std::pair<wxString, wxString>("EVT_GRID_EDITOR_CREATED", "wxEVT_GRID_EDITOR_CREATED")); |
| 590 |
sm_eventMap.insert(std::pair<wxString, wxString>("EVT_CMD_GRID_EDITOR_CREATED", "wxEVT_GRID_EDITOR_CREATED")); |
| 591 |
sm_eventMap.insert(std::pair<wxString, wxString>("OnGridCmdEditorHidden", "wxEVT_GRID_EDITOR_HIDDEN")); |
| 592 |
sm_eventMap.insert(std::pair<wxString, wxString>("EVT_GRID_EDITOR_HIDDEN", "wxEVT_GRID_EDITOR_HIDDEN")); |
| 593 |
sm_eventMap.insert(std::pair<wxString, wxString>("EVT_CMD_GRID_EDITOR_HIDDEN", "wxEVT_GRID_EDITOR_HIDDEN")); |
| 594 |
sm_eventMap.insert(std::pair<wxString, wxString>("OnGridCmdEditorShown", "wxEVT_GRID_EDITOR_SHOWN")); |
| 595 |
sm_eventMap.insert(std::pair<wxString, wxString>("EVT_GRID_EDITOR_SHOWN", "wxEVT_GRID_EDITOR_SHOWN")); |
| 596 |
sm_eventMap.insert(std::pair<wxString, wxString>("EVT_CMD_GRID_EDITOR_SHOWN", "wxEVT_GRID_EDITOR_SHOWN")); |
| 597 |
sm_eventMap.insert(std::pair<wxString, wxString>("OnGridCmdLabelLeftClick", "wxEVT_GRID_LABEL_LEFT_CLICK")); |
| 598 |
sm_eventMap.insert(std::pair<wxString, wxString>("EVT_GRID_LABEL_LEFT_CLICK", "wxEVT_GRID_LABEL_LEFT_CLICK")); |
| 599 |
sm_eventMap.insert( |
| 600 |
std::pair<wxString, wxString>("EVT_CMD_GRID_LABEL_LEFT_CLICK", "wxEVT_GRID_LABEL_LEFT_CLICK")); |
| 601 |
sm_eventMap.insert(std::pair<wxString, wxString>("OnGridCmdLabelLeftDClick", "wxEVT_GRID_LABEL_LEFT_DCLICK")); |
| 602 |
sm_eventMap.insert(std::pair<wxString, wxString>("EVT_GRID_LABEL_LEFT_DCLICK", "wxEVT_GRID_LABEL_LEFT_DCLICK")); |
| 603 |
sm_eventMap.insert( |
| 604 |
std::pair<wxString, wxString>("EVT_CMD_GRID_LABEL_LEFT_DCLICK", "wxEVT_GRID_LABEL_LEFT_DCLICK")); |
| 605 |
sm_eventMap.insert(std::pair<wxString, wxString>("OnGridCmdLabelRightClick", "wxEVT_GRID_LABEL_RIGHT_CLICK")); |
| 606 |
sm_eventMap.insert(std::pair<wxString, wxString>("EVT_GRID_LABEL_RIGHT_CLICK", "wxEVT_GRID_LABEL_RIGHT_CLICK")); |
| 607 |
sm_eventMap.insert( |
| 608 |
std::pair<wxString, wxString>("EVT_CMD_GRID_LABEL_RIGHT_CLICK", "wxEVT_GRID_LABEL_RIGHT_CLICK")); |
| 609 |
sm_eventMap.insert(std::pair<wxString, wxString>("OnGridCmdLabelRightDClick", "wxEVT_GRID_LABEL_RIGHT_DCLICK")); |
| 610 |
sm_eventMap.insert( |
| 611 |
std::pair<wxString, wxString>("EVT_GRID_LABEL_RIGHT_DCLICK", "wxEVT_GRID_LABEL_RIGHT_DCLICK")); |
| 612 |
sm_eventMap.insert( |
| 613 |
std::pair<wxString, wxString>("EVT_CMD_GRID_LABEL_RIGHT_DCLICK", "wxEVT_GRID_LABEL_RIGHT_DCLICK")); |
| 614 |
sm_eventMap.insert(std::pair<wxString, wxString>("OnGridCmdRangeSelect", "wxEVT_GRID_RANGE_SELECT")); |
| 615 |
sm_eventMap.insert(std::pair<wxString, wxString>("EVT_GRID_RANGE_SELECT", "wxEVT_GRID_RANGE_SELECT")); |
| 616 |
sm_eventMap.insert(std::pair<wxString, wxString>("EVT_CMD_GRID_RANGE_SELECT", "wxEVT_GRID_RANGE_SELECT")); |
| 617 |
sm_eventMap.insert(std::pair<wxString, wxString>("OnGridCmdRowSize", "wxEVT_GRID_ROW_SIZE")); |
| 618 |
sm_eventMap.insert(std::pair<wxString, wxString>("EVT_GRID_ROW_SIZE", "wxEVT_GRID_ROW_SIZE")); |
| 619 |
sm_eventMap.insert(std::pair<wxString, wxString>("EVT_CMD_GRID_ROW_SIZE", "wxEVT_GRID_ROW_SIZE")); |
| 620 |
sm_eventMap.insert(std::pair<wxString, wxString>("OnGridCmdSelectCell", "wxEVT_GRID_SELECT_CELL")); |
| 621 |
sm_eventMap.insert(std::pair<wxString, wxString>("EVT_GRID_SELECT_CELL", "wxEVT_GRID_SELECT_CELL")); |
| 622 |
sm_eventMap.insert(std::pair<wxString, wxString>("EVT_CMD_GRID_SELECT_CELL", "wxEVT_GRID_SELECT_CELL")); |
| 623 |
sm_eventMap.insert(std::pair<wxString, wxString>("OnGridColSize", "wxEVT_GRID_COL_SIZE")); |
| 624 |
sm_eventMap.insert(std::pair<wxString, wxString>("EVT_GRID_COL_SIZE", "wxEVT_GRID_COL_SIZE")); |
| 625 |
sm_eventMap.insert(std::pair<wxString, wxString>("EVT_CMD_GRID_COL_SIZE", "wxEVT_GRID_COL_SIZE")); |
| 626 |
/* sm_eventMap.insert(std::pair<wxString, wxString>("OnGridEditorCreated |
| 627 |
sm_eventMap.insert(std::pair<wxString, wxString>("OnGridEditorHidden |
| 628 |
sm_eventMap.insert(std::pair<wxString, wxString>("OnGridEditorShown |
| 629 |
sm_eventMap.insert(std::pair<wxString, wxString>("OnGridLabelLeftClick |
| 630 |
sm_eventMap.insert(std::pair<wxString, wxString>("OnGridLabelLeftDClick |
| 631 |
sm_eventMap.insert(std::pair<wxString, wxString>("OnGridLabelRightClick |
| 632 |
sm_eventMap.insert(std::pair<wxString, wxString>("OnGridLabelRightDClick |
| 633 |
sm_eventMap.insert(std::pair<wxString, wxString>("OnGridRangeSelect |
| 634 |
sm_eventMap.insert(std::pair<wxString, wxString>("OnGridRowSize |
| 635 |
sm_eventMap.insert(std::pair<wxString, wxString>("OnGridSelectCell*/ |
| 636 |
sm_eventMap.insert(std::pair<wxString, wxString>("OnHelpButtonClick", "wxEVT_COMMAND_BUTTON_CLICKED")); |
| 637 |
/* sm_eventMap.insert(std::pair<wxString, wxString>("OnHibernate*/ |
| 638 |
sm_eventMap.insert(std::pair<wxString, wxString>("OnHtmlCellClicked", "wxEVT_COMMAND_HTML_CELL_CLICKED")); |
| 639 |
sm_eventMap.insert(std::pair<wxString, wxString>("EVT_HTML_CELL_CLICKED", "wxEVT_COMMAND_HTML_CELL_CLICKED")); |
| 640 |
sm_eventMap.insert(std::pair<wxString, wxString>("OnHtmlCellHover", "wxEVT_COMMAND_HTML_CELL_HOVER")); |
| 641 |
sm_eventMap.insert(std::pair<wxString, wxString>("EVT_HTML_CELL_HOVER", "wxEVT_COMMAND_HTML_CELL_HOVER")); |
| 642 |
sm_eventMap.insert(std::pair<wxString, wxString>("OnHtmlLinkClicked", "wxEVT_COMMAND_HTML_LINK_CLICKED")); |
| 643 |
sm_eventMap.insert(std::pair<wxString, wxString>("EVT_HTML_LINK_CLICKED", "wxEVT_COMMAND_HTML_LINK_CLICKED")); |
| 644 |
/* sm_eventMap.insert(std::pair<wxString, wxString>("OnIconize |
| 645 |
sm_eventMap.insert(std::pair<wxString, wxString>("OnIdle*/ |
| 646 |
sm_eventMap.insert(std::pair<wxString, wxString>("OnInitDialog", "wxEVT_INIT_DIALOG")); |
| 647 |
sm_eventMap.insert(std::pair<wxString, wxString>("EVT_INIT_DIALOG", "wxEVT_INIT_DIALOG")); |
| 648 |
sm_eventMap.insert(std::pair<wxString, wxString>("OnListBeginDrag", "wxEVT_COMMAND_LIST_BEGIN_DRAG")); |
| 649 |
sm_eventMap.insert(std::pair<wxString, wxString>("EVT_LIST_BEGIN_DRAG", "wxEVT_COMMAND_LIST_BEGIN_DRAG")); |
| 650 |
sm_eventMap.insert( |
| 651 |
std::pair<wxString, wxString>("OnListBeginLabelEdit", "wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT")); |
| 652 |
sm_eventMap.insert( |
| 653 |
std::pair<wxString, wxString>("EVT_LIST_BEGIN_LABEL_EDIT", "wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT")); |
| 654 |
sm_eventMap.insert(std::pair<wxString, wxString>("OnListBeginRDrag", "wxEVT_COMMAND_LIST_BEGIN_RDRAG")); |
| 655 |
sm_eventMap.insert(std::pair<wxString, wxString>("EVT_LIST_BEGIN_RDRAG", "wxEVT_COMMAND_LIST_BEGIN_RDRAG")); |
| 656 |
sm_eventMap.insert( |
| 657 |
std::pair<wxString, wxString>("OnListbookPageChanged", "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED")); |
| 658 |
sm_eventMap.insert( |
| 659 |
std::pair<wxString, wxString>("EVT_LISTBOOK_PAGE_CHANGED", "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED")); |
| 660 |
sm_eventMap.insert( |
| 661 |
std::pair<wxString, wxString>("OnListbookPageChanging", "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING")); |
| 662 |
sm_eventMap.insert( |
| 663 |
std::pair<wxString, wxString>("EVT_LISTBOOK_PAGE_CHANGING", "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING")); |
| 664 |
sm_eventMap.insert(std::pair<wxString, wxString>("OnListBox", "wxEVT_COMMAND_LISTBOX_SELECTED")); |
| 665 |
sm_eventMap.insert(std::pair<wxString, wxString>("EVT_LISTBOX", "wxEVT_COMMAND_LISTBOX_SELECTED")); |
| 666 |
sm_eventMap.insert(std::pair<wxString, wxString>("OnListBoxDClick", "wxEVT_COMMAND_LISTBOX_DOUBLECLICKED")); |
| 667 |
sm_eventMap.insert(std::pair<wxString, wxString>("EVT_LISTBOX_DCLICK", "wxEVT_COMMAND_LISTBOX_DOUBLECLICKED")); |
| 668 |
/* sm_eventMap.insert(std::pair<wxString, wxString>("OnListCacheHint |
| 669 |
sm_eventMap.insert(std::pair<wxString, wxString>("EVT_LIST_CACHE_HINT*/ |
| 670 |
sm_eventMap.insert(std::pair<wxString, wxString>("OnListColBeginDrag", "wxEVT_COMMAND_LIST_COL_BEGIN_DRAG")); |
| 671 |
sm_eventMap.insert( |
| 672 |
std::pair<wxString, wxString>("EVT_LIST_COL_BEGIN_DRAG", "wxEVT_COMMAND_LIST_COL_BEGIN_DRAG")); |
| 673 |
sm_eventMap.insert(std::pair<wxString, wxString>("OnListColClick", "wxEVT_COMMAND_LIST_COL_CLICK")); |
| 674 |
sm_eventMap.insert(std::pair<wxString, wxString>("EVT_LIST_COL_CLICK", "wxEVT_COMMAND_LIST_COL_CLICK")); |
| 675 |
sm_eventMap.insert(std::pair<wxString, wxString>("OnListColDragging", "wxEVT_COMMAND_LIST_COL_DRAGGING")); |
| 676 |
sm_eventMap.insert(std::pair<wxString, wxString>("EVT_LIST_COL_DRAGGING", "wxEVT_COMMAND_LIST_COL_DRAGGING")); |
| 677 |
sm_eventMap.insert(std::pair<wxString, wxString>("OnListColEndDrag", "wxEVT_COMMAND_LIST_COL_END_DRAG")); |
| 678 |
sm_eventMap.insert(std::pair<wxString, wxString>("EVT_LIST_COL_END_DRAG", "wxEVT_COMMAND_LIST_COL_END_DRAG")); |
| 679 |
sm_eventMap.insert(std::pair<wxString, wxString>("OnListColRightClick", "wxEVT_COMMAND_LIST_COL_RIGHT_CLICK")); |
| 680 |
sm_eventMap.insert( |
| 681 |
std::pair<wxString, wxString>("EVT_LIST_COL_RIGHT_CLICK", "wxEVT_COMMAND_LIST_COL_RIGHT_CLICK")); |
| 682 |
sm_eventMap.insert( |
| 683 |
std::pair<wxString, wxString>("OnListDeleteAllItems", "wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS")); |
| 684 |
sm_eventMap.insert( |
| 685 |
std::pair<wxString, wxString>("EVT_LIST_DELETE_ALL_ITEMS", "wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS")); |
| 686 |
sm_eventMap.insert(std::pair<wxString, wxString>("OnListDeleteItem", "wxEVT_COMMAND_LIST_DELETE_ITEM")); |
| 687 |
sm_eventMap.insert(std::pair<wxString, wxString>("EVT_LIST_DELETE_ITEM", "wxEVT_COMMAND_LIST_DELETE_ITEM")); |
| 688 |
sm_eventMap.insert(std::pair<wxString, wxString>("OnListEndLabelEdit", "wxEVT_COMMAND_LIST_END_LABEL_EDIT")); |
| 689 |
sm_eventMap.insert( |
| 690 |
std::pair<wxString, wxString>("EVT_LIST_END_LABEL_EDIT", "wxEVT_COMMAND_LIST_END_LABEL_EDIT")); |
| 691 |
sm_eventMap.insert(std::pair<wxString, wxString>("OnListInsertItem", "wxEVT_COMMAND_LIST_INSERT_ITEM")); |
| 692 |
sm_eventMap.insert(std::pair<wxString, wxString>("EVT_LIST_INSERT_ITEM", "wxEVT_COMMAND_LIST_INSERT_ITEM")); |
| 693 |
sm_eventMap.insert(std::pair<wxString, wxString>("OnListItemActivated", "wxEVT_COMMAND_LIST_ITEM_ACTIVATED")); |
| 694 |
sm_eventMap.insert( |
| 695 |
std::pair<wxString, wxString>("EVT_LIST_ITEM_ACTIVATED", "wxEVT_COMMAND_LIST_ITEM_ACTIVATED")); |
| 696 |
sm_eventMap.insert(std::pair<wxString, wxString>("OnListItemDeselected", "wxEVT_COMMAND_LIST_ITEM_DESELECTED")); |
| 697 |
sm_eventMap.insert( |
| 698 |
std::pair<wxString, wxString>("EVT_LIST_ITEM_DESELECTED", "wxEVT_COMMAND_LIST_ITEM_DESELECTED")); |
| 699 |
sm_eventMap.insert(std::pair<wxString, wxString>("OnListItemFocused", "wxEVT_COMMAND_LIST_ITEM_FOCUSED")); |
| 700 |
sm_eventMap.insert(std::pair<wxString, wxString>("EVT_LIST_ITEM_FOCUSED", "wxEVT_COMMAND_LIST_ITEM_FOCUSED")); |
| 701 |
sm_eventMap.insert( |
| 702 |
std::pair<wxString, wxString>("OnListItemMiddleClick", "wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK")); |
| 703 |
sm_eventMap.insert( |
| 704 |
std::pair<wxString, wxString>("EVT_LIST_ITEM_MIDDLE_CLICK", "wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK")); |
| 705 |
sm_eventMap.insert( |
| 706 |
std::pair<wxString, wxString>("OnListItemRightClick", "wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK")); |
| 707 |
sm_eventMap.insert( |
| 708 |
std::pair<wxString, wxString>("EVT_LIST_ITEM_RIGHT_CLICK", "wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK")); |
| 709 |
sm_eventMap.insert(std::pair<wxString, wxString>("OnListItemSelected", "wxEVT_COMMAND_LIST_ITEM_SELECTED")); |
| 710 |
sm_eventMap.insert(std::pair<wxString, wxString>("EVT_LIST_ITEM_SELECTED", "wxEVT_COMMAND_LIST_ITEM_SELECTED")); |
| 711 |
sm_eventMap.insert(std::pair<wxString, wxString>("OnListKeyDown", "wxEVT_COMMAND_LIST_KEY_DOWN")); |
| 712 |
sm_eventMap.insert(std::pair<wxString, wxString>("EVT_LIST_KEY_DOWN", "wxEVT_COMMAND_LIST_KEY_DOWN")); |
| 713 |
sm_eventMap.insert(std::pair<wxString, wxString>("OnMenuSelection", "wxEVT_MENU")); |
| 714 |
sm_eventMap.insert(std::pair<wxString, wxString>("EVT_MENU", "wxEVT_MENU")); |
| 715 |
sm_eventMap.insert(std::pair<wxString, wxString>("OnNoButtonClick", "wxEVT_COMMAND_BUTTON_CLICKED")); |
| 716 |
sm_eventMap.insert( |
| 717 |
std::pair<wxString, wxString>("OnNotebookPageChanged", "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED")); |
| 718 |
sm_eventMap.insert( |
| 719 |
std::pair<wxString, wxString>("EVT_NOTEBOOK_PAGE_CHANGED", "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED")); |
| 720 |
sm_eventMap.insert( |
| 721 |
std::pair<wxString, wxString>("OnNotebookPageChanging", "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING")); |
| 722 |
sm_eventMap.insert( |
| 723 |
std::pair<wxString, wxString>("EVT_NOTEBOOK_PAGE_CHANGING", "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING")); |
| 724 |
sm_eventMap.insert(std::pair<wxString, wxString>("OnOKButtonClick", "wxEVT_COMMAND_BUTTON_CLICKED")); |
| 725 |
sm_eventMap.insert(std::pair<wxString, wxString>("OnRadioBox", "wxEVT_COMMAND_RADIOBOX_SELECTED")); |
| 726 |
sm_eventMap.insert(std::pair<wxString, wxString>("EVT_RADIOBOX", "wxEVT_COMMAND_RADIOBOX_SELECTED")); |
| 727 |
sm_eventMap.insert(std::pair<wxString, wxString>("OnRadioButton", "wxEVT_COMMAND_RADIOBUTTON_SELECTED")); |
| 728 |
sm_eventMap.insert(std::pair<wxString, wxString>("EVT_RADIOBUTTON", "wxEVT_COMMAND_RADIOBUTTON_SELECTED")); |
| 729 |
sm_eventMap.insert(std::pair<wxString, wxString>("OnSaveButtonClick", "wxEVT_COMMAND_BUTTON_CLICKED")); |
| 730 |
/* sm_eventMap.insert(std::pair<wxString, wxString>("OnScroll |
| 731 |
sm_eventMap.insert(std::pair<wxString, wxString>("EVT_SCROLL |
| 732 |
sm_eventMap.insert(std::pair<wxString, wxString>("OnScrollBottom |
| 733 |
sm_eventMap.insert(std::pair<wxString, wxString>("EVT_SCROLL_BOTTOM |
| 734 |
sm_eventMap.insert(std::pair<wxString, wxString>("OnScrollChanged |
| 735 |
sm_eventMap.insert(std::pair<wxString, wxString>("EVT_SCROLL_CHANGED |
| 736 |
sm_eventMap.insert(std::pair<wxString, wxString>("OnScrollLineDown |
| 737 |
sm_eventMap.insert(std::pair<wxString, wxString>("EVT_SCROLL_LINEDOWN |
| 738 |
sm_eventMap.insert(std::pair<wxString, wxString>("OnScrollLineUp |
| 739 |
sm_eventMap.insert(std::pair<wxString, wxString>("EVT_SCROLL_LINEUP |
| 740 |
sm_eventMap.insert(std::pair<wxString, wxString>("OnScrollPageDown |
| 741 |
sm_eventMap.insert(std::pair<wxString, wxString>("EVT_SCROLL_PAGEDOWN |
| 742 |
sm_eventMap.insert(std::pair<wxString, wxString>("OnScrollPageUp |
| 743 |
sm_eventMap.insert(std::pair<wxString, wxString>("EVT_SCROLL_PAGEUP |
| 744 |
sm_eventMap.insert(std::pair<wxString, wxString>("OnScrollThumbRelease |
| 745 |
sm_eventMap.insert(std::pair<wxString, wxString>("EVT_SCROLL_THUMBRELEASE |
| 746 |
sm_eventMap.insert(std::pair<wxString, wxString>("OnScrollThumbTrack |
| 747 |
sm_eventMap.insert(std::pair<wxString, wxString>("EVT_SCROLL_THUMBTRACK |
| 748 |
sm_eventMap.insert(std::pair<wxString, wxString>("OnScrollTop |
| 749 |
sm_eventMap.insert(std::pair<wxString, wxString>("EVT_SCROLL_TOP*/ |
| 750 |
sm_eventMap.insert(std::pair<wxString, wxString>("OnSpin", "wxEVT_SPIN")); |
| 751 |
sm_eventMap.insert(std::pair<wxString, wxString>("EVT_SPIN", "wxEVT_SPIN")); |
| 752 |
sm_eventMap.insert(std::pair<wxString, wxString>("OnSpinCtrl", "wxEVT_COMMAND_SPINCTRL_UPDATED")); |
| 753 |
sm_eventMap.insert(std::pair<wxString, wxString>("EVT_SPINCTRL", "wxEVT_COMMAND_SPINCTRL_UPDATED")); |
| 754 |
sm_eventMap.insert(std::pair<wxString, wxString>("OnSpinCtrlText", "wxEVT_COMMAND_TEXT_UPDATED")); |
| 755 |
sm_eventMap.insert(std::pair<wxString, wxString>("OnSpinDown", "wxEVT_SPIN_DOWN")); |
| 756 |
sm_eventMap.insert(std::pair<wxString, wxString>("EVT_SPIN_DOWN", "wxEVT_SPIN_DOWN")); |
| 757 |
sm_eventMap.insert(std::pair<wxString, wxString>("OnSpinUp", "wxEVT_SPIN_UP")); |
| 758 |
sm_eventMap.insert(std::pair<wxString, wxString>("EVT_SPIN_UP", "wxEVT_SPIN_UP")); |
| 759 |
sm_eventMap.insert(std::pair<wxString, wxString>("OnSplitterDClick", "wxEVT_COMMAND_SPLITTER_DOUBLECLICKED")); |
| 760 |
sm_eventMap.insert( |
| 761 |
std::pair<wxString, wxString>("EVT_SPLITTER_DCLICK", "wxEVT_COMMAND_SPLITTER_DOUBLECLICKED")); |
| 762 |
sm_eventMap.insert( |
| 763 |
std::pair<wxString, wxString>("OnSplitterSashPosChanged", "wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED")); |
| 764 |
sm_eventMap.insert( |
| 765 |
std::pair<wxString, wxString>("EVT_SPLITTER_SASH_POS_CHANGED", "wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED")); |
| 766 |
sm_eventMap.insert( |
| 767 |
std::pair<wxString, wxString>("OnSplitterSashPosChanging", "wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING")); |
| 768 |
sm_eventMap.insert(std::pair<wxString, wxString>("EVT_SPLITTER_SASH_POS_CHANGING", |
| 769 |
"wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING")); |
| 770 |
sm_eventMap.insert(std::pair<wxString, wxString>("OnSplitterUnsplit", "wxEVT_COMMAND_SPLITTER_UNSPLIT")); |
| 771 |
sm_eventMap.insert(std::pair<wxString, wxString>("EVT_SPLITTER_UNSPLIT", "wxEVT_COMMAND_SPLITTER_UNSPLIT")); |
| 772 |
sm_eventMap.insert(std::pair<wxString, wxString>("OnText", "wxEVT_COMMAND_TEXT_UPDATED")); |
| 773 |
sm_eventMap.insert(std::pair<wxString, wxString>("EVT_TEXT", "wxEVT_COMMAND_TEXT_UPDATED")); |
| 774 |
sm_eventMap.insert(std::pair<wxString, wxString>("OnTextEnter", "wxEVT_COMMAND_TEXT_ENTER")); |
| 775 |
sm_eventMap.insert(std::pair<wxString, wxString>("EVT_TEXT_ENTER", "wxEVT_COMMAND_TEXT_ENTER")); |
| 776 |
sm_eventMap.insert(std::pair<wxString, wxString>("OnTextMaxLen", "wxEVT_COMMAND_TEXT_MAXLEN")); |
| 777 |
sm_eventMap.insert(std::pair<wxString, wxString>("EVT_TEXT_MAXLEN", "wxEVT_COMMAND_TEXT_MAXLEN")); |
| 778 |
sm_eventMap.insert(std::pair<wxString, wxString>("OnTextURL", "wxEVT_COMMAND_TEXT_URL")); |
| 779 |
sm_eventMap.insert(std::pair<wxString, wxString>("EVT_TEXT_URL", "wxEVT_COMMAND_TEXT_URL")); |
| 780 |
sm_eventMap.insert(std::pair<wxString, wxString>("OnToggleButton", "wxEVT_COMMAND_TOGGLEBUTTON_CLICKED")); |
| 781 |
sm_eventMap.insert(std::pair<wxString, wxString>("EVT_TOGGLEBUTTON", "wxEVT_COMMAND_TOGGLEBUTTON_CLICKED")); |
| 782 |
sm_eventMap.insert(std::pair<wxString, wxString>("OnToolClicked", "wxEVT_COMMAND_TOOL_CLICKED")); |
| 783 |
sm_eventMap.insert(std::pair<wxString, wxString>("EVT_TOOL", "wxEVT_COMMAND_TOOL_CLICKED")); |
| 784 |
/* sm_eventMap.insert(std::pair<wxString, wxString>("OnToolEnter |
| 785 |
sm_eventMap.insert(std::pair<wxString, wxString>("OnToolRClicked*/ |
| 786 |
sm_eventMap.insert(std::pair<wxString, wxString>("OnTreeBeginDrag", "wxEVT_COMMAND_TREE_BEGIN_DRAG")); |
| 787 |
sm_eventMap.insert(std::pair<wxString, wxString>("EVT_TREE_BEGIN_DRAG", "wxEVT_COMMAND_TREE_BEGIN_DRAG")); |
| 788 |
sm_eventMap.insert( |
| 789 |
std::pair<wxString, wxString>("OnTreeBeginLabelEdit", "wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT")); |
| 790 |
sm_eventMap.insert( |
| 791 |
std::pair<wxString, wxString>("EVT_TREE_BEGIN_LABEL_EDIT", "wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT")); |
| 792 |
sm_eventMap.insert(std::pair<wxString, wxString>("OnTreeBeginRDrag", "wxEVT_COMMAND_TREE_BEGIN_RDRAG")); |
| 793 |
sm_eventMap.insert(std::pair<wxString, wxString>("EVT_TREE_BEGIN_RDRAG", "wxEVT_COMMAND_TREE_BEGIN_RDRAG")); |
| 794 |
sm_eventMap.insert(std::pair<wxString, wxString>("OnTreeDeleteItem", "wxEVT_COMMAND_TREE_DELETE_ITEM")); |
| 795 |
sm_eventMap.insert(std::pair<wxString, wxString>("EVT_TREE_DELETE_ITEM", "wxEVT_COMMAND_TREE_DELETE_ITEM")); |
| 796 |
sm_eventMap.insert(std::pair<wxString, wxString>("OnTreeEndDrag", "wxEVT_COMMAND_TREE_END_DRAG")); |
| 797 |
sm_eventMap.insert(std::pair<wxString, wxString>("EVT_TREE_END_DRAG", "wxEVT_COMMAND_TREE_END_DRAG")); |
| 798 |
sm_eventMap.insert(std::pair<wxString, wxString>("OnTreeEndLabelEdit", "wxEVT_COMMAND_TREE_END_LABEL_EDIT")); |
| 799 |
sm_eventMap.insert( |
| 800 |
std::pair<wxString, wxString>("EVT_TREE_END_LABEL_EDIT", "wxEVT_COMMAND_TREE_END_LABEL_EDIT")); |
| 801 |
/* sm_eventMap.insert(std::pair<wxString, wxString>("OnTreeGetInfo |
| 802 |
sm_eventMap.insert(std::pair<wxString, wxString>("EVT_TREE_GET_INFO*/ |
| 803 |
sm_eventMap.insert(std::pair<wxString, wxString>("OnTreeItemActivated", "wxEVT_COMMAND_TREE_ITEM_ACTIVATED")); |
| 804 |
sm_eventMap.insert( |
| 805 |
std::pair<wxString, wxString>("EVT_TREE_ITEM_ACTIVATED", "wxEVT_COMMAND_TREE_ITEM_ACTIVATED")); |
| 806 |
sm_eventMap.insert(std::pair<wxString, wxString>("OnTreeItemCollapsed", "wxEVT_COMMAND_TREE_ITEM_COLLAPSED")); |
| 807 |
sm_eventMap.insert( |
| 808 |
std::pair<wxString, wxString>("EVT_TREE_ITEM_COLLAPSED", "wxEVT_COMMAND_TREE_ITEM_COLLAPSED")); |
| 809 |
sm_eventMap.insert(std::pair<wxString, wxString>("OnTreeItemCollapsing", "wxEVT_COMMAND_TREE_ITEM_COLLAPSING")); |
| 810 |
sm_eventMap.insert( |
| 811 |
std::pair<wxString, wxString>("EVT_TREE_ITEM_COLLAPSING", "wxEVT_COMMAND_TREE_ITEM_COLLAPSING")); |
| 812 |
sm_eventMap.insert(std::pair<wxString, wxString>("OnTreeItemExpanded", "wxEVT_COMMAND_TREE_ITEM_EXPANDED")); |
| 813 |
sm_eventMap.insert(std::pair<wxString, wxString>("EVT_TREE_ITEM_EXPANDED", "wxEVT_COMMAND_TREE_ITEM_EXPANDED")); |
| 814 |
sm_eventMap.insert(std::pair<wxString, wxString>("OnTreeItemExpanding", "wxEVT_COMMAND_TREE_ITEM_EXPANDING")); |
| 815 |
sm_eventMap.insert( |
| 816 |
std::pair<wxString, wxString>("EVT_TREE_ITEM_EXPANDING", "wxEVT_COMMAND_TREE_ITEM_EXPANDING")); |
| 817 |
sm_eventMap.insert(std::pair<wxString, wxString>("OnTreeItemGetTooltip", "wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP")); |
| 818 |
sm_eventMap.insert( |
| 819 |
std::pair<wxString, wxString>("EVT_TREE_ITEM_GETTOOLTIP", "wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP")); |
| 820 |
sm_eventMap.insert(std::pair<wxString, wxString>("OnTreeItemMenu", "wxEVT_COMMAND_TREE_ITEM_MENU")); |
| 821 |
sm_eventMap.insert(std::pair<wxString, wxString>("EVT_TREE_ITEM_MENU", "wxEVT_COMMAND_TREE_ITEM_MENU")); |
| 822 |
sm_eventMap.insert( |
| 823 |
std::pair<wxString, wxString>("OnTreeItemMiddleClick", "wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK")); |
| 824 |
sm_eventMap.insert( |
| 825 |
std::pair<wxString, wxString>("EVT_TREE_ITEM_MIDDLE_CLICK", "wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK")); |
| 826 |
sm_eventMap.insert( |
| 827 |
std::pair<wxString, wxString>("OnTreeItemRightClick", "wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK")); |
| 828 |
sm_eventMap.insert( |
| 829 |
std::pair<wxString, wxString>("EVT_TREE_ITEM_RIGHT_CLICK", "wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK")); |
| 830 |
sm_eventMap.insert(std::pair<wxString, wxString>("OnTreeKeyDown", "wxEVT_COMMAND_TREE_KEY_DOWN")); |
| 831 |
sm_eventMap.insert(std::pair<wxString, wxString>("EVT_TREE_KEY_DOWN", "wxEVT_COMMAND_TREE_KEY_DOWN")); |
| 832 |
sm_eventMap.insert(std::pair<wxString, wxString>("OnTreeSelChanged", "wxEVT_COMMAND_TREE_SEL_CHANGED")); |
| 833 |
sm_eventMap.insert(std::pair<wxString, wxString>("EVT_TREE_SEL_CHANGED", "wxEVT_COMMAND_TREE_SEL_CHANGED")); |
| 834 |
sm_eventMap.insert(std::pair<wxString, wxString>("OnTreeSelChanging", "wxEVT_COMMAND_TREE_SEL_CHANGING")); |
| 835 |
sm_eventMap.insert(std::pair<wxString, wxString>("EVT_TREE_SEL_CHANGING", "wxEVT_COMMAND_TREE_SEL_CHANGING")); |
| 836 |
/* sm_eventMap.insert(std::pair<wxString, wxString>("OnTreeSetInfo |
| 837 |
sm_eventMap.insert(std::pair<wxString, wxString>("OnTreeSetInfo*/ |
| 838 |
sm_eventMap.insert( |
| 839 |
std::pair<wxString, wxString>("OnTreeStateImageClick", "wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK")); |
| 840 |
sm_eventMap.insert( |
| 841 |
std::pair<wxString, wxString>("EVT_TREE_STATE_IMAGE_CLICK", "wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK")); |
| 842 |
sm_eventMap.insert(std::pair<wxString, wxString>("EVT_TREE_SET_INFO", "wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK")); |
| 843 |
sm_eventMap.insert(std::pair<wxString, wxString>("OnYesButtonClick", "wxEVT_COMMAND_BUTTON_CLICKED")); |
| 844 |
sm_eventMap.insert(std::pair<wxString, wxString>("OnHyperlink", "wxEVT_COMMAND_HYPERLINK")); |
| 845 |
sm_eventMap.insert(std::pair<wxString, wxString>("EVT_HYPERLINK", "wxEVT_COMMAND_HYPERLINK")); |
| 846 |
} |
| 847 |
|
| 848 |
std::map<wxString, wxString>::iterator iter = sm_eventMap.find(stub); |
| 849 |
|
| 850 |
return (iter != sm_eventMap.end()) ? iter->second : ""; |
| 851 |
} |