1 /*******************************************************************************
\r
2 TPI - flexible but useless plug-in framework.
\r
3 Copyright (C) 2002-2009 Silky
\r
5 This library is free software; you can redistribute it and/or modify it under
\r
6 the terms of the GNU Lesser General Public License as published by the Free
\r
7 Software Foundation; either version 2.1 of the License, or (at your option)
\r
10 This library is distributed in the hope that it will be useful, but WITHOUT
\r
11 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
\r
12 FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
\r
15 You should have received a copy of the GNU Lesser General Public License along
\r
16 with this library; if not, write to the Free Software Foundation, Inc.,
\r
17 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
\r
20 *******************************************************************************/
\r
22 #ifndef H_LOADED_DLG_MAKE
\r
23 #define H_LOADED_DLG_MAKE
\r
25 #include <wx/spinctrl.h>
\r
26 #include <wx/notebook.h>
\r
28 WX_DECLARE_OBJARRAY(TPI_FORMATINFO, ArrayTPI_FORMATINFO);
\r
30 //******************************************************************************
\r
31 // Class (myListCtrl2)
\r
32 //******************************************************************************
\r
34 class myListCtrl2: public wxListView
\r
37 virtual wxString OnGetItemText(long, long) const;
\r
38 virtual wxListItemAttr * OnGetItemAttr(long) const;
\r
40 wxArrayString asInput, asOutput;
\r
41 wxArrayPtrVoid apItem;
\r
42 wxListItemAttr atDangerItem;
\r
44 myListCtrl2(): wxListView(){}
\r
45 myListCtrl2(wxWindow * parent, wxWindowID id, const wxPoint & pos = wxDefaultPosition, const wxSize & size = wxDefaultSize, long style = wxLC_ICON, const wxValidator & validator = wxDefaultValidator, const wxString & name = wxListCtrlNameStr): wxListView(parent, id, pos, size, style, validator, name){}
\r
47 DECLARE_DYNAMIC_CLASS(myListCtrl2)
\r
50 //******************************************************************************
\r
51 // Class (MakeDialog)
\r
52 //******************************************************************************
\r
54 class MakeDialog: public wxDialog {
\r
58 wxComboBox* cbFileName;
\r
59 wxCheckBox* cbOpenAfter;
\r
60 wxCheckBox* cbIgnorePath;
\r
61 wxCheckBox* cbExitAfter;
\r
63 wxChoice* chDirMake;
\r
65 wxSpinCtrl* scLevel;
\r
67 wxComboBox* cbSplitSize;
\r
68 wxCheckBox* cbSolid;
\r
69 wxCheckBox* cbMMOptimize;
\r
70 wxCheckBox* cbCompressHeader;
\r
71 wxCheckBox* cbMakeSFX;
\r
73 wxTextCtrl* tcComment;
\r
75 wxTextCtrl* tcPassword;
\r
76 wxTextCtrl* tcKeyfile;
\r
77 wxCheckBox* cbUnmask;
\r
78 wxChoice* chEncryptMethod;
\r
79 wxCheckBox* cbEncryptHeader;
\r
81 myListCtrl2* lcFiles;
\r
83 ArrayTPI_FORMATINFO afInfo;
\r
84 wxArrayString files;
\r
85 unsigned int uCommand;
\r
90 void OnInit( wxInitDialogEvent&);
\r
91 void OnBtnDefault( wxCommandEvent&);
\r
92 void OnBtnDesktop( wxCommandEvent&);
\r
93 void OnBtnCurrent( wxCommandEvent&);
\r
94 void OnBtnBrowse( wxCommandEvent&);
\r
95 void OnBtnBrowseKF( wxCommandEvent&);
\r
96 void OnBtnOK( wxCommandEvent&);
\r
97 void OnBtnCancel( wxCommandEvent&);
\r
98 void OnChoice( wxCommandEvent&);
\r
99 void OnCbUnmask( wxCommandEvent&);
\r
100 void OnCbMakeSFX( wxCommandEvent&);
\r
101 void OnTabChanged( wxNotebookEvent&);
\r
103 DECLARE_EVENT_TABLE()
\r