OSDN Git Service

開発環境をVisual Studio 2013へ更新。
[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, atExistItem;\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 {\r
56 public:\r
57         // "General"タブ\r
58         wxComboBox* cbDir;\r
59         wxComboBox* cbFileName;\r
60         wxCheckBox* cbOpenAfter;\r
61         wxCheckBox* cbIgnorePath;\r
62         wxCheckBox* cbExitAfter;\r
63         wxChoice* chType;\r
64         wxChoice* chDirMake;\r
65         // "Config"タブ\r
66         wxSpinCtrl* scLevel;\r
67         wxSpinCtrl* scRR;\r
68         wxComboBox* cbSplitSize;\r
69         wxCheckBox* cbSolid;\r
70         wxCheckBox* cbMMOptimize;\r
71         wxCheckBox* cbCompressHeader;\r
72         wxCheckBox* cbMakeSFX;\r
73         // "Comment"タブ\r
74         wxTextCtrl* tcComment;\r
75         // "Encryption"タブ\r
76         wxTextCtrl* tcPassword;\r
77         wxTextCtrl* tcKeyfile;\r
78         wxCheckBox* cbUnmask;\r
79         wxChoice*   chEncryptMethod;\r
80         wxCheckBox* cbEncryptHeader;\r
81         // "Files"タブ\r
82         myListCtrl2* lcFiles;\r
83 \r
84         ArrayTPI_FORMATINFO afInfo;\r
85         wxArrayString files;\r
86         unsigned int uCommand;\r
87 \r
88         MakeDialog(wxWindow * parent, unsigned int uCmd);\r
89 \r
90         // Event handler.\r
91     void OnInit(     wxInitDialogEvent&);\r
92     void OnBtnDefault(  wxCommandEvent&);\r
93     void OnBtnDesktop(  wxCommandEvent&);\r
94     void OnBtnCurrent(  wxCommandEvent&);\r
95     void OnBtnBrowse(   wxCommandEvent&);\r
96     void OnBtnBrowseKF( wxCommandEvent&);\r
97     void OnBtnOK(       wxCommandEvent&);\r
98     void OnBtnCancel(   wxCommandEvent&);\r
99     void OnChoice(      wxCommandEvent&);\r
100     void OnCbUnmask(    wxCommandEvent&);\r
101     void OnCbMakeSFX(   wxCommandEvent&);\r
102     void OnTabChanged( wxNotebookEvent&);\r
103 \r
104     DECLARE_EVENT_TABLE()\r
105 \r
106 private:\r
107         wxNotebook * nbTabs;\r
108         void myLoadHistory(myConfigId confId, wxComboBox * cb);\r
109 };\r
110 \r
111 #endif\r