Antares Simulator
Power System Simulator
internal-data.h
1 /*
2  * Copyright 2007-2025, RTE (https://www.rte-france.com)
3  * See AUTHORS.txt
4  * SPDX-License-Identifier: MPL-2.0
5  * This file is part of Antares-Simulator,
6  * Adequacy and Performance assessment for interconnected energy networks.
7  *
8  * Antares_Simulator is free software: you can redistribute it and/or modify
9  * it under the terms of the Mozilla Public Licence 2.0 as published by
10  * the Mozilla Foundation, either version 2 of the License, or
11  * (at your option) any later version.
12  *
13  * Antares_Simulator is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * Mozilla Public Licence 2.0 for more details.
17  *
18  * You should have received a copy of the Mozilla Public Licence 2.0
19  * along with Antares_Simulator. If not, see <https://opensource.org/license/mpl-2-0/>.
20  */
21 #ifndef __ANTARES_APPLICATION_MAIN_INTERNAL_DATA_H__
22 #define __ANTARES_APPLICATION_MAIN_INTERNAL_DATA_H__
23 
24 #include <yuni/yuni.h>
25 #include "main.h"
26 #include <wx/menuitem.h>
27 #include <cassert>
28 #include "../../toolbox/components/button.h"
29 #include <antares/study/study.h>
30 
31 namespace Antares::Forms
32 {
33 enum
34 {
36  minimalWidth = 900,
38  minimalHeight = 600,
39 };
40 
41 class MainFormData final
42 {
43 public:
45 
46  MainFormData(ApplWnd& form);
49 
50  void editCurrentLocation(const wxString& string);
51 
53 
54  void onToolbarWizard(void*);
57  void onToolbarNewStudy(void*);
59  void onToolbarOpenLocalStudy(void*);
60  void onToolbarOpenRecentMenu(Component::Button&, wxMenu& menu, void*);
62  void onToolbarSave(void*);
64  void onToolbarRunSimulation(void*);
66  void onToolbarLogs(void*);
68  void onToolbarFullscreen(void*);
70  void onToolbarInspector(void*);
74 
75 public:
77 
78  bool wipEnabled;
81  wxWindow* wipPanel;
83 
84 private:
86  ApplWnd& pMainForm;
88  wxMenuItem* pEditCurrentLocation;
89  // friend
90  friend class ApplWnd;
91 
92 }; // class MainFormData
93 
94 } // namespace Antares::Forms
95 
96 #endif // __ANTARES_APPLICATION_MAIN_INTERNAL_DATA_H__
Definition: button.h:32
Main Frame of the Antares UI application.
Definition: main.h:50
Definition: internal-data.h:42
MainFormData(ApplWnd &form)
Default constructor.
Definition: internal-data.cpp:27
void onToolbarLogs(void *)
Logs.
Definition: events.cpp:229
void onToolbarRunSimulation(void *)
Run a simulation.
Definition: events.simulation.cpp:77
void onToolbarFullscreen(void *)
Fullscreen.
Definition: events.cpp:79
void onToolbarNewStudy(void *)
New study.
Definition: events.file.cpp:318
void onToolbarInspector(void *)
Inspector.
Definition: events.cpp:87
void onToolbarOpenLocalStudy(void *)
Open a local study.
Definition: events.file.cpp:332
void onToolbarOptimizationPreferences(void *)
Optimization preferences.
Definition: events.cpp:95
bool wipEnabled
True if the WIP status is enabled.
Definition: internal-data.h:79
void onToolbarSave(void *)
Save.
Definition: events.file.cpp:362
void onToolbarWizard(void *)
Show the Wizard.
Definition: events.cpp:67