Power System Platform  2026w10a-beta
Loading...
Searching...
No Matches
BusForm.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2017 Thales Lima Oliveira <thales@ufu.br>
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <https://www.gnu.org/licenses/>.
16 */
17
18#ifndef BUSFORM_H
19#define BUSFORM_H
20
21#include "ElementFormBase.h"
22class Bus;
23
31class BusForm : public BusFormBase
32{
33 public:
34 BusForm(wxWindow* parent, Bus* bus);
35 virtual ~BusForm();
36
37 protected:
38 virtual void OnFaultTypeChoice(wxCommandEvent& event);
39 virtual void OnControlledVoltageClick(wxCommandEvent& event);
40 virtual void OnInsertFaultClick(wxCommandEvent& event);
41 virtual void OnInsertStabFaultClick(wxCommandEvent& event);
42 virtual void OnNominalVoltageChoice(wxCommandEvent& event);
43 virtual void OnButtonCancelClick(wxCommandEvent& event);
44 virtual void OnButtonOKClick(wxCommandEvent& event);
45 virtual void EnableCtrlVoltageFields(bool enable = true);
46 virtual void EnableFaultFields(bool enable = true);
47 virtual void EnableStabFaultFields(bool enable = true);
48 virtual void UpdateChoiceBoxes();
49
50 Bus* m_bus = nullptr;
51 wxWindow* m_parent = nullptr;
52};
53#endif // BUSFORM_H
Form to edit the bus power data.
Definition BusForm.h:32
Node for power elements. All others power elements are connected through this.
Definition Bus.h:86