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

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

First release to xenial

File size: 762 bytes
Line 
1#ifndef __CONDITIONALDIALOG_H__
2#define __CONDITIONALDIALOG_H__
3
4class CConditionalDialog : public wxDialog
5{
6public:
7        enum Modes
8        {
9                ok,
10                yesno
11        };
12
13        enum DialogType
14        {
15                rawcommand_quote,
16                viewhidden,
17                confirmexit,
18                sitemanager_confirmdelete,
19                confirmexit_edit, // Confirm closing FileZilla while files are still being edited
20                confirm_preserve_timestamps,
21                compare_treeviewmismatch,
22                compare_changesorting,
23                many_selected_for_edit
24        };
25
26        CConditionalDialog(wxWindow* parent, enum DialogType type, enum Modes mode, bool checked = false);
27
28        void AddText(const wxString &text);
29
30        bool Run();
31
32protected:
33        enum DialogType m_type;
34
35        wxSizer* m_pTextSizer;
36
37        DECLARE_EVENT_TABLE()
38        void OnButton(wxCommandEvent& event);
39};
40
41#endif //__CONDITIONALDIALOG_H__
Note: See TracBrowser for help on using the repository browser.