summaryrefslogtreecommitdiffstats
path: root/Project/BusForm.h
diff options
context:
space:
mode:
authorThales1330 <thaleslima.ufu@gmail.com>2016-12-06 13:26:46 -0200
committerThales1330 <thaleslima.ufu@gmail.com>2016-12-06 13:26:46 -0200
commite282ec268db0d17a1d53f813c5fff9473d25e797 (patch)
tree517e01b8685248f04548513091e7040a1b36ec0b /Project/BusForm.h
parentd4efffcdedbb41596eecd0882a1cef76f6afc435 (diff)
parente266f5811403beea13c9cc5399c55db4a34fdd3c (diff)
downloadPSP.git-e282ec268db0d17a1d53f813c5fff9473d25e797.tar.gz
PSP.git-e282ec268db0d17a1d53f813c5fff9473d25e797.tar.xz
PSP.git-e282ec268db0d17a1d53f813c5fff9473d25e797.zip
Merge remote-tracking branch 'refs/remotes/origin/wip/currentState'
Diffstat (limited to 'Project/BusForm.h')
-rw-r--r--Project/BusForm.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/Project/BusForm.h b/Project/BusForm.h
new file mode 100644
index 0000000..33b8caf
--- /dev/null
+++ b/Project/BusForm.h
@@ -0,0 +1,28 @@
+#ifndef BUSFORM_H
+#define BUSFORM_H
+
+#include "ElementForm.h"
+class Bus;
+
+class BusForm : public BusFormBase
+{
+public:
+ BusForm(wxWindow* parent, Bus* bus);
+ virtual ~BusForm();
+protected:
+ virtual void OnFaultTypeChoice(wxCommandEvent& event);
+ virtual void OnControlledVoltageClick(wxCommandEvent& event);
+ virtual void OnInsertFaultClick(wxCommandEvent& event);
+ virtual void OnInsertStabFaultClick(wxCommandEvent& event);
+ virtual void OnNominalVoltageChoice(wxCommandEvent& event);
+ virtual void OnButtonCancelClick(wxCommandEvent& event);
+ virtual void OnButtonOKClick(wxCommandEvent& event);
+ virtual void EnableCtrlVoltageFields(bool enable = true);
+ virtual void EnableFaultFields(bool enable = true);
+ virtual void EnableStabFaultFields(bool enable = true);
+ virtual void UpdateChoiceBoxes();
+
+ Bus* m_bus;
+ wxWindow* m_parent;
+};
+#endif // BUSFORM_H