diff options
-rw-r--r-- | Project/ControlEditor.cpp | 11 | ||||
-rw-r--r-- | Project/ControlEditor.h | 11 | ||||
-rw-r--r-- | Project/ControlEditor.wxcp | 903 | ||||
-rw-r--r-- | Project/ControlEditorBase.cpp | 93 | ||||
-rw-r--r-- | Project/ControlEditorBase.h | 66 | ||||
-rw-r--r-- | Project/ControlEditorBitmaps.cpp | 49 | ||||
-rw-r--r-- | Project/Project.project | 6 |
7 files changed, 1139 insertions, 0 deletions
diff --git a/Project/ControlEditor.cpp b/Project/ControlEditor.cpp new file mode 100644 index 0000000..422bfb0 --- /dev/null +++ b/Project/ControlEditor.cpp @@ -0,0 +1,11 @@ +#include "ControlEditor.h" + +ControlEditor::ControlEditor(wxWindow* parent) + : ControlEditorBase(parent) +{ +} + +ControlEditor::~ControlEditor() +{ +} + diff --git a/Project/ControlEditor.h b/Project/ControlEditor.h new file mode 100644 index 0000000..b917db5 --- /dev/null +++ b/Project/ControlEditor.h @@ -0,0 +1,11 @@ +#ifndef CONTROLEDITOR_H +#define CONTROLEDITOR_H +#include "ControlEditorBase.h" + +class ControlEditor : public ControlEditorBase +{ +public: + ControlEditor(wxWindow* parent); + virtual ~ControlEditor(); +}; +#endif // CONTROLEDITOR_H diff --git a/Project/ControlEditor.wxcp b/Project/ControlEditor.wxcp new file mode 100644 index 0000000..b871192 --- /dev/null +++ b/Project/ControlEditor.wxcp @@ -0,0 +1,903 @@ +{ + "metadata": { + "m_generatedFilesDir": ".", + "m_objCounter": 207, + "m_includeFiles": [], + "m_bitmapFunction": "wxC870InitBitmapResources", + "m_bitmapsFile": "ControlEditorBitmaps.cpp", + "m_GenerateCodeTypes": 1, + "m_outputFileName": "ControlEditorBase", + "m_firstWindowId": 10000, + "m_useEnum": true, + "m_useUnderscoreMacro": true, + "m_addHandlers": true, + "m_templateClasses": [] + }, + "windows": [{ + "m_type": 4402, + "proportion": 0, + "border": 5, + "gbSpan": "1,1", + "gbPosition": "0,0", + "m_styles": ["wxDEFAULT_FRAME_STYLE"], + "m_sizerFlags": ["wxALL", "wxLEFT", "wxRIGHT", "wxTOP", "wxBOTTOM"], + "m_properties": [{ + "type": "string", + "m_label": "Size:", + "m_value": "500,300" + }, { + "type": "string", + "m_label": "Minimum Size:", + "m_value": "-1,-1" + }, { + "type": "string", + "m_label": "Name:", + "m_value": "ControlEditorBase" + }, { + "type": "multi-string", + "m_label": "Tooltip:", + "m_value": "" + }, { + "type": "colour", + "m_label": "Bg Colour:", + "colour": "<Default>" + }, { + "type": "colour", + "m_label": "Fg Colour:", + "colour": "<Default>" + }, { + "type": "font", + "m_label": "Font:", + "m_value": "" + }, { + "type": "bool", + "m_label": "Hidden", + "m_value": false + }, { + "type": "bool", + "m_label": "Disabled", + "m_value": false + }, { + "type": "bool", + "m_label": "Focused", + "m_value": false + }, { + "type": "string", + "m_label": "Class Name:", + "m_value": "" + }, { + "type": "string", + "m_label": "Include File:", + "m_value": "" + }, { + "type": "string", + "m_label": "Style:", + "m_value": "" + }, { + "type": "bool", + "m_label": "Enable Window Persistency:", + "m_value": true + }, { + "type": "string", + "m_label": "Title:", + "m_value": "Control editor" + }, { + "type": "virtualFolderPicker", + "m_label": "Virtual Folder:", + "m_path": "Project:wxcrafter:base" + }, { + "type": "choice", + "m_label": "Centre:", + "m_selection": 1, + "m_options": ["", "wxBOTH", "wxVERTICAL", "wxHORIZONTAL"] + }, { + "type": "string", + "m_label": "Inherited Class", + "m_value": "ControlEditor" + }, { + "type": "string", + "m_label": "File:", + "m_value": "ControlEditor" + }, { + "type": "string", + "m_label": "Class Decorator", + "m_value": "" + }, { + "type": "choice", + "m_label": "wxFrame Type", + "m_selection": 0, + "m_options": ["wxFrame", "wxDocMDIParentFrame", "wxDocMDIChildFrame", "wxDocParentFrame", "wxDocChildFrame"] + }, { + "type": "bitmapPicker", + "m_label": "Bitmap File (16x16) :", + "m_path": "" + }, { + "type": "bitmapPicker", + "m_label": "Bitmap File (32x32) :", + "m_path": "" + }, { + "type": "bitmapPicker", + "m_label": "Bitmap File (64x64) :", + "m_path": "" + }, { + "type": "bitmapPicker", + "m_label": "Bitmap File (128x128):", + "m_path": "" + }, { + "type": "bitmapPicker", + "m_label": "Bitmap File (256x256):", + "m_path": "" + }], + "m_events": [], + "m_children": [{ + "m_type": 4401, + "proportion": 1, + "border": 5, + "gbSpan": "1,1", + "gbPosition": "0,0", + "m_styles": [], + "m_sizerFlags": ["wxALL", "wxLEFT", "wxRIGHT", "wxTOP", "wxBOTTOM", "wxEXPAND"], + "m_properties": [{ + "type": "string", + "m_label": "Minimum Size:", + "m_value": "-1,-1" + }, { + "type": "string", + "m_label": "Name:", + "m_value": "boxSizer3" + }, { + "type": "string", + "m_label": "Style:", + "m_value": "" + }, { + "type": "choice", + "m_label": "Orientation:", + "m_selection": 1, + "m_options": ["wxVERTICAL", "wxHORIZONTAL"] + }], + "m_events": [], + "m_children": [{ + "m_type": 4447, + "proportion": 1, + "border": 5, + "gbSpan": "1,1", + "gbPosition": "0,0", + "m_styles": ["wxSP_3D"], + "m_sizerFlags": ["wxEXPAND"], + "m_properties": [{ + "type": "winid", + "m_label": "ID:", + "m_winid": "wxID_ANY" + }, { + "type": "string", + "m_label": "Size:", + "m_value": "-1,-1" + }, { + "type": "string", + "m_label": "Minimum Size:", + "m_value": "-1,-1" + }, { + "type": "string", + "m_label": "Name:", + "m_value": "m_splitter157" + }, { + "type": "multi-string", + "m_label": "Tooltip:", + "m_value": "" + }, { + "type": "colour", + "m_label": "Bg Colour:", + "colour": "<Default>" + }, { + "type": "colour", + "m_label": "Fg Colour:", + "colour": "<Default>" + }, { + "type": "font", + "m_label": "Font:", + "m_value": "" + }, { + "type": "bool", + "m_label": "Hidden", + "m_value": false + }, { + "type": "bool", + "m_label": "Disabled", + "m_value": false + }, { + "type": "bool", + "m_label": "Focused", + "m_value": false + }, { + "type": "string", + "m_label": "Class Name:", + "m_value": "" + }, { + "type": "string", + "m_label": "Include File:", + "m_value": "" + }, { + "type": "string", + "m_label": "Style:", + "m_value": "" + }, { + "type": "choice", + "m_label": "Split Mode:", + "m_selection": 0, + "m_options": ["wxSPLIT_VERTICAL", "wxSPLIT_HORIZONTAL"] + }, { + "type": "string", + "m_label": "Sash Gravity:", + "m_value": "0.2" + }, { + "type": "string", + "m_label": "Minimum Pane Size:", + "m_value": "10" + }, { + "type": "string", + "m_label": "Sash Position:", + "m_value": "0" + }], + "m_events": [], + "m_children": [{ + "m_type": 4448, + "proportion": 0, + "border": 5, + "gbSpan": "1,1", + "gbPosition": "0,0", + "m_styles": ["wxTAB_TRAVERSAL"], + "m_sizerFlags": ["wxALL", "wxLEFT", "wxRIGHT", "wxTOP", "wxBOTTOM"], + "m_properties": [{ + "type": "winid", + "m_label": "ID:", + "m_winid": "wxID_ANY" + }, { + "type": "string", + "m_label": "Size:", + "m_value": "-1,-1" + }, { + "type": "string", + "m_label": "Minimum Size:", + "m_value": "-1,-1" + }, { + "type": "string", + "m_label": "Name:", + "m_value": "m_splitterPage163" + }, { + "type": "multi-string", + "m_label": "Tooltip:", + "m_value": "" + }, { + "type": "colour", + "m_label": "Bg Colour:", + "colour": "<Default>" + }, { + "type": "colour", + "m_label": "Fg Colour:", + "colour": "<Default>" + }, { + "type": "font", + "m_label": "Font:", + "m_value": "" + }, { + "type": "bool", + "m_label": "Hidden", + "m_value": false + }, { + "type": "bool", + "m_label": "Disabled", + "m_value": false + }, { + "type": "bool", + "m_label": "Focused", + "m_value": false + }, { + "type": "string", + "m_label": "Class Name:", + "m_value": "" + }, { + "type": "string", + "m_label": "Include File:", + "m_value": "" + }, { + "type": "string", + "m_label": "Style:", + "m_value": "" + }], + "m_events": [], + "m_children": [{ + "m_type": 4401, + "proportion": 1, + "border": 5, + "gbSpan": "1,1", + "gbPosition": "0,0", + "m_styles": [], + "m_sizerFlags": ["wxALL", "wxLEFT", "wxRIGHT", "wxTOP", "wxBOTTOM", "wxEXPAND"], + "m_properties": [{ + "type": "string", + "m_label": "Minimum Size:", + "m_value": "-1,-1" + }, { + "type": "string", + "m_label": "Name:", + "m_value": "boxSizer169" + }, { + "type": "string", + "m_label": "Style:", + "m_value": "" + }, { + "type": "choice", + "m_label": "Orientation:", + "m_selection": 1, + "m_options": ["wxVERTICAL", "wxHORIZONTAL"] + }], + "m_events": [], + "m_children": [{ + "m_type": 4440, + "proportion": 1, + "border": 5, + "gbSpan": "1,1", + "gbPosition": "0,0", + "m_styles": ["wxBORDER_SIMPLE", "wxHSCROLL", "wxVSCROLL"], + "m_sizerFlags": ["wxEXPAND"], + "m_properties": [{ + "type": "winid", + "m_label": "ID:", + "m_winid": "wxID_ANY" + }, { + "type": "string", + "m_label": "Size:", + "m_value": "-1,-1" + }, { + "type": "string", + "m_label": "Minimum Size:", + "m_value": "-1,-1" + }, { + "type": "string", + "m_label": "Name:", + "m_value": "m_scrollWin201" + }, { + "type": "multi-string", + "m_label": "Tooltip:", + "m_value": "" + }, { + "type": "colour", + "m_label": "Bg Colour:", + "colour": "<Default>" + }, { + "type": "colour", + "m_label": "Fg Colour:", + "colour": "<Default>" + }, { + "type": "font", + "m_label": "Font:", + "m_value": "" + }, { + "type": "bool", + "m_label": "Hidden", + "m_value": false + }, { + "type": "bool", + "m_label": "Disabled", + "m_value": false + }, { + "type": "bool", + "m_label": "Focused", + "m_value": false + }, { + "type": "string", + "m_label": "Class Name:", + "m_value": "" + }, { + "type": "string", + "m_label": "Include File:", + "m_value": "" + }, { + "type": "string", + "m_label": "Style:", + "m_value": "" + }, { + "type": "string", + "m_label": "Scroll Rate X:", + "m_value": "5" + }, { + "type": "string", + "m_label": "Scroll Rate Y:", + "m_value": "5" + }], + "m_events": [], + "m_children": [{ + "m_type": 4401, + "proportion": 1, + "border": 5, + "gbSpan": "1,1", + "gbPosition": "0,0", + "m_styles": [], + "m_sizerFlags": ["wxALL", "wxLEFT", "wxRIGHT", "wxTOP", "wxBOTTOM", "wxEXPAND"], + "m_properties": [{ + "type": "string", + "m_label": "Minimum Size:", + "m_value": "-1,-1" + }, { + "type": "string", + "m_label": "Name:", + "m_value": "boxSizer203" + }, { + "type": "string", + "m_label": "Style:", + "m_value": "" + }, { + "type": "choice", + "m_label": "Orientation:", + "m_selection": 1, + "m_options": ["wxVERTICAL", "wxHORIZONTAL"] + }], + "m_events": [], + "m_children": [{ + "m_type": 4404, + "proportion": 0, + "border": 5, + "gbSpan": "1,1", + "gbPosition": "0,0", + "m_styles": ["wxBU_AUTODRAW"], + "m_sizerFlags": ["wxALL", "wxLEFT", "wxRIGHT", "wxTOP", "wxBOTTOM"], + "m_properties": [{ + "type": "winid", + "m_label": "ID:", + "m_winid": "wxID_ANY" + }, { + "type": "string", + "m_label": "Size:", + "m_value": "-1,-1" + }, { + "type": "string", + "m_label": "Minimum Size:", + "m_value": "-1,-1" + }, { + "type": "string", + "m_label": "Name:", + "m_value": "m_bmpButton19934" + }, { + "type": "multi-string", + "m_label": "Tooltip:", + "m_value": "" + }, { + "type": "colour", + "m_label": "Bg Colour:", + "colour": "<Default>" + }, { + "type": "colour", + "m_label": "Fg Colour:", + "colour": "<Default>" + }, { + "type": "font", + "m_label": "Font:", + "m_value": "" + }, { + "type": "bool", + "m_label": "Hidden", + "m_value": false + }, { + "type": "bool", + "m_label": "Disabled", + "m_value": false + }, { + "type": "bool", + "m_label": "Focused", + "m_value": false + }, { + "type": "string", + "m_label": "Class Name:", + "m_value": "" + }, { + "type": "string", + "m_label": "Include File:", + "m_value": "" + }, { + "type": "string", + "m_label": "Style:", + "m_value": "" + }, { + "type": "bitmapPicker", + "m_label": "Bitmap File:", + "m_path": "wxART_FOLDER,wxART_FRAME_ICON,wxDefaultSize" + }, { + "type": "bool", + "m_label": "Default Button", + "m_value": true + }], + "m_events": [], + "m_children": [] + }, { + "m_type": 4404, + "proportion": 0, + "border": 5, + "gbSpan": "1,1", + "gbPosition": "0,0", + "m_styles": ["wxBU_AUTODRAW"], + "m_sizerFlags": ["wxALL", "wxLEFT", "wxRIGHT", "wxTOP", "wxBOTTOM"], + "m_properties": [{ + "type": "winid", + "m_label": "ID:", + "m_winid": "wxID_ANY" + }, { + "type": "string", + "m_label": "Size:", + "m_value": "-1,-1" + }, { + "type": "string", + "m_label": "Minimum Size:", + "m_value": "-1,-1" + }, { + "type": "string", + "m_label": "Name:", + "m_value": "m_bmpButton1993" + }, { + "type": "multi-string", + "m_label": "Tooltip:", + "m_value": "" + }, { + "type": "colour", + "m_label": "Bg Colour:", + "colour": "<Default>" + }, { + "type": "colour", + "m_label": "Fg Colour:", + "colour": "<Default>" + }, { + "type": "font", + "m_label": "Font:", + "m_value": "" + }, { + "type": "bool", + "m_label": "Hidden", + "m_value": false + }, { + "type": "bool", + "m_label": "Disabled", + "m_value": false + }, { + "type": "bool", + "m_label": "Focused", + "m_value": false + }, { + "type": "string", + "m_label": "Class Name:", + "m_value": "" + }, { + "type": "string", + "m_label": "Include File:", + "m_value": "" + }, { + "type": "string", + "m_label": "Style:", + "m_value": "" + }, { + "type": "bitmapPicker", + "m_label": "Bitmap File:", + "m_path": "wxART_FOLDER,wxART_FRAME_ICON,wxDefaultSize" + }, { + "type": "bool", + "m_label": "Default Button", + "m_value": true + }], + "m_events": [], + "m_children": [] + }, { + "m_type": 4404, + "proportion": 0, + "border": 5, + "gbSpan": "1,1", + "gbPosition": "0,0", + "m_styles": ["wxBU_AUTODRAW"], + "m_sizerFlags": ["wxALL", "wxLEFT", "wxRIGHT", "wxTOP", "wxBOTTOM"], + "m_properties": [{ + "type": "winid", + "m_label": "ID:", + "m_winid": "wxID_ANY" + }, { + "type": "string", + "m_label": "Size:", + "m_value": "-1,-1" + }, { + "type": "string", + "m_label": "Minimum Size:", + "m_value": "-1,-1" + }, { + "type": "string", + "m_label": "Name:", + "m_value": "m_bmpButton199" + }, { + "type": "multi-string", + "m_label": "Tooltip:", + "m_value": "" + }, { + "type": "colour", + "m_label": "Bg Colour:", + "colour": "<Default>" + }, { + "type": "colour", + "m_label": "Fg Colour:", + "colour": "<Default>" + }, { + "type": "font", + "m_label": "Font:", + "m_value": "" + }, { + "type": "bool", + "m_label": "Hidden", + "m_value": false + }, { + "type": "bool", + "m_label": "Disabled", + "m_value": false + }, { + "type": "bool", + "m_label": "Focused", + "m_value": false + }, { + "type": "string", + "m_label": "Class Name:", + "m_value": "" + }, { + "type": "string", + "m_label": "Include File:", + "m_value": "" + }, { + "type": "string", + "m_label": "Style:", + "m_value": "" + }, { + "type": "bitmapPicker", + "m_label": "Bitmap File:", + "m_path": "wxART_FOLDER,wxART_FRAME_ICON,wxDefaultSize" + }, { + "type": "bool", + "m_label": "Default Button", + "m_value": true + }], + "m_events": [], + "m_children": [] + }] + }] + }] + }] + }, { + "m_type": 4448, + "proportion": 0, + "border": 5, + "gbSpan": "1,1", + "gbPosition": "0,0", + "m_styles": ["wxTAB_TRAVERSAL"], + "m_sizerFlags": ["wxALL", "wxLEFT", "wxRIGHT", "wxTOP", "wxBOTTOM"], + "m_properties": [{ + "type": "winid", + "m_label": "ID:", + "m_winid": "wxID_ANY" + }, { + "type": "string", + "m_label": "Size:", + "m_value": "-1,-1" + }, { + "type": "string", + "m_label": "Minimum Size:", + "m_value": "-1,-1" + }, { + "type": "string", + "m_label": "Name:", + "m_value": "m_splitterPage175" + }, { + "type": "multi-string", + "m_label": "Tooltip:", + "m_value": "" + }, { + "type": "colour", + "m_label": "Bg Colour:", + "colour": "<Default>" + }, { + "type": "colour", + "m_label": "Fg Colour:", + "colour": "<Default>" + }, { + "type": "font", + "m_label": "Font:", + "m_value": "" + }, { + "type": "bool", + "m_label": "Hidden", + "m_value": false + }, { + "type": "bool", + "m_label": "Disabled", + "m_value": false + }, { + "type": "bool", + "m_label": "Focused", + "m_value": false + }, { + "type": "string", + "m_label": "Class Name:", + "m_value": "" + }, { + "type": "string", + "m_label": "Include File:", + "m_value": "" + }, { + "type": "string", + "m_label": "Style:", + "m_value": "" + }], + "m_events": [], + "m_children": [{ + "m_type": 4401, + "proportion": 1, + "border": 5, + "gbSpan": "1,1", + "gbPosition": "0,0", + "m_styles": [], + "m_sizerFlags": ["wxALL", "wxLEFT", "wxRIGHT", "wxTOP", "wxBOTTOM", "wxEXPAND"], + "m_properties": [{ + "type": "string", + "m_label": "Minimum Size:", + "m_value": "-1,-1" + }, { + "type": "string", + "m_label": "Name:", + "m_value": "boxSizer177" + }, { + "type": "string", + "m_label": "Style:", + "m_value": "" + }, { + "type": "choice", + "m_label": "Orientation:", + "m_selection": 0, + "m_options": ["wxVERTICAL", "wxHORIZONTAL"] + }], + "m_events": [], + "m_children": [{ + "m_type": 4505, + "proportion": 1, + "border": 5, + "gbSpan": "1,1", + "gbPosition": "0,0", + "m_styles": ["wxBORDER_SIMPLE"], + "m_sizerFlags": ["wxEXPAND"], + "m_properties": [{ + "type": "winid", + "m_label": "ID:", + "m_winid": "wxID_ANY" + }, { + "type": "string", + "m_label": "Size:", + "m_value": "-1,-1" + }, { + "type": "string", + "m_label": "Minimum Size:", + "m_value": "-1,-1" + }, { + "type": "string", + "m_label": "Name:", + "m_value": "m_glCanvas147" + }, { + "type": "multi-string", + "m_label": "Tooltip:", + "m_value": "" + }, { + "type": "colour", + "m_label": "Bg Colour:", + "colour": "<Default>" + }, { + "type": "colour", + "m_label": "Fg Colour:", + "colour": "<Default>" + }, { + "type": "font", + "m_label": "Font:", + "m_value": "" + }, { + "type": "bool", + "m_label": "Hidden", + "m_value": false + }, { + "type": "bool", + "m_label": "Disabled", + "m_value": false + }, { + "type": "bool", + "m_label": "Focused", + "m_value": false + }, { + "type": "string", + "m_label": "Class Name:", + "m_value": "" + }, { + "type": "string", + "m_label": "Include File:", + "m_value": "" + }, { + "type": "string", + "m_label": "Style:", + "m_value": "" + }, { + "type": "string", + "m_label": "WX_GL_RGBA", + "m_value": "" + }, { + "type": "string", + "m_label": "WX_GL_BUFFER_SIZE", + "m_value": "" + }, { + "type": "string", + "m_label": "WX_GL_LEVEL", + "m_value": "" + }, { + "type": "string", + "m_label": "WX_GL_DOUBLEBUFFER", + "m_value": "" + }, { + "type": "string", + "m_label": "WX_GL_STEREO", + "m_value": "" + }, { + "type": "string", + "m_label": "WX_GL_AUX_BUFFERS", + "m_value": "" + }, { + "type": "string", + "m_label": "WX_GL_MIN_RED", + "m_value": "" + }, { + "type": "string", + "m_label": "WX_GL_MIN_GREEN", + "m_value": "" + }, { + "type": "string", + "m_label": "WX_GL_MIN_BLUE", + "m_value": "" + }, { + "type": "string", + "m_label": "WX_GL_MIN_ALPHA", + "m_value": "" + }, { + "type": "string", + "m_label": "WX_GL_DEPTH_SIZE", + "m_value": "" + }, { + "type": "string", + "m_label": "WX_GL_STENCIL_SIZE", + "m_value": "" + }, { + "type": "string", + "m_label": "WX_GL_MIN_ACCUM_RED", + "m_value": "" + }, { + "type": "string", + "m_label": "WX_GL_MIN_ACCUM_GREEN", + "m_value": "" + }, { + "type": "string", + "m_label": "WX_GL_MIN_ACCUM_BLUE", + "m_value": "" + }, { + "type": "string", + "m_label": "WX_GL_MIN_ACCUM_ALPHA", + "m_value": "" + }, { + "type": "string", + "m_label": "WX_GL_SAMPLE_BUFFERS", + "m_value": "" + }, { + "type": "string", + "m_label": "WX_GL_SAMPLES", + "m_value": "" + }], + "m_events": [], + "m_children": [] + }] + }] + }] + }] + }] + }] +}
\ No newline at end of file diff --git a/Project/ControlEditorBase.cpp b/Project/ControlEditorBase.cpp new file mode 100644 index 0000000..f576467 --- /dev/null +++ b/Project/ControlEditorBase.cpp @@ -0,0 +1,93 @@ +////////////////////////////////////////////////////////////////////// +// This file was auto-generated by codelite's wxCrafter Plugin +// wxCrafter project file: ControlEditor.wxcp +// Do not modify this file by hand! +////////////////////////////////////////////////////////////////////// + +#include "ControlEditorBase.h" + + +// Declare the bitmap loading function +extern void wxC870InitBitmapResources(); + +static bool bBitmapLoaded = false; + + +ControlEditorBase::ControlEditorBase(wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style) + : wxFrame(parent, id, title, pos, size, style) +{ + if ( !bBitmapLoaded ) { + // We need to initialise the default bitmap handler + wxXmlResource::Get()->AddHandler(new wxBitmapXmlHandler); + wxC870InitBitmapResources(); + bBitmapLoaded = true; + } + + wxBoxSizer* boxSizer3 = new wxBoxSizer(wxHORIZONTAL); + this->SetSizer(boxSizer3); + + m_splitter157 = new wxSplitterWindow(this, wxID_ANY, wxDefaultPosition, wxDLG_UNIT(this, wxSize(-1,-1)), wxSP_3D); + m_splitter157->SetSashGravity(0.2); + m_splitter157->SetMinimumPaneSize(10); + + boxSizer3->Add(m_splitter157, 1, wxEXPAND, WXC_FROM_DIP(5)); + + m_splitterPage163 = new wxPanel(m_splitter157, wxID_ANY, wxDefaultPosition, wxDLG_UNIT(m_splitter157, wxSize(-1,-1)), wxTAB_TRAVERSAL); + + wxBoxSizer* boxSizer169 = new wxBoxSizer(wxHORIZONTAL); + m_splitterPage163->SetSizer(boxSizer169); + + m_scrollWin201 = new wxScrolledWindow(m_splitterPage163, wxID_ANY, wxDefaultPosition, wxDLG_UNIT(m_splitterPage163, wxSize(-1,-1)), wxBORDER_SIMPLE|wxHSCROLL|wxVSCROLL); + m_scrollWin201->SetScrollRate(5, 5); + + boxSizer169->Add(m_scrollWin201, 1, wxEXPAND, WXC_FROM_DIP(5)); + + wxBoxSizer* boxSizer203 = new wxBoxSizer(wxHORIZONTAL); + m_scrollWin201->SetSizer(boxSizer203); + + m_bmpButton19934 = new wxBitmapButton(m_scrollWin201, wxID_ANY, wxArtProvider::GetBitmap(wxART_FOLDER, wxART_FRAME_ICON, wxDefaultSize), wxDefaultPosition, wxDLG_UNIT(m_scrollWin201, wxSize(-1,-1)), wxBU_AUTODRAW); + m_bmpButton19934->SetDefault(); + boxSizer203->Add(m_bmpButton19934, 0, wxALL, WXC_FROM_DIP(5)); + + m_bmpButton1993 = new wxBitmapButton(m_scrollWin201, wxID_ANY, wxArtProvider::GetBitmap(wxART_FOLDER, wxART_FRAME_ICON, wxDefaultSize), wxDefaultPosition, wxDLG_UNIT(m_scrollWin201, wxSize(-1,-1)), wxBU_AUTODRAW); + m_bmpButton1993->SetDefault(); + boxSizer203->Add(m_bmpButton1993, 0, wxALL, WXC_FROM_DIP(5)); + + m_bmpButton199 = new wxBitmapButton(m_scrollWin201, wxID_ANY, wxArtProvider::GetBitmap(wxART_FOLDER, wxART_FRAME_ICON, wxDefaultSize), wxDefaultPosition, wxDLG_UNIT(m_scrollWin201, wxSize(-1,-1)), wxBU_AUTODRAW); + m_bmpButton199->SetDefault(); + boxSizer203->Add(m_bmpButton199, 0, wxALL, WXC_FROM_DIP(5)); + + m_splitterPage175 = new wxPanel(m_splitter157, wxID_ANY, wxDefaultPosition, wxDLG_UNIT(m_splitter157, wxSize(-1,-1)), wxTAB_TRAVERSAL); + m_splitter157->SplitVertically(m_splitterPage163, m_splitterPage175, 0); + + wxBoxSizer* boxSizer177 = new wxBoxSizer(wxVERTICAL); + m_splitterPage175->SetSizer(boxSizer177); + + int *m_glCanvas147Attr = NULL; + m_glCanvas147 = new wxGLCanvas(m_splitterPage175, wxID_ANY, m_glCanvas147Attr, wxDefaultPosition, wxDLG_UNIT(m_splitterPage175, wxSize(-1,-1)), wxBORDER_SIMPLE); + wxDELETEA( m_glCanvas147Attr ); + + boxSizer177->Add(m_glCanvas147, 1, wxEXPAND, WXC_FROM_DIP(5)); + + SetName(wxT("ControlEditorBase")); + SetSize(500,300); + if (GetSizer()) { + GetSizer()->Fit(this); + } + if(GetParent()) { + CentreOnParent(wxBOTH); + } else { + CentreOnScreen(wxBOTH); + } +#if wxVERSION_NUMBER >= 2900 + if(!wxPersistenceManager::Get().Find(this)) { + wxPersistenceManager::Get().RegisterAndRestore(this); + } else { + wxPersistenceManager::Get().Restore(this); + } +#endif +} + +ControlEditorBase::~ControlEditorBase() +{ +} diff --git a/Project/ControlEditorBase.h b/Project/ControlEditorBase.h new file mode 100644 index 0000000..ee79704 --- /dev/null +++ b/Project/ControlEditorBase.h @@ -0,0 +1,66 @@ +////////////////////////////////////////////////////////////////////// +// This file was auto-generated by codelite's wxCrafter Plugin +// wxCrafter project file: ControlEditor.wxcp +// Do not modify this file by hand! +////////////////////////////////////////////////////////////////////// + +#ifndef _PSP_PROJECT_CONTROLEDITOR_BASE_CLASSES_H +#define _PSP_PROJECT_CONTROLEDITOR_BASE_CLASSES_H + +#include <wx/settings.h> +#include <wx/xrc/xmlres.h> +#include <wx/xrc/xh_bmp.h> +#include <wx/frame.h> +#include <wx/iconbndl.h> +#include <wx/artprov.h> +#include <wx/sizer.h> +#include <wx/splitter.h> +#include <wx/panel.h> +#include <wx/scrolwin.h> +#include <wx/bmpbuttn.h> +#include <wx/glcanvas.h> +#if wxVERSION_NUMBER >= 2900 +#include <wx/persist.h> +#include <wx/persist/toplevel.h> +#include <wx/persist/bookctrl.h> +#include <wx/persist/treebook.h> +#endif + +#ifdef WXC_FROM_DIP +#undef WXC_FROM_DIP +#endif +#if wxVERSION_NUMBER >= 3100 +#define WXC_FROM_DIP(x) wxWindow::FromDIP(x, NULL) +#else +#define WXC_FROM_DIP(x) x +#endif + + +class ControlEditorBase : public wxFrame +{ +protected: + wxSplitterWindow* m_splitter157; + wxPanel* m_splitterPage163; + wxScrolledWindow* m_scrollWin201; + wxBitmapButton* m_bmpButton19934; + wxBitmapButton* m_bmpButton1993; + wxBitmapButton* m_bmpButton199; + wxPanel* m_splitterPage175; + wxGLCanvas* m_glCanvas147; + +protected: + +public: + wxBitmapButton* GetBmpButton19934() { return m_bmpButton19934; } + wxBitmapButton* GetBmpButton1993() { return m_bmpButton1993; } + wxBitmapButton* GetBmpButton199() { return m_bmpButton199; } + wxScrolledWindow* GetScrollWin201() { return m_scrollWin201; } + wxPanel* GetSplitterPage163() { return m_splitterPage163; } + wxGLCanvas* GetGlCanvas147() { return m_glCanvas147; } + wxPanel* GetSplitterPage175() { return m_splitterPage175; } + wxSplitterWindow* GetSplitter157() { return m_splitter157; } + ControlEditorBase(wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = _("Control editor"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize(500,300), long style = wxDEFAULT_FRAME_STYLE); + virtual ~ControlEditorBase(); +}; + +#endif diff --git a/Project/ControlEditorBitmaps.cpp b/Project/ControlEditorBitmaps.cpp new file mode 100644 index 0000000..00574d7 --- /dev/null +++ b/Project/ControlEditorBitmaps.cpp @@ -0,0 +1,49 @@ +// +// This file was automatically generated by wxrc, do not edit by hand. +// + +#include <wx/wxprec.h> + +#ifdef __BORLANDC__ + #pragma hdrstop +#endif + +#include <wx/filesys.h> +#include <wx/fs_mem.h> +#include <wx/xrc/xmlres.h> +#include <wx/xrc/xh_all.h> + +#if wxCHECK_VERSION(2,8,5) && wxABI_VERSION >= 20805 + #define XRC_ADD_FILE(name, data, size, mime) \ + wxMemoryFSHandler::AddFileWithMimeType(name, data, size, mime) +#else + #define XRC_ADD_FILE(name, data, size, mime) \ + wxMemoryFSHandler::AddFile(name, data, size) +#endif + +static size_t xml_res_size_0 = 137; +static unsigned char xml_res_file_0[] = { +60,63,120,109,108,32,118,101,114,115,105,111,110,61,34,49,46,48,34,32,101, +110,99,111,100,105,110,103,61,34,85,84,70,45,56,34,63,62,10,60,114,101, +115,111,117,114,99,101,32,120,109,108,110,115,61,34,104,116,116,112,58, +47,47,119,119,119,46,119,120,119,105,100,103,101,116,115,46,111,114,103, +47,119,120,120,114,99,34,62,10,32,32,60,33,45,45,32,72,97,110,100,108,101, +114,32,71,101,110,101,114,97,116,105,111,110,32,105,115,32,79,78,32,45, +45,62,10,60,47,114,101,115,111,117,114,99,101,62,10}; + +void wxC870InitBitmapResources() +{ + + // Check for memory FS. If not present, load the handler: + { + wxMemoryFSHandler::AddFile(wxT("XRC_resource/dummy_file"), wxT("dummy one")); + wxFileSystem fsys; + wxFSFile *f = fsys.OpenFile(wxT("memory:XRC_resource/dummy_file")); + wxMemoryFSHandler::RemoveFile(wxT("XRC_resource/dummy_file")); + if (f) delete f; + else wxFileSystem::AddHandler(new wxMemoryFSHandlerBase); + } + + XRC_ADD_FILE(wxT("XRC_resource/ControlEditorBitmaps.cpp$C__Users_Thales_Documents_GitHub_PSP_Project_ControlEditorBitmaps.xrc"), xml_res_file_0, xml_res_size_0, wxT("text/xml")); + wxXmlResource::Get()->Load(wxT("memory:XRC_resource/ControlEditorBitmaps.cpp$C__Users_Thales_Documents_GitHub_PSP_Project_ControlEditorBitmaps.xrc")); +} diff --git a/Project/Project.project b/Project/Project.project index 38e449f..3d0ec6f 100644 --- a/Project/Project.project +++ b/Project/Project.project @@ -62,6 +62,7 @@ <VirtualDirectory Name="graphical element form"> <File Name="TextForm.cpp"/> </VirtualDirectory> + <File Name="ControlEditor.cpp"/> </VirtualDirectory> <File Name="main.cpp"/> </VirtualDirectory> @@ -125,6 +126,7 @@ <VirtualDirectory Name="graphical element form"> <File Name="TextForm.h"/> </VirtualDirectory> + <File Name="ControlEditor.h"/> </VirtualDirectory> </VirtualDirectory> <VirtualDirectory Name="resources"> @@ -136,6 +138,7 @@ <File Name="WorkspaceBitmaps.cpp"/> <File Name="BusFormBitmaps.cpp"/> <File Name="ElementFormBitmaps.cpp"/> + <File Name="ControlEditorBitmaps.cpp"/> </VirtualDirectory> <VirtualDirectory Name="base"> <File Name="MainFrameBase.h"/> @@ -144,10 +147,13 @@ <File Name="WorkspaceBase.cpp"/> <File Name="ElementForm.h"/> <File Name="ElementForm.cpp"/> + <File Name="ControlEditorBase.h"/> + <File Name="ControlEditorBase.cpp"/> </VirtualDirectory> <File Name="MainFrame.wxcp"/> <File Name="Workspace.wxcp"/> <File Name="ElementForm.wxcp"/> + <File Name="ControlEditor.wxcp"/> </VirtualDirectory> <Settings Type="Executable"> <GlobalSettings> |