]>
git.saurik.com Git - wxWidgets.git/blob - user/wxFile/FMJobs.h
4 * Author: Robert Roebling
6 * Copyright: (C) 1997, GNU (Robert Roebling)
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
31 #include "wx/dialog.h"
33 #include "wx/button.h"
34 #include "wx/stattext.h"
37 //-----------------------------------------------------------------------------
39 //-----------------------------------------------------------------------------
41 class wxCopyStatusDia
;
42 class wxDeleteStatusDia
;
46 //-----------------------------------------------------------------------------
48 //-----------------------------------------------------------------------------
50 class wxCopyStatusDia
: public wxDialog
52 DECLARE_DYNAMIC_CLASS( wxCopyStatusDia
);
57 wxArrayString
*m_files
;
58 wxButton
*m_cancelButton
;
59 wxStaticText
*m_sourceMsg
;
60 wxStaticText
*m_destMsg
;
61 wxStaticText
*m_statusMsg
;
67 wxCopyStatusDia(void) : wxDialog() {};
68 wxCopyStatusDia( wxFrame
*parent
, const wxString
&dest
, wxArrayString
*files
);
70 void OnCommand( wxCommandEvent
&event
);
74 void CopyDir( wxString
&srcDir
, wxString
&destDir
);
75 void CopyFile( wxString
&src
, wxString
&destDir
);
77 DECLARE_EVENT_TABLE();
80 //-----------------------------------------------------------------------------
82 //-----------------------------------------------------------------------------
85 class wxDeleteStatusDia: public wxDialog
87 DECLARE_DYNAMIC_CLASS( wxDeleteStatusDia );
91 wxArrayString *m_files;
92 wxButton *m_cancelButton;
93 wxStaticText *m_targetMsg;
94 wxStaticText *m_filesMsg,*m_dirsMsg;
97 int m_countFiles,m_countDirs;
101 wxDeleteStatusDia(void) : wxDialog() {};
102 wxDeleteStatusDia( wxFrame *parent, wxArrayString *files );
103 ~wxDeleteStatusDia();
104 void OnCommand( wxCommandEvent &event );
108 void DeleteDir( wxString &target );
109 void DeleteFile( wxString &target );
111 DECLARE_EVENT_TABLE();
115 //-----------------------------------------------------------------------------
117 //-----------------------------------------------------------------------------
119 class wxCopyTimer
: public wxTimer
122 wxCopyStatusDia
*m_owner
;
125 wxCopyTimer( wxCopyStatusDia
*owner
) { m_owner
= owner
; };
126 void Notify() { m_owner
->DoCopy(); };
130 class wxDeleteTimer: public wxTimer
133 wxDeleteStatusDia *m_owner;
136 wxDeleteTimer( wxDeleteStatusDia *owner ) { m_owner = owner; };
137 void Notify() { m_owner->DoDelete(); };