35 TextForm(wxWindow* parent,
Text* text, std::vector<Element*> elementList,
double systemPowerBase = 100e6);
38 virtual bool LoadChoices();
40 virtual void ElementTypeChoice();
41 virtual void ElementNumberChoice();
42 virtual void DataTypeChoice();
43 virtual void UnitChoice();
45 virtual void Preview();
46 virtual bool ValidateData();
49 virtual void OnUnitChoiceSelected(wxCommandEvent& event);
50 virtual void OnCancelButtonClick(wxCommandEvent& event) { EndModal(wxID_CANCEL); }
51 virtual void OnOKButtonClick(wxCommandEvent& event);
52 virtual void OnElementChoiceSelected(wxCommandEvent& event);
53 virtual void OnFromBusChoiceSelected(wxCommandEvent& event);
54 virtual void OnNameChoiceSelected(wxCommandEvent& event);
55 virtual void OnTextEnter(wxCommandEvent& event);
56 virtual void OnToBusChoiceSelected(wxCommandEvent& event);
57 virtual void OnTypeChoiceSelected(wxCommandEvent& event);
59 Text* m_text =
nullptr;
60 Text* m_textToEdit =
nullptr;
61 wxWindow* m_parent =
nullptr;
63 double m_systemPowerBase;
Element that shows power element informations in workspace.