1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94
|
//----------------------------------------------------------------------------------------
/*!
\file art_provider.h
\modified
\copyright (c) Robert O'Connor ( rob@medicalmnemonics.com )
\licence GPL
\brief Describes art_provider class
\author Robert O'Connor
\date 2002/01/03
*/
// RCS-ID: $Id: art_provider.h,v 1.2 2003/03/17 17:43:19 robertoconnor Exp $
//----------------------------------------------------------------------------------------
//----------------------------------------------------------------------------------------
// Begin single inclusion of this .h file condition
//----------------------------------------------------------------------------------------
#ifndef _ART_PROVIDER_H_
#define _ART_PROVIDER_H_
//----------------------------------------------------------------------------------------
// GCC interface
//----------------------------------------------------------------------------------------
#if defined(__GNUG__) && ! defined(__APPLE__)
#pragma interface "art_provider.h"
#endif
//----------------------------------------------------------------------------------------
// Shared defines
//----------------------------------------------------------------------------------------
#include "plucker_defines.h"
//----------------------------------------------------------------------------------------
// Begin feature removal condition
//----------------------------------------------------------------------------------------
#if ( setupUSE_ART_PROVIDER )
//----------------------------------------------------------------------------------------
// Headers
//----------------------------------------------------------------------------------------
#include "wx/artprov.h"
//----------------------------------------------------------------------------------------
// Class definition: art_provider
//----------------------------------------------------------------------------------------
//! A derived wxArtProvider, which allows runtime replacement of default wxWindows icons.
/*!
See wxArtProvider section in wxWindows documentation for details.
*/
class art_provider : public wxArtProvider
{
protected:
//! The single function required to override from base class to use wxArtProvider.
/*!
See wxWindows documentation for full details, but a description of the parameters:
\param id The ID number of the bitmap being requested
\param client A hint of who asked for the icon (a toolbar, messagebox, etc)
\parma size What size they are asking for.
*/
virtual wxBitmap CreateBitmap( const wxArtID& id,
const wxArtClient& client,
const wxSize& size
);
private:
//! Gets an art file based on its basename. Used internally by CreateBitmap() .
/*!
\param image_basename The basename of image to be looked up and created.
*/
wxBitmap get_art_by_basename( const wxString& image_basename );
};
//----------------------------------------------------------------------------------------
// End feature removal condition
//----------------------------------------------------------------------------------------
#endif // setupUSE_ART_PROVIDER
//----------------------------------------------------------------------------------------
// End single inclusion of this .h file condition
//----------------------------------------------------------------------------------------
#endif // _ART_PROVIDER_H_
|