21 #ifndef __ANTARES_APPLICATION_WINDOWS_STUDY_LOGS_H__
22 #define __ANTARES_APPLICATION_WINDOWS_STUDY_LOGS_H__
25 #include <antares/study/study.h>
26 #include <yuni/core/event.h>
28 #include <wx/htmllbox.h>
29 #include <wx/html/htmlwin.h>
30 #include <wx/stattext.h>
32 #include <wx/treectrl.h>
34 #include "../application/study.h"
35 #include "../toolbox/components/datagrid/renderer/logfile.h"
36 #include <ui/common/component/frame/local-frame.h>
37 #include <ui/common/component/spotlight.h>
39 namespace Antares::Window
44 bool operator()(
const wxString& s1,
const wxString& s2)
const;
47 using MapFileList = std::map<wxString, YString, CompareDesc>;
55 using Ptr = std::shared_ptr<FileListProvider>;
63 void search(Spotlight::IItem::Vector& out,
64 const Spotlight::SearchToken::Vector& tokens,
65 const Yuni::String& text =
"")
override;
66 bool onSelect(Spotlight::IItem::Ptr& item)
override;
67 bool onSelect(
const Spotlight::IItem::Vector&)
override;
68 void refreshFileList(
bool showAll);
73 bool pAutoTriggerSelection;
75 MapFileList pAllSimuLogs;
76 MapFileList pAllUILogs;
77 std::shared_ptr<wxBitmap> pBmpFile;
92 bool operator()(
const Yuni::String& s1,
const Yuni::String& s2)
const
99 using Map = std::map<Yuni::String, LogFilenameInfo, ltstr>;
104 wxClientData* clientData;
118 void refreshListOfAllAvailableLogs();
120 void loadFromFile(
const Yuni::String& filename);
122 const Yuni::String& lastLogFile()
const
133 void onButtonRefreshFileList(
void*);
137 void onReloadLogFile(
void*);
142 void onClose(wxCloseEvent& evt);
147 void enterLoadingMode(
const Yuni::String& filename);
149 void onChangeShowAllAdvanced(wxCommandEvent&);
153 Yuni::String pLastLogFile;
157 wxStaticText* pTxtFromFolder;
175 wxSplitterWindow* pSplitter;
178 bool pCanCloseTheWindow;
183 std::mutex pLoadingMutex;
186 bool pShowAllLogsFiles;
188 FileListProvider::Ptr mProvider;
191 Yuni::Event<void(
bool)> onRefreshListOfFiles;
194 DECLARE_EVENT_TABLE()
A datagrid with virtual values.
Definition: component.h:84
std::shared_ptr< LogEntryContainer > Ptr
The most suitable smart pointer for the class.
Definition: logfile.h:81
Definition: logfile.h:110
Definition: local-frame.h:32
Notebook.
Definition: notebook.h:36
Definition: spotlight.h:38
Definition: studylogs.h:42
Definition: studylogs.h:52
Definition: studylogs.h:87
std::map< Yuni::String, LogFilenameInfo, ltstr > Map
Map.
Definition: studylogs.h:99
wxString html
The html display code.
Definition: studylogs.h:103
Definition: studylogs.h:81
StudyLogs(wxFrame *parent)
Constructor with a parent window and a study.
Definition: studylogs.cpp:705
virtual ~StudyLogs()
Destructor.
Definition: studylogs.cpp:874
Comparison.
Definition: studylogs.h:91