Power System Platform  2026w34a-beta
Loading...
Searching...
No Matches
GeneralPropertiesForm.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 GENERALPROPERTIESFORM_H
19#define GENERALPROPERTIESFORM_H
20
21#include "PropertiesFormBase.h"
22
23#include <wx/textfile.h>
24#include <wx/msgdlg.h>
25#include <wx/clrpicker.h>
26#include <wx/listctrl.h>
27#include <vector>
28#include "../utils/CommomTypes.h"
29
30class PropertiesData;
31
41class GeneralPropertiesForm : public GeneralPropertiesFormBase
42{
43public:
44 GeneralPropertiesForm(wxWindow* parent, PropertiesData* properties);
45 virtual ~GeneralPropertiesForm();
46
47protected:
48 void OnUseBusColoursClick(wxCommandEvent& event) override;
49 void OnButtonAddVoltage(wxCommandEvent& event) override;
50 void OnButtonDefaultVoltages(wxCommandEvent& event) override;
51 void OnButtonRemoveVoltage(wxCommandEvent& event) override;
52 void OnVoltageItemSelected(wxListEvent& event) override;
53 virtual void OnThemeSelected(wxCommandEvent& event);
54 virtual void OnButtonCancelClick(wxCommandEvent& event) { EndModal(wxID_CANCEL); }
55 virtual void OnButtonOKClick(wxCommandEvent& event);
56 virtual bool ValidateData();
57 void PopulateVoltageList();
58 void EnableBusColoursControls(bool enable = true);
59
60
61 std::vector<VoltageLevelColour> m_voltageLevels;
62
63 PropertiesData* m_properties = nullptr;
64};
65#endif // GENERALPROPERTIESFORM_H
Form to edit the software's general data.
General and simulation data manager.