]> git.saurik.com Git - wxWidgets.git/blame_incremental - include/wx/generic/textdlgg.h
Removed small OGL glitches; added new sample
[wxWidgets.git] / include / wx / generic / textdlgg.h
... / ...
CommitLineData
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)
23WXDLLEXPORT_DATA(extern const char*) wxGetTextFromUserPromptStr;
24WXDLLEXPORT_DATA(extern const char*) wxEmptyString;
25
26#define wxID_TEXT 3000
27
28class WXDLLEXPORT wxTextEntryDialog: public wxDialog
29{
30DECLARE_DYNAMIC_CLASS(wxTextEntryDialog)
31protected:
32 long m_dialogStyle;
33 wxString m_value;
34public:
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
43DECLARE_EVENT_TABLE()
44};
45
46wxString WXDLLEXPORT wxGetTextFromUser(const wxString& message, const wxString& caption = wxGetTextFromUserPromptStr,
47 const wxString& default_value = wxEmptyString, wxWindow *parent = (wxWindow *) NULL,
48 int x = -1, int y = -1, bool centre = TRUE);
49
50#endif
51 // __TEXTDLGH_G__