39 lines
677 B
C++
39 lines
677 B
C++
#ifndef IUSERINTERFACE_H
|
|
#define IUSERINTERFACE_H
|
|
|
|
#include <memory>
|
|
#include <wx/aui/aui.h>
|
|
#include <wx/wx.h>
|
|
|
|
#include "ControlManager.h"
|
|
|
|
enum MenuID {
|
|
ID_SaveLayout = 1000,
|
|
};
|
|
|
|
class UserInterface final : public wxFrame
|
|
{
|
|
public:
|
|
explicit UserInterface(const wxString& title);
|
|
~UserInterface() override;
|
|
|
|
private:
|
|
void InitUI();
|
|
void InitMenu();
|
|
void InitData();
|
|
|
|
private:
|
|
void TryRestoreLayout();
|
|
|
|
private:
|
|
void OnSaveLayout(wxCommandEvent& event);
|
|
|
|
private:
|
|
wxAuiManager mgr_;
|
|
wxMenuBar* menuBar_;
|
|
wxString configDir_;
|
|
wxString configPath_;
|
|
std::shared_ptr<ControlManager> controlMgr_;
|
|
};
|
|
|
|
#endif // IUSERINTERFACE_H
|