| 1 |
////////////////////////////////////////////////////////////////////// |
| 2 |
// This file was auto-generated by codelite's wxCrafter Plugin |
| 3 |
// wxCrafter project file: HelpPluginUI.wxcp |
| 4 |
// Do not modify this file by hand! |
| 5 |
////////////////////////////////////////////////////////////////////// |
| 6 |
|
| 7 |
#include "HelpPluginUI.h" |
| 8 |
|
| 9 |
|
| 10 |
// Declare the bitmap loading function |
| 11 |
extern void wxC10DEInitBitmapResources(); |
| 12 |
|
| 13 |
static bool bBitmapLoaded = false; |
| 14 |
|
| 15 |
|
| 16 |
HelpPluginMessageBaseDlg::HelpPluginMessageBaseDlg(wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style) |
| 17 |
: wxDialog(parent, id, title, pos, size, style) |
| 18 |
{ |
| 19 |
if ( !bBitmapLoaded ) { |
| 20 |
// We need to initialise the default bitmap handler |
| 21 |
wxXmlResource::Get()->AddHandler(new wxBitmapXmlHandler); |
| 22 |
wxC10DEInitBitmapResources(); |
| 23 |
bBitmapLoaded = true; |
| 24 |
} |
| 25 |
|
| 26 |
wxBoxSizer* boxSizer2 = new wxBoxSizer(wxVERTICAL); |
| 27 |
this->SetSizer(boxSizer2); |
| 28 |
|
| 29 |
wxFlexGridSizer* flexGridSizer12 = new wxFlexGridSizer(0, 2, 0, 0); |
| 30 |
flexGridSizer12->SetFlexibleDirection( wxBOTH ); |
| 31 |
flexGridSizer12->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED ); |
| 32 |
|
| 33 |
boxSizer2->Add(flexGridSizer12, 1, wxALL|wxEXPAND, 5); |
| 34 |
|
| 35 |
m_staticBitmap14 = new wxStaticBitmap(this, wxID_ANY, wxXmlResource::Get()->LoadBitmap(wxT("error-64")), wxDefaultPosition, wxSize(-1,-1), 0 ); |
| 36 |
|
| 37 |
flexGridSizer12->Add(m_staticBitmap14, 0, wxALL, 5); |
| 38 |
|
| 39 |
m_staticText = new wxStaticText(this, wxID_ANY, wxT(""), wxDefaultPosition, wxSize(-1,-1), 0); |
| 40 |
|
| 41 |
flexGridSizer12->Add(m_staticText, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5); |
| 42 |
|
| 43 |
m_hyperLink = new wxHyperlinkCtrl(this, wxID_ANY, _("Download Zeal"), wxT("http://www.codelite.org"), wxDefaultPosition, wxSize(-1,-1), wxHL_DEFAULT_STYLE); |
| 44 |
m_hyperLink->SetNormalColour(wxColour(wxT("#0000FF"))); |
| 45 |
m_hyperLink->SetHoverColour(wxColour(wxT("#0000FF"))); |
| 46 |
m_hyperLink->SetVisitedColour(wxColour(wxT("#FF0000"))); |
| 47 |
|
| 48 |
boxSizer2->Add(m_hyperLink, 0, wxALL|wxALIGN_CENTER_HORIZONTAL, 5); |
| 49 |
|
| 50 |
m_stdBtnSizer4 = new wxStdDialogButtonSizer(); |
| 51 |
|
| 52 |
boxSizer2->Add(m_stdBtnSizer4, 0, wxALL|wxALIGN_CENTER_HORIZONTAL, 5); |
| 53 |
|
| 54 |
m_button6 = new wxButton(this, wxID_OK, wxT(""), wxDefaultPosition, wxSize(-1, -1), 0); |
| 55 |
m_button6->SetDefault(); |
| 56 |
m_stdBtnSizer4->AddButton(m_button6); |
| 57 |
m_stdBtnSizer4->Realize(); |
| 58 |
|
| 59 |
SetName(wxT("HelpPluginMessageBaseDlg")); |
| 60 |
SetMinSize( wxSize(500,-1) ); |
| 61 |
SetSizeHints(500,-1); |
| 62 |
if ( GetSizer() ) { |
| 63 |
GetSizer()->Fit(this); |
| 64 |
} |
| 65 |
CentreOnParent(wxBOTH); |
| 66 |
#if wxVERSION_NUMBER >= 2900 |
| 67 |
if(!wxPersistenceManager::Get().Find(this)) { |
| 68 |
wxPersistenceManager::Get().RegisterAndRestore(this); |
| 69 |
} else { |
| 70 |
wxPersistenceManager::Get().Restore(this); |
| 71 |
} |
| 72 |
#endif |
| 73 |
} |
| 74 |
|
| 75 |
HelpPluginMessageBaseDlg::~HelpPluginMessageBaseDlg() |
| 76 |
{ |
| 77 |
} |
| 78 |
|
| 79 |
HelpPluginSettingsDlgBase::HelpPluginSettingsDlgBase(wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style) |
| 80 |
: wxDialog(parent, id, title, pos, size, style) |
| 81 |
{ |
| 82 |
if ( !bBitmapLoaded ) { |
| 83 |
// We need to initialise the default bitmap handler |
| 84 |
wxXmlResource::Get()->AddHandler(new wxBitmapXmlHandler); |
| 85 |
wxC10DEInitBitmapResources(); |
| 86 |
bBitmapLoaded = true; |
| 87 |
} |
| 88 |
|
| 89 |
wxBoxSizer* boxSizer24 = new wxBoxSizer(wxVERTICAL); |
| 90 |
this->SetSizer(boxSizer24); |
| 91 |
|
| 92 |
wxBoxSizer* boxSizer32 = new wxBoxSizer(wxVERTICAL); |
| 93 |
|
| 94 |
boxSizer24->Add(boxSizer32, 1, wxALL|wxEXPAND, 5); |
| 95 |
|
| 96 |
wxArrayString m_pgMgr34Arr; |
| 97 |
wxUnusedVar(m_pgMgr34Arr); |
| 98 |
wxArrayInt m_pgMgr34IntArr; |
| 99 |
wxUnusedVar(m_pgMgr34IntArr); |
| 100 |
m_pgMgr34 = new wxPropertyGridManager(this, wxID_ANY, wxDefaultPosition, wxSize(500,300), wxPG_DESCRIPTION|wxPG_SPLITTER_AUTO_CENTER|wxPG_BOLD_MODIFIED); |
| 101 |
|
| 102 |
boxSizer32->Add(m_pgMgr34, 1, wxALL|wxEXPAND, 5); |
| 103 |
|
| 104 |
m_pgProp36 = m_pgMgr34->Append( new wxPropertyCategory( _("Docsets") ) ); |
| 105 |
m_pgProp36->SetHelpString(wxT("")); |
| 106 |
|
| 107 |
m_pgPropCxx = m_pgMgr34->AppendIn( m_pgProp36, new wxLongStringProperty( _("C/C++"), wxPG_LABEL, _("c++,net,boost,qt 4,qt 5,cvcpp,cocos2dx,c,manpages")) ); |
| 108 |
m_pgPropCxx->SetHelpString(_("Set a list of docsets to use when requesting help while inside a C/C++ files (comma separated list)")); |
| 109 |
|
| 110 |
m_pgPropPHP = m_pgMgr34->AppendIn( m_pgProp36, new wxLongStringProperty( _("PHP"), wxPG_LABEL, _("php,wordpress,drupal,zend,laravel,yii,joomla,ee,codeigniter,cakephp,phpunit,symfony,typo3,twig,smarty,phpp,html,statamic,mysql,sqlite,mongodb,psql,redis,zend framework 1,zend framework 2")) ); |
| 111 |
m_pgPropPHP->SetHelpString(_("Set a list of docsets to use when requesting help while inside a PHP files (comma separated list)")); |
| 112 |
|
| 113 |
m_pgPropCMake = m_pgMgr34->AppendIn( m_pgProp36, new wxLongStringProperty( _("CMake"), wxPG_LABEL, _("cmake")) ); |
| 114 |
m_pgPropCMake->SetHelpString(_("Set a list of docsets to use when requesting help while inside a CMake files (comma separated list)")); |
| 115 |
|
| 116 |
m_pgPropHtml = m_pgMgr34->AppendIn( m_pgProp36, new wxLongStringProperty( _("HTML"), wxPG_LABEL, _("html,svg,css,bootstrap,less,foundation,awesome,statamic,javascript,jquery,jqueryui,jquerym,angularjs,backbone,marionette,meteor,moo,prototype,ember,lodash,underscore,sencha,extjs,knockout,zepto,cordova,phonegap,yu")) ); |
| 117 |
m_pgPropHtml->SetHelpString(_("Set a list of docsets to use when requesting help while inside an HTML files (comma separated list)")); |
| 118 |
|
| 119 |
m_pgPropCSS = m_pgMgr34->AppendIn( m_pgProp36, new wxLongStringProperty( _("CSS"), wxPG_LABEL, _("html,svg,css,bootstrap,less,foundation,awesome,statamic,javascript,jquery,jqueryui,jquerym,angularjs,backbone,marionette,meteor,moo,prototype,ember,lodash,underscore,sencha,extjs,knockout,zepto,cordova,phonegap,yu")) ); |
| 120 |
m_pgPropCSS->SetHelpString(_("Set a list of docsets to use when requesting help while inside an CSS files (comma separated list)")); |
| 121 |
|
| 122 |
m_pgPropJS = m_pgMgr34->AppendIn( m_pgProp36, new wxLongStringProperty( _("JavaScript"), wxPG_LABEL, _("html,svg,css,bootstrap,less,foundation,awesome,statamic,javascript,jquery,jqueryui,jquerym,angularjs,backbone,marionette,meteor,moo,prototype,ember,lodash,underscore,sencha,extjs,knockout,zepto,cordova,phonegap,yu")) ); |
| 123 |
m_pgPropJS->SetHelpString(_("Set a list of docsets to use when requesting help while inside a JavaScript files (comma separated list)")); |
| 124 |
|
| 125 |
m_pgPropJava = m_pgMgr34->AppendIn( m_pgProp36, new wxLongStringProperty( _("Java"), wxPG_LABEL, _("java,javafx,grails,groovy,playjava,spring,cvj,processing")) ); |
| 126 |
m_pgPropJava->SetHelpString(_("Set a list of docsets to use when requesting help while inside a Java files (comma separated list)")); |
| 127 |
|
| 128 |
m_stdBtnSizer26 = new wxStdDialogButtonSizer(); |
| 129 |
|
| 130 |
boxSizer24->Add(m_stdBtnSizer26, 0, wxALL|wxALIGN_CENTER_HORIZONTAL, 5); |
| 131 |
|
| 132 |
m_button28 = new wxButton(this, wxID_CANCEL, wxT(""), wxDefaultPosition, wxSize(-1, -1), 0); |
| 133 |
m_stdBtnSizer26->AddButton(m_button28); |
| 134 |
|
| 135 |
m_button30 = new wxButton(this, wxID_OK, wxT(""), wxDefaultPosition, wxSize(-1, -1), 0); |
| 136 |
m_button30->SetDefault(); |
| 137 |
m_stdBtnSizer26->AddButton(m_button30); |
| 138 |
m_stdBtnSizer26->Realize(); |
| 139 |
|
| 140 |
SetName(wxT("HelpPluginSettingsDlgBase")); |
| 141 |
SetSizeHints(-1,-1); |
| 142 |
if ( GetSizer() ) { |
| 143 |
GetSizer()->Fit(this); |
| 144 |
} |
| 145 |
CentreOnParent(wxBOTH); |
| 146 |
#if wxVERSION_NUMBER >= 2900 |
| 147 |
if(!wxPersistenceManager::Get().Find(this)) { |
| 148 |
wxPersistenceManager::Get().RegisterAndRestore(this); |
| 149 |
} else { |
| 150 |
wxPersistenceManager::Get().Restore(this); |
| 151 |
} |
| 152 |
#endif |
| 153 |
// Connect events |
| 154 |
m_pgMgr34->Connect(wxEVT_PG_CHANGED, wxPropertyGridEventHandler(HelpPluginSettingsDlgBase::OnDocsetChanged), NULL, this); |
| 155 |
m_button30->Connect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(HelpPluginSettingsDlgBase::OnOKUI), NULL, this); |
| 156 |
m_button30->Connect(wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler(HelpPluginSettingsDlgBase::OnOK), NULL, this); |
| 157 |
|
| 158 |
} |
| 159 |
|
| 160 |
HelpPluginSettingsDlgBase::~HelpPluginSettingsDlgBase() |
| 161 |
{ |
| 162 |
m_pgMgr34->Disconnect(wxEVT_PG_CHANGED, wxPropertyGridEventHandler(HelpPluginSettingsDlgBase::OnDocsetChanged), NULL, this); |
| 163 |
m_button30->Disconnect(wxEVT_UPDATE_UI, wxUpdateUIEventHandler(HelpPluginSettingsDlgBase::OnOKUI), NULL, this); |
| 164 |
m_button30->Disconnect(wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler(HelpPluginSettingsDlgBase::OnOK), NULL, this); |
| 165 |
|
| 166 |
} |