1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110
|
//////////////////////////////////////////////////////////////////////
// This file was auto-generated by codelite's wxCrafter Plugin
// wxCrafter project file: editor_options_comments_base.wxcp
// Do not modify this file by hand!
//////////////////////////////////////////////////////////////////////
#include "editorsettingscommentsbase.h"
// Declare the bitmap loading function
extern void wxCD0F0InitBitmapResources();
static bool bBitmapLoaded = false;
EditorSettingsCommentsBase::EditorSettingsCommentsBase(wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style)
: wxPanel(parent, id, pos, size, style)
{
if ( !bBitmapLoaded ) {
// We need to initialise the default bitmap handler
wxXmlResource::Get()->AddHandler(new wxBitmapXmlHandler);
wxCD0F0InitBitmapResources();
bBitmapLoaded = true;
}
wxBoxSizer* mainSizer = new wxBoxSizer(wxVERTICAL);
this->SetSizer(mainSizer);
wxBoxSizer* bSizer2 = new wxBoxSizer(wxVERTICAL);
mainSizer->Add(bSizer2, 0, wxALL|wxEXPAND, 5);
m_checkBoxSmartAddFiles = new wxCheckBox(this, wxID_ANY, _("When adding new files to a project, place the files in the 'include' / 'src' folders respectively"), wxDefaultPosition, wxSize(-1, -1), 0);
m_checkBoxSmartAddFiles->SetValue(false);
bSizer2->Add(m_checkBoxSmartAddFiles, 0, wxALL, 10);
wxBoxSizer* boxSizer1 = new wxBoxSizer(wxHORIZONTAL);
bSizer2->Add(boxSizer1, 0, wxALL|wxEXPAND, 5);
m_staticText3 = new wxStaticText(this, wxID_ANY, _("Comments:"), wxDefaultPosition, wxSize(-1,-1), 0);
m_staticText3->Enable(false);
boxSizer1->Add(m_staticText3, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5);
m_staticline1 = new wxStaticLine(this, wxID_ANY, wxDefaultPosition, wxSize(-1, -1), wxLI_HORIZONTAL);
boxSizer1->Add(m_staticline1, 1, wxALL|wxALIGN_CENTER_VERTICAL, 5);
wxBoxSizer* boxSizer4 = new wxBoxSizer(wxVERTICAL);
bSizer2->Add(boxSizer4, 0, wxALL, 5);
m_checkBoxContCComment = new wxCheckBox(this, wxID_ANY, _("Hitting <ENTER> in a C style comment automatically adds a '*' to the next line"), wxDefaultPosition, wxSize(-1, -1), 0);
m_checkBoxContCComment->SetValue(true);
boxSizer4->Add(m_checkBoxContCComment, 0, wxALL, 5);
m_checkBoxContinueCppComment = new wxCheckBox(this, wxID_ANY, _("Hitting <ENTER> in a C++ style comment section automatically adds a '//' to the next line"), wxDefaultPosition, wxSize(-1, -1), 0);
m_checkBoxContinueCppComment->SetValue(false);
boxSizer4->Add(m_checkBoxContinueCppComment, 0, wxALL, 5);
wxBoxSizer* boxSizer5 = new wxBoxSizer(wxHORIZONTAL);
bSizer2->Add(boxSizer5, 0, wxALL|wxEXPAND, 5);
m_staticText7 = new wxStaticText(this, wxID_ANY, _("Code Navigation Accelerators:"), wxDefaultPosition, wxSize(-1,-1), 0);
m_staticText7->Enable(false);
boxSizer5->Add(m_staticText7, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5);
m_staticline2 = new wxStaticLine(this, wxID_ANY, wxDefaultPosition, wxSize(-1, -1), wxLI_HORIZONTAL);
boxSizer5->Add(m_staticline2, 1, wxALL|wxALIGN_CENTER_VERTICAL, 5);
wxBoxSizer* bSizer3 = new wxBoxSizer(wxHORIZONTAL);
bSizer2->Add(bSizer3, 0, wxALL|wxALIGN_LEFT, 5);
m_staticText1 = new wxStaticText(this, wxID_ANY, _("Code navigation key:"), wxDefaultPosition, wxSize(-1, -1), 0);
m_staticText1->SetToolTip(_("When using quick code navigation use this keys in combination with mouse click\nTo quickly go to implementation/declaration.\nNote that at least one box must be ticked, or it would be triggered by every left-click."));
bSizer3->Add(m_staticText1, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5);
m_staticText2 = new wxStaticText(this, wxID_ANY, _("Mouse Left Click +"), wxDefaultPosition, wxSize(-1, -1), 0);
bSizer3->Add(m_staticText2, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5);
m_checkBoxCtrl = new wxCheckBox(this, wxID_ANY, _("Ctrl"), wxDefaultPosition, wxSize(-1, -1), 0);
m_checkBoxCtrl->SetValue(true);
bSizer3->Add(m_checkBoxCtrl, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5);
m_checkBoxAlt = new wxCheckBox(this, wxID_ANY, _("Alt"), wxDefaultPosition, wxSize(-1, -1), 0);
m_checkBoxAlt->SetValue(true);
bSizer3->Add(m_checkBoxAlt, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5);
SetName(wxT("EditorSettingsCommentsBase"));
SetSizeHints(-1,-1);
if (GetSizer()) {
GetSizer()->Fit(this);
}
}
EditorSettingsCommentsBase::~EditorSettingsCommentsBase()
{
}
|