Power System Platform  2026w10a-beta
Loading...
Searching...
No Matches
SwitchingForm.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 SWITCHINGFORM_H
19#define SWITCHINGFORM_H
20
21#include "ElementFormBase.h"
22
23class PowerElement;
24
32class SwitchingForm : public SwitchingFormBase
33{
34 public:
35 SwitchingForm(wxWindow* parent);
36 SwitchingForm(wxWindow* parent, PowerElement* element);
37 virtual ~SwitchingForm();
38
39 protected:
40 virtual void OnDownButtonClick(wxCommandEvent& event);
41 virtual void OnUpButtonClick(wxCommandEvent& event);
42 virtual void OnChangeProperties(wxPropertyGridEvent& event);
43 virtual void OnSelectItem(wxListEvent& event);
44 virtual void OnCancelButtonClick(wxCommandEvent& event);
45 virtual void OnInsertButtonClick(wxCommandEvent& event);
46 virtual void OnOKButtonClick(wxCommandEvent& event);
47 virtual void OnRemoveButtonClick(wxCommandEvent& event);
48
49 int m_maxID = 0;
50
51 PowerElement* m_element = nullptr;
52};
53#endif // SWITCHINGFORM_H
Abstract class of power elements.
Form to edit the switching data of power elements for electromechanical transient studies.