18#ifndef _PROJECTPROPERTIES_DLG_H_
19#define _PROJECTPROPERTIES_DLG_H_
25#include <wx/notebook.h>
27#include <wx/statline.h>
30#include "../core/prjdefmemmanage.h"
31#include "../core/scale.h"
32#include "../core/wxdirpickerctrlbest.h"
33#include "listgenreport.h"
34#include "wxflatbutton.h"
39#define ID_PROJECTPROPERTIES 10132
40#define ID_DLGPS_NOTEBOOK 10141
41#define ID_DLGPS_PANEL_SETTINGS 10142
42#define ID_DLGPS_EXPORT_TYPE_CHOICE 10000
43#define ID_DLGPS_EXPORT_PATH 10001
44#define ID_DLGPS_BACKUP_PATH 10003
45#define ID_DLGPS_PANEL_SCALE 10133
46#define ID_DLGPS_SCALE_LIST 10134
47#define ID_DLGPS_BTN_SCALE_ADD 10239
48#define ID_DLGPS_BTN_SCALE_DEL 10240
49#define ID_DLGPS_SCALE_ORDER_CHOICE 10135
50#define SYMBOL_PROJECTPROPERTIESDLG_STYLE wxCAPTION | wxRESIZE_BORDER | wxSYSTEM_MENU | wxCLOSE_BOX
51#define SYMBOL_PROJECTPROPERTIESDLG_TITLE _("Project settings")
52#define SYMBOL_PROJECTPROPERTIESDLG_IDNAME ID_PROJECTPROPERTIES
53#define SYMBOL_PROJECTPROPERTIESDLG_SIZE wxSize(400, 300)
54#define SYMBOL_PROJECTPROPERTIESDLG_POSITION wxDefaultPosition
58enum PRJPROPERTIES_SCALE_ORDER {
60 SCALE_ORDER_ASCENDING,
61 SCALE_ORDER_DESCENDING
64const wxString PRJPROPERTIES_SCALE_ORDER_STRING[] = {wxTRANSLATE(
"User defined"), wxTRANSLATE(
"Sort ascending"),
65 wxTRANSLATE(
"Sort descending")};
72 void OnSaveButton(wxCommandEvent& event);
74 void OnAddScaleButton(wxCommandEvent& event);
76 void OnRemoveScaleButton(wxCommandEvent& event);
78 void OnChooseScaleOrder(wxCommandEvent& event);
81 wxNotebook* m_DLGPS_Notebook;
82 wxChoice* m_DLGPS_Export_Type_Choice;
86 wxChoice* m_DLGPS_Scale_Order_Choice;
90 void _CreateControls();
93 DECLARE_EVENT_TABLE();
100 const wxString& caption = SYMBOL_PROJECTPROPERTIESDLG_TITLE,
101 const wxPoint& pos = SYMBOL_PROJECTPROPERTIESDLG_POSITION,
102 const wxSize& size = SYMBOL_PROJECTPROPERTIESDLG_SIZE,
103 long style = SYMBOL_PROJECTPROPERTIESDLG_STYLE);
105 bool Create(wxWindow* parent, wxWindowID
id = SYMBOL_PROJECTPROPERTIESDLG_IDNAME,
106 const wxString& caption = SYMBOL_PROJECTPROPERTIESDLG_TITLE,
107 const wxPoint& pos = SYMBOL_PROJECTPROPERTIESDLG_POSITION,
108 const wxSize& size = SYMBOL_PROJECTPROPERTIESDLG_SIZE,
long style = SYMBOL_PROJECTPROPERTIESDLG_STYLE);
120 wxChoice* m_ChoiceOrder;
125 void LoadValueIntoList();
128 virtual void BeforeAdding();
130 virtual void AfterAdding(
bool bRealyAddItem);
132 virtual void BeforeDeleting();
134 virtual void BeforeEditing();
136 virtual void AfterEditing(
bool bRealyEdited);
138 DECLARE_EVENT_TABLE();
143 wxSize size = wxDefaultSize);
149 virtual int Compare(
int iColumnCompareType,
const wxString& x_strValue1,
const wxString& x_strValue2,
153 void SetListCtrls(wxChoice* orderchoice =
nullptr) {
154 m_ChoiceOrder = orderchoice;
Definition database_tm.h:80
Definition listgenreport.h:319
Definition prjdefmemmanage.h:54
Definition projectproperties_dlg.h:67
void SetScaleListFocus()
Set focus to the scale list.
Definition projectproperties_dlg.cpp:289
ProjectPropertiesDLG()
Constructors.
Definition projectproperties_dlg.cpp:109
virtual bool TransferDataToWindow()
Transfert data to dialog.
Definition projectproperties_dlg.cpp:263
Definition projectproperties_dlg.h:117
virtual int Compare(int iColumnCompareType, const wxString &x_strValue1, const wxString &x_strValue2, bool bAsending)
Compare two values for sorting data.
Definition objectdefinitionlistdlg.cpp:307
~ScaleList()
Destructor.
Definition projectproperties_dlg.cpp:315
void SetScaleToList(long lscale, int index=-1)
Set the scale value.
Definition projectproperties_dlg.cpp:429
long GetScaleFromList(int index)
Get the scale value.
Definition projectproperties_dlg.cpp:451
Definition wxdirpickerctrlbest.h:40