OSDN Git Service

ヘッダ圧縮の設定を追加。
[tpi/lychee.git] / src / lychee / dlg_make.h
1 /*******************************************************************************\r
2   TPI - flexible but useless plug-in framework.\r
3   Copyright (C) 2002-2009 Silky\r
4 \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
8   any later version.\r
9 \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
13   for more details.\r
14 \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
18 \r
19   $Id$\r
20 *******************************************************************************/\r
21 \r
22 #ifndef H_LOADED_DLG_MAKE\r
23 #define H_LOADED_DLG_MAKE\r
24 \r
25 #include <wx/spinctrl.h>\r
26 #include <wx/notebook.h>\r
27 \r
28 WX_DECLARE_OBJARRAY(TPI_FORMATINFO, ArrayTPI_FORMATINFO);\r
29 \r
30 //******************************************************************************\r
31 //    Class (myListCtrl2)\r
32 //******************************************************************************\r
33 \r
34 class myListCtrl2: public wxListView\r
35 {\r
36 public:\r
37         virtual wxString OnGetItemText(long, long) const;\r
38         virtual wxListItemAttr * OnGetItemAttr(long) const;\r
39 \r
40         wxArrayString asInput, asOutput;\r
41         wxArrayPtrVoid apItem;\r
42         wxListItemAttr atDangerItem;\r
43 \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
46 \r
47         DECLARE_DYNAMIC_CLASS(myListCtrl2)\r
48 };\r
49 \r
50 //******************************************************************************\r
51 //    Class (MakeDialog)\r
52 //******************************************************************************\r
53 \r
54 class MakeDialog: public wxDialog {\r
55 public:\r
56         // "General"タブ\r
57         wxComboBox* cbDir;\r
58         wxComboBox* cbFileName;\r
59         wxCheckBox* cbOpenAfter;\r
60         wxCheckBox* cbIgnorePath;\r
61         wxCheckBox* cbExitAfter;\r
62         wxChoice* chType;\r
63         wxChoice* chDirMake;\r
64         // "Config"タブ\r
65         wxSpinCtrl* scLevel;\r
66         wxSpinCtrl* scRR;\r
67         wxComboBox* cbSplitSize;\r
68         wxCheckBox* cbSolid;\r
69         wxCheckBox* cbMMOptimize;\r
70         wxCheckBox* cbCompressHeader;\r
71         wxCheckBox* cbMakeSFX;\r
72         // "Comment"タブ\r
73         wxTextCtrl* tcComment;\r
74         // "Encryption"タブ\r
75         wxTextCtrl* tcPassword;\r
76         wxTextCtrl* tcKeyfile;\r
77         wxCheckBox* cbUnmask;\r
78         wxChoice*   chEncryptMethod;\r
79         wxCheckBox* cbEncryptHeader;\r
80         // "Files"タブ\r
81         myListCtrl2* lcFiles;\r
82 \r
83         ArrayTPI_FORMATINFO afInfo;\r
84         wxArrayString files;\r
85         unsigned int uCommand;\r
86 \r
87         MakeDialog();\r
88 \r
89         // Event handler.\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
102 \r
103     DECLARE_EVENT_TABLE()\r
104 };\r
105 \r
106 #endif\r