Antares Simulator
Power System Simulator
Loading...
Searching...
No Matches
panel.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_WINDOWS_SCENARIO_BUILDER_PANEL_H__
22#define __ANTARES_APPLICATION_WINDOWS_SCENARIO_BUILDER_PANEL_H__
23
24#include <ui/common/component/panel.h>
25#include <antares/study/fwd.h>
26#include <antares/study/scenario-builder/rules.h>
27#include <antares/study/scenario-builder/sets.h>
28#include "../../toolbox/components/button.h"
29
30namespace Antares
31{
32namespace Window
33{
34namespace ScenarioBuilder
35{
39class Panel final : public Antares::Component::Panel, public Yuni::IEventObserver<Panel>
40{
41public:
43
44
49 Panel(wxWindow* parent);
51 virtual ~Panel();
53
54public:
57
58private:
59 void onStudyClosed();
60 void onStudyChanged(Data::Study&);
61 void onFileMenu(Antares::Component::Button&, wxMenu& menu, void*);
62 void onActiveMenu(Antares::Component::Button&, wxMenu& menu, void*);
63
64 void onFileNew(wxCommandEvent&);
65 void onFileDelete(wxCommandEvent&);
66 void onFileRename(wxCommandEvent&);
67 void onActiveRuleset(wxCommandEvent&);
68
69 void scenarioBuilderDataAreLoaded();
70 void update();
71
72private:
76 Component::Button* pBtnFile;
77 Component::Button* pBtnActive;
82
83}; // class Panel
84
85} // namespace ScenarioBuilder
86} // namespace Window
87} // namespace Antares
88
89#endif // __ANTARES_APPLICATION_WINDOWS_SCENARIO_BUILDER_PANEL_H__
Definition button.h:34
Panel implementation.
Definition panel.h:36
std::shared_ptr< Rules > Ptr
Smart pointer.
Definition rules.h:55
std::map< int, Ptr > MappingID
Map ID.
Definition rules.h:59
Definition study.h:61
Panel to access to the simulation settings.
Definition panel.h:40
Yuni::Event< void(Data::ScenarioBuilder::Rules::Ptr)> updateRules
Event: A rules set has been changed.
Definition panel.h:56
virtual ~Panel()
Destructor.
Definition panel.cpp:113
Panel(wxWindow *parent)
Default constructor.
Definition panel.cpp:64