From ddb262a4d6bed48ac68eeed99032e10c49c02996 Mon Sep 17 00:00:00 2001 From: Thales1330 Date: Wed, 18 Jan 2017 19:45:49 -0200 Subject: Control editor implementation start --- Project/ControlEditorBase.h | 66 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 Project/ControlEditorBase.h (limited to 'Project/ControlEditorBase.h') 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 +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#if wxVERSION_NUMBER >= 2900 +#include +#include +#include +#include +#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 -- cgit From 864842440bb7fd9f8495314b8bfa2e2c8a0d47f4 Mon Sep 17 00:00:00 2001 From: Thales1330 Date: Thu, 19 Jan 2017 19:18:16 -0200 Subject: Cunston control element button implementation --- Project/ControlEditorBase.h | 37 +++++++++++++++++-------------------- 1 file changed, 17 insertions(+), 20 deletions(-) (limited to 'Project/ControlEditorBase.h') diff --git a/Project/ControlEditorBase.h b/Project/ControlEditorBase.h index ee79704..e74bf49 100644 --- a/Project/ControlEditorBase.h +++ b/Project/ControlEditorBase.h @@ -14,11 +14,12 @@ #include #include #include -#include +#include +#include +#include #include -#include -#include #include +#include #if wxVERSION_NUMBER >= 2900 #include #include @@ -39,27 +40,23 @@ 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; + wxToolBar* m_toolbarMain; + wxAuiManager* m_auimgr; + wxPanel* m_panelControlElements; + wxPanel* m_panelWorkspace; + wxGLCanvas* m_glCanvas; + wxStatusBar* m_statusBarMain; 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); + wxToolBar* GetToolbarMain() { return m_toolbarMain; } + wxPanel* GetPanelControlElements() { return m_panelControlElements; } + wxGLCanvas* GetGlCanvas() { return m_glCanvas; } + wxPanel* GetPanelWorkspace() { return m_panelWorkspace; } + wxAuiManager* GetAuimgr() { return m_auimgr; } + wxStatusBar* GetStatusBarMain() { return m_statusBarMain; } + ControlEditorBase(wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = _("Control editor"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize(800,600), long style = wxDEFAULT_FRAME_STYLE); virtual ~ControlEditorBase(); }; -- cgit From bdb0625280d827ba7333b6fc9d6c6534e0720100 Mon Sep 17 00:00:00 2001 From: Thales1330 Date: Tue, 24 Jan 2017 18:25:17 -0200 Subject: Control editor implementation start --- Project/ControlEditorBase.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Project/ControlEditorBase.h') diff --git a/Project/ControlEditorBase.h b/Project/ControlEditorBase.h index e74bf49..5bee173 100644 --- a/Project/ControlEditorBase.h +++ b/Project/ControlEditorBase.h @@ -48,6 +48,13 @@ protected: wxStatusBar* m_statusBarMain; protected: + virtual void OnPaint(wxPaintEvent& event) { event.Skip(); } + virtual void OnLeftClickDown(wxMouseEvent& event) { event.Skip(); } + virtual void OnLeftClickUp(wxMouseEvent& event) { event.Skip(); } + virtual void OnDoubleClick(wxMouseEvent& event) { event.Skip(); } + virtual void OnMiddleDown(wxMouseEvent& event) { event.Skip(); } + virtual void OnMiddleUp(wxMouseEvent& event) { event.Skip(); } + virtual void OnMouseMotion(wxMouseEvent& event) { event.Skip(); } public: wxToolBar* GetToolbarMain() { return m_toolbarMain; } -- cgit From 9f17be8af02011f04d188ce991921f6eb0ecf792 Mon Sep 17 00:00:00 2001 From: Thales1330 Date: Wed, 25 Jan 2017 19:45:45 -0200 Subject: Several graphic tools implemented, tf start --- Project/ControlEditorBase.h | 1 + 1 file changed, 1 insertion(+) (limited to 'Project/ControlEditorBase.h') diff --git a/Project/ControlEditorBase.h b/Project/ControlEditorBase.h index 5bee173..e3b7a94 100644 --- a/Project/ControlEditorBase.h +++ b/Project/ControlEditorBase.h @@ -55,6 +55,7 @@ protected: virtual void OnMiddleDown(wxMouseEvent& event) { event.Skip(); } virtual void OnMiddleUp(wxMouseEvent& event) { event.Skip(); } virtual void OnMouseMotion(wxMouseEvent& event) { event.Skip(); } + virtual void OnScroll(wxMouseEvent& event) { event.Skip(); } public: wxToolBar* GetToolbarMain() { return m_toolbarMain; } -- cgit From 10bb7105946bc0a892a9daf42ec5181ad9994fcf Mon Sep 17 00:00:00 2001 From: Thales1330 Date: Fri, 27 Jan 2017 19:57:18 -0200 Subject: several control elements methods implemented Node position buggy --- Project/ControlEditorBase.h | 1 + 1 file changed, 1 insertion(+) (limited to 'Project/ControlEditorBase.h') diff --git a/Project/ControlEditorBase.h b/Project/ControlEditorBase.h index e3b7a94..c4e846f 100644 --- a/Project/ControlEditorBase.h +++ b/Project/ControlEditorBase.h @@ -56,6 +56,7 @@ protected: virtual void OnMiddleUp(wxMouseEvent& event) { event.Skip(); } virtual void OnMouseMotion(wxMouseEvent& event) { event.Skip(); } virtual void OnScroll(wxMouseEvent& event) { event.Skip(); } + virtual void OnIdle(wxIdleEvent& event) { event.Skip(); } public: wxToolBar* GetToolbarMain() { return m_toolbarMain; } -- cgit From 4ddc7be64451db873e49169e951532ce8893e359 Mon Sep 17 00:00:00 2001 From: Thales1330 Date: Fri, 3 Mar 2017 18:50:40 -0300 Subject: More connection line methods implemented --- Project/ControlEditorBase.h | 1 + 1 file changed, 1 insertion(+) (limited to 'Project/ControlEditorBase.h') diff --git a/Project/ControlEditorBase.h b/Project/ControlEditorBase.h index c4e846f..ecc655b 100644 --- a/Project/ControlEditorBase.h +++ b/Project/ControlEditorBase.h @@ -57,6 +57,7 @@ protected: virtual void OnMouseMotion(wxMouseEvent& event) { event.Skip(); } virtual void OnScroll(wxMouseEvent& event) { event.Skip(); } virtual void OnIdle(wxIdleEvent& event) { event.Skip(); } + virtual void OnKeyDown(wxKeyEvent& event) { event.Skip(); } public: wxToolBar* GetToolbarMain() { return m_toolbarMain; } -- cgit From f19803bc64885bcfaef15cfd7a8139c28d3dd506 Mon Sep 17 00:00:00 2001 From: Thales Lima Oliveira Date: Sat, 8 Apr 2017 16:31:25 -0300 Subject: Control editor export under implementation File handling --- Project/ControlEditorBase.h | 1 + 1 file changed, 1 insertion(+) (limited to 'Project/ControlEditorBase.h') diff --git a/Project/ControlEditorBase.h b/Project/ControlEditorBase.h index ecc655b..e72ca31 100644 --- a/Project/ControlEditorBase.h +++ b/Project/ControlEditorBase.h @@ -48,6 +48,7 @@ protected: wxStatusBar* m_statusBarMain; protected: + virtual void OnExportClick(wxCommandEvent& event) { event.Skip(); } virtual void OnPaint(wxPaintEvent& event) { event.Skip(); } virtual void OnLeftClickDown(wxMouseEvent& event) { event.Skip(); } virtual void OnLeftClickUp(wxMouseEvent& event) { event.Skip(); } -- cgit From 52931022eb25080e33f2362c3b0bd4361f0cdb0b Mon Sep 17 00:00:00 2001 From: Thales Lima Oliveira Date: Wed, 12 Apr 2017 18:57:10 -0300 Subject: Open control implementation --- Project/ControlEditorBase.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Project/ControlEditorBase.h') diff --git a/Project/ControlEditorBase.h b/Project/ControlEditorBase.h index e72ca31..ac89b32 100644 --- a/Project/ControlEditorBase.h +++ b/Project/ControlEditorBase.h @@ -39,6 +39,11 @@ class ControlEditorBase : public wxFrame { +public: + enum { + ID_RIBBON_EXPORT = 10001, + ID_RIBBON_IMPORT = 10002, + }; protected: wxToolBar* m_toolbarMain; wxAuiManager* m_auimgr; @@ -48,6 +53,7 @@ protected: wxStatusBar* m_statusBarMain; protected: + virtual void OnImportClick(wxCommandEvent& event) { event.Skip(); } virtual void OnExportClick(wxCommandEvent& event) { event.Skip(); } virtual void OnPaint(wxPaintEvent& event) { event.Skip(); } virtual void OnLeftClickDown(wxMouseEvent& event) { event.Skip(); } -- cgit