Antares Simulator
Power System Simulator
Loading...
Searching...
No Matches
internal-data.h
1/*
2** Copyright 2007-2024, 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
31namespace Antares
32{
33namespace Forms
34{
35enum
36{
38 minimalWidth = 900,
40 minimalHeight = 600,
41};
42
43class MainFormData final
44{
45public:
47
48
49 MainFormData(ApplWnd& form);
51
52 void editCurrentLocation(const wxString& string);
53
55
56
57 void onToolbarWizard(void*);
59 void onToolbarNewStudy(void*);
61 void onToolbarOpenLocalStudy(void*);
62 void onToolbarOpenRecentMenu(Component::Button&, wxMenu& menu, void*);
64 void onToolbarSave(void*);
66 void onToolbarRunSimulation(void*);
68 void onToolbarLogs(void*);
70 void onToolbarFullscreen(void*);
72 void onToolbarInspector(void*);
76
77public:
79
80
83 wxWindow* wipPanel;
85
86private:
88 ApplWnd& pMainForm;
90 wxMenuItem* pEditCurrentLocation;
91 // friend
92 friend class ApplWnd;
93
94}; // class MainFormData
95
96} // namespace Forms
97} // namespace Antares
98
99#endif // __ANTARES_APPLICATION_MAIN_INTERNAL_DATA_H__
Definition button.h:34
Main Frame of the Antares UI application.
Definition main.h:50
Definition internal-data.h:44
MainFormData(ApplWnd &form)
Default constructor.
Definition internal-data.cpp:29
void onToolbarLogs(void *)
Logs.
Definition events.cpp:206
void onToolbarRunSimulation(void *)
Run a simulation.
Definition events.simulation.cpp:78
void onToolbarFullscreen(void *)
Fullscreen.
Definition events.cpp:81
void onToolbarNewStudy(void *)
New study.
Definition events.file.cpp:300
void onToolbarInspector(void *)
Inspector.
Definition events.cpp:89
void onToolbarOpenLocalStudy(void *)
Open a local study.
Definition events.file.cpp:312
void onToolbarOptimizationPreferences(void *)
Optimization preferences.
Definition events.cpp:95
bool wipEnabled
True if the WIP status is enabled.
Definition internal-data.h:81
void onToolbarSave(void *)
Save.
Definition events.file.cpp:338
void onToolbarWizard(void *)
Show the Wizard.
Definition events.cpp:69