OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-2.0/] [tools/] [src/] [tools/] [configtool/] [standalone/] [wxwin/] [msgdlgex.h] - Blame information for rev 403

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 26 unneback
/////////////////////////////////////////////////////////////////////////////
2
// Name:        msgdlgex.h
3
// Purpose:     wxMessageDialogEx
4
// Author:      Julian Smart
5
// Modified by:
6
// Created:     12/12/2000
7
// RCS-ID:      $Id: msgdlgex.h,v 1.1.1.1 2004-02-14 13:28:54 phoenix Exp $
8
// Copyright:   (c) Julian Smart
9
//
10
// This program is part of the eCos host tools.
11
//
12
// This program is free software; you can redistribute it and/or modify it
13
// under the terms of the GNU General Public License as published by the Free
14
// Software Foundation; either version 2 of the License, or (at your option)
15
// any later version.
16
//
17
// This program is distributed in the hope that it will be useful, but WITHOUT
18
// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
19
// FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
20
// more details.
21
//
22
// You should have received a copy of the GNU General Public License along with
23
// this program; if not, write to the Free Software Foundation, Inc.,
24
// 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
25
//
26
/////////////////////////////////////////////////////////////////////////////
27
 
28
#ifndef _WX_MSGDLGEX_H_
29
#define _WX_MSGDLGEX_H_
30
 
31
#ifdef __GNUG__
32
    #pragma interface "msgdlgex.cpp"
33
#endif
34
 
35
#include "wx/dialog.h"
36
 
37
// Styles
38
#define wxMD_OK                 0x00000004
39
#define wxMD_YES_NO             0x00000008
40
#define wxMD_CANCEL             0x00000010
41
#define wxMD_YES                0x00000020
42
#define wxMD_NO                 0x00000040
43
#define wxMD_HELP               0x00008000
44
 
45
#define wxMD_YESTOALL           0x00010000
46
#define wxMD_NOTOALL            0x00020000
47
#define wxMD_ABORT              0x00040000
48
#define wxMD_RETRY              0x00080000
49
#define wxMD_IGNORE             0x00100000
50
 
51
// Use same numbers as wxICON_... equivalents
52
#define wxMD_ICON_EXCLAMATION   0x00000100
53
#define wxMD_ICON_HAND          0x00000200
54
#define wxMD_ICON_WARNING       wxICON_EXCLAMATION
55
#define wxMD_ICON_ERROR         wxICON_HAND
56
#define wxMD_ICON_QUESTION      0x00000400
57
#define wxMD_ICON_INFORMATION   0x00000800
58
#define wxMD_ICON_STOP          wxICON_HAND
59
#define wxMD_ICON_ASTERISK      wxICON_INFORMATION
60
#define wxMD_ICON_MASK          (0x00000100|0x00000200|0x00000400|0x00000800)
61
 
62
#define wxMD_NO_DEFAULT         0x00000080
63
#define wxMD_YES_DEFAULT        0x00200000
64
// OK and YES are equivalent
65
#define wxMD_OK_DEFAULT         0x00200000
66
#define wxMD_YESTOALL_DEFAULT   0x00400000
67
#define wxMD_NOTOALL_DEFAULT    0x00800000
68
#define wxMD_ABORT_DEFAULT      0x01000000
69
#define wxMD_RETRY_DEFAULT      0x02000000
70
#define wxMD_IGNORE_DEFAULT     0x04000000
71
 
72
#ifndef wxID_YESTOALL
73
#define wxID_YESTOALL           5113
74
#define wxID_NOTOALL            5114
75
#define wxID_ABORT              5115
76
#define wxID_RETRY              5116
77
#define wxID_IGNORE             5117
78
#endif
79
 
80
//----------------------------------------------------------------------------
81
// wxMessageDialogEx
82
//----------------------------------------------------------------------------
83
 
84
class wxMessageDialogEx: public wxDialog
85
{
86
public:
87
    // constructors and destructors
88
    wxMessageDialogEx();
89
    wxMessageDialogEx( wxWindow *parent, const wxString& message, const wxString& caption,
90
        long style = wxOK|wxCANCEL,
91
        const wxPoint& pos = wxDefaultPosition
92
    );
93
    virtual ~wxMessageDialogEx();
94
 
95
protected:
96
 
97
    //void CreateControls(wxWindow* parent, long style);
98
    wxSizer *CreateButtonSizer( long flags );
99
    void OnCommand( wxCommandEvent &event );
100
 
101
    long    m_dialogStyle;
102
 
103
private:
104
    DECLARE_CLASS(wxMessageDialogEx)
105
    DECLARE_EVENT_TABLE()
106
};
107
 
108
#endif
109
    // _WX_MSGDLGEX_H_

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.