]> git.saurik.com Git - wxWidgets.git/blame - include/wx/gtk/textdlg.h
converted to 16 colors
[wxWidgets.git] / include / wx / gtk / textdlg.h
CommitLineData
57dde4bd
RR
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"
8dbf4589 21#include "wx/extdlg.h"
57dde4bd
RR
22
23// Handy dialog functions (will be converted into classes at some point)
24WXDLLEXPORT_DATA(extern const wxChar*) wxGetTextFromUserPromptStr;
25WXDLLEXPORT_DATA(extern const wxChar*) wxEmptyString;
26
27#define wxID_TEXT 3000
28
29class WXDLLEXPORT wxTextEntryDialog: public wxDialog
30{
31DECLARE_DYNAMIC_CLASS(wxTextEntryDialog)
32protected:
33 long m_dialogStyle;
34 wxString m_value;
35public:
36 wxTextEntryDialog(wxWindow *parent, const wxString& message, const wxString& caption = wxGetTextFromUserPromptStr,
37 const wxString& value = wxEmptyString, long style = wxOK|wxCANCEL|wxCENTRE, const wxPoint& pos = wxDefaultPosition);
38
39 inline void SetValue(const wxString& val) { m_value = val; }
40 inline wxString GetValue(void) const { return m_value; }
41
42 void OnOK(wxCommandEvent& event);
43
44DECLARE_EVENT_TABLE()
45};
46
47wxString WXDLLEXPORT wxGetTextFromUser(const wxString& message, const wxString& caption = wxGetTextFromUserPromptStr,
48 const wxString& default_value = wxEmptyString, wxWindow *parent = (wxWindow *) NULL,
49 int x = -1, int y = -1, bool centre = TRUE);
50
51#endif
52 // __TEXTDLGH_G__