~brian-sidebotham/wxwidgets-cmake/wxpython-2.9.4

« back to all changes in this revision

Viewing changes to wxPython/src/_infobar.i

  • Committer: Brian Sidebotham
  • Date: 2013-08-03 14:30:08 UTC
  • Revision ID: brian.sidebotham@gmail.com-20130803143008-c7806tkych1tp6fc
Initial import into Bazaar

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/////////////////////////////////////////////////////////////////////////////
 
2
// Name:        _infobar.i
 
3
// Purpose:     SWIG interface for wxInfoBar
 
4
//
 
5
// Author:      Robin Dunn
 
6
//
 
7
// Created:     2-March-2010
 
8
// RCS-ID:      $Id: $
 
9
// Copyright:   (c) 2010 by Total Control Software
 
10
// Licence:     wxWindows license
 
11
/////////////////////////////////////////////////////////////////////////////
 
12
 
 
13
// Not a %module
 
14
 
 
15
//---------------------------------------------------------------------------
 
16
%newgroup
 
17
 
 
18
MustHaveApp(wxInfoBar);
 
19
DocStr(wxInfoBar,
 
20
"An info bar is a transient window shown at top or bottom of its parent
 
21
window to display non-critical information to the user.  It works
 
22
similarly to message bars in current web browsers.", "");
 
23
 
 
24
 
 
25
class wxInfoBar : public wxControl
 
26
{
 
27
public:
 
28
    %pythonAppend wxInfoBar         "self._setOORInfo(self)";
 
29
    %pythonAppend wxInfoBar()       "";
 
30
 
 
31
    wxInfoBar(wxWindow *parent, wxWindowID winid = wxID_ANY);
 
32
    %RenameCtor(PreInfoBar, wxInfoBar());
 
33
 
 
34
    bool Create(wxWindow *parent, wxWindowID winid = wxID_ANY);
 
35
 
 
36
 
 
37
    // show the info bar with the given message and optionally an icon
 
38
    virtual void ShowMessage(const wxString& msg,
 
39
                             int flags = wxICON_INFORMATION);
 
40
 
 
41
    // hide the info bar
 
42
    virtual void Dismiss();
 
43
 
 
44
    // add an extra button to the bar, near the message (replacing the default
 
45
    // close button which is only shown if no extra buttons are used)
 
46
    virtual void AddButton(wxWindowID btnid,
 
47
                           const wxString& label = wxEmptyString);
 
48
 
 
49
    // remove a button previously added by AddButton()
 
50
    virtual void RemoveButton(wxWindowID btnid);
 
51
 
 
52
 
 
53
    // Generic version only.  GTK doesn't have these??
 
54
    void SetShowHideEffects(wxShowEffect showEffect, wxShowEffect hideEffect);
 
55
    wxShowEffect GetShowEffect() const;
 
56
    wxShowEffect GetHideEffect() const;
 
57
    void SetEffectDuration(int duration);
 
58
    int GetEffectDuration() const;
 
59
    
 
60
};
 
61
 
 
62
//---------------------------------------------------------------------------