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

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

First release to xenial

File size: 654 bytes
Line 
1#ifndef __INPUTDIALOG_H__
2#define __INPUTDIALOG_H__
3
4#include "dialogex.h"
5
6class CInputDialog : public wxDialogEx
7{
8public:
9        CInputDialog();
10        virtual ~CInputDialog() {}
11
12        bool Create(wxWindow* parent, const wxString& title, wxString text);
13
14        bool SetPasswordMode(bool password);
15        void AllowEmpty(bool allowEmpty);
16
17        void SetValue(const wxString& value);
18        wxString GetValue() const;
19
20        bool SelectText(int start, int end);
21
22protected:
23        DECLARE_EVENT_TABLE()
24        void OnValueChanged(wxCommandEvent& event);
25        void OnOK(wxCommandEvent& event);
26        void OnCancel(wxCommandEvent& event);
27
28        bool m_allowEmpty;
29        wxTextCtrl* m_pTextCtrl;
30};
31
32#endif //__INPUTDIALOG_H__
Note: See TracBrowser for help on using the repository browser.