00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
#ifndef INC_DLGCONF_HPP
00026
#define INC_DLGCONF_HPP
00027
00028
00029
00030
#include <wx/wxprec.h>
00031
00032
#ifdef __BORLANDC__
00033
#pragma hdrstop
00034
#endif
00035
00036
#ifndef WX_PRECOMP
00037
00038
#include <wx/wx.h>
00039
#endif
00040
#include <wx/splitter.h>
00041
#include <wx/treectrl.h>
00042
00043
00044
00045
00046
00047
00048 class dlgConfigure :
public wxDialog
00049 {
00050
public:
00051
00052
dlgConfigure();
00053
00054
00055
dlgConfigure(wxWindow* parent);
00056
00057
00058
virtual ~dlgConfigure();
00059
00060
00061
void createControls();
00062
00063
public:
00064 wxSplitterWindow*
sptConfigure;
00065 wxTreeCtrl*
trePages;
00066
00067 wxCheckBox*
chkWindowSavePosition;
00068 wxCheckBox*
chkWindowSaveSize;
00069 wxListBox*
lstSumsHeaders;
00070 wxCheckBox*
chkSumsSaveColumnToSort;
00071 wxCheckBox*
chkSumsSaveColumnsWidths;
00072 wxCheckBox*
chkSumsDirInAbsolutePath;
00073 wxRadioButton*
rbtSumsValuesCaseUpper;
00074 wxRadioButton*
rbtSumsValuesCaseLower;
00075 wxCheckBox*
chkSumsHRules;
00076 wxCheckBox*
chkSumsVRules;
00077
00078 wxCheckBox*
chkAutoCheckOnOpen;
00079 wxCheckBox*
chkDlgSumUpCheck;
00080 wxCheckBox*
chkWarnOnInvalidWhenSaving;
00081
00082 wxListBox*
lstLanguages;
00083
00084 wxCheckBox*
chkCLnVerifyDontShowGUI;
00085 wxRadioButton*
rbxCLnAppendNeverShowGUI;
00086 wxRadioButton*
rbxCLnAppendShowGUIOnError;
00087 wxRadioButton*
rbxCLnAppendShowGUIOnWarning;
00088 wxRadioButton*
rbxCLnAppendAlwaysGUI;
00089 wxRadioButton*
rbxCLnCreateNeverShowGUI;
00090 wxRadioButton*
rbxCLnCreateShowGUIOnError;
00091 wxRadioButton*
rbxCLnCreateShowGUIOnWarning;
00092 wxRadioButton*
rbxCLnCreateAlwaysGUI;
00093
00094 wxRadioButton*
rbxSFVPathSepReadAuto;
00095 wxRadioButton*
rbxSFVPathSepReadUnix;
00096 wxRadioButton*
rbxSFVPathSepReadWindows;
00097 wxRadioButton*
rbxSFVPathSepReadMAC;
00098 wxCheckBox*
chkSFVSaveGenerator;
00099 wxChoice*
cboSFVIdentifyAs;
00100 wxCheckBox*
chkSFVSaveFilesInfo;
00101 wxRadioButton*
rbxSFVPathSepWriteSystem;
00102 wxRadioButton*
rbxSFVPathSepWriteUnix;
00103 wxRadioButton*
rbxSFVPathSepWriteWindows;
00104 wxRadioButton*
rbxSFVPathSepWriteMAC;
00105 wxRadioButton*
rbxSFVEOLWriteSystem;
00106 wxRadioButton*
rbxSFVEOLWriteWindows;
00107 wxRadioButton*
rbxSFVEOLWriteUnix;
00108 wxRadioButton*
rbxSFVEOLWriteMAC;
00109
00110 wxRadioButton*
rbxMD5PathSepReadAuto;
00111 wxRadioButton*
rbxMD5PathSepReadUnix;
00112 wxRadioButton*
rbxMD5PathSepReadWindows;
00113 wxRadioButton*
rbxMD5PathSepReadMAC;
00114 wxTextCtrl*
txtMD5PathSepRead;
00115 wxCheckBox*
chkMD5SaveGenerator;
00116 wxCheckBox*
chkMD5SaveFilesInfo;
00117 wxRadioButton*
rbxMD5PathSepWriteSystem;
00118 wxRadioButton*
rbxMD5PathSepWriteUnix;
00119 wxRadioButton*
rbxMD5PathSepWriteWindows;
00120 wxRadioButton*
rbxMD5PathSepWriteMAC;
00121 wxTextCtrl*
txtMD5PathSepWrite;
00122 wxRadioButton*
rbxMD5EOLWriteSystem;
00123 wxRadioButton*
rbxMD5EOLWriteWindows;
00124 wxRadioButton*
rbxMD5EOLWriteUnix;
00125 wxRadioButton*
rbxMD5EOLWriteMAC;
00126
00127 wxCheckBox*
chkMCGlobalSummary;
00128 wxCheckBox*
chkMCChecksumsFileSummary;
00129 wxCheckBox*
chkMCFileState;
00130 wxCheckBox*
chkMCNoCorrectFileState;
00131 wxBitmapButton*
btnMCNormalColour;
00132 wxBitmapButton*
btnMCSuccessColour;
00133 wxBitmapButton*
btnMCWarningColour;
00134 wxBitmapButton*
btnMCErrorColour;
00135 wxColour
MCNormalColour;
00136 wxColour
MCSuccessColour;
00137 wxColour
MCWarningColour;
00138 wxColour
MCErrorColour;
00139
00140 wxRadioButton*
rbxBCSkipExistingCkFile;
00141 wxRadioButton*
rbxBCOverwriteExistingCkFile;
00142 wxRadioButton*
rbxBCReplaceFileExtension;
00143 wxRadioButton*
rbxBCAddFileExtension;
00144 wxChoice*
cboBCVerbosityLevel;
00145 wxBitmapButton*
btnBCNormalColour;
00146 wxBitmapButton*
btnBCSuccessColour;
00147 wxBitmapButton*
btnBCWarningColour;
00148 wxBitmapButton*
btnBCErrorColour;
00149 wxColour
BCNormalColour;
00150 wxColour
BCSuccessColour;
00151 wxColour
BCWarningColour;
00152 wxColour
BCErrorColour;
00153
00154
protected:
00155
00156
class TreePagesItemData;
00157
00158
00159 enum TreePagesId
00160 {
00161 TpInterface,
00162 TpDisplay,
00163 TpBehavior,
00164 TpLanguage,
00165 TpCmdLine,
00166 TpChecksumsFiles,
00167 TpSFVFiles,
00168 TpMD5Files,
00169 TpTools,
00170 TpMultiCheck,
00171 TpBatchCreation
00172 };
00173
00174
00175 wxArrayPtrVoid
pagesArray;
00176
00177
protected:
00178
00179
enum
00180 {
00181 TRE_PAGES = wxID_HIGHEST + 1,
00182 LST_SUMS_HEADERS,
00183 BTN_SUMS_HEADERS_UP,
00184 BTN_SUMS_HEADERS_DOWN,
00185 CBO_SFV_IDENTIFY_AS,
00186 CHK_MC_FILE_STATE,
00187 BTN_MC_NORMAL_COLOUR,
00188 BTN_MC_SUCCESS_COLOUR,
00189 BTN_MC_WARNING_COLOUR,
00190 BTN_MC_ERROR_COLOUR,
00191 BTN_BC_NORMAL_COLOUR,
00192 BTN_BC_SUCCESS_COLOUR,
00193 BTN_BC_WARNING_COLOUR,
00194 BTN_BC_ERROR_COLOUR
00195 };
00196
00197
00198
void trePagesSelChanged(wxTreeEvent& event);
00199
00200
00201
void btnSumsHeadersUpClick(wxCommandEvent& event);
00202
00203
void btnSumsHeadersDownClick(wxCommandEvent& event);
00204
00205
00206
void cboSFVIdentifyAsSelect(wxCommandEvent& event);
00207
00208
00209
void chkMCFileStateCheck(wxCommandEvent& event);
00210
00211
void btnMCColoursClick(wxCommandEvent& event);
00212
00213 DECLARE_EVENT_TABLE()
00214
00215
00216 wxPanel* makePageTitlePanel(wxWindow* parent, const wxString& title,
int const level = 2);
00217
00218
00219
int addSFVGeneratorIdentifier(const wxString& identifier);
00220
00221 public:
00222
00223 wxString getSFVGeneratorIdentifierConfigKey(const
int n) const;
00224
00225
00226
int getSFVGeneratorIdentifierHistoryMaxSize() const;
00227
00228 private:
00229 DECLARE_DYNAMIC_CLASS(
dlgConfigure)
00230 };
00231
00232
00233 #endif