summaryrefslogtreecommitdiffstats
path: root/Project/BusForm.h
blob: 38cb9d7eab9f17ba5c5559a47dde0ea284dc9f9d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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 = NULL;
	wxWindow* m_parent = NULL;
};
#endif // BUSFORM_H