~mapopa/flamerobin/master

« back to all changes in this revision

Viewing changes to src/MultilineEnterDialog.h

  • Committer: Michael Hieke
  • Date: 2004-11-22 11:34:42 UTC
  • Revision ID: git-v1:8153b493d66ee7aae55e7b34e0d7bddacf4999ef
Initial revision

svn path=/trunk/flamerobin/; revision=13

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
  The contents of this file are subject to the Initial Developer's Public
 
3
  License Version 1.0 (the "License"); you may not use this file except in
 
4
  compliance with the License. You may obtain a copy of the License here:
 
5
  http://www.flamerobin.org/license.html.
 
6
 
 
7
  Software distributed under the License is distributed on an "AS IS"
 
8
  basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
 
9
  License for the specific language governing rights and limitations under
 
10
  the License.
 
11
 
 
12
  The Original Code is FlameRobin (TM).
 
13
 
 
14
  The Initial Developer of the Original Code is Milan Babuskov.
 
15
 
 
16
  Portions created by the original developer
 
17
  are Copyright (C) 2004 Milan Babuskov.
 
18
 
 
19
  All Rights Reserved.
 
20
 
 
21
  $Id$
 
22
 
 
23
  Contributor(s): Michael Hieke, Nando Dessena
 
24
*/
 
25
 
 
26
// -*- C++ -*- generated by wxGlade 0.2.2 on Fri Aug 27 10:36:29 2004
 
27
 
 
28
#ifndef MULTILINEENTERDIALOG_H
 
29
#define MULTILINEENTERDIALOG_H
 
30
 
 
31
#include <wx/wx.h>
 
32
#include "BaseDialog.h"
 
33
 
 
34
//-----------------------------------------------------------------------------
 
35
bool GetMultilineTextFromUser(const wxString& caption, wxString& default_value, wxWindow *parent=0);
 
36
//-----------------------------------------------------------------------------
 
37
//! normally you shouldn't need to create objects of this class, just use the GetMultilineTextFromUser function
 
38
class MultilineEnterDialog: public BaseDialog {
 
39
public:
 
40
    // begin wxGlade: MultilineEnterDialog::ids
 
41
    enum {
 
42
        ID_button_ok = wxID_OK,
 
43
        ID_button_cancel = wxID_CANCEL
 
44
    };
 
45
    // end wxGlade
 
46
 
 
47
        void OnOkButtonClick(wxCommandEvent&);
 
48
        MultilineEnterDialog(wxWindow* parent, const wxString& title, wxString *initialText);
 
49
 
 
50
private:
 
51
        wxString *value;
 
52
 
 
53
    // begin wxGlade: MultilineEnterDialog::methods
 
54
    void set_properties();
 
55
    void do_layout();
 
56
    // end wxGlade
 
57
 
 
58
protected:
 
59
    // begin wxGlade: MultilineEnterDialog::attributes
 
60
    wxTextCtrl* text_ctrl_1;
 
61
    wxButton* button_ok;
 
62
    wxButton* button_cancel;
 
63
    // end wxGlade
 
64
 
 
65
    DECLARE_EVENT_TABLE()
 
66
    virtual const std::string getName() const;
 
67
};
 
68
//-----------------------------------------------------------------------------
 
69
#endif // MULTILINEENTERDIALOG_H