summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThales Lima Oliveira <thaleslima.ufu@gmail.com>2017-04-24 20:11:39 -0300
committerThales Lima Oliveira <thaleslima.ufu@gmail.com>2017-04-24 20:11:39 -0300
commit9154f5ee02766121f7ac8dd756f2e73ae95e1afa (patch)
tree52fbd84e8801aebf0305d5278dbecfe105dbc9ee
parent7804c1bd2c0bd2a5f135c30b20991e8187581cc6 (diff)
downloadPSP.git-9154f5ee02766121f7ac8dd756f2e73ae95e1afa.tar.gz
PSP.git-9154f5ee02766121f7ac8dd756f2e73ae95e1afa.tar.xz
PSP.git-9154f5ee02766121f7ac8dd756f2e73ae95e1afa.zip
Chart view implementation start
-rw-r--r--Project/ChartView.cpp11
-rw-r--r--Project/ChartView.h11
-rw-r--r--Project/ChartView.wxcp995
-rw-r--r--Project/ChartViewBase.cpp191
-rw-r--r--Project/ChartViewBase.h91
-rw-r--r--Project/ChartViewBitmaps.cpp49
-rw-r--r--Project/Project.project5
7 files changed, 1343 insertions, 10 deletions
diff --git a/Project/ChartView.cpp b/Project/ChartView.cpp
new file mode 100644
index 0000000..a5fe183
--- /dev/null
+++ b/Project/ChartView.cpp
@@ -0,0 +1,11 @@
+#include "ChartView.h"
+
+ChartView::ChartView(wxWindow* parent)
+ : ChartViewBase(parent)
+{
+}
+
+ChartView::~ChartView()
+{
+}
+
diff --git a/Project/ChartView.h b/Project/ChartView.h
new file mode 100644
index 0000000..191a264
--- /dev/null
+++ b/Project/ChartView.h
@@ -0,0 +1,11 @@
+#ifndef CHARTVIEW_H
+#define CHARTVIEW_H
+#include "ChartViewBase.h"
+
+class ChartView : public ChartViewBase
+{
+public:
+ ChartView(wxWindow* parent);
+ virtual ~ChartView();
+};
+#endif // CHARTVIEW_H
diff --git a/Project/ChartView.wxcp b/Project/ChartView.wxcp
index 03dde90..7a36c9f 100644
--- a/Project/ChartView.wxcp
+++ b/Project/ChartView.wxcp
@@ -1,12 +1,12 @@
{
"metadata": {
"m_generatedFilesDir": ".",
- "m_objCounter": 51,
+ "m_objCounter": 80,
"m_includeFiles": [],
"m_bitmapFunction": "wxCE3EBInitBitmapResources",
- "m_bitmapsFile": "ChartView_project_bitmaps.cpp",
+ "m_bitmapsFile": "ChartViewBitmaps.cpp",
"m_GenerateCodeTypes": 1,
- "m_outputFileName": "",
+ "m_outputFileName": "ChartViewBase",
"m_firstWindowId": 10000,
"m_useEnum": true,
"m_useUnderscoreMacro": true,
@@ -703,7 +703,7 @@
"m_events": [],
"m_children": [{
"m_type": 4401,
- "proportion": 1,
+ "proportion": 0,
"border": 5,
"gbSpan": "1,1",
"gbPosition": "0,0",
@@ -814,7 +814,7 @@
}, {
"type": "string",
"m_label": "Minimum Size:",
- "m_value": "250,-1"
+ "m_value": "250,250"
}, {
"type": "string",
"m_label": "Name:",
@@ -880,11 +880,11 @@
"m_properties": [{
"type": "string",
"m_label": "Name:",
- "m_value": "m_pgPropCurveProp"
+ "m_value": "m_pgPropLineProp"
}, {
"type": "string",
"m_label": "Label:",
- "m_value": "Curve properties"
+ "m_value": "Line properties"
}, {
"type": "multi-string",
"m_label": "Tooltip:",
@@ -1047,7 +1047,7 @@
}, {
"type": "bool",
"m_label": "Bool Value",
- "m_value": true
+ "m_value": false
}, {
"type": "string",
"m_label": "Wildcard",
@@ -1078,7 +1078,7 @@
}, {
"type": "string",
"m_label": "Label:",
- "m_value": "Line thickness"
+ "m_value": "Thickness"
}, {
"type": "multi-string",
"m_label": "Tooltip:",
@@ -1128,6 +1128,136 @@
}],
"m_events": [],
"m_children": []
+ }, {
+ "m_type": 4486,
+ "proportion": 0,
+ "border": 5,
+ "gbSpan": "1,1",
+ "gbPosition": "0,0",
+ "m_styles": [],
+ "m_sizerFlags": [],
+ "m_properties": [{
+ "type": "string",
+ "m_label": "Name:",
+ "m_value": "m_pgProplineType"
+ }, {
+ "type": "string",
+ "m_label": "Label:",
+ "m_value": "Type"
+ }, {
+ "type": "multi-string",
+ "m_label": "Tooltip:",
+ "m_value": ""
+ }, {
+ "type": "colour",
+ "m_label": "Bg Colour:",
+ "colour": "<Default>"
+ }, {
+ "type": "choice",
+ "m_label": "Property Editor Control",
+ "m_selection": 2,
+ "m_options": ["", "TextCtrl", "Choice", "ComboBox", "CheckBox", "TextCtrlAndButton", "ChoiceAndButton", "SpinCtrl", "DatePickerCtrl"]
+ }, {
+ "type": "choice",
+ "m_label": "Kind:",
+ "m_selection": 9,
+ "m_options": ["wxPropertyCategory", "wxIntProperty", "wxFloatProperty", "wxBoolProperty", "wxStringProperty", "wxLongStringProperty", "wxDirProperty", "wxArrayStringProperty", "wxFileProperty", "wxEnumProperty", "wxEditEnumProperty", "wxFlagsProperty", "wxDateProperty", "wxImageFileProperty", "wxFontProperty", "wxSystemColourProperty"]
+ }, {
+ "type": "string",
+ "m_label": "String Value",
+ "m_value": "1"
+ }, {
+ "type": "multi-string",
+ "m_label": "Choices:",
+ "m_value": "Solid;Dot;Dash;Dot and dash;Cross;Diagonal cross"
+ }, {
+ "type": "multi-string",
+ "m_label": "Array Integer Values",
+ "m_value": ""
+ }, {
+ "type": "bool",
+ "m_label": "Bool Value",
+ "m_value": true
+ }, {
+ "type": "string",
+ "m_label": "Wildcard",
+ "m_value": ""
+ }, {
+ "type": "font",
+ "m_label": "Font:",
+ "m_value": ""
+ }, {
+ "type": "colour",
+ "m_label": "Initial Colour",
+ "colour": "<Default>"
+ }],
+ "m_events": [],
+ "m_children": []
+ }, {
+ "m_type": 4486,
+ "proportion": 0,
+ "border": 5,
+ "gbSpan": "1,1",
+ "gbPosition": "0,0",
+ "m_styles": [],
+ "m_sizerFlags": [],
+ "m_properties": [{
+ "type": "string",
+ "m_label": "Name:",
+ "m_value": "m_pgProplineAxis"
+ }, {
+ "type": "string",
+ "m_label": "Label:",
+ "m_value": "Axis"
+ }, {
+ "type": "multi-string",
+ "m_label": "Tooltip:",
+ "m_value": ""
+ }, {
+ "type": "colour",
+ "m_label": "Bg Colour:",
+ "colour": "<Default>"
+ }, {
+ "type": "choice",
+ "m_label": "Property Editor Control",
+ "m_selection": 2,
+ "m_options": ["", "TextCtrl", "Choice", "ComboBox", "CheckBox", "TextCtrlAndButton", "ChoiceAndButton", "SpinCtrl", "DatePickerCtrl"]
+ }, {
+ "type": "choice",
+ "m_label": "Kind:",
+ "m_selection": 9,
+ "m_options": ["wxPropertyCategory", "wxIntProperty", "wxFloatProperty", "wxBoolProperty", "wxStringProperty", "wxLongStringProperty", "wxDirProperty", "wxArrayStringProperty", "wxFileProperty", "wxEnumProperty", "wxEditEnumProperty", "wxFlagsProperty", "wxDateProperty", "wxImageFileProperty", "wxFontProperty", "wxSystemColourProperty"]
+ }, {
+ "type": "string",
+ "m_label": "String Value",
+ "m_value": "1"
+ }, {
+ "type": "multi-string",
+ "m_label": "Choices:",
+ "m_value": "Y;X"
+ }, {
+ "type": "multi-string",
+ "m_label": "Array Integer Values",
+ "m_value": ""
+ }, {
+ "type": "bool",
+ "m_label": "Bool Value",
+ "m_value": true
+ }, {
+ "type": "string",
+ "m_label": "Wildcard",
+ "m_value": ""
+ }, {
+ "type": "font",
+ "m_label": "Font:",
+ "m_value": ""
+ }, {
+ "type": "colour",
+ "m_label": "Initial Colour",
+ "colour": "<Default>"
+ }],
+ "m_events": [],
+ "m_children": []
}]
}, {
"m_type": 4486,
@@ -1193,7 +1323,852 @@
"colour": "<Default>"
}],
"m_events": [],
- "m_children": []
+ "m_children": [{
+ "m_type": 4486,
+ "proportion": 0,
+ "border": 5,
+ "gbSpan": "1,1",
+ "gbPosition": "0,0",
+ "m_styles": [],
+ "m_sizerFlags": [],
+ "m_properties": [{
+ "type": "string",
+ "m_label": "Name:",
+ "m_value": "m_pgPropChartTitle"
+ }, {
+ "type": "string",
+ "m_label": "Label:",
+ "m_value": "Chart title"
+ }, {
+ "type": "multi-string",
+ "m_label": "Tooltip:",
+ "m_value": ""
+ }, {
+ "type": "colour",
+ "m_label": "Bg Colour:",
+ "colour": "<Default>"
+ }, {
+ "type": "choice",
+ "m_label": "Property Editor Control",
+ "m_selection": 1,
+ "m_options": ["", "TextCtrl", "Choice", "ComboBox", "CheckBox", "TextCtrlAndButton", "ChoiceAndButton", "SpinCtrl", "DatePickerCtrl"]
+ }, {
+ "type": "choice",
+ "m_label": "Kind:",
+ "m_selection": 4,
+ "m_options": ["wxPropertyCategory", "wxIntProperty", "wxFloatProperty", "wxBoolProperty", "wxStringProperty", "wxLongStringProperty", "wxDirProperty", "wxArrayStringProperty", "wxFileProperty", "wxEnumProperty", "wxEditEnumProperty", "wxFlagsProperty", "wxDateProperty", "wxImageFileProperty", "wxFontProperty", "wxSystemColourProperty"]
+ }, {
+ "type": "string",
+ "m_label": "String Value",
+ "m_value": ""
+ }, {
+ "type": "multi-string",
+ "m_label": "Choices:",
+ "m_value": ""
+ }, {
+ "type": "multi-string",
+ "m_label": "Array Integer Values",
+ "m_value": ""
+ }, {
+ "type": "bool",
+ "m_label": "Bool Value",
+ "m_value": true
+ }, {
+ "type": "string",
+ "m_label": "Wildcard",
+ "m_value": ""
+ }, {
+ "type": "font",
+ "m_label": "Font:",
+ "m_value": ""
+ }, {
+ "type": "colour",
+ "m_label": "Initial Colour",
+ "colour": "<Default>"
+ }],
+ "m_events": [],
+ "m_children": []
+ }, {
+ "m_type": 4486,
+ "proportion": 0,
+ "border": 5,
+ "gbSpan": "1,1",
+ "gbPosition": "0,0",
+ "m_styles": [],
+ "m_sizerFlags": [],
+ "m_properties": [{
+ "type": "string",
+ "m_label": "Name:",
+ "m_value": "m_pgPropXLabel"
+ }, {
+ "type": "string",
+ "m_label": "Label:",
+ "m_value": "X axis label"
+ }, {
+ "type": "multi-string",
+ "m_label": "Tooltip:",
+ "m_value": ""
+ }, {
+ "type": "colour",
+ "m_label": "Bg Colour:",
+ "colour": "<Default>"
+ }, {
+ "type": "choice",
+ "m_label": "Property Editor Control",
+ "m_selection": 1,
+ "m_options": ["", "TextCtrl", "Choice", "ComboBox", "CheckBox", "TextCtrlAndButton", "ChoiceAndButton", "SpinCtrl", "DatePickerCtrl"]
+ }, {
+ "type": "choice",
+ "m_label": "Kind:",
+ "m_selection": 4,
+ "m_options": ["wxPropertyCategory", "wxIntProperty", "wxFloatProperty", "wxBoolProperty", "wxStringProperty", "wxLongStringProperty", "wxDirProperty", "wxArrayStringProperty", "wxFileProperty", "wxEnumProperty", "wxEditEnumProperty", "wxFlagsProperty", "wxDateProperty", "wxImageFileProperty", "wxFontProperty", "wxSystemColourProperty"]
+ }, {
+ "type": "string",
+ "m_label": "String Value",
+ "m_value": ""
+ }, {
+ "type": "multi-string",
+ "m_label": "Choices:",
+ "m_value": ""
+ }, {
+ "type": "multi-string",
+ "m_label": "Array Integer Values",
+ "m_value": ""
+ }, {
+ "type": "bool",
+ "m_label": "Bool Value",
+ "m_value": true
+ }, {
+ "type": "string",
+ "m_label": "Wildcard",
+ "m_value": ""
+ }, {
+ "type": "font",
+ "m_label": "Font:",
+ "m_value": ""
+ }, {
+ "type": "colour",
+ "m_label": "Initial Colour",
+ "colour": "<Default>"
+ }],
+ "m_events": [],
+ "m_children": []
+ }, {
+ "m_type": 4486,
+ "proportion": 0,
+ "border": 5,
+ "gbSpan": "1,1",
+ "gbPosition": "0,0",
+ "m_styles": [],
+ "m_sizerFlags": [],
+ "m_properties": [{
+ "type": "string",
+ "m_label": "Name:",
+ "m_value": "m_pgPropYLabel"
+ }, {
+ "type": "string",
+ "m_label": "Label:",
+ "m_value": "Y axis label"
+ }, {
+ "type": "multi-string",
+ "m_label": "Tooltip:",
+ "m_value": ""
+ }, {
+ "type": "colour",
+ "m_label": "Bg Colour:",
+ "colour": "<Default>"
+ }, {
+ "type": "choice",
+ "m_label": "Property Editor Control",
+ "m_selection": 1,
+ "m_options": ["", "TextCtrl", "Choice", "ComboBox", "CheckBox", "TextCtrlAndButton", "ChoiceAndButton", "SpinCtrl", "DatePickerCtrl"]
+ }, {
+ "type": "choice",
+ "m_label": "Kind:",
+ "m_selection": 4,
+ "m_options": ["wxPropertyCategory", "wxIntProperty", "wxFloatProperty", "wxBoolProperty", "wxStringProperty", "wxLongStringProperty", "wxDirProperty", "wxArrayStringProperty", "wxFileProperty", "wxEnumProperty", "wxEditEnumProperty", "wxFlagsProperty", "wxDateProperty", "wxImageFileProperty", "wxFontProperty", "wxSystemColourProperty"]
+ }, {
+ "type": "string",
+ "m_label": "String Value",
+ "m_value": ""
+ }, {
+ "type": "multi-string",
+ "m_label": "Choices:",
+ "m_value": ""
+ }, {
+ "type": "multi-string",
+ "m_label": "Array Integer Values",
+ "m_value": ""
+ }, {
+ "type": "bool",
+ "m_label": "Bool Value",
+ "m_value": true
+ }, {
+ "type": "string",
+ "m_label": "Wildcard",
+ "m_value": ""
+ }, {
+ "type": "font",
+ "m_label": "Font:",
+ "m_value": ""
+ }, {
+ "type": "colour",
+ "m_label": "Initial Colour",
+ "colour": "<Default>"
+ }],
+ "m_events": [],
+ "m_children": []
+ }, {
+ "m_type": 4486,
+ "proportion": 0,
+ "border": 5,
+ "gbSpan": "1,1",
+ "gbPosition": "0,0",
+ "m_styles": [],
+ "m_sizerFlags": [],
+ "m_properties": [{
+ "type": "string",
+ "m_label": "Name:",
+ "m_value": "m_pgPropMargins"
+ }, {
+ "type": "string",
+ "m_label": "Label:",
+ "m_value": "Margins"
+ }, {
+ "type": "multi-string",
+ "m_label": "Tooltip:",
+ "m_value": ""
+ }, {
+ "type": "colour",
+ "m_label": "Bg Colour:",
+ "colour": "<Default>"
+ }, {
+ "type": "choice",
+ "m_label": "Property Editor Control",
+ "m_selection": 0,
+ "m_options": ["", "TextCtrl", "Choice", "ComboBox", "CheckBox", "TextCtrlAndButton", "ChoiceAndButton", "SpinCtrl", "DatePickerCtrl"]
+ }, {
+ "type": "choice",
+ "m_label": "Kind:",
+ "m_selection": 4,
+ "m_options": ["wxPropertyCategory", "wxIntProperty", "wxFloatProperty", "wxBoolProperty", "wxStringProperty", "wxLongStringProperty", "wxDirProperty", "wxArrayStringProperty", "wxFileProperty", "wxEnumProperty", "wxEditEnumProperty", "wxFlagsProperty", "wxDateProperty", "wxImageFileProperty", "wxFontProperty", "wxSystemColourProperty"]
+ }, {
+ "type": "string",
+ "m_label": "String Value",
+ "m_value": ""
+ }, {
+ "type": "multi-string",
+ "m_label": "Choices:",
+ "m_value": ""
+ }, {
+ "type": "multi-string",
+ "m_label": "Array Integer Values",
+ "m_value": ""
+ }, {
+ "type": "bool",
+ "m_label": "Bool Value",
+ "m_value": true
+ }, {
+ "type": "string",
+ "m_label": "Wildcard",
+ "m_value": ""
+ }, {
+ "type": "font",
+ "m_label": "Font:",
+ "m_value": ""
+ }, {
+ "type": "colour",
+ "m_label": "Initial Colour",
+ "colour": "<Default>"
+ }],
+ "m_events": [],
+ "m_children": [{
+ "m_type": 4486,
+ "proportion": 0,
+ "border": 5,
+ "gbSpan": "1,1",
+ "gbPosition": "0,0",
+ "m_styles": [],
+ "m_sizerFlags": [],
+ "m_properties": [{
+ "type": "string",
+ "m_label": "Name:",
+ "m_value": "m_pgPropMarginsUp"
+ }, {
+ "type": "string",
+ "m_label": "Label:",
+ "m_value": "Up"
+ }, {
+ "type": "multi-string",
+ "m_label": "Tooltip:",
+ "m_value": ""
+ }, {
+ "type": "colour",
+ "m_label": "Bg Colour:",
+ "colour": "<Default>"
+ }, {
+ "type": "choice",
+ "m_label": "Property Editor Control",
+ "m_selection": 0,
+ "m_options": ["", "TextCtrl", "Choice", "ComboBox", "CheckBox", "TextCtrlAndButton", "ChoiceAndButton", "SpinCtrl", "DatePickerCtrl"]
+ }, {
+ "type": "choice",
+ "m_label": "Kind:",
+ "m_selection": 1,
+ "m_options": ["wxPropertyCategory", "wxIntProperty", "wxFloatProperty", "wxBoolProperty", "wxStringProperty", "wxLongStringProperty", "wxDirProperty", "wxArrayStringProperty", "wxFileProperty", "wxEnumProperty", "wxEditEnumProperty", "wxFlagsProperty", "wxDateProperty", "wxImageFileProperty", "wxFontProperty", "wxSystemColourProperty"]
+ }, {
+ "type": "string",
+ "m_label": "String Value",
+ "m_value": "20"
+ }, {
+ "type": "multi-string",
+ "m_label": "Choices:",
+ "m_value": ""
+ }, {
+ "type": "multi-string",
+ "m_label": "Array Integer Values",
+ "m_value": ""
+ }, {
+ "type": "bool",
+ "m_label": "Bool Value",
+ "m_value": true
+ }, {
+ "type": "string",
+ "m_label": "Wildcard",
+ "m_value": ""
+ }, {
+ "type": "font",
+ "m_label": "Font:",
+ "m_value": ""
+ }, {
+ "type": "colour",
+ "m_label": "Initial Colour",
+ "colour": "<Default>"
+ }],
+ "m_events": [],
+ "m_children": []
+ }, {
+ "m_type": 4486,
+ "proportion": 0,
+ "border": 5,
+ "gbSpan": "1,1",
+ "gbPosition": "0,0",
+ "m_styles": [],
+ "m_sizerFlags": [],
+ "m_properties": [{
+ "type": "string",
+ "m_label": "Name:",
+ "m_value": "m_pgPropYMarginsBot"
+ }, {
+ "type": "string",
+ "m_label": "Label:",
+ "m_value": "Botton"
+ }, {
+ "type": "multi-string",
+ "m_label": "Tooltip:",
+ "m_value": ""
+ }, {
+ "type": "colour",
+ "m_label": "Bg Colour:",
+ "colour": "<Default>"
+ }, {
+ "type": "choice",
+ "m_label": "Property Editor Control",
+ "m_selection": 0,
+ "m_options": ["", "TextCtrl", "Choice", "ComboBox", "CheckBox", "TextCtrlAndButton", "ChoiceAndButton", "SpinCtrl", "DatePickerCtrl"]
+ }, {
+ "type": "choice",
+ "m_label": "Kind:",
+ "m_selection": 1,
+ "m_options": ["wxPropertyCategory", "wxIntProperty", "wxFloatProperty", "wxBoolProperty", "wxStringProperty", "wxLongStringProperty", "wxDirProperty", "wxArrayStringProperty", "wxFileProperty", "wxEnumProperty", "wxEditEnumProperty", "wxFlagsProperty", "wxDateProperty", "wxImageFileProperty", "wxFontProperty", "wxSystemColourProperty"]
+ }, {
+ "type": "string",
+ "m_label": "String Value",
+ "m_value": "40"
+ }, {
+ "type": "multi-string",
+ "m_label": "Choices:",
+ "m_value": ""
+ }, {
+ "type": "multi-string",
+ "m_label": "Array Integer Values",
+ "m_value": ""
+ }, {
+ "type": "bool",
+ "m_label": "Bool Value",
+ "m_value": true
+ }, {
+ "type": "string",
+ "m_label": "Wildcard",
+ "m_value": ""
+ }, {
+ "type": "font",
+ "m_label": "Font:",
+ "m_value": ""
+ }, {
+ "type": "colour",
+ "m_label": "Initial Colour",
+ "colour": "<Default>"
+ }],
+ "m_events": [],
+ "m_children": []
+ }, {
+ "m_type": 4486,
+ "proportion": 0,
+ "border": 5,
+ "gbSpan": "1,1",
+ "gbPosition": "0,0",
+ "m_styles": [],
+ "m_sizerFlags": [],
+ "m_properties": [{
+ "type": "string",
+ "m_label": "Name:",
+ "m_value": "m_pgPropYMarginsLeft"
+ }, {
+ "type": "string",
+ "m_label": "Label:",
+ "m_value": "Left"
+ }, {
+ "type": "multi-string",
+ "m_label": "Tooltip:",
+ "m_value": ""
+ }, {
+ "type": "colour",
+ "m_label": "Bg Colour:",
+ "colour": "<Default>"
+ }, {
+ "type": "choice",
+ "m_label": "Property Editor Control",
+ "m_selection": 0,
+ "m_options": ["", "TextCtrl", "Choice", "ComboBox", "CheckBox", "TextCtrlAndButton", "ChoiceAndButton", "SpinCtrl", "DatePickerCtrl"]
+ }, {
+ "type": "choice",
+ "m_label": "Kind:",
+ "m_selection": 1,
+ "m_options": ["wxPropertyCategory", "wxIntProperty", "wxFloatProperty", "wxBoolProperty", "wxStringProperty", "wxLongStringProperty", "wxDirProperty", "wxArrayStringProperty", "wxFileProperty", "wxEnumProperty", "wxEditEnumProperty", "wxFlagsProperty", "wxDateProperty", "wxImageFileProperty", "wxFontProperty", "wxSystemColourProperty"]
+ }, {
+ "type": "string",
+ "m_label": "String Value",
+ "m_value": "60"
+ }, {
+ "type": "multi-string",
+ "m_label": "Choices:",
+ "m_value": ""
+ }, {
+ "type": "multi-string",
+ "m_label": "Array Integer Values",
+ "m_value": ""
+ }, {
+ "type": "bool",
+ "m_label": "Bool Value",
+ "m_value": true
+ }, {
+ "type": "string",
+ "m_label": "Wildcard",
+ "m_value": ""
+ }, {
+ "type": "font",
+ "m_label": "Font:",
+ "m_value": ""
+ }, {
+ "type": "colour",
+ "m_label": "Initial Colour",
+ "colour": "<Default>"
+ }],
+ "m_events": [],
+ "m_children": []
+ }, {
+ "m_type": 4486,
+ "proportion": 0,
+ "border": 5,
+ "gbSpan": "1,1",
+ "gbPosition": "0,0",
+ "m_styles": [],
+ "m_sizerFlags": [],
+ "m_properties": [{
+ "type": "string",
+ "m_label": "Name:",
+ "m_value": "m_pgPropYMarginsRight"
+ }, {
+ "type": "string",
+ "m_label": "Label:",
+ "m_value": "Right"
+ }, {
+ "type": "multi-string",
+ "m_label": "Tooltip:",
+ "m_value": ""
+ }, {
+ "type": "colour",
+ "m_label": "Bg Colour:",
+ "colour": "<Default>"
+ }, {
+ "type": "choice",
+ "m_label": "Property Editor Control",
+ "m_selection": 0,
+ "m_options": ["", "TextCtrl", "Choice", "ComboBox", "CheckBox", "TextCtrlAndButton", "ChoiceAndButton", "SpinCtrl", "DatePickerCtrl"]
+ }, {
+ "type": "choice",
+ "m_label": "Kind:",
+ "m_selection": 1,
+ "m_options": ["wxPropertyCategory", "wxIntProperty", "wxFloatProperty", "wxBoolProperty", "wxStringProperty", "wxLongStringProperty", "wxDirProperty", "wxArrayStringProperty", "wxFileProperty", "wxEnumProperty", "wxEditEnumProperty", "wxFlagsProperty", "wxDateProperty", "wxImageFileProperty", "wxFontProperty", "wxSystemColourProperty"]
+ }, {
+ "type": "string",
+ "m_label": "String Value",
+ "m_value": "10"
+ }, {
+ "type": "multi-string",
+ "m_label": "Choices:",
+ "m_value": ""
+ }, {
+ "type": "multi-string",
+ "m_label": "Array Integer Values",
+ "m_value": ""
+ }, {
+ "type": "bool",
+ "m_label": "Bool Value",
+ "m_value": true
+ }, {
+ "type": "string",
+ "m_label": "Wildcard",
+ "m_value": ""
+ }, {
+ "type": "font",
+ "m_label": "Font:",
+ "m_value": ""
+ }, {
+ "type": "colour",
+ "m_label": "Initial Colour",
+ "colour": "<Default>"
+ }],
+ "m_events": [],
+ "m_children": []
+ }]
+ }, {
+ "m_type": 4486,
+ "proportion": 0,
+ "border": 5,
+ "gbSpan": "1,1",
+ "gbPosition": "0,0",
+ "m_styles": [],
+ "m_sizerFlags": [],
+ "m_properties": [{
+ "type": "string",
+ "m_label": "Name:",
+ "m_value": "m_pgPropAxisLimit"
+ }, {
+ "type": "string",
+ "m_label": "Label:",
+ "m_value": "Axis limit"
+ }, {
+ "type": "multi-string",
+ "m_label": "Tooltip:",
+ "m_value": ""
+ }, {
+ "type": "colour",
+ "m_label": "Bg Colour:",
+ "colour": "<Default>"
+ }, {
+ "type": "choice",
+ "m_label": "Property Editor Control",
+ "m_selection": 0,
+ "m_options": ["", "TextCtrl", "Choice", "ComboBox", "CheckBox", "TextCtrlAndButton", "ChoiceAndButton", "SpinCtrl", "DatePickerCtrl"]
+ }, {
+ "type": "choice",
+ "m_label": "Kind:",
+ "m_selection": 4,
+ "m_options": ["wxPropertyCategory", "wxIntProperty", "wxFloatProperty", "wxBoolProperty", "wxStringProperty", "wxLongStringProperty", "wxDirProperty", "wxArrayStringProperty", "wxFileProperty", "wxEnumProperty", "wxEditEnumProperty", "wxFlagsProperty", "wxDateProperty", "wxImageFileProperty", "wxFontProperty", "wxSystemColourProperty"]
+ }, {
+ "type": "string",
+ "m_label": "String Value",
+ "m_value": ""
+ }, {
+ "type": "multi-string",
+ "m_label": "Choices:",
+ "m_value": ""
+ }, {
+ "type": "multi-string",
+ "m_label": "Array Integer Values",
+ "m_value": ""
+ }, {
+ "type": "bool",
+ "m_label": "Bool Value",
+ "m_value": true
+ }, {
+ "type": "string",
+ "m_label": "Wildcard",
+ "m_value": ""
+ }, {
+ "type": "font",
+ "m_label": "Font:",
+ "m_value": ""
+ }, {
+ "type": "colour",
+ "m_label": "Initial Colour",
+ "colour": "<Default>"
+ }],
+ "m_events": [],
+ "m_children": [{
+ "m_type": 4486,
+ "proportion": 0,
+ "border": 5,
+ "gbSpan": "1,1",
+ "gbPosition": "0,0",
+ "m_styles": [],
+ "m_sizerFlags": [],
+ "m_properties": [{
+ "type": "string",
+ "m_label": "Name:",
+ "m_value": "m_pgPropXMin"
+ }, {
+ "type": "string",
+ "m_label": "Label:",
+ "m_value": "X min"
+ }, {
+ "type": "multi-string",
+ "m_label": "Tooltip:",
+ "m_value": ""
+ }, {
+ "type": "colour",
+ "m_label": "Bg Colour:",
+ "colour": "<Default>"
+ }, {
+ "type": "choice",
+ "m_label": "Property Editor Control",
+ "m_selection": 0,
+ "m_options": ["", "TextCtrl", "Choice", "ComboBox", "CheckBox", "TextCtrlAndButton", "ChoiceAndButton", "SpinCtrl", "DatePickerCtrl"]
+ }, {
+ "type": "choice",
+ "m_label": "Kind:",
+ "m_selection": 2,
+ "m_options": ["wxPropertyCategory", "wxIntProperty", "wxFloatProperty", "wxBoolProperty", "wxStringProperty", "wxLongStringProperty", "wxDirProperty", "wxArrayStringProperty", "wxFileProperty", "wxEnumProperty", "wxEditEnumProperty", "wxFlagsProperty", "wxDateProperty", "wxImageFileProperty", "wxFontProperty", "wxSystemColourProperty"]
+ }, {
+ "type": "string",
+ "m_label": "String Value",
+ "m_value": "0"
+ }, {
+ "type": "multi-string",
+ "m_label": "Choices:",
+ "m_value": ""
+ }, {
+ "type": "multi-string",
+ "m_label": "Array Integer Values",
+ "m_value": ""
+ }, {
+ "type": "bool",
+ "m_label": "Bool Value",
+ "m_value": true
+ }, {
+ "type": "string",
+ "m_label": "Wildcard",
+ "m_value": ""
+ }, {
+ "type": "font",
+ "m_label": "Font:",
+ "m_value": ""
+ }, {
+ "type": "colour",
+ "m_label": "Initial Colour",
+ "colour": "<Default>"
+ }],
+ "m_events": [],
+ "m_children": []
+ }, {
+ "m_type": 4486,
+ "proportion": 0,
+ "border": 5,
+ "gbSpan": "1,1",
+ "gbPosition": "0,0",
+ "m_styles": [],
+ "m_sizerFlags": [],
+ "m_properties": [{
+ "type": "string",
+ "m_label": "Name:",
+ "m_value": "m_pgPropXMax"
+ }, {
+ "type": "string",
+ "m_label": "Label:",
+ "m_value": "X max"
+ }, {
+ "type": "multi-string",
+ "m_label": "Tooltip:",
+ "m_value": ""
+ }, {
+ "type": "colour",
+ "m_label": "Bg Colour:",
+ "colour": "<Default>"
+ }, {
+ "type": "choice",
+ "m_label": "Property Editor Control",
+ "m_selection": 0,
+ "m_options": ["", "TextCtrl", "Choice", "ComboBox", "CheckBox", "TextCtrlAndButton", "ChoiceAndButton", "SpinCtrl", "DatePickerCtrl"]
+ }, {
+ "type": "choice",
+ "m_label": "Kind:",
+ "m_selection": 2,
+ "m_options": ["wxPropertyCategory", "wxIntProperty", "wxFloatProperty", "wxBoolProperty", "wxStringProperty", "wxLongStringProperty", "wxDirProperty", "wxArrayStringProperty", "wxFileProperty", "wxEnumProperty", "wxEditEnumProperty", "wxFlagsProperty", "wxDateProperty", "wxImageFileProperty", "wxFontProperty", "wxSystemColourProperty"]
+ }, {
+ "type": "string",
+ "m_label": "String Value",
+ "m_value": "0"
+ }, {
+ "type": "multi-string",
+ "m_label": "Choices:",
+ "m_value": ""
+ }, {
+ "type": "multi-string",
+ "m_label": "Array Integer Values",
+ "m_value": ""
+ }, {
+ "type": "bool",
+ "m_label": "Bool Value",
+ "m_value": true
+ }, {
+ "type": "string",
+ "m_label": "Wildcard",
+ "m_value": ""
+ }, {
+ "type": "font",
+ "m_label": "Font:",
+ "m_value": ""
+ }, {
+ "type": "colour",
+ "m_label": "Initial Colour",
+ "colour": "<Default>"
+ }],
+ "m_events": [],
+ "m_children": []
+ }, {
+ "m_type": 4486,
+ "proportion": 0,
+ "border": 5,
+ "gbSpan": "1,1",
+ "gbPosition": "0,0",
+ "m_styles": [],
+ "m_sizerFlags": [],
+ "m_properties": [{
+ "type": "string",
+ "m_label": "Name:",
+ "m_value": "m_pgPropYMin"
+ }, {
+ "type": "string",
+ "m_label": "Label:",
+ "m_value": "Y min"
+ }, {
+ "type": "multi-string",
+ "m_label": "Tooltip:",
+ "m_value": ""
+ }, {
+ "type": "colour",
+ "m_label": "Bg Colour:",
+ "colour": "<Default>"
+ }, {
+ "type": "choice",
+ "m_label": "Property Editor Control",
+ "m_selection": 0,
+ "m_options": ["", "TextCtrl", "Choice", "ComboBox", "CheckBox", "TextCtrlAndButton", "ChoiceAndButton", "SpinCtrl", "DatePickerCtrl"]
+ }, {
+ "type": "choice",
+ "m_label": "Kind:",
+ "m_selection": 2,
+ "m_options": ["wxPropertyCategory", "wxIntProperty", "wxFloatProperty", "wxBoolProperty", "wxStringProperty", "wxLongStringProperty", "wxDirProperty", "wxArrayStringProperty", "wxFileProperty", "wxEnumProperty", "wxEditEnumProperty", "wxFlagsProperty", "wxDateProperty", "wxImageFileProperty", "wxFontProperty", "wxSystemColourProperty"]
+ }, {
+ "type": "string",
+ "m_label": "String Value",
+ "m_value": "0"
+ }, {
+ "type": "multi-string",
+ "m_label": "Choices:",
+ "m_value": ""
+ }, {
+ "type": "multi-string",
+ "m_label": "Array Integer Values",
+ "m_value": ""
+ }, {
+ "type": "bool",
+ "m_label": "Bool Value",
+ "m_value": true
+ }, {
+ "type": "string",
+ "m_label": "Wildcard",
+ "m_value": ""
+ }, {
+ "type": "font",
+ "m_label": "Font:",
+ "m_value": ""
+ }, {
+ "type": "colour",
+ "m_label": "Initial Colour",
+ "colour": "<Default>"
+ }],
+ "m_events": [],
+ "m_children": []
+ }, {
+ "m_type": 4486,
+ "proportion": 0,
+ "border": 5,
+ "gbSpan": "1,1",
+ "gbPosition": "0,0",
+ "m_styles": [],
+ "m_sizerFlags": [],
+ "m_properties": [{
+ "type": "string",
+ "m_label": "Name:",
+ "m_value": "m_pgPropYMax"
+ }, {
+ "type": "string",
+ "m_label": "Label:",
+ "m_value": "Y max"
+ }, {
+ "type": "multi-string",
+ "m_label": "Tooltip:",
+ "m_value": ""
+ }, {
+ "type": "colour",
+ "m_label": "Bg Colour:",
+ "colour": "<Default>"
+ }, {
+ "type": "choice",
+ "m_label": "Property Editor Control",
+ "m_selection": 0,
+ "m_options": ["", "TextCtrl", "Choice", "ComboBox", "CheckBox", "TextCtrlAndButton", "ChoiceAndButton", "SpinCtrl", "DatePickerCtrl"]
+ }, {
+ "type": "choice",
+ "m_label": "Kind:",
+ "m_selection": 2,
+ "m_options": ["wxPropertyCategory", "wxIntProperty", "wxFloatProperty", "wxBoolProperty", "wxStringProperty", "wxLongStringProperty", "wxDirProperty", "wxArrayStringProperty", "wxFileProperty", "wxEnumProperty", "wxEditEnumProperty", "wxFlagsProperty", "wxDateProperty", "wxImageFileProperty", "wxFontProperty", "wxSystemColourProperty"]
+ }, {
+ "type": "string",
+ "m_label": "String Value",
+ "m_value": "0"
+ }, {
+ "type": "multi-string",
+ "m_label": "Choices:",
+ "m_value": ""
+ }, {
+ "type": "multi-string",
+ "m_label": "Array Integer Values",
+ "m_value": ""
+ }, {
+ "type": "bool",
+ "m_label": "Bool Value",
+ "m_value": true
+ }, {
+ "type": "string",
+ "m_label": "Wildcard",
+ "m_value": ""
+ }, {
+ "type": "font",
+ "m_label": "Font:",
+ "m_value": ""
+ }, {
+ "type": "colour",
+ "m_label": "Initial Colour",
+ "colour": "<Default>"
+ }],
+ "m_events": [],
+ "m_children": []
+ }]
+ }]
}]
}]
}, {
diff --git a/Project/ChartViewBase.cpp b/Project/ChartViewBase.cpp
new file mode 100644
index 0000000..2fbec21
--- /dev/null
+++ b/Project/ChartViewBase.cpp
@@ -0,0 +1,191 @@
+//////////////////////////////////////////////////////////////////////
+// This file was auto-generated by codelite's wxCrafter Plugin
+// wxCrafter project file: ChartView.wxcp
+// Do not modify this file by hand!
+//////////////////////////////////////////////////////////////////////
+
+#include "ChartViewBase.h"
+
+
+// Declare the bitmap loading function
+extern void wxCE3EBInitBitmapResources();
+
+static bool bBitmapLoaded = false;
+
+
+ChartViewBase::ChartViewBase(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);
+ wxCE3EBInitBitmapResources();
+ bBitmapLoaded = true;
+ }
+
+ m_menuBar = new wxMenuBar(0);
+ this->SetMenuBar(m_menuBar);
+
+ m_menuFile = new wxMenu();
+ m_menuBar->Append(m_menuFile, _("File"));
+
+ m_menuItemSaveImage = new wxMenuItem(m_menuFile, wxID_ANY, _("Save chart as image"), wxT(""), wxITEM_NORMAL);
+ m_menuFile->Append(m_menuItemSaveImage);
+
+ m_menuItemSandToClipboard = new wxMenuItem(m_menuFile, wxID_ANY, _("Send to clipboard"), wxT(""), wxITEM_NORMAL);
+ m_menuFile->Append(m_menuItemSandToClipboard);
+
+ m_menuFile->AppendSeparator();
+
+ m_menuItemExit = new wxMenuItem(m_menuFile, wxID_ANY, _("Exit"), wxT(""), wxITEM_NORMAL);
+ m_menuFile->Append(m_menuItemExit);
+
+ m_menuView = new wxMenu();
+ m_menuBar->Append(m_menuView, _("View"));
+
+ m_menuItemFit = new wxMenuItem(m_menuView, wxID_ANY, _("Fit"), wxT(""), wxITEM_NORMAL);
+ m_menuView->Append(m_menuItemFit);
+
+ m_menuView->AppendSeparator();
+
+ m_menuItemShowGrid = new wxMenuItem(m_menuView, wxID_ANY, _("Show grid"), wxT(""), wxITEM_CHECK);
+ m_menuView->Append(m_menuItemShowGrid);
+
+ m_menuItemShowLabel = new wxMenuItem(m_menuView, wxID_ANY, _("Show label"), wxT(""), wxITEM_CHECK);
+ m_menuView->Append(m_menuItemShowLabel);
+
+ m_menuItemShowCoordinates = new wxMenuItem(m_menuView, wxID_ANY, _("Show coordinates"), wxT(""), wxITEM_CHECK);
+ m_menuView->Append(m_menuItemShowCoordinates);
+
+ m_menuItemDarkTheme = new wxMenuItem(m_menuView, wxID_ANY, _("Dark theme"), wxT(""), wxITEM_CHECK);
+ m_menuView->Append(m_menuItemDarkTheme);
+
+ wxBoxSizer* boxSizer_lvl1_1 = new wxBoxSizer(wxHORIZONTAL);
+ this->SetSizer(boxSizer_lvl1_1);
+
+ wxBoxSizer* boxSizer_lvl2_1 = new wxBoxSizer(wxVERTICAL);
+
+ boxSizer_lvl1_1->Add(boxSizer_lvl2_1, 0, wxEXPAND, WXC_FROM_DIP(5));
+
+ m_treeCtrl = new wxTreeCtrl(this, wxID_ANY, wxDefaultPosition, wxDLG_UNIT(this, wxSize(-1,-1)), wxTR_DEFAULT_STYLE);
+
+ boxSizer_lvl2_1->Add(m_treeCtrl, 1, 0, WXC_FROM_DIP(5));
+ m_treeCtrl->SetMinSize(wxSize(250,-1));
+
+ wxArrayString m_pgMgrArr;
+ wxUnusedVar(m_pgMgrArr);
+ wxArrayInt m_pgMgrIntArr;
+ wxUnusedVar(m_pgMgrIntArr);
+ m_pgMgr = new wxPropertyGridManager(this, wxID_ANY, wxDefaultPosition, wxDLG_UNIT(this, wxSize(-1,-1)), wxPG_SPLITTER_AUTO_CENTER|wxPG_BOLD_MODIFIED);
+
+ boxSizer_lvl2_1->Add(m_pgMgr, 0, 0, WXC_FROM_DIP(5));
+
+ m_pgPropLineProp = m_pgMgr->Append( new wxPropertyCategory( _("Line properties") ) );
+ m_pgPropLineProp->SetHelpString(wxT(""));
+
+ m_pgPropDraw = m_pgMgr->AppendIn( m_pgPropLineProp, new wxBoolProperty( _("Draw"), wxPG_LABEL, 1) );
+ m_pgPropDraw->SetHelpString(wxT(""));
+ m_pgPropDraw->SetEditor( wxT("CheckBox") );
+
+ m_pgPropColor = m_pgMgr->AppendIn( m_pgPropLineProp, new wxSystemColourProperty( _("Color")) );
+ m_pgPropColor->SetValueToUnspecified();
+ m_pgPropColor->SetHelpString(wxT(""));
+ m_pgPropColor->SetEditor( wxT("ChoiceAndButton") );
+
+ m_pgProplineThick = m_pgMgr->AppendIn( m_pgPropLineProp, new wxIntProperty( _("Thickness"), wxPG_LABEL, 1) );
+ m_pgProplineThick->SetHelpString(wxT(""));
+ m_pgProplineThick->SetEditor( wxT("TextCtrl") );
+
+ m_pgMgrArr.Clear();
+ m_pgMgrIntArr.Clear();
+ m_pgMgrArr.Add(_("Solid"));
+ m_pgMgrArr.Add(_("Dot"));
+ m_pgMgrArr.Add(_("Dash"));
+ m_pgMgrArr.Add(_("Dot and dash"));
+ m_pgMgrArr.Add(_("Cross"));
+ m_pgMgrArr.Add(_("Diagonal cross"));
+ m_pgProplineType = m_pgMgr->AppendIn( m_pgPropLineProp, new wxEnumProperty( _("Type"), wxPG_LABEL, m_pgMgrArr, m_pgMgrIntArr, 0) );
+ m_pgProplineType->SetHelpString(wxT(""));
+ m_pgProplineType->SetEditor( wxT("Choice") );
+
+ m_pgMgrArr.Clear();
+ m_pgMgrIntArr.Clear();
+ m_pgMgrArr.Add(_("Y"));
+ m_pgMgrArr.Add(_("X"));
+ m_pgProplineAxis = m_pgMgr->AppendIn( m_pgPropLineProp, new wxEnumProperty( _("Axis"), wxPG_LABEL, m_pgMgrArr, m_pgMgrIntArr, 0) );
+ m_pgProplineAxis->SetHelpString(wxT(""));
+ m_pgProplineAxis->SetEditor( wxT("Choice") );
+
+ m_pgPropChartProp = m_pgMgr->Append( new wxPropertyCategory( _("Chart properties") ) );
+ m_pgPropChartProp->SetHelpString(wxT(""));
+
+ m_pgPropChartTitle = m_pgMgr->AppendIn( m_pgPropChartProp, new wxStringProperty( _("Chart title"), wxPG_LABEL, wxT("")) );
+ m_pgPropChartTitle->SetHelpString(wxT(""));
+ m_pgPropChartTitle->SetEditor( wxT("TextCtrl") );
+
+ m_pgPropXLabel = m_pgMgr->AppendIn( m_pgPropChartProp, new wxStringProperty( _("X axis label"), wxPG_LABEL, wxT("")) );
+ m_pgPropXLabel->SetHelpString(wxT(""));
+ m_pgPropXLabel->SetEditor( wxT("TextCtrl") );
+
+ m_pgPropYLabel = m_pgMgr->AppendIn( m_pgPropChartProp, new wxStringProperty( _("Y axis label"), wxPG_LABEL, wxT("")) );
+ m_pgPropYLabel->SetHelpString(wxT(""));
+ m_pgPropYLabel->SetEditor( wxT("TextCtrl") );
+
+ m_pgPropMargins = m_pgMgr->AppendIn( m_pgPropChartProp, new wxStringProperty( _("Margins"), wxPG_LABEL, wxT("")) );
+ m_pgPropMargins->SetHelpString(wxT(""));
+
+ m_pgPropMarginsUp = m_pgMgr->AppendIn( m_pgPropMargins, new wxIntProperty( _("Up"), wxPG_LABEL, 20) );
+ m_pgPropMarginsUp->SetHelpString(wxT(""));
+
+ m_pgPropYMarginsBot = m_pgMgr->AppendIn( m_pgPropMargins, new wxIntProperty( _("Botton"), wxPG_LABEL, 40) );
+ m_pgPropYMarginsBot->SetHelpString(wxT(""));
+
+ m_pgPropYMarginsLeft = m_pgMgr->AppendIn( m_pgPropMargins, new wxIntProperty( _("Left"), wxPG_LABEL, 60) );
+ m_pgPropYMarginsLeft->SetHelpString(wxT(""));
+
+ m_pgPropYMarginsRight = m_pgMgr->AppendIn( m_pgPropMargins, new wxIntProperty( _("Right"), wxPG_LABEL, 10) );
+ m_pgPropYMarginsRight->SetHelpString(wxT(""));
+
+ m_pgPropAxisLimit = m_pgMgr->AppendIn( m_pgPropChartProp, new wxStringProperty( _("Axis limit"), wxPG_LABEL, wxT("")) );
+ m_pgPropAxisLimit->SetHelpString(wxT(""));
+
+ m_pgPropXMin = m_pgMgr->AppendIn( m_pgPropAxisLimit, new wxFloatProperty( _("X min"), wxPG_LABEL, 0) );
+ m_pgPropXMin->SetHelpString(wxT(""));
+
+ m_pgPropXMax = m_pgMgr->AppendIn( m_pgPropAxisLimit, new wxFloatProperty( _("X max"), wxPG_LABEL, 0) );
+ m_pgPropXMax->SetHelpString(wxT(""));
+
+ m_pgPropYMin = m_pgMgr->AppendIn( m_pgPropAxisLimit, new wxFloatProperty( _("Y min"), wxPG_LABEL, 0) );
+ m_pgPropYMin->SetHelpString(wxT(""));
+
+ m_pgPropYMax = m_pgMgr->AppendIn( m_pgPropAxisLimit, new wxFloatProperty( _("Y max"), wxPG_LABEL, 0) );
+ m_pgPropYMax->SetHelpString(wxT(""));
+ m_pgMgr->SetMinSize(wxSize(250,250));
+
+ m_panelChart = new wxPanel(this, wxID_ANY, wxDefaultPosition, wxDLG_UNIT(this, wxSize(-1,-1)), wxTAB_TRAVERSAL);
+
+ boxSizer_lvl1_1->Add(m_panelChart, 1, wxEXPAND, WXC_FROM_DIP(5));
+ m_panelChart->SetMinSize(wxSize(100,300));
+
+ SetName(wxT("ChartViewBase"));
+ SetSize(-1,-1);
+ 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
+}
+
+ChartViewBase::~ChartViewBase()
+{
+}
diff --git a/Project/ChartViewBase.h b/Project/ChartViewBase.h
new file mode 100644
index 0000000..e83ab94
--- /dev/null
+++ b/Project/ChartViewBase.h
@@ -0,0 +1,91 @@
+//////////////////////////////////////////////////////////////////////
+// This file was auto-generated by codelite's wxCrafter Plugin
+// wxCrafter project file: ChartView.wxcp
+// Do not modify this file by hand!
+//////////////////////////////////////////////////////////////////////
+
+#ifndef _PSP_PROJECT_CHARTVIEW_BASE_CLASSES_H
+#define _PSP_PROJECT_CHARTVIEW_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/menu.h>
+#include <wx/treectrl.h>
+#include <wx/propgrid/manager.h>
+#include <wx/propgrid/property.h>
+#include <wx/propgrid/advprops.h>
+#include <wx/panel.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 ChartViewBase : public wxFrame
+{
+protected:
+ wxMenuBar* m_menuBar;
+ wxMenu* m_menuFile;
+ wxMenuItem* m_menuItemSaveImage;
+ wxMenuItem* m_menuItemSandToClipboard;
+ wxMenuItem* m_menuItemSeparator_1;
+ wxMenuItem* m_menuItemExit;
+ wxMenu* m_menuView;
+ wxMenuItem* m_menuItemFit;
+ wxMenuItem* m_menuItemSeparator_2;
+ wxMenuItem* m_menuItemShowGrid;
+ wxMenuItem* m_menuItemShowLabel;
+ wxMenuItem* m_menuItemShowCoordinates;
+ wxMenuItem* m_menuItemDarkTheme;
+ wxTreeCtrl* m_treeCtrl;
+ wxPropertyGridManager* m_pgMgr;
+ wxPGProperty* m_pgPropLineProp;
+ wxPGProperty* m_pgPropDraw;
+ wxPGProperty* m_pgPropColor;
+ wxPGProperty* m_pgProplineThick;
+ wxPGProperty* m_pgProplineType;
+ wxPGProperty* m_pgProplineAxis;
+ wxPGProperty* m_pgPropChartProp;
+ wxPGProperty* m_pgPropChartTitle;
+ wxPGProperty* m_pgPropXLabel;
+ wxPGProperty* m_pgPropYLabel;
+ wxPGProperty* m_pgPropMargins;
+ wxPGProperty* m_pgPropMarginsUp;
+ wxPGProperty* m_pgPropYMarginsBot;
+ wxPGProperty* m_pgPropYMarginsLeft;
+ wxPGProperty* m_pgPropYMarginsRight;
+ wxPGProperty* m_pgPropAxisLimit;
+ wxPGProperty* m_pgPropXMin;
+ wxPGProperty* m_pgPropXMax;
+ wxPGProperty* m_pgPropYMin;
+ wxPGProperty* m_pgPropYMax;
+ wxPanel* m_panelChart;
+
+protected:
+
+public:
+ wxMenuBar* GetMenuBar() { return m_menuBar; }
+ wxTreeCtrl* GetTreeCtrl() { return m_treeCtrl; }
+ wxPropertyGridManager* GetPgMgr() { return m_pgMgr; }
+ wxPanel* GetPanelChart() { return m_panelChart; }
+ ChartViewBase(wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = _("Chart view"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize(-1,-1), long style = wxDEFAULT_FRAME_STYLE);
+ virtual ~ChartViewBase();
+};
+
+#endif
diff --git a/Project/ChartViewBitmaps.cpp b/Project/ChartViewBitmaps.cpp
new file mode 100644
index 0000000..274e17e
--- /dev/null
+++ b/Project/ChartViewBitmaps.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 wxCE3EBInitBitmapResources()
+{
+
+ // 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/ChartViewBitmaps.cpp$C__Users_NDSE-69_Documents_GitHub_PSP_Project_ChartViewBitmaps.xrc"), xml_res_file_0, xml_res_size_0, wxT("text/xml"));
+ wxXmlResource::Get()->Load(wxT("memory:XRC_resource/ChartViewBitmaps.cpp$C__Users_NDSE-69_Documents_GitHub_PSP_Project_ChartViewBitmaps.xrc"));
+}
diff --git a/Project/Project.project b/Project/Project.project
index ac88084..d055b7a 100644
--- a/Project/Project.project
+++ b/Project/Project.project
@@ -57,6 +57,7 @@
<VirtualDirectory Name="wxMathPlot">
<File Name="wxMathPlot/mathplot.cpp"/>
</VirtualDirectory>
+ <File Name="ChartView.cpp"/>
</VirtualDirectory>
<VirtualDirectory Name="controller">
<File Name="MainFrame.cpp"/>
@@ -146,6 +147,7 @@
<VirtualDirectory Name="wxMathPlot">
<File Name="wxMathPlot/mathplot.h"/>
</VirtualDirectory>
+ <File Name="ChartView.h"/>
</VirtualDirectory>
<VirtualDirectory Name="controller">
<File Name="MainFrame.h"/>
@@ -189,6 +191,7 @@
<File Name="BusFormBitmaps.cpp"/>
<File Name="ElementFormBitmaps.cpp"/>
<File Name="ControlEditorBitmaps.cpp"/>
+ <File Name="ChartViewBitmaps.cpp"/>
</VirtualDirectory>
<VirtualDirectory Name="base">
<File Name="MainFrameBase.h"/>
@@ -199,6 +202,8 @@
<File Name="ElementForm.cpp"/>
<File Name="ControlEditorBase.h"/>
<File Name="ControlEditorBase.cpp"/>
+ <File Name="ChartViewBase.h"/>
+ <File Name="ChartViewBase.cpp"/>
</VirtualDirectory>
<File Name="MainFrame.wxcp"/>
<File Name="Workspace.wxcp"/>