summaryrefslogtreecommitdiffstats
path: root/Project/ReactiveShuntElementForm.h
diff options
context:
space:
mode:
authorThales1330 <thaleslima.ufu@gmail.com>2016-10-25 17:09:19 -0200
committerThales1330 <thaleslima.ufu@gmail.com>2016-10-25 17:09:19 -0200
commit0e3a45462bf8ce31be988679fd380baeecfb1b95 (patch)
tree9added371f70dd014c4f39a935bf4cd72566c12d /Project/ReactiveShuntElementForm.h
parent58cc8933337d4681025f890af78bfddc45c212d0 (diff)
downloadPSP.git-0e3a45462bf8ce31be988679fd380baeecfb1b95.tar.gz
PSP.git-0e3a45462bf8ce31be988679fd380baeecfb1b95.tar.xz
PSP.git-0e3a45462bf8ce31be988679fd380baeecfb1b95.zip
Capacitor and Inductor forms implemented
Diffstat (limited to 'Project/ReactiveShuntElementForm.h')
-rw-r--r--Project/ReactiveShuntElementForm.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/Project/ReactiveShuntElementForm.h b/Project/ReactiveShuntElementForm.h
new file mode 100644
index 0000000..c5562c2
--- /dev/null
+++ b/Project/ReactiveShuntElementForm.h
@@ -0,0 +1,27 @@
+#ifndef REACTIVESHUNTELEMENTFORM_H
+#define REACTIVESHUNTELEMENTFORM_H
+#include "ElementForm.h"
+#include <wx/log.h>
+
+class Capacitor;
+class Inductor;
+class SwitchingForm;
+
+class ReactiveShuntElementForm : public ReactiveShuntElementFormBase
+{
+ public:
+ ReactiveShuntElementForm(wxWindow* parent, Capacitor* capacitor);
+ ReactiveShuntElementForm(wxWindow* parent, Inductor* inductor);
+ virtual ~ReactiveShuntElementForm();
+ virtual bool ValidateData();
+
+ protected:
+ virtual void OnCancelButtonClick(wxCommandEvent& event) { EndModal(wxID_CANCEL); }
+ virtual void OnOKButtonClick(wxCommandEvent& event);
+ virtual void OnStabilityButtonClick(wxCommandEvent& event);
+
+ wxWindow* m_parent;
+ Capacitor* m_capacitor = NULL;
+ Inductor* m_inductor = NULL;
+};
+#endif // REACTIVESHUNTELEMENTFORM_H