source: filezilla/trunk/fuentes/src/interface/fileexistsdlg.h @ 130

Last change on this file since 130 was 130, checked in by jrpelegrina, 3 years ago

First release to xenial

File size: 1001 bytes
Line 
1#ifndef __FILEEXISTSDLG_H__
2#define __FILEEXISTSDLG_H__
3
4#include "dialogex.h"
5
6class CFileExistsDlg: public wxDialogEx
7{
8        DECLARE_EVENT_TABLE()
9
10public:
11        /// Constructors
12        CFileExistsDlg(CFileExistsNotification *pNotification);
13
14        /// Creation
15        bool Create(wxWindow* parent);
16
17        enum CFileExistsNotification::OverwriteAction GetAction() const;
18        bool Always(bool &directionOnly, bool &queueOnly) const;
19
20protected:
21        /// Creates the controls and sizers
22        bool CreateControls();
23
24        void DisplayFile(bool left, wxString name, int64_t size, CDateTime const& time, wxString const& iconFile);
25
26        void OnOK(wxCommandEvent& event);
27        void OnCancel(wxCommandEvent& event);
28        void OnCheck(wxCommandEvent& event);
29
30        void LoadIcon(int id, const wxString &file);
31        wxString GetPathEllipsis(wxString path, wxWindow *window);
32
33        CFileExistsNotification *m_pNotification;
34        enum CFileExistsNotification::OverwriteAction m_action;
35        bool m_always{};
36        bool m_directionOnly{};
37        bool m_queueOnly{};
38};
39
40#endif //__FILEEXISTSDLG_H__
Note: See TracBrowser for help on using the repository browser.