21 #ifndef __ANTARES_WINDOWS_OUTPUT_PANEL_PANEL_H__
22 #define __ANTARES_WINDOWS_OUTPUT_PANEL_PANEL_H__
24 #include <ui/common/component/panel.h>
28 #include <wx/statbmp.h>
29 #include <antares/array/matrix.h>
30 #include <yuni/core/event.h>
36 namespace Antares::Private::OutputViewerData
84 void layer(
Layer* newLayer,
bool forceUpdate =
false);
94 const Yuni::String&
filename()
const;
111 void message(
const wxString& msg,
const char* image = NULL);
113 void messageMergeYbY();
116 void loadVirtualLayer();
117 void loadDataFromFile();
119 void clearAllComponents();
122 void onProceed(
void*);
124 void executeAggregator();
138 wxWindow* pLabelMessage;
139 wxStaticBitmap* pIconMessage;
141 bool pShouldRebuildMessage;
147 Yuni::String pFilename;
151 static std::atomic<int> pPanelsInCallingLoadDataFromFile;
163 std::shared_ptr<std::mutex> ProvideLockingForFileLocking(
const YString& filename);
168 void ClearAllMutexForFileLocking();
Panel implementation.
Definition: panel.h:34
A n-by-n matrix.
Definition: matrix.h:44
const Yuni::String & filename() const
Get the filename currently used (empty if the layer is virtual)
Definition: panel.hxx:41
void message(const wxString &msg, const char *image=NULL)
Replace the whole panel by a message with an icon.
Definition: panel.cpp:304
std::vector< Panel * > Vector
Vector.
Definition: panel.h:42
void forceRefresh()
Force the GUI refresh.
Definition: panel.cpp:150
const Layer * layer() const
Get the attached layer (const)
Definition: panel.hxx:26
virtual ~Panel()
Destructor.
Definition: panel.cpp:107
uint index() const
Get the index.
Definition: panel.hxx:36
Panel(OutputViewerComponent *component, wxWindow *parent)
Constructor.
Definition: panel.cpp:74
Component: Viewer for simulation results.
Definition: output.h:45