]>
Commit | Line | Data |
---|---|---|
c801d85f KB |
1 | ///////////////////////////////////////////////////////////////////////////// |
2 | // Name: textdlgg.h | |
3 | // Purpose: wxStatusBar class | |
4 | // Author: Julian Smart | |
5 | // Modified by: | |
6 | // Created: 01/02/97 | |
7 | // RCS-ID: $Id$ | |
8 | // Copyright: (c) Julian Smart and Markus Holzem | |
9 | // Licence: wxWindows license | |
10 | ///////////////////////////////////////////////////////////////////////////// | |
11 | ||
12 | #ifndef __TEXTDLGH_G__ | |
13 | #define __TEXTDLGH_G__ | |
14 | ||
15 | #ifdef __GNUG__ | |
16 | #pragma interface "textdlgg.h" | |
17 | #endif | |
18 | ||
19 | #include "wx/setup.h" | |
20 | #include "wx/dialog.h" | |
21 | ||
22 | // Handy dialog functions (will be converted into classes at some point) | |
9d2f3c71 OK |
23 | WXDLLEXPORT_DATA(extern const wxChar*) wxGetTextFromUserPromptStr; |
24 | WXDLLEXPORT_DATA(extern const wxChar*) wxEmptyString; | |
c801d85f KB |
25 | |
26 | #define wxID_TEXT 3000 | |
27 | ||
28 | class WXDLLEXPORT wxTextEntryDialog: public wxDialog | |
29 | { | |
30 | DECLARE_DYNAMIC_CLASS(wxTextEntryDialog) | |
31 | protected: | |
32 | long m_dialogStyle; | |
33 | wxString m_value; | |
34 | public: | |
35 | wxTextEntryDialog(wxWindow *parent, const wxString& message, const wxString& caption = wxGetTextFromUserPromptStr, | |
36 | const wxString& value = wxEmptyString, long style = wxOK|wxCANCEL|wxCENTRE, const wxPoint& pos = wxDefaultPosition); | |
37 | ||
38 | inline void SetValue(const wxString& val) { m_value = val; } | |
39 | inline wxString GetValue(void) const { return m_value; } | |
40 | ||
41 | void OnOK(wxCommandEvent& event); | |
42 | ||
43 | DECLARE_EVENT_TABLE() | |
44 | }; | |
45 | ||
46 | wxString WXDLLEXPORT wxGetTextFromUser(const wxString& message, const wxString& caption = wxGetTextFromUserPromptStr, | |
c67daf87 | 47 | const wxString& default_value = wxEmptyString, wxWindow *parent = (wxWindow *) NULL, |
c801d85f KB |
48 | int x = -1, int y = -1, bool centre = TRUE); |
49 | ||
50 | #endif | |
51 | // __TEXTDLGH_G__ |