summaryrefslogtreecommitdiff
path: root/rbutil/rbutilCtrls.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'rbutil/rbutilCtrls.cpp')
-rw-r--r--rbutil/rbutilCtrls.cpp56
1 files changed, 28 insertions, 28 deletions
diff --git a/rbutil/rbutilCtrls.cpp b/rbutil/rbutilCtrls.cpp
index 007bd6e17d..aef37fd0d3 100644
--- a/rbutil/rbutilCtrls.cpp
+++ b/rbutil/rbutilCtrls.cpp
@@ -52,17 +52,17 @@ wxSize ImageCtrl::DoGetBestSize() const
52//// Theme Control 52//// Theme Control
53////////////////////////////////////////////// 53//////////////////////////////////////////////
54 54
55BEGIN_EVENT_TABLE(ThemeCtrl, wxControl) 55BEGIN_EVENT_TABLE(ThemeCtrl, wxPanel)
56 EVT_LISTBOX(ID_THEME_LST, ThemeCtrl::OnThemesLst) 56 EVT_LISTBOX(ID_THEME_LST, ThemeCtrl::OnThemesLst)
57END_EVENT_TABLE() 57END_EVENT_TABLE()
58 58
59IMPLEMENT_DYNAMIC_CLASS(ThemeCtrl, wxControl) 59IMPLEMENT_DYNAMIC_CLASS(ThemeCtrl, wxPanel)
60 60
61bool ThemeCtrl::Create(wxWindow* parent, wxWindowID id, 61bool ThemeCtrl::Create(wxWindow* parent, wxWindowID id,
62 const wxPoint& pos, const wxSize& size, long style, 62 const wxPoint& pos, const wxSize& size, long style,
63 const wxValidator& validator) 63 const wxString title )
64{ 64{
65 if (!wxControl::Create(parent, id, pos, size, style, validator)) return false; 65 if (!wxPanel::Create(parent, id, pos, size, style, title)) return false;
66 66
67 CreateControls(); 67 CreateControls();
68 68
@@ -291,17 +291,17 @@ void ThemeCtrl::OnThemesLst(wxCommandEvent& event)
291//// Ok Cancel Control 291//// Ok Cancel Control
292////////////////////////////////////////////// 292//////////////////////////////////////////////
293 293
294BEGIN_EVENT_TABLE(OkCancelCtrl, wxControl) 294BEGIN_EVENT_TABLE(OkCancelCtrl, wxPanel)
295 295
296END_EVENT_TABLE() 296END_EVENT_TABLE()
297 297
298IMPLEMENT_DYNAMIC_CLASS(OkCancelCtrl, wxControl) 298IMPLEMENT_DYNAMIC_CLASS(OkCancelCtrl, wxPanel)
299 299
300bool OkCancelCtrl::Create(wxWindow* parent, wxWindowID id, 300bool OkCancelCtrl::Create(wxWindow* parent, wxWindowID id,
301 const wxPoint& pos, const wxSize& size, long style, 301 const wxPoint& pos, const wxSize& size, long style,
302 const wxValidator& validator) 302 const wxString title)
303{ 303{
304 if (!wxControl::Create(parent, id, pos, size, style, validator)) return false; 304 if (!wxPanel::Create(parent, id, pos, size, style, title)) return false;
305 305
306 CreateControls(); 306 CreateControls();
307 GetSizer()->Fit(this); 307 GetSizer()->Fit(this);
@@ -333,23 +333,23 @@ void OkCancelCtrl::CreateControls()
333//// Device Selector 333//// Device Selector
334////////////////////////////////////////////// 334//////////////////////////////////////////////
335 335
336BEGIN_EVENT_TABLE(DeviceSelectorCtrl, wxControl) 336BEGIN_EVENT_TABLE(DeviceSelectorCtrl, wxPanel)
337 EVT_BUTTON(ID_AUTODETECT_BTN, DeviceSelectorCtrl::OnAutoDetect) 337 EVT_BUTTON(ID_AUTODETECT_BTN, DeviceSelectorCtrl::OnAutoDetect)
338 EVT_COMBOBOX(ID_DEVICE_CBX,DeviceSelectorCtrl::OnComboBox) 338 EVT_COMBOBOX(ID_DEVICE_CBX,DeviceSelectorCtrl::OnComboBox)
339END_EVENT_TABLE() 339END_EVENT_TABLE()
340 340
341IMPLEMENT_DYNAMIC_CLASS(DeviceSelectorCtrl, wxControl) 341IMPLEMENT_DYNAMIC_CLASS(DeviceSelectorCtrl, wxPanel)
342 342
343bool DeviceSelectorCtrl::Create(wxWindow* parent, wxWindowID id, 343bool DeviceSelectorCtrl::Create(wxWindow* parent, wxWindowID id,
344 const wxPoint& pos, const wxSize& size, long style, 344 const wxPoint& pos, const wxSize& size, long style,
345 const wxValidator& validator) 345 const wxString title)
346{ 346{
347 if (!wxControl::Create(parent, id, pos, size, style, validator)) return false; 347 if (!wxPanel::Create(parent, id, pos, size, style, title)) return false;
348 348
349 CreateControls(); 349 CreateControls();
350 GetSizer()->Fit(this); 350 GetSizer()->Fit(this);
351 GetSizer()->SetSizeHints(this); 351 GetSizer()->SetSizeHints(this);
352return true; 352 return true;
353} 353}
354 354
355void DeviceSelectorCtrl::CreateControls() 355void DeviceSelectorCtrl::CreateControls()
@@ -358,8 +358,7 @@ void DeviceSelectorCtrl::CreateControls()
358 wxBoxSizer* topSizer = new wxBoxSizer(wxVERTICAL); 358 wxBoxSizer* topSizer = new wxBoxSizer(wxVERTICAL);
359 this->SetSizer(topSizer); 359 this->SetSizer(topSizer);
360 360
361 //Device Selection 361 //Device Selection
362
363 wxBoxSizer* horizontalSizer = new wxBoxSizer(wxHORIZONTAL); 362 wxBoxSizer* horizontalSizer = new wxBoxSizer(wxHORIZONTAL);
364 topSizer->Add(horizontalSizer, 0, wxALIGN_LEFT|wxALL, 5); 363 topSizer->Add(horizontalSizer, 0, wxALIGN_LEFT|wxALL, 5);
365 m_desc = new wxStaticText( this, wxID_STATIC, 364 m_desc = new wxStaticText( this, wxID_STATIC,
@@ -367,7 +366,7 @@ void DeviceSelectorCtrl::CreateControls()
367 wxDefaultSize, 0 ); 366 wxDefaultSize, 0 );
368 horizontalSizer->Add(m_desc, 0, wxALIGN_LEFT|wxALL, 5); 367 horizontalSizer->Add(m_desc, 0, wxALIGN_LEFT|wxALL, 5);
369 368
370 m_deviceCbx = new wxComboBox(this, ID_DEVICE_CBX,wxT(""), 369 m_deviceCbx = new wxComboBox(this, ID_DEVICE_CBX,wxT("Select your Device"),
371 wxDefaultPosition,wxDefaultSize,gv->plat_name,wxCB_READONLY); 370 wxDefaultPosition,wxDefaultSize,gv->plat_name,wxCB_READONLY);
372 371
373 m_deviceCbx->SetToolTip(wxT("Select your Device.")); 372 m_deviceCbx->SetToolTip(wxT("Select your Device."));
@@ -379,8 +378,9 @@ void DeviceSelectorCtrl::CreateControls()
379 wxDefaultPosition, wxDefaultSize, 0, wxDefaultValidator, 378 wxDefaultPosition, wxDefaultSize, 0, wxDefaultValidator,
380 wxT("AutodetectBtn")); 379 wxT("AutodetectBtn"));
381 380
382 m_autodetectBtn->SetToolTip(wxT("Autodetection of the Device.")); 381 m_autodetectBtn->SetToolTip(wxT("Click here to autodetect your Device."));
383 m_autodetectBtn->SetHelpText(wxT("Autodetection of the Device.")); 382 m_autodetectBtn->SetHelpText(wxT("Autodetection of the Device."));
383 // m_autodetectBtn->SetFocus();
384 384
385 horizontalSizer->Add(m_autodetectBtn,0,wxGROW | wxALL,5); 385 horizontalSizer->Add(m_autodetectBtn,0,wxGROW | wxALL,5);
386 Layout(); 386 Layout();
@@ -457,17 +457,17 @@ void DeviceSelectorCtrl::OnAutoDetect(wxCommandEvent& event)
457//// DevicePosition Selector 457//// DevicePosition Selector
458////////////////////////////////////////////// 458//////////////////////////////////////////////
459 459
460BEGIN_EVENT_TABLE(DevicePositionCtrl, wxControl) 460BEGIN_EVENT_TABLE(DevicePositionCtrl, wxPanel)
461 EVT_BUTTON(ID_BROWSE_BTN, DevicePositionCtrl::OnBrowseBtn) 461 EVT_BUTTON(ID_BROWSE_BTN, DevicePositionCtrl::OnBrowseBtn)
462END_EVENT_TABLE() 462END_EVENT_TABLE()
463 463
464IMPLEMENT_DYNAMIC_CLASS(DevicePositionCtrl, wxControl) 464IMPLEMENT_DYNAMIC_CLASS(DevicePositionCtrl, wxPanel)
465 465
466bool DevicePositionCtrl::Create(wxWindow* parent, wxWindowID id, 466bool DevicePositionCtrl::Create(wxWindow* parent, wxWindowID id,
467 const wxPoint& pos, const wxSize& size, long style, 467 const wxPoint& pos, const wxSize& size, long style,
468 const wxValidator& validator) 468 const wxString title)
469{ 469{
470 if (!wxControl::Create(parent, id, pos, size, style, validator)) return false; 470 if (!wxPanel::Create(parent, id, pos, size, style, title)) return false;
471 471
472 CreateControls(); 472 CreateControls();
473 GetSizer()->Fit(this); 473 GetSizer()->Fit(this);
@@ -491,8 +491,8 @@ void DevicePositionCtrl::CreateControls()
491 topSizer->Add(horizontalSizer, 0, wxGROW|wxALL, 5); 491 topSizer->Add(horizontalSizer, 0, wxGROW|wxALL, 5);
492 492
493 m_devicePos = new wxTextCtrl(this,wxID_ANY,gv->curdestdir); 493 m_devicePos = new wxTextCtrl(this,wxID_ANY,gv->curdestdir);
494 m_devicePos->SetToolTip(wxT("Select your Devicefolder")); 494 m_devicePos->SetToolTip(wxT("Type the folder where your Device is here"));
495 m_devicePos->SetHelpText(wxT("Select your Devicefolder")); 495 m_devicePos->SetHelpText(wxT("Type the folder where your Device is here"));
496 horizontalSizer->Add(m_devicePos,0,wxGROW | wxALL,5); 496 horizontalSizer->Add(m_devicePos,0,wxGROW | wxALL,5);
497 497
498 m_browseBtn = new wxButton(this, ID_BROWSE_BTN, wxT("Browse"), 498 m_browseBtn = new wxButton(this, ID_BROWSE_BTN, wxT("Browse"),
@@ -534,7 +534,7 @@ void DevicePositionCtrl::OnBrowseBtn(wxCommandEvent& event)
534//// FirmwarePosition Selector 534//// FirmwarePosition Selector
535////////////////////////////////////////////// 535//////////////////////////////////////////////
536 536
537BEGIN_EVENT_TABLE(FirmwarePositionCtrl, wxControl) 537BEGIN_EVENT_TABLE(FirmwarePositionCtrl, wxPanel)
538 EVT_BUTTON(ID_BROWSE_BTN, FirmwarePositionCtrl::OnBrowseBtn) 538 EVT_BUTTON(ID_BROWSE_BTN, FirmwarePositionCtrl::OnBrowseBtn)
539END_EVENT_TABLE() 539END_EVENT_TABLE()
540 540
@@ -542,9 +542,9 @@ IMPLEMENT_DYNAMIC_CLASS(FirmwarePositionCtrl, wxControl)
542 542
543bool FirmwarePositionCtrl::Create(wxWindow* parent, wxWindowID id, 543bool FirmwarePositionCtrl::Create(wxWindow* parent, wxWindowID id,
544 const wxPoint& pos, const wxSize& size, long style, 544 const wxPoint& pos, const wxSize& size, long style,
545 const wxValidator& validator) 545 const wxString title)
546{ 546{
547 if (!wxControl::Create(parent, id, pos, size, style, validator)) return false; 547 if (!wxPanel::Create(parent, id, pos, size, style, title)) return false;
548 548
549 CreateControls(); 549 CreateControls();
550 GetSizer()->Fit(this); 550 GetSizer()->Fit(this);
@@ -568,8 +568,8 @@ void FirmwarePositionCtrl::CreateControls()
568 topSizer->Add(horizontalSizer, 0, wxALIGN_LEFT|wxALL, 5); 568 topSizer->Add(horizontalSizer, 0, wxALIGN_LEFT|wxALL, 5);
569 569
570 m_firmwarePos = new wxTextCtrl(this,wxID_ANY,gv->curdestdir); 570 m_firmwarePos = new wxTextCtrl(this,wxID_ANY,gv->curdestdir);
571 m_firmwarePos->SetToolTip(wxT("Select the original Firmware")); 571 m_firmwarePos->SetToolTip(wxT("Type the folder where the original Firmware is here"));
572 m_firmwarePos->SetHelpText(wxT("Select the original Firmware")); 572 m_firmwarePos->SetHelpText(wxT("Type the folder where the original Firmware is here"));
573 horizontalSizer->Add(m_firmwarePos,0,wxGROW | wxALL,5); 573 horizontalSizer->Add(m_firmwarePos,0,wxGROW | wxALL,5);
574 574
575 m_browseBtn = new wxButton(this, ID_BROWSE_BTN, wxT("Browse"), 575 m_browseBtn = new wxButton(this, ID_BROWSE_BTN, wxT("Browse"),