OSDN Git Service

重複するコードを整理。
[tpi/lychee.git] / src / lychee / dlg_process.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_PROCESS\r
23 #define H_LOADED_DLG_PROCESS\r
24 #ifdef __WINDOWS__\r
25 #include <Shobjidl.h>\r
26 #endif\r
27 \r
28 class ProcessDialog: public wxDialog {\r
29 public:\r
30     void OnInit(wxInitDialogEvent &);\r
31         void OnClose(wxCloseEvent &);\r
32         int CallbackProc(unsigned int, void *);\r
33 \r
34         ProcessDialog(wxWindow * parent, wxULongLong_t n = 0, wxString szPassword = wxEmptyString);\r
35         ~ProcessDialog();\r
36 \r
37         wxULongLong_t nFileCount;\r
38         wxString szPassword;\r
39 \r
40         DECLARE_EVENT_TABLE()\r
41 \r
42 private:\r
43         bool fCancel, fOpen;\r
44         int nOverwriteMode;\r
45         wxFileName fnFormer;\r
46         wxTextCtrl* ebTarget;\r
47         wxTextCtrl* ebSource;\r
48         wxGauge* gFile;\r
49         wxGauge* gArchive;\r
50         wxWindow* hParent;\r
51 #ifdef __WINDOWS__\r
52         HWND hTBWnd;\r
53         ITaskbarList3 * tlTaskbar;\r
54 #endif\r
55 };\r
56 \r
57 extern ProcessDialog * g_procDlg;\r
58 \r
59 class OverwriteDialog: public wxDialog {\r
60 public:\r
61     void OnInit(wxInitDialogEvent &);\r
62         void OnClose(wxCloseEvent &);\r
63     void OnBtnOverwrite(wxCommandEvent&);\r
64     void OnBtnSkip(     wxCommandEvent&);\r
65     void OnBtnAuto(     wxCommandEvent&);\r
66     void OnBtnBrowse(   wxCommandEvent&);\r
67 \r
68         OverwriteDialog();\r
69 \r
70         wxFileName * fnExist;\r
71         wxDateTime * tmWrite;\r
72         wxULongLong_t nWriteSize;\r
73         wxCheckBox* cbApplyAll;\r
74 \r
75         DECLARE_EVENT_TABLE()\r
76 \r
77 private:\r
78         wxTextCtrl* ebTarget;\r
79 };\r
80 \r
81 //******************************************************************************\r
82 //    プロシージャ\r
83 //******************************************************************************\r
84 \r
85 int __stdcall TPICallbackProc(unsigned int, void *);\r
86 \r
87 #endif\r