~ubuntu-branches/ubuntu/raring/codeblocks/raring-proposed

« back to all changes in this revision

Viewing changes to src/plugins/contrib/codesnippets/GenericMessageBox.h

  • Committer: Bazaar Package Importer
  • Author(s): Cosme Domínguez Díaz
  • Date: 2010-08-09 04:38:38 UTC
  • mfrom: (1.1.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 4.
  • Revision ID: james.westby@ubuntu.com-20100809043838-a59ygguym4eg0jgw
Tags: 10.05-0ubuntu1
* New upstream release. Closes (LP: #322350)
 - Switch to dpkg-source 3.0 (quilt) format
 - Remove unneeded README.source
 - Add debian/get-source-orig script that removes all
   Windows prebuilt binaries
* Bump Standards-Version to 3.9.1
 - Stop shipping *.la files
* debian/control
 - Add cdbs package as Build-Depend
 - Add libbz2-dev and zlib1g-dev packages as
   Build-Depends (needed by libhelp_plugin.so)
 - Remove dpatch package of Build-Depends
 - Add codeblocks-contrib-debug package
 - Split architecture-independent files of codeblocks
   package in codeblocks-common package
* debian/rules
 - Switch to CDBS rules system
 - Add parallel build support
 - Add a call to debian/get-source-orig script
 - Use lzma compression (saves 23,5 MB of free space)
* debian/patches
 - Refresh 01_codeblocks_plugin_path
 - Add 02_no_Makefiles_in_debian_dir to remove any link
   in codeblocks build system to deleted Makefiles of debian directory
 - Drop 02_ftbfs_gcc44 and 03_ftbfs_glib221 (merged in upstream)
* debian/watch
 - Update to use the new host (berlios.de)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef GenericMessageBox_H
 
2
#define GenericMessageBox_H
 
3
 
 
4
 
 
5
////class GenericMessageBox
 
6
////{
 
7
////    public:
 
8
////        GenericMessageBox();
 
9
////        virtual ~GenericMessageBox();
 
10
////    protected:
 
11
////    private:
 
12
////};
 
13
 
 
14
#endif // GenericMessageBox_H
 
15
 
 
16
/////////////////////////////////////////////////////////////////////////////
 
17
// Name:        wx/generic/msgdlgg.h
 
18
// Purpose:     Generic wxMessageDialog
 
19
// Author:      Julian Smart
 
20
// Modified by:
 
21
// Created:     01/02/97
 
22
// RCS-ID:      $Id: msgdlgg.h 49765 2007-11-09 18:32:38Z DE $
 
23
// Copyright:   (c) Julian Smart
 
24
// Licence:     wxWindows licence
 
25
/////////////////////////////////////////////////////////////////////////////
 
26
 
 
27
#ifndef GenericMessageDialog_h
 
28
#define GenericMessageDialog_h
 
29
 
 
30
#include "wx/defs.h"
 
31
#include "scrollingdialog.h"
 
32
#include "wx/msgdlg.h"
 
33
#include "wx/generic/msgdlgg.h"
 
34
 
 
35
// type is an 'or' (|) of wxOK, wxCANCEL, wxYES_NO
 
36
// Returns wxYES/NO/OK/CANCEL
 
37
 
 
38
//-extern WXDLLEXPORT_DATA(const wxChar) wxMessageBoxCaptionStr[];
 
39
 
 
40
// ----------------------------------------------------------------------------
 
41
class GenericMessageDialog: public wxScrollingDialog, public wxMessageDialogBase
 
42
// ----------------------------------------------------------------------------
 
43
{
 
44
DECLARE_DYNAMIC_CLASS(GenericMessageDialog)
 
45
 
 
46
public:
 
47
    GenericMessageDialog(wxWindow *parent, const wxString& message,
 
48
        const wxString& caption = wxMessageBoxCaptionStr,
 
49
        long style = wxOK|wxCENTRE, const wxPoint& pos = wxDefaultPosition);
 
50
 
 
51
    void OnYes(wxCommandEvent& event);
 
52
    void OnNo(wxCommandEvent& event);
 
53
    void OnCancel(wxCommandEvent& event);
 
54
 
 
55
private:
 
56
    DECLARE_EVENT_TABLE()
 
57
};
 
58
 
 
59
// ----------------------------------------------------------------------------
 
60
// GenericMessageBox: the simplest way to use GenericMessageDialog
 
61
// ----------------------------------------------------------------------------
 
62
 
 
63
int GenericMessageBox(const wxString& message,
 
64
                             const wxString& caption = wxMessageBoxCaptionStr,
 
65
                             long style = wxOK | wxCENTRE,
 
66
                             wxWindow *parent = ::wxGetActiveWindow(),
 
67
                             int x = wxDefaultCoord, int y = wxDefaultCoord);
 
68
 
 
69
 
 
70
#endif // GenericMessageDialog.h