Power System Platform  2026w23a-beta
Loading...
Searching...
No Matches
GeneratorStabForm.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 GENERATORSTABFORM_H
19#define GENERATORSTABFORM_H
20
21//#include <GL/glew.h>
22
23//#include <wx/glcanvas.h>
24#include "ElementFormBase.h"
25
26class Workspace;
27class SwitchingForm;
28class SyncGenerator;
29class ControlEditor;
31
39class GeneratorStabForm : public GeneratorStabFormBase
40{
41 public:
42 GeneratorStabForm(wxWindow* parent, SyncGenerator* syncGenerator, Workspace* workspace);
43 virtual ~GeneratorStabForm();
44
45 protected:
46 virtual void UseAVRClick(wxCommandEvent& event);
47 virtual void UseSGClick(wxCommandEvent& event);
48 virtual void OnCancelButtonClick(wxCommandEvent& event);
49 virtual void OnEditAVRButtonClick(wxCommandEvent& event);
50 virtual void OnOKButtonClick(wxCommandEvent& event);
51 virtual void OnSpeedGovernorButtonClick(wxCommandEvent& event);
52 virtual void OnSwitchingButtonClick(wxCommandEvent& event);
53 //wxGLContext* GetSharedGLContext() const { return m_sharedGLContext; }
54
55 virtual bool ValidateData();
56
57 SyncGenerator* m_syncGenerator = nullptr;
58 wxWindow* m_parent = nullptr;
59 Workspace* m_workspace = nullptr;
60 // wxGLContext* m_sharedGLContext = nullptr;
61};
62#endif // GENERATORSTABFORM_H
Class that can contain all control elements. Can identify (using RTTI) the elements from a generic li...
Form to edit the synchronous generator data for electromechanical studies.
Form to edit the switching data of power elements for electromechanical transient studies.
Synchronous generator power element.
This class manages the graphical and power elements. It is responsible for handling the user's intera...
Definition Workspace.h:105