~ubuntu-branches/ubuntu/oneiric/codeblocks/oneiric

« back to all changes in this revision

Viewing changes to src/include/xtra_res.h

  • Committer: Bazaar Package Importer
  • Author(s): Michael Casadevall
  • Date: 2008-07-17 04:39:23 UTC
  • Revision ID: james.westby@ubuntu.com-20080717043923-gmsy5cwkdjswghkm
Tags: upstream-8.02
ImportĀ upstreamĀ versionĀ 8.02

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * This file is part of the Code::Blocks IDE and licensed under the GNU Lesser General Public License, version 3
 
3
 * http://www.gnu.org/licenses/lgpl-3.0.html
 
4
 */
 
5
 
 
6
#ifndef XTRA_RES_H
 
7
#define XTRA_RES_H
 
8
 
 
9
#include <wx/wxprec.h>
 
10
#include <wx/xrc/xmlres.h>
 
11
#include <wx/toolbar.h>
 
12
 
 
13
#ifdef __BORLANDC__
 
14
    #pragma hdrstop
 
15
#endif
 
16
 
 
17
 
 
18
class wxXmlResourceHandler;
 
19
 
 
20
class wxToolBarAddOnXmlHandler : public wxXmlResourceHandler
 
21
{
 
22
    public:
 
23
        wxToolBarAddOnXmlHandler();
 
24
        virtual wxObject *DoCreateResource();
 
25
        virtual bool CanHandle(wxXmlNode *node);
 
26
 
 
27
    protected:
 
28
        bool m_isInside;
 
29
        bool m_isAddon;
 
30
        wxToolBar *m_toolbar;
 
31
 
 
32
        wxBitmap GetCenteredBitmap(const wxString& param = wxT("bitmap"),
 
33
            const wxArtClient& defaultArtClient = wxART_OTHER,
 
34
            wxSize size = wxDefaultSize);
 
35
};
 
36
 
 
37
#endif