From 66fd00eda79d106d07617ebdeb90cdd46786e691 Mon Sep 17 00:00:00 2001 From: Thales1330 Date: Fri, 9 Sep 2016 17:01:27 -0300 Subject: Bus form under implementation --- Project/ElementForm.h | 107 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 107 insertions(+) create mode 100644 Project/ElementForm.h (limited to 'Project/ElementForm.h') diff --git a/Project/ElementForm.h b/Project/ElementForm.h new file mode 100644 index 0000000..c336ff6 --- /dev/null +++ b/Project/ElementForm.h @@ -0,0 +1,107 @@ +////////////////////////////////////////////////////////////////////// +// This file was auto-generated by codelite's wxCrafter Plugin +// wxCrafter project file: ElementForm.wxcp +// Do not modify this file by hand! +////////////////////////////////////////////////////////////////////// + +#ifndef PSP_PROJECT_ELEMENTFORM_BASE_CLASSES_H +#define PSP_PROJECT_ELEMENTFORM_BASE_CLASSES_H + +#include +#include +#include +#include +#include +#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 BusFormBase : public wxDialog +{ +protected: + wxNotebook* m_notebook; + wxPanel* m_panelGeneral; + wxStaticText* m_staticTextName; + wxTextCtrl* m_textCtrlName; + wxStaticText* m_staticTextNomVoltage; + wxTextCtrl* m_textCtrlNomVoltage; + wxChoice* m_choiceNomVoltage; + wxCheckBox* m_checkBoxCtrlVoltage; + wxTextCtrl* m_textCtrlCtrlVoltage; + wxChoice* m_choiceCtrlVoltage; + wxCheckBox* m_checkBoxSlackBus; + wxPanel* m_panelFault; + wxCheckBox* m_checkBoxFault; + wxStaticText* m_staticTextFaultType; + wxChoice* m_choiceFaultType; + wxStaticText* m_staticTextFaultPlace; + wxChoice* m_choiceFaultPlace; + wxStaticText* m_staticTextFaultResistance; + wxTextCtrl* m_textCtrlFaultResistance; + wxStaticText* m_staticTextPU_1; + wxStaticText* m_staticTextReactance; + wxTextCtrl* m_textCtrlFaultReactance; + wxStaticText* m_staticTextPU_2; + wxButton* m_buttonOK; + wxButton* m_ButtonCancel; + +protected: + virtual void OnButtonOKClick(wxCommandEvent& event) { event.Skip(); } + virtual void OnButtonCancelClick(wxCommandEvent& event) { event.Skip(); } + +public: + wxStaticText* GetStaticTextName() { return m_staticTextName; } + wxTextCtrl* GetTextCtrlName() { return m_textCtrlName; } + wxStaticText* GetStaticTextNomVoltage() { return m_staticTextNomVoltage; } + wxTextCtrl* GetTextCtrlNomVoltage() { return m_textCtrlNomVoltage; } + wxChoice* GetChoiceNomVoltage() { return m_choiceNomVoltage; } + wxCheckBox* GetCheckBoxCtrlVoltage() { return m_checkBoxCtrlVoltage; } + wxTextCtrl* GetTextCtrlCtrlVoltage() { return m_textCtrlCtrlVoltage; } + wxChoice* GetChoiceCtrlVoltage() { return m_choiceCtrlVoltage; } + wxCheckBox* GetCheckBoxSlackBus() { return m_checkBoxSlackBus; } + wxPanel* GetPanelGeneral() { return m_panelGeneral; } + wxCheckBox* GetCheckBoxFault() { return m_checkBoxFault; } + wxStaticText* GetStaticTextFaultType() { return m_staticTextFaultType; } + wxChoice* GetChoiceFaultType() { return m_choiceFaultType; } + wxStaticText* GetStaticTextFaultPlace() { return m_staticTextFaultPlace; } + wxChoice* GetChoiceFaultPlace() { return m_choiceFaultPlace; } + wxStaticText* GetStaticTextFaultResistance() { return m_staticTextFaultResistance; } + wxTextCtrl* GetTextCtrlFaultResistance() { return m_textCtrlFaultResistance; } + wxStaticText* GetStaticTextPU_1() { return m_staticTextPU_1; } + wxStaticText* GetStaticTextReactance() { return m_staticTextReactance; } + wxTextCtrl* GetTextCtrlFaultReactance() { return m_textCtrlFaultReactance; } + wxStaticText* GetStaticTextPU_2() { return m_staticTextPU_2; } + wxPanel* GetPanelFault() { return m_panelFault; } + wxNotebook* GetNotebook() { return m_notebook; } + wxButton* GetButtonOK() { return m_buttonOK; } + wxButton* GetButtonCancel() { return m_ButtonCancel; } + BusFormBase(wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = _("Bus"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize(-1,-1), long style = wxDEFAULT_DIALOG_STYLE); + virtual ~BusFormBase(); +}; + +#endif -- cgit From d5c3a7c9c375f683f5b66a19caf28299af89ef65 Mon Sep 17 00:00:00 2001 From: Thales Lima Oliveira Date: Sun, 11 Sep 2016 23:28:13 -0300 Subject: minor fixes --- Project/ElementForm.h | 1 - 1 file changed, 1 deletion(-) (limited to 'Project/ElementForm.h') diff --git a/Project/ElementForm.h b/Project/ElementForm.h index c336ff6..b84ccfc 100644 --- a/Project/ElementForm.h +++ b/Project/ElementForm.h @@ -22,7 +22,6 @@ #include #include #include -#include #include #if wxVERSION_NUMBER >= 2900 #include -- cgit From 1088617b8f1c31af3ad6a87f9934f7a55240b3a2 Mon Sep 17 00:00:00 2001 From: Thales1330 Date: Mon, 12 Sep 2016 18:49:00 -0300 Subject: Bus form under implementation [2] --- Project/ElementForm.h | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) (limited to 'Project/ElementForm.h') diff --git a/Project/ElementForm.h b/Project/ElementForm.h index b84ccfc..88a34c9 100644 --- a/Project/ElementForm.h +++ b/Project/ElementForm.h @@ -66,10 +66,30 @@ protected: wxStaticText* m_staticTextReactance; wxTextCtrl* m_textCtrlFaultReactance; wxStaticText* m_staticTextPU_2; + wxPanel* m_panelStability; + wxCheckBox* m_checkBoxPlotData; + wxCheckBox* m_checkBoxStabFault; + wxStaticText* m_staticTextStabFaultTime; + wxTextCtrl* m_textCtrlStabFaultTime; + wxStaticText* m_staticTextS_1; + wxStaticText* m_staticTextStabFaultLength; + wxTextCtrl* m_textCtrlStabFaultLength; + wxStaticText* m_staticTextS_2; + wxStaticText* m_staticTextStabFaultResistance; + wxTextCtrl* m_textCtrlStabFaultResistance; + wxStaticText* m_staticTextPU_3; + wxStaticText* m_staticTextStabFaultReactance; + wxTextCtrl* m_textCtrlStabFaultReactance; + wxStaticText* m_staticTextPU_4; wxButton* m_buttonOK; wxButton* m_ButtonCancel; protected: + virtual void OnNominalVoltageChoice(wxCommandEvent& event) { event.Skip(); } + virtual void OnControlledVoltageClick(wxCommandEvent& event) { event.Skip(); } + virtual void OnInsertFaultClick(wxCommandEvent& event) { event.Skip(); } + virtual void OnFaultTypeChoice(wxCommandEvent& event) { event.Skip(); } + virtual void OnInsertStabFaultClick(wxCommandEvent& event) { event.Skip(); } virtual void OnButtonOKClick(wxCommandEvent& event) { event.Skip(); } virtual void OnButtonCancelClick(wxCommandEvent& event) { event.Skip(); } @@ -96,6 +116,21 @@ public: wxTextCtrl* GetTextCtrlFaultReactance() { return m_textCtrlFaultReactance; } wxStaticText* GetStaticTextPU_2() { return m_staticTextPU_2; } wxPanel* GetPanelFault() { return m_panelFault; } + wxCheckBox* GetCheckBoxPlotData() { return m_checkBoxPlotData; } + wxCheckBox* GetCheckBoxStabFault() { return m_checkBoxStabFault; } + wxStaticText* GetStaticTextStabFaultTime() { return m_staticTextStabFaultTime; } + wxTextCtrl* GetTextCtrlStabFaultTime() { return m_textCtrlStabFaultTime; } + wxStaticText* GetStaticTextS_1() { return m_staticTextS_1; } + wxStaticText* GetStaticTextStabFaultLength() { return m_staticTextStabFaultLength; } + wxTextCtrl* GetTextCtrlStabFaultLength() { return m_textCtrlStabFaultLength; } + wxStaticText* GetStaticTextS_2() { return m_staticTextS_2; } + wxStaticText* GetStaticTextStabFaultResistance() { return m_staticTextStabFaultResistance; } + wxTextCtrl* GetTextCtrlStabFaultResistance() { return m_textCtrlStabFaultResistance; } + wxStaticText* GetStaticTextPU_3() { return m_staticTextPU_3; } + wxStaticText* GetStaticTextStabFaultReactance() { return m_staticTextStabFaultReactance; } + wxTextCtrl* GetTextCtrlStabFaultReactance() { return m_textCtrlStabFaultReactance; } + wxStaticText* GetStaticTextPU_4() { return m_staticTextPU_4; } + wxPanel* GetPanelStability() { return m_panelStability; } wxNotebook* GetNotebook() { return m_notebook; } wxButton* GetButtonOK() { return m_buttonOK; } wxButton* GetButtonCancel() { return m_ButtonCancel; } -- cgit From a9dd78afddeb706df6652eb91f229a74fd073846 Mon Sep 17 00:00:00 2001 From: Thales1330 Date: Fri, 23 Sep 2016 17:46:10 -0300 Subject: Generator form implemented --- Project/ElementForm.h | 228 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 228 insertions(+) (limited to 'Project/ElementForm.h') diff --git a/Project/ElementForm.h b/Project/ElementForm.h index 88a34c9..f885c6d 100644 --- a/Project/ElementForm.h +++ b/Project/ElementForm.h @@ -23,6 +23,8 @@ #include #include #include +#include +#include #if wxVERSION_NUMBER >= 2900 #include #include @@ -138,4 +140,230 @@ public: virtual ~BusFormBase(); }; + +class GeneratorFormBase : public wxDialog +{ +protected: + wxNotebook* m_notebook; + wxPanel* m_panelGeneral; + wxStaticText* m_staticTextName; + wxTextCtrl* m_textCtrlName; + wxStaticText* m_staticTextNominalPower; + wxTextCtrl* m_textCtrlnominalPower; + wxChoice* m_choiceNominalPower; + wxStaticText* m_staticTextActivePower; + wxTextCtrl* m_textCtrlActivePower; + wxChoice* m_choiceActivePower; + wxStaticText* m_staticTextReactivePower; + wxTextCtrl* m_textCtrlReactivePower; + wxChoice* m_choiceReactivePower; + wxCheckBox* m_checkBoxMaxReactive; + wxTextCtrl* m_textCtrlMaxRectivePower; + wxChoice* m_choiceMaxRectivePower; + wxCheckBox* m_checkBoxMinReactive; + wxTextCtrl* m_textCtrlMinRectivePower; + wxChoice* m_choiceMinRectivePower; + wxCheckBox* m_checkBoxUseMachinePower; + wxPanel* m_panelFault; + wxStaticText* m_staticTextPosResistance; + wxTextCtrl* m_textCtrlPosResistance; + wxStaticText* m_staticTextPosReactance; + wxTextCtrl* m_textCtrlPosReactance; + wxStaticText* m_staticTextNegResistance; + wxTextCtrl* m_textCtrlNegResistance; + wxStaticText* m_staticTextNegReactance; + wxTextCtrl* m_textCtrlNegReactance; + wxStaticText* m_staticTextZeroResistance; + wxTextCtrl* m_textCtrlZeroResistance; + wxStaticText* m_staticTextZeroReactance; + wxTextCtrl* m_textCtrlZeroReactance; + wxStaticText* m_staticTextGrdResistance; + wxTextCtrl* m_textCtrlGrdResistance; + wxStaticText* m_staticTextGrdReactance; + wxTextCtrl* m_textCtrlGrdReactance; + wxCheckBox* m_checkBoxGroundNeutral; + wxButton* m_buttonStab; + wxButton* m_buttonOK; + wxButton* m_ButtonCancel; + +protected: + virtual void OnCheckMaxReactive(wxCommandEvent& event) { event.Skip(); } + virtual void OnCheckMinReactive(wxCommandEvent& event) { event.Skip(); } + virtual void OnStabilityButtonClick(wxCommandEvent& event) { event.Skip(); } + virtual void OnOKButtonClick(wxCommandEvent& event) { event.Skip(); } + virtual void OnCancelButtonClick(wxCommandEvent& event) { event.Skip(); } + +public: + wxStaticText* GetStaticTextName() { return m_staticTextName; } + wxTextCtrl* GetTextCtrlName() { return m_textCtrlName; } + wxStaticText* GetStaticTextNominalPower() { return m_staticTextNominalPower; } + wxTextCtrl* GetTextCtrlnominalPower() { return m_textCtrlnominalPower; } + wxChoice* GetChoiceNominalPower() { return m_choiceNominalPower; } + wxStaticText* GetStaticTextActivePower() { return m_staticTextActivePower; } + wxTextCtrl* GetTextCtrlActivePower() { return m_textCtrlActivePower; } + wxChoice* GetChoiceActivePower() { return m_choiceActivePower; } + wxStaticText* GetStaticTextReactivePower() { return m_staticTextReactivePower; } + wxTextCtrl* GetTextCtrlReactivePower() { return m_textCtrlReactivePower; } + wxChoice* GetChoiceReactivePower() { return m_choiceReactivePower; } + wxCheckBox* GetCheckBoxMaxReactive() { return m_checkBoxMaxReactive; } + wxTextCtrl* GetTextCtrlMaxRectivePower() { return m_textCtrlMaxRectivePower; } + wxChoice* GetChoiceMaxRectivePower() { return m_choiceMaxRectivePower; } + wxCheckBox* GetCheckBoxMinReactive() { return m_checkBoxMinReactive; } + wxTextCtrl* GetTextCtrlMinRectivePower() { return m_textCtrlMinRectivePower; } + wxChoice* GetChoiceMinRectivePower() { return m_choiceMinRectivePower; } + wxCheckBox* GetCheckBoxUseMachinePower() { return m_checkBoxUseMachinePower; } + wxPanel* GetPanelGeneral() { return m_panelGeneral; } + wxStaticText* GetStaticTextPosResistance() { return m_staticTextPosResistance; } + wxTextCtrl* GetTextCtrlPosResistance() { return m_textCtrlPosResistance; } + wxStaticText* GetStaticTextPosReactance() { return m_staticTextPosReactance; } + wxTextCtrl* GetTextCtrlPosReactance() { return m_textCtrlPosReactance; } + wxStaticText* GetStaticTextNegResistance() { return m_staticTextNegResistance; } + wxTextCtrl* GetTextCtrlNegResistance() { return m_textCtrlNegResistance; } + wxStaticText* GetStaticTextNegReactance() { return m_staticTextNegReactance; } + wxTextCtrl* GetTextCtrlNegReactance() { return m_textCtrlNegReactance; } + wxStaticText* GetStaticTextZeroResistance() { return m_staticTextZeroResistance; } + wxTextCtrl* GetTextCtrlZeroResistance() { return m_textCtrlZeroResistance; } + wxStaticText* GetStaticTextZeroReactance() { return m_staticTextZeroReactance; } + wxTextCtrl* GetTextCtrlZeroReactance() { return m_textCtrlZeroReactance; } + wxStaticText* GetStaticTextGrdResistance() { return m_staticTextGrdResistance; } + wxTextCtrl* GetTextCtrlGrdResistance() { return m_textCtrlGrdResistance; } + wxStaticText* GetStaticTextGrdReactance() { return m_staticTextGrdReactance; } + wxTextCtrl* GetTextCtrlGrdReactance() { return m_textCtrlGrdReactance; } + wxCheckBox* GetCheckBoxGroundNeutral() { return m_checkBoxGroundNeutral; } + wxPanel* GetPanelFault() { return m_panelFault; } + wxNotebook* GetNotebook() { return m_notebook; } + wxButton* GetButtonStab() { return m_buttonStab; } + wxButton* GetButtonOK() { return m_buttonOK; } + wxButton* GetButtonCancel() { return m_ButtonCancel; } + GeneratorFormBase(wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = _("Generator"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize(-1,-1), long style = wxDEFAULT_DIALOG_STYLE); + virtual ~GeneratorFormBase(); +}; + + +class GeneratorStabFormBase : public wxDialog +{ +protected: + wxCheckBox* m_checkBoxPlotSyncMachine; + wxStaticText* m_staticTextInertia; + wxTextCtrl* m_textCtrlInertia; + wxStaticText* m_staticTextS_1; + wxStaticText* m_staticTextDamping; + wxTextCtrl* m_textCtrlDamping; + wxStaticText* m_staticTextPU_1; + wxCheckBox* m_checkBoxUseAVR; + wxButton* m_buttonEditAVR; + wxCheckBox* m_checkBoxUseSG; + wxButton* m_buttonEditSG; + wxStaticLine* m_staticLine_1; + wxStaticText* m_staticTextRa; + wxTextCtrl* m_textCtrlRa; + wxStaticText* m_staticTextPU_2; + wxStaticText* m_staticTextXp; + wxTextCtrl* m_textCtrlXp; + wxStaticText* m_staticTextPU_9; + wxStaticText* m_staticTextSat; + wxTextCtrl* m_textCtrlSat; + wxStaticText* m_staticTextPU_10; + wxStaticText* m_staticTextSyncXd; + wxTextCtrl* m_textCtrlSyncXd; + wxStaticText* m_staticTextPU_3; + wxStaticText* m_staticTextSyncXq; + wxTextCtrl* m_textCtrlSyncXq; + wxStaticText* m_staticTextPU_4; + wxStaticText* m_staticTextTranXd; + wxTextCtrl* m_textCtrlTranXd; + wxStaticText* m_staticTextPU_5; + wxStaticText* m_staticTextTranXq; + wxTextCtrl* m_textCtrlTranXq; + wxStaticText* m_staticTextPU_6; + wxStaticText* m_staticTextTranTd0; + wxTextCtrl* m_textCtrlTranTd0; + wxStaticText* m_staticTextS_2; + wxStaticText* m_staticTextTranTq0; + wxTextCtrl* m_textCtrlTranTq0; + wxStaticText* m_staticTextS_3; + wxStaticText* m_staticTextSubXd; + wxTextCtrl* m_textCtrlSubXd; + wxStaticText* m_staticTextPU_7; + wxStaticText* m_staticTextSubXq; + wxTextCtrl* m_textCtrlSubXq; + wxStaticText* m_staticTextPU_8; + wxStaticText* m_staticTextSubTd0; + wxTextCtrl* m_textCtrlSubTd0; + wxStaticText* m_staticTextS_4; + wxStaticText* m_staticTextSubTq0; + wxTextCtrl* m_textCtrlSubTq0; + wxStaticText* m_staticTextS_5; + wxButton* m_buttonSwitching; + wxButton* m_buttonOK; + wxButton* m_ButtonCancel; + +protected: + virtual void UseAVRClick(wxCommandEvent& event) { event.Skip(); } + virtual void OnEditAVRButtonClick(wxCommandEvent& event) { event.Skip(); } + virtual void UseSGClick(wxCommandEvent& event) { event.Skip(); } + virtual void OnSpeedGovernorButtonClick(wxCommandEvent& event) { event.Skip(); } + virtual void OnSwitchingButtonClick(wxCommandEvent& event) { event.Skip(); } + virtual void OnOKButtonClick(wxCommandEvent& event) { event.Skip(); } + virtual void OnCancelButtonClick(wxCommandEvent& event) { event.Skip(); } + +public: + wxCheckBox* GetCheckBoxPlotSyncMachine() { return m_checkBoxPlotSyncMachine; } + wxStaticText* GetStaticTextInertia() { return m_staticTextInertia; } + wxTextCtrl* GetTextCtrlInertia() { return m_textCtrlInertia; } + wxStaticText* GetStaticTextS_1() { return m_staticTextS_1; } + wxStaticText* GetStaticTextDamping() { return m_staticTextDamping; } + wxTextCtrl* GetTextCtrlDamping() { return m_textCtrlDamping; } + wxStaticText* GetStaticTextPU_1() { return m_staticTextPU_1; } + wxCheckBox* GetCheckBoxUseAVR() { return m_checkBoxUseAVR; } + wxButton* GetButtonEditAVR() { return m_buttonEditAVR; } + wxCheckBox* GetCheckBoxUseSG() { return m_checkBoxUseSG; } + wxButton* GetButtonEditSG() { return m_buttonEditSG; } + wxStaticLine* GetStaticLine_1() { return m_staticLine_1; } + wxStaticText* GetStaticTextRa() { return m_staticTextRa; } + wxTextCtrl* GetTextCtrlRa() { return m_textCtrlRa; } + wxStaticText* GetStaticTextPU_2() { return m_staticTextPU_2; } + wxStaticText* GetStaticTextXp() { return m_staticTextXp; } + wxTextCtrl* GetTextCtrlXp() { return m_textCtrlXp; } + wxStaticText* GetStaticTextPU_9() { return m_staticTextPU_9; } + wxStaticText* GetStaticTextSat() { return m_staticTextSat; } + wxTextCtrl* GetTextCtrlSat() { return m_textCtrlSat; } + wxStaticText* GetStaticTextPU_10() { return m_staticTextPU_10; } + wxStaticText* GetStaticTextSyncXd() { return m_staticTextSyncXd; } + wxTextCtrl* GetTextCtrlSyncXd() { return m_textCtrlSyncXd; } + wxStaticText* GetStaticTextPU_3() { return m_staticTextPU_3; } + wxStaticText* GetStaticTextSyncXq() { return m_staticTextSyncXq; } + wxTextCtrl* GetTextCtrlSyncXq() { return m_textCtrlSyncXq; } + wxStaticText* GetStaticTextPU_4() { return m_staticTextPU_4; } + wxStaticText* GetStaticTextTranXd() { return m_staticTextTranXd; } + wxTextCtrl* GetTextCtrlTranXd() { return m_textCtrlTranXd; } + wxStaticText* GetStaticTextPU_5() { return m_staticTextPU_5; } + wxStaticText* GetStaticTextTranXq() { return m_staticTextTranXq; } + wxTextCtrl* GetTextCtrlTranXq() { return m_textCtrlTranXq; } + wxStaticText* GetStaticTextPU_6() { return m_staticTextPU_6; } + wxStaticText* GetStaticTextTranTd0() { return m_staticTextTranTd0; } + wxTextCtrl* GetTextCtrlTranTd0() { return m_textCtrlTranTd0; } + wxStaticText* GetStaticTextS_2() { return m_staticTextS_2; } + wxStaticText* GetStaticTextTranTq0() { return m_staticTextTranTq0; } + wxTextCtrl* GetTextCtrlTranTq0() { return m_textCtrlTranTq0; } + wxStaticText* GetStaticTextS_3() { return m_staticTextS_3; } + wxStaticText* GetStaticTextSubXd() { return m_staticTextSubXd; } + wxTextCtrl* GetTextCtrlSubXd() { return m_textCtrlSubXd; } + wxStaticText* GetStaticTextPU_7() { return m_staticTextPU_7; } + wxStaticText* GetStaticTextSubXq() { return m_staticTextSubXq; } + wxTextCtrl* GetTextCtrlSubXq() { return m_textCtrlSubXq; } + wxStaticText* GetStaticTextPU_8() { return m_staticTextPU_8; } + wxStaticText* GetStaticTextSubTd0() { return m_staticTextSubTd0; } + wxTextCtrl* GetTextCtrlSubTd0() { return m_textCtrlSubTd0; } + wxStaticText* GetStaticTextS_4() { return m_staticTextS_4; } + wxStaticText* GetStaticTextSubTq0() { return m_staticTextSubTq0; } + wxTextCtrl* GetTextCtrlSubTq0() { return m_textCtrlSubTq0; } + wxStaticText* GetStaticTextS_5() { return m_staticTextS_5; } + wxButton* GetButtonSwitching() { return m_buttonSwitching; } + wxButton* GetButtonOK() { return m_buttonOK; } + wxButton* GetButtonCancel() { return m_ButtonCancel; } + GeneratorStabFormBase(wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = _("Generator: Stability"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize(-1,-1), long style = wxDEFAULT_DIALOG_STYLE); + virtual ~GeneratorStabFormBase(); +}; + #endif -- cgit From ee27459748acee31a307604f6395ea31b4bf53ce Mon Sep 17 00:00:00 2001 From: Thales1330 Date: Thu, 29 Sep 2016 17:01:02 -0300 Subject: Line form under implementation --- Project/ElementForm.h | 79 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 79 insertions(+) (limited to 'Project/ElementForm.h') diff --git a/Project/ElementForm.h b/Project/ElementForm.h index f885c6d..f54fe23 100644 --- a/Project/ElementForm.h +++ b/Project/ElementForm.h @@ -366,4 +366,83 @@ public: virtual ~GeneratorStabFormBase(); }; + +class LineFormBase : public wxDialog +{ +protected: + wxNotebook* m_notebook; + wxPanel* m_panelGeneral; + wxStaticText* m_staticTextName; + wxTextCtrl* m_textCtrlName; + wxStaticText* m_staticTextNominalVoltage; + wxStaticText* m_staticTextNominalVoltageValue; + wxStaticText* m_staticTextNominalPower; + wxTextCtrl* m_textCtrlNominalPower; + wxChoice* m_choiceNominalPower; + wxStaticText* m_staticTextResistance; + wxTextCtrl* m_textCtrlResistance; + wxChoice* m_choiceResistance; + wxStaticText* m_staticTextReactance; + wxTextCtrl* m_textCtrlReactance; + wxChoice* m_choiceReactance; + wxStaticText* m_staticTextSusceptance; + wxTextCtrl* m_textCtrlSusceptance; + wxChoice* m_choiceSusceptance; + wxStaticText* m_staticTextLineSize; + wxTextCtrl* m_textCtrlLineSize; + wxStaticText* m_staticTextKM; + wxCheckBox* m_checkUseLinePower; + wxPanel* m_panelFault; + wxStaticText* m_staticTextZeroResistance; + wxTextCtrl* m_textCtrlZeroResistance; + wxStaticText* m_staticTextZeroReactance; + wxTextCtrl* m_textCtrlZeroReactance; + wxStaticText* m_staticTextZeroSusceptance; + wxTextCtrl* m_textCtrlZeroSusceptance; + wxButton* m_buttonStability; + wxButton* m_buttonOK; + wxButton* m_buttonCancel; + +protected: + virtual void OnStabilityButtonClick(wxCommandEvent& event) { event.Skip(); } + virtual void OnOKButtonClick(wxCommandEvent& event) { event.Skip(); } + virtual void OnCancelButtonClick(wxCommandEvent& event) { event.Skip(); } + +public: + wxStaticText* GetStaticTextName() { return m_staticTextName; } + wxTextCtrl* GetTextCtrlName() { return m_textCtrlName; } + wxStaticText* GetStaticTextNominalVoltage() { return m_staticTextNominalVoltage; } + wxStaticText* GetStaticTextNominalVoltageValue() { return m_staticTextNominalVoltageValue; } + wxStaticText* GetStaticTextNominalPower() { return m_staticTextNominalPower; } + wxTextCtrl* GetTextCtrlNominalPower() { return m_textCtrlNominalPower; } + wxChoice* GetChoiceNominalPower() { return m_choiceNominalPower; } + wxStaticText* GetStaticTextResistance() { return m_staticTextResistance; } + wxTextCtrl* GetTextCtrlResistance() { return m_textCtrlResistance; } + wxChoice* GetChoiceResistance() { return m_choiceResistance; } + wxStaticText* GetStaticTextReactance() { return m_staticTextReactance; } + wxTextCtrl* GetTextCtrlReactance() { return m_textCtrlReactance; } + wxChoice* GetChoiceReactance() { return m_choiceReactance; } + wxStaticText* GetStaticTextSusceptance() { return m_staticTextSusceptance; } + wxTextCtrl* GetTextCtrlSusceptance() { return m_textCtrlSusceptance; } + wxChoice* GetChoiceSusceptance() { return m_choiceSusceptance; } + wxStaticText* GetStaticTextLineSize() { return m_staticTextLineSize; } + wxTextCtrl* GetTextCtrlLineSize() { return m_textCtrlLineSize; } + wxStaticText* GetStaticTextKM() { return m_staticTextKM; } + wxCheckBox* GetCheckUseLinePower() { return m_checkUseLinePower; } + wxPanel* GetPanelGeneral() { return m_panelGeneral; } + wxStaticText* GetStaticTextZeroResistance() { return m_staticTextZeroResistance; } + wxTextCtrl* GetTextCtrlZeroResistance() { return m_textCtrlZeroResistance; } + wxStaticText* GetStaticTextZeroReactance() { return m_staticTextZeroReactance; } + wxTextCtrl* GetTextCtrlZeroReactance() { return m_textCtrlZeroReactance; } + wxStaticText* GetStaticTextZeroSusceptance() { return m_staticTextZeroSusceptance; } + wxTextCtrl* GetTextCtrlZeroSusceptance() { return m_textCtrlZeroSusceptance; } + wxPanel* GetPanelFault() { return m_panelFault; } + wxNotebook* GetNotebook() { return m_notebook; } + wxButton* GetButtonStability() { return m_buttonStability; } + wxButton* GetButtonOK() { return m_buttonOK; } + wxButton* GetButtonCancel() { return m_buttonCancel; } + LineFormBase(wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = _("Line"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize(-1,-1), long style = wxDEFAULT_DIALOG_STYLE); + virtual ~LineFormBase(); +}; + #endif -- cgit From 3596d19f6d804a9610545ce39f07e421d1dc716e Mon Sep 17 00:00:00 2001 From: Thales1330 Date: Fri, 7 Oct 2016 18:39:16 -0300 Subject: Switching form under implementation --- Project/ElementForm.h | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) (limited to 'Project/ElementForm.h') diff --git a/Project/ElementForm.h b/Project/ElementForm.h index f54fe23..9a54847 100644 --- a/Project/ElementForm.h +++ b/Project/ElementForm.h @@ -25,6 +25,10 @@ #include #include #include +#include +#include +#include +#include #if wxVERSION_NUMBER >= 2900 #include #include @@ -445,4 +449,37 @@ public: virtual ~LineFormBase(); }; + +class SwitchingFormBase : public wxDialog +{ +protected: + wxPropertyGridManager* m_pgMgrSwitchingsProp; + wxPGProperty* m_pgPropTitle; + wxPGProperty* m_pgPropType; + wxPGProperty* m_pgPropTime; + wxButton* m_buttonInsert; + wxButton* m_buttonRemove; + wxListCtrl* m_listCtrlSwitchings; + wxButton* m_buttonOK; + wxButton* m_buttonCancel; + +protected: + virtual void OnChangeProperties(wxPropertyGridEvent& event) { event.Skip(); } + virtual void OnInsertButtonClick(wxCommandEvent& event) { event.Skip(); } + virtual void OnRemoveButtonClick(wxCommandEvent& event) { event.Skip(); } + virtual void OnSelectItem(wxListEvent& event) { event.Skip(); } + virtual void OnOKButtonClick(wxCommandEvent& event) { event.Skip(); } + virtual void OnCancelButtonClick(wxCommandEvent& event) { event.Skip(); } + +public: + wxPropertyGridManager* GetPgMgrSwitchingsProp() { return m_pgMgrSwitchingsProp; } + wxButton* GetButtonInsert() { return m_buttonInsert; } + wxButton* GetButtonRemove() { return m_buttonRemove; } + wxListCtrl* GetListCtrlSwitchings() { return m_listCtrlSwitchings; } + wxButton* GetButtonOK() { return m_buttonOK; } + wxButton* GetButtonCancel() { return m_buttonCancel; } + SwitchingFormBase(wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = _("Switching"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize(-1,-1), long style = wxDEFAULT_DIALOG_STYLE); + virtual ~SwitchingFormBase(); +}; + #endif -- cgit From d60de5e4c4774c5b840c5cab2cb629a5bbe9df42 Mon Sep 17 00:00:00 2001 From: Thales1330 Date: Fri, 14 Oct 2016 17:45:25 -0300 Subject: Switching implemented --- Project/ElementForm.h | 111 +++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 109 insertions(+), 2 deletions(-) (limited to 'Project/ElementForm.h') diff --git a/Project/ElementForm.h b/Project/ElementForm.h index 9a54847..bbbffd3 100644 --- a/Project/ElementForm.h +++ b/Project/ElementForm.h @@ -4,8 +4,8 @@ // Do not modify this file by hand! ////////////////////////////////////////////////////////////////////// -#ifndef PSP_PROJECT_ELEMENTFORM_BASE_CLASSES_H -#define PSP_PROJECT_ELEMENTFORM_BASE_CLASSES_H +#ifndef _PSP_PROJECT_ELEMENTFORM_BASE_CLASSES_H +#define _PSP_PROJECT_ELEMENTFORM_BASE_CLASSES_H #include #include @@ -450,6 +450,105 @@ public: }; +class TransformerFormBase : public wxDialog +{ +protected: + wxNotebook* m_notebook; + wxPanel* m_panelGeneral; + wxStaticText* m_staticTextName; + wxTextCtrl* m_textCtrlName; + wxStaticText* m_staticTextNominalVoltage; + wxStaticText* m_staticTextNominalVoltageValue; + wxStaticText* m_staticTextBaseVoltage; + wxChoice* m_choiceBaseVoltage; + wxStaticText* m_staticTextNominalPower; + wxTextCtrl* m_textCtrlNominalPower; + wxChoice* m_choiceNominalPower; + wxStaticText* m_staticTextResistance; + wxTextCtrl* m_textCtrlResistance; + wxChoice* m_choiceResistance; + wxStaticText* m_staticTextReactance; + wxTextCtrl* m_textCtrlReactance; + wxChoice* m_choiceReactance; + wxStaticLine* m_staticLine_1; + wxStaticText* m_staticTextConnection; + wxChoice* m_choiceConnection; + wxStaticText* m_staticTextTurnsRatio; + wxTextCtrl* m_textCtrlTurnRatio; + wxStaticText* m_staticTextPhaseShift; + wxTextCtrl* m_textCtrlPhaseShift; + wxStaticText* m_staticTextDeg; + wxCheckBox* m_checkUseTransformerPower; + wxPanel* m_panelFault; + wxStaticText* m_staticTextZeroResistance; + wxTextCtrl* m_textCtrlZeroResistance; + wxStaticText* m_staticTextZeroReactance; + wxTextCtrl* m_textCtrlZeroReactance; + wxStaticText* m_staticTextPrimResistance; + wxTextCtrl* m_textCtrlPrimResistance; + wxStaticText* m_staticTextPrimReactance; + wxTextCtrl* m_textCtrlPrimReactance; + wxStaticText* m_staticTextSecResistance; + wxTextCtrl* m_textCtrlSecResistance; + wxStaticText* m_staticTextSecReactance; + wxTextCtrl* m_textCtrlSecReactance; + wxButton* m_buttonStability; + wxButton* m_buttonOK; + wxButton* m_buttonCancel; + +protected: + virtual void OnStabilityButtonClick(wxCommandEvent& event) { event.Skip(); } + virtual void OnOKButtonClick(wxCommandEvent& event) { event.Skip(); } + virtual void OnCancelButtonClick(wxCommandEvent& event) { event.Skip(); } + +public: + wxStaticText* GetStaticTextName() { return m_staticTextName; } + wxTextCtrl* GetTextCtrlName() { return m_textCtrlName; } + wxStaticText* GetStaticTextNominalVoltage() { return m_staticTextNominalVoltage; } + wxStaticText* GetStaticTextNominalVoltageValue() { return m_staticTextNominalVoltageValue; } + wxStaticText* GetStaticTextBaseVoltage() { return m_staticTextBaseVoltage; } + wxChoice* GetChoiceBaseVoltage() { return m_choiceBaseVoltage; } + wxStaticText* GetStaticTextNominalPower() { return m_staticTextNominalPower; } + wxTextCtrl* GetTextCtrlNominalPower() { return m_textCtrlNominalPower; } + wxChoice* GetChoiceNominalPower() { return m_choiceNominalPower; } + wxStaticText* GetStaticTextResistance() { return m_staticTextResistance; } + wxTextCtrl* GetTextCtrlResistance() { return m_textCtrlResistance; } + wxChoice* GetChoiceResistance() { return m_choiceResistance; } + wxStaticText* GetStaticTextReactance() { return m_staticTextReactance; } + wxTextCtrl* GetTextCtrlReactance() { return m_textCtrlReactance; } + wxChoice* GetChoiceReactance() { return m_choiceReactance; } + wxStaticLine* GetStaticLine_1() { return m_staticLine_1; } + wxStaticText* GetStaticTextConnection() { return m_staticTextConnection; } + wxChoice* GetChoiceConnection() { return m_choiceConnection; } + wxStaticText* GetStaticTextTurnsRatio() { return m_staticTextTurnsRatio; } + wxTextCtrl* GetTextCtrlTurnRatio() { return m_textCtrlTurnRatio; } + wxStaticText* GetStaticTextPhaseShift() { return m_staticTextPhaseShift; } + wxTextCtrl* GetTextCtrlPhaseShift() { return m_textCtrlPhaseShift; } + wxStaticText* GetStaticTextDeg() { return m_staticTextDeg; } + wxCheckBox* GetCheckUseTransformerPower() { return m_checkUseTransformerPower; } + wxPanel* GetPanelGeneral() { return m_panelGeneral; } + wxStaticText* GetStaticTextZeroResistance() { return m_staticTextZeroResistance; } + wxTextCtrl* GetTextCtrlZeroResistance() { return m_textCtrlZeroResistance; } + wxStaticText* GetStaticTextZeroReactance() { return m_staticTextZeroReactance; } + wxTextCtrl* GetTextCtrlZeroReactance() { return m_textCtrlZeroReactance; } + wxStaticText* GetStaticTextPrimResistance() { return m_staticTextPrimResistance; } + wxTextCtrl* GetTextCtrlPrimResistance() { return m_textCtrlPrimResistance; } + wxStaticText* GetStaticTextPrimReactance() { return m_staticTextPrimReactance; } + wxTextCtrl* GetTextCtrlPrimReactance() { return m_textCtrlPrimReactance; } + wxStaticText* GetStaticTextSecResistance() { return m_staticTextSecResistance; } + wxTextCtrl* GetTextCtrlSecResistance() { return m_textCtrlSecResistance; } + wxStaticText* GetStaticTextSecReactance() { return m_staticTextSecReactance; } + wxTextCtrl* GetTextCtrlSecReactance() { return m_textCtrlSecReactance; } + wxPanel* GetPanelFault() { return m_panelFault; } + wxNotebook* GetNotebook() { return m_notebook; } + wxButton* GetButtonStability() { return m_buttonStability; } + wxButton* GetButtonOK() { return m_buttonOK; } + wxButton* GetButtonCancel() { return m_buttonCancel; } + TransformerFormBase(wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = _("Transformer"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize(-1,-1), long style = wxDEFAULT_DIALOG_STYLE); + virtual ~TransformerFormBase(); +}; + + class SwitchingFormBase : public wxDialog { protected: @@ -459,6 +558,9 @@ protected: wxPGProperty* m_pgPropTime; wxButton* m_buttonInsert; wxButton* m_buttonRemove; + wxButton* m_buttonUp; + wxButton* m_buttonDown; + wxStaticText* m_staticTextSwList; wxListCtrl* m_listCtrlSwitchings; wxButton* m_buttonOK; wxButton* m_buttonCancel; @@ -467,6 +569,8 @@ protected: virtual void OnChangeProperties(wxPropertyGridEvent& event) { event.Skip(); } virtual void OnInsertButtonClick(wxCommandEvent& event) { event.Skip(); } virtual void OnRemoveButtonClick(wxCommandEvent& event) { event.Skip(); } + virtual void OnUpButtonClick(wxCommandEvent& event) { event.Skip(); } + virtual void OnDownButtonClick(wxCommandEvent& event) { event.Skip(); } virtual void OnSelectItem(wxListEvent& event) { event.Skip(); } virtual void OnOKButtonClick(wxCommandEvent& event) { event.Skip(); } virtual void OnCancelButtonClick(wxCommandEvent& event) { event.Skip(); } @@ -475,6 +579,9 @@ public: wxPropertyGridManager* GetPgMgrSwitchingsProp() { return m_pgMgrSwitchingsProp; } wxButton* GetButtonInsert() { return m_buttonInsert; } wxButton* GetButtonRemove() { return m_buttonRemove; } + wxButton* GetButtonUp() { return m_buttonUp; } + wxButton* GetButtonDown() { return m_buttonDown; } + wxStaticText* GetStaticTextSwList() { return m_staticTextSwList; } wxListCtrl* GetListCtrlSwitchings() { return m_listCtrlSwitchings; } wxButton* GetButtonOK() { return m_buttonOK; } wxButton* GetButtonCancel() { return m_buttonCancel; } -- cgit From 58cc8933337d4681025f890af78bfddc45c212d0 Mon Sep 17 00:00:00 2001 From: Thales1330 Date: Fri, 21 Oct 2016 17:44:27 -0200 Subject: Load form under implementation --- Project/ElementForm.h | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) (limited to 'Project/ElementForm.h') diff --git a/Project/ElementForm.h b/Project/ElementForm.h index bbbffd3..8e53507 100644 --- a/Project/ElementForm.h +++ b/Project/ElementForm.h @@ -589,4 +589,49 @@ public: virtual ~SwitchingFormBase(); }; + +class LoadFormBase : public wxDialog +{ +protected: + wxNotebook* m_notebook; + wxPanel* m_panelGeneral; + wxStaticText* m_staticTextName; + wxTextCtrl* m_textCtrlName; + wxStaticText* m_staticTextActivePower; + wxTextCtrl* m_textCtrlActivePower; + wxChoice* m_choiceActivePower; + wxStaticText* m_staticTextReactivePower; + wxTextCtrl* m_textCtrlReactivePower; + wxChoice* m_choiceReactivePower; + wxStaticText* m_staticTextType; + wxChoice* m_choiceType; + wxButton* m_buttonStabButton; + wxButton* m_buttonOK; + wxButton* m_ButtonCancel; + +protected: + virtual void OnStabilityButtonClick(wxCommandEvent& event) { event.Skip(); } + virtual void OnOnButtonClick(wxCommandEvent& event) { event.Skip(); } + virtual void OnCancelButtonClick(wxCommandEvent& event) { event.Skip(); } + +public: + wxStaticText* GetStaticTextName() { return m_staticTextName; } + wxTextCtrl* GetTextCtrlName() { return m_textCtrlName; } + wxStaticText* GetStaticTextActivePower() { return m_staticTextActivePower; } + wxTextCtrl* GetTextCtrlActivePower() { return m_textCtrlActivePower; } + wxChoice* GetChoiceActivePower() { return m_choiceActivePower; } + wxStaticText* GetStaticTextReactivePower() { return m_staticTextReactivePower; } + wxTextCtrl* GetTextCtrlReactivePower() { return m_textCtrlReactivePower; } + wxChoice* GetChoiceReactivePower() { return m_choiceReactivePower; } + wxStaticText* GetStaticTextType() { return m_staticTextType; } + wxChoice* GetChoiceType() { return m_choiceType; } + wxPanel* GetPanelGeneral() { return m_panelGeneral; } + wxNotebook* GetNotebook() { return m_notebook; } + wxButton* GetButtonStabButton() { return m_buttonStabButton; } + wxButton* GetButtonOK() { return m_buttonOK; } + wxButton* GetButtonCancel() { return m_ButtonCancel; } + LoadFormBase(wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = _("Load"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize(-1,-1), long style = wxDEFAULT_DIALOG_STYLE); + virtual ~LoadFormBase(); +}; + #endif -- cgit From 0e3a45462bf8ce31be988679fd380baeecfb1b95 Mon Sep 17 00:00:00 2001 From: Thales1330 Date: Tue, 25 Oct 2016 17:09:19 -0200 Subject: Capacitor and Inductor forms implemented --- Project/ElementForm.h | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) (limited to 'Project/ElementForm.h') diff --git a/Project/ElementForm.h b/Project/ElementForm.h index 8e53507..52d5e00 100644 --- a/Project/ElementForm.h +++ b/Project/ElementForm.h @@ -634,4 +634,39 @@ public: virtual ~LoadFormBase(); }; + +class ReactiveShuntElementFormBase : public wxDialog +{ +protected: + wxNotebook* m_notebook; + wxPanel* m_panelGeneral; + wxStaticText* m_staticTextName; + wxTextCtrl* m_textCtrlName; + wxStaticText* m_staticTextReactivePower; + wxTextCtrl* m_textCtrlReactivePower; + wxChoice* m_choiceReactivePower; + wxButton* m_buttonStabButton; + wxButton* m_buttonOK; + wxButton* m_buttonCancel; + +protected: + virtual void OnStabilityButtonClick(wxCommandEvent& event) { event.Skip(); } + virtual void OnOKButtonClick(wxCommandEvent& event) { event.Skip(); } + virtual void OnCancelButtonClick(wxCommandEvent& event) { event.Skip(); } + +public: + wxStaticText* GetStaticTextName() { return m_staticTextName; } + wxTextCtrl* GetTextCtrlName() { return m_textCtrlName; } + wxStaticText* GetStaticTextReactivePower() { return m_staticTextReactivePower; } + wxTextCtrl* GetTextCtrlReactivePower() { return m_textCtrlReactivePower; } + wxChoice* GetChoiceReactivePower() { return m_choiceReactivePower; } + wxPanel* GetPanelGeneral() { return m_panelGeneral; } + wxNotebook* GetNotebook() { return m_notebook; } + wxButton* GetButtonStabButton() { return m_buttonStabButton; } + wxButton* GetButtonOK() { return m_buttonOK; } + wxButton* GetButtonCancel() { return m_buttonCancel; } + ReactiveShuntElementFormBase(wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = _("Reactive shunt element"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize(-1,-1), long style = wxDEFAULT_DIALOG_STYLE); + virtual ~ReactiveShuntElementFormBase(); +}; + #endif -- cgit From 02c5a1d22a078c132aca40ea14b95800dd8257e9 Mon Sep 17 00:00:00 2001 From: Thales1330 Date: Thu, 27 Oct 2016 17:26:24 -0200 Subject: All elements forms implemented --- Project/ElementForm.h | 129 +++++++++++++++++++++++++++++++++----------------- 1 file changed, 85 insertions(+), 44 deletions(-) (limited to 'Project/ElementForm.h') diff --git a/Project/ElementForm.h b/Project/ElementForm.h index 52d5e00..1af839c 100644 --- a/Project/ElementForm.h +++ b/Project/ElementForm.h @@ -145,7 +145,7 @@ public: }; -class GeneratorFormBase : public wxDialog +class SyncMachineFormBase : public wxDialog { protected: wxNotebook* m_notebook; @@ -239,8 +239,8 @@ public: wxButton* GetButtonStab() { return m_buttonStab; } wxButton* GetButtonOK() { return m_buttonOK; } wxButton* GetButtonCancel() { return m_ButtonCancel; } - GeneratorFormBase(wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = _("Generator"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize(-1,-1), long style = wxDEFAULT_DIALOG_STYLE); - virtual ~GeneratorFormBase(); + SyncMachineFormBase(wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = _("Generator"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize(-1,-1), long style = wxDEFAULT_DIALOG_STYLE); + virtual ~SyncMachineFormBase(); }; @@ -549,47 +549,6 @@ public: }; -class SwitchingFormBase : public wxDialog -{ -protected: - wxPropertyGridManager* m_pgMgrSwitchingsProp; - wxPGProperty* m_pgPropTitle; - wxPGProperty* m_pgPropType; - wxPGProperty* m_pgPropTime; - wxButton* m_buttonInsert; - wxButton* m_buttonRemove; - wxButton* m_buttonUp; - wxButton* m_buttonDown; - wxStaticText* m_staticTextSwList; - wxListCtrl* m_listCtrlSwitchings; - wxButton* m_buttonOK; - wxButton* m_buttonCancel; - -protected: - virtual void OnChangeProperties(wxPropertyGridEvent& event) { event.Skip(); } - virtual void OnInsertButtonClick(wxCommandEvent& event) { event.Skip(); } - virtual void OnRemoveButtonClick(wxCommandEvent& event) { event.Skip(); } - virtual void OnUpButtonClick(wxCommandEvent& event) { event.Skip(); } - virtual void OnDownButtonClick(wxCommandEvent& event) { event.Skip(); } - virtual void OnSelectItem(wxListEvent& event) { event.Skip(); } - virtual void OnOKButtonClick(wxCommandEvent& event) { event.Skip(); } - virtual void OnCancelButtonClick(wxCommandEvent& event) { event.Skip(); } - -public: - wxPropertyGridManager* GetPgMgrSwitchingsProp() { return m_pgMgrSwitchingsProp; } - wxButton* GetButtonInsert() { return m_buttonInsert; } - wxButton* GetButtonRemove() { return m_buttonRemove; } - wxButton* GetButtonUp() { return m_buttonUp; } - wxButton* GetButtonDown() { return m_buttonDown; } - wxStaticText* GetStaticTextSwList() { return m_staticTextSwList; } - wxListCtrl* GetListCtrlSwitchings() { return m_listCtrlSwitchings; } - wxButton* GetButtonOK() { return m_buttonOK; } - wxButton* GetButtonCancel() { return m_buttonCancel; } - SwitchingFormBase(wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = _("Switching"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize(-1,-1), long style = wxDEFAULT_DIALOG_STYLE); - virtual ~SwitchingFormBase(); -}; - - class LoadFormBase : public wxDialog { protected: @@ -669,4 +628,86 @@ public: virtual ~ReactiveShuntElementFormBase(); }; + +class SwitchingFormBase : public wxDialog +{ +protected: + wxPropertyGridManager* m_pgMgrSwitchingsProp; + wxPGProperty* m_pgPropTitle; + wxPGProperty* m_pgPropType; + wxPGProperty* m_pgPropTime; + wxButton* m_buttonInsert; + wxButton* m_buttonRemove; + wxButton* m_buttonUp; + wxButton* m_buttonDown; + wxStaticText* m_staticTextSwList; + wxListCtrl* m_listCtrlSwitchings; + wxButton* m_buttonOK; + wxButton* m_buttonCancel; + +protected: + virtual void OnChangeProperties(wxPropertyGridEvent& event) { event.Skip(); } + virtual void OnInsertButtonClick(wxCommandEvent& event) { event.Skip(); } + virtual void OnRemoveButtonClick(wxCommandEvent& event) { event.Skip(); } + virtual void OnUpButtonClick(wxCommandEvent& event) { event.Skip(); } + virtual void OnDownButtonClick(wxCommandEvent& event) { event.Skip(); } + virtual void OnSelectItem(wxListEvent& event) { event.Skip(); } + virtual void OnOKButtonClick(wxCommandEvent& event) { event.Skip(); } + virtual void OnCancelButtonClick(wxCommandEvent& event) { event.Skip(); } + +public: + wxPropertyGridManager* GetPgMgrSwitchingsProp() { return m_pgMgrSwitchingsProp; } + wxButton* GetButtonInsert() { return m_buttonInsert; } + wxButton* GetButtonRemove() { return m_buttonRemove; } + wxButton* GetButtonUp() { return m_buttonUp; } + wxButton* GetButtonDown() { return m_buttonDown; } + wxStaticText* GetStaticTextSwList() { return m_staticTextSwList; } + wxListCtrl* GetListCtrlSwitchings() { return m_listCtrlSwitchings; } + wxButton* GetButtonOK() { return m_buttonOK; } + wxButton* GetButtonCancel() { return m_buttonCancel; } + SwitchingFormBase(wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = _("Switching"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize(-1,-1), long style = wxDEFAULT_DIALOG_STYLE); + virtual ~SwitchingFormBase(); +}; + + +class IndMotorFormBase : public wxDialog +{ +protected: + wxNotebook* m_notebook; + wxPanel* m_panelGeneral; + wxStaticText* m_staticTextName; + wxTextCtrl* m_textCtrlName; + wxStaticText* m_staticTextActivePower; + wxTextCtrl* m_textCtrlActivePower; + wxChoice* m_choiceActivePower; + wxStaticText* m_staticTextReactivePower; + wxTextCtrl* m_textCtrlReactivePower; + wxChoice* m_choiceReactivePower; + wxButton* m_buttonStabButton; + wxButton* m_buttonOK; + wxButton* m_ButtonCancel; + +protected: + virtual void OnStabilityButtonClick(wxCommandEvent& event) { event.Skip(); } + virtual void OnOKButtonClick(wxCommandEvent& event) { event.Skip(); } + virtual void OnCancelButtonClick(wxCommandEvent& event) { event.Skip(); } + +public: + wxStaticText* GetStaticTextName() { return m_staticTextName; } + wxTextCtrl* GetTextCtrlName() { return m_textCtrlName; } + wxStaticText* GetStaticTextActivePower() { return m_staticTextActivePower; } + wxTextCtrl* GetTextCtrlActivePower() { return m_textCtrlActivePower; } + wxChoice* GetChoiceActivePower() { return m_choiceActivePower; } + wxStaticText* GetStaticTextReactivePower() { return m_staticTextReactivePower; } + wxTextCtrl* GetTextCtrlReactivePower() { return m_textCtrlReactivePower; } + wxChoice* GetChoiceReactivePower() { return m_choiceReactivePower; } + wxPanel* GetPanelGeneral() { return m_panelGeneral; } + wxNotebook* GetNotebook() { return m_notebook; } + wxButton* GetButtonStabButton() { return m_buttonStabButton; } + wxButton* GetButtonOK() { return m_buttonOK; } + wxButton* GetButtonCancel() { return m_ButtonCancel; } + IndMotorFormBase(wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = _("Motor"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize(-1,-1), long style = wxDEFAULT_DIALOG_STYLE); + virtual ~IndMotorFormBase(); +}; + #endif -- cgit From 6b9054f1bb28b4ac1b0a7b682204baa0e2643220 Mon Sep 17 00:00:00 2001 From: Thales1330 Date: Tue, 29 Nov 2016 18:27:32 -0200 Subject: Text form under implementation --- Project/ElementForm.h | 58 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) (limited to 'Project/ElementForm.h') diff --git a/Project/ElementForm.h b/Project/ElementForm.h index 1af839c..3b36fed 100644 --- a/Project/ElementForm.h +++ b/Project/ElementForm.h @@ -710,4 +710,62 @@ public: virtual ~IndMotorFormBase(); }; + +class TextFormBase : public wxDialog +{ +protected: + wxNotebook* m_notebook; + wxPanel* m_panelGeneral; + wxStaticText* m_staticTextElement; + wxChoice* m_choiceElement; + wxStaticText* m_staticTextName; + wxChoice* m_choiceName; + wxStaticText* m_staticTextType; + wxChoice* m_choiceTextType; + wxStaticText* m_staticTextFromBus; + wxChoice* m_choiceTextFromBus; + wxStaticText* m_staticTextToBus; + wxChoice* m_choiceTextToBus; + wxStaticText* m_staticTextUnit; + wxChoice* m_choiceTextUnit; + wxStaticText* m_staticTextDecimal; + wxTextCtrl* m_textCtrlDecimal; + wxStaticText* m_staticTextPreview; + wxTextCtrl* m_textCtrlPreview; + wxButton* m_buttonOK; + wxButton* m_ButtonCancel; + +protected: + virtual void OnElementChoiceSelected(wxCommandEvent& event) { event.Skip(); } + virtual void OnNameChoiceSelected(wxCommandEvent& event) { event.Skip(); } + virtual void OnTypeChoiceSelected(wxCommandEvent& event) { event.Skip(); } + virtual void OnFromBusChoiceSelected(wxCommandEvent& event) { event.Skip(); } + virtual void OnToBusChoiceSelected(wxCommandEvent& event) { event.Skip(); } + virtual void OnTextEnter(wxCommandEvent& event) { event.Skip(); } + +public: + wxStaticText* GetStaticTextElement() { return m_staticTextElement; } + wxChoice* GetChoiceElement() { return m_choiceElement; } + wxStaticText* GetStaticTextName() { return m_staticTextName; } + wxChoice* GetChoiceName() { return m_choiceName; } + wxStaticText* GetStaticTextType() { return m_staticTextType; } + wxChoice* GetChoiceTextType() { return m_choiceTextType; } + wxStaticText* GetStaticTextFromBus() { return m_staticTextFromBus; } + wxChoice* GetChoiceTextFromBus() { return m_choiceTextFromBus; } + wxStaticText* GetStaticTextToBus() { return m_staticTextToBus; } + wxChoice* GetChoiceTextToBus() { return m_choiceTextToBus; } + wxStaticText* GetStaticTextUnit() { return m_staticTextUnit; } + wxChoice* GetChoiceTextUnit() { return m_choiceTextUnit; } + wxStaticText* GetStaticTextDecimal() { return m_staticTextDecimal; } + wxTextCtrl* GetTextCtrlDecimal() { return m_textCtrlDecimal; } + wxStaticText* GetStaticTextPreview() { return m_staticTextPreview; } + wxTextCtrl* GetTextCtrlPreview() { return m_textCtrlPreview; } + wxPanel* GetPanelGeneral() { return m_panelGeneral; } + wxNotebook* GetNotebook() { return m_notebook; } + wxButton* GetButtonOK() { return m_buttonOK; } + wxButton* GetButtonCancel() { return m_ButtonCancel; } + TextFormBase(wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = _("Text"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize(-1,-1), long style = wxDEFAULT_DIALOG_STYLE); + virtual ~TextFormBase(); +}; + #endif -- cgit From e266f5811403beea13c9cc5399c55db4a34fdd3c Mon Sep 17 00:00:00 2001 From: Thales1330 Date: Thu, 1 Dec 2016 16:57:41 -0200 Subject: Text Form under implementation [3] --- Project/ElementForm.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Project/ElementForm.h') diff --git a/Project/ElementForm.h b/Project/ElementForm.h index 3b36fed..6645b96 100644 --- a/Project/ElementForm.h +++ b/Project/ElementForm.h @@ -742,6 +742,8 @@ protected: virtual void OnFromBusChoiceSelected(wxCommandEvent& event) { event.Skip(); } virtual void OnToBusChoiceSelected(wxCommandEvent& event) { event.Skip(); } virtual void OnTextEnter(wxCommandEvent& event) { event.Skip(); } + virtual void OnOKButtonClick(wxCommandEvent& event) { event.Skip(); } + virtual void OnCancelButtonClick(wxCommandEvent& event) { event.Skip(); } public: wxStaticText* GetStaticTextElement() { return m_staticTextElement; } -- cgit