Power System Platform  2026w10a-beta
Loading...
Searching...
No Matches
IOControlForm.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 IOCONTROLFORM_H
19#define IOCONTROLFORM_H
20
21#include "ElementFormBase.h"
22#include "../elements/controlElement/IOControl.h"
23
31class IOControlForm : public IOControlFormBase
32{
33 public:
34 IOControlForm(wxWindow* parent, IOControl* ioControl);
35 virtual ~IOControlForm();
36
37 virtual bool ValidateData();
38
39 protected:
40 virtual void OnInputChecked(wxCommandEvent& event);
41 virtual void OnOutputChecked(wxCommandEvent& event);
42 virtual void OnCancelButtonClick(wxCommandEvent& event) { EndModal(wxID_CANCEL); };
43 virtual void OnOKButtonClick(wxCommandEvent& event);
44
45 wxWindow* m_parent;
46 IOControl* m_ioControl;
47
48 std::vector<IOControl::IOFlags> m_inputFlags;
49 std::vector<IOControl::IOFlags> m_outputFlags;
50};
51#endif // IOCONTROLFORM_H
Form to edit the input/output control data.
Provides the communication with the power element.
Definition IOControl.h:43