blob: 069c0e4874750739e87ce4cc79cb8bcb05032824 (
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
29
30
31
32
33
34
35
36
37
38
39
40
41
|
#ifndef TEXTFORM_H
#define TEXTFORM_H
#include "ElementForm.h"
#include "Text.h"
#include "ElectricCalculation.h"
class TextForm : public TextFormBase
{
public:
TextForm(wxWindow* parent, Text* text, std::vector<Element*> elementList, double systemPowerBase = 100e6);
virtual ~TextForm();
virtual bool LoadChoices();
virtual void ElementTypeChoice();
virtual void ElementNumberChoice();
virtual void DataTypeChoice();
virtual void UnitChoice();
virtual void Preview();
virtual bool ValidateData();
protected:
virtual void OnUnitChoiceSelected(wxCommandEvent& event);
virtual void OnCancelButtonClick(wxCommandEvent& event) { EndModal(wxID_CANCEL); }
virtual void OnOKButtonClick(wxCommandEvent& event);
virtual void OnElementChoiceSelected(wxCommandEvent& event);
virtual void OnFromBusChoiceSelected(wxCommandEvent& event);
virtual void OnNameChoiceSelected(wxCommandEvent& event);
virtual void OnTextEnter(wxCommandEvent& event);
virtual void OnToBusChoiceSelected(wxCommandEvent& event);
virtual void OnTypeChoiceSelected(wxCommandEvent& event);
Text* m_text = NULL;
Text* m_textToEdit = NULL;
wxWindow* m_parent = NULL;
ElectricCalculation m_allElements;
double m_systemPowerBase;
};
#endif // TEXTFORM_H
|