17#ifndef _TM_SHORTCUT_PANEL_H
18#define _TM_SHORTCUT_PANEL_H
28#include "listgenreport.h"
29#include "managed_aui_wnd.h"
30#include "shortcut_panel_dlg.h"
31#include "wxflatbutton.h"
35#define IDDLG_SHORT_TARGET 21000
36#define IDDLG_SHORT_LIST 21001
37#define IDDLG_SHORT_ADD_BTN 21002
38#define IDDLG_SHORT_DEL_BTN 21003
40#define SHORTCUT_PANEL_TITLE _("Shortcut")
41#define SHORTCUT_PANEL_SIZE wxSize(230, 150)
48 wxWindow* m_ParentEvt;
50 virtual void BeforeAdding();
52 virtual void AfterAdding(
bool bRealyAddItem);
54 virtual void BeforeDeleting();
56 virtual void BeforeEditing();
58 virtual void AfterEditing(
bool bRealyEdited);
62 ShortcutList(wxWindow* parent, wxWindow* parent_evt, wxWindowID
id, wxArrayString* pColsName,
63 wxArrayInt* pColsSize =
nullptr, wxSize size = wxDefaultSize);
72 void SetLayerType(
int iLayertype) {
73 m_LayerType = iLayertype;
79 wxString GetKeyFromInt(
int key) {
80 return wxString::Format(_T(
"F%d"), key);
90 wxChoice* m_TargetChoice;
94 wxWindow* m_ParentEvt;
95 wxAuiPaneInfo m_PaneInfo;
100 void OnChangeTarget(wxCommandEvent& event);
102 void OnShortcutAdd(wxCommandEvent& event);
104 void OnShortcutDel(wxCommandEvent& event);
108 wxSizer* CreateControls(wxWindow* parent,
bool call_fit =
true,
bool set_sizer =
true);
110 void InitMemberValues();
112 DECLARE_EVENT_TABLE()
115 Shortcuts_PANEL(wxWindow* parent, wxWindowID
id, wxAuiManager* auimanager);
122 void SetProjectOpen(
bool bStatus =
true) {
123 m_ProjectOpen = bStatus;
Definition database_tm.h:80
Definition listgenreport.h:319
Definition managed_aui_wnd.h:32
Definition shortcut_panel.h:43
void RefreshShortcuts()
Send order to refresh shortcuts.
Definition shortcut_panel.cpp:375
~ShortcutList()
Destructor.
Definition shortcut_panel.cpp:250
int GetShortcutInt(const wxString &myShortCut)
Convert shortcut key displayed as string into integer.
Definition shortcut_panel.cpp:260
Definition shortcut_panel.h:87
int LoadShortcutList(bool bStoreShortcutinmemory=false)
Load Shortcut into the Shortcut list.
Definition shortcut_panel.cpp:155
void SetDataBase(DataBaseTM *database)
Setter for the Database.
Definition shortcut_panel.cpp:80