]> git.saurik.com Git - wxWidgets.git/blame - samples/artprov/artbrows.h
avoid creating and immediately destroying a wxGraphicsContext when creating a wxDC...
[wxWidgets.git] / samples / artprov / artbrows.h
CommitLineData
ccb42cc5
VS
1/////////////////////////////////////////////////////////////////////////////
2// Name: artbrows.h
3// Purpose: wxArtProvider demo - art browser dialog
4// Author: Vaclav Slavik
5// Modified by:
6// Created: 2002/04/05
7// RCS-ID: $Id$
8// Copyright: (c) Vaclav Slavik
526954c5 9// Licence: wxWindows licence
ccb42cc5
VS
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef __ARTBROWS_H__
13#define __ARTBROWS_H__
14
ccb42cc5
VS
15#include "wx/dialog.h"
16#include "wx/artprov.h"
17
ef8dd4a3
PC
18class WXDLLIMPEXP_FWD_CORE wxListCtrl;
19class WXDLLIMPEXP_FWD_CORE wxListEvent;
20class WXDLLIMPEXP_FWD_CORE wxStaticBitmap;
ccb42cc5
VS
21
22class wxArtBrowserDialog : public wxDialog
23{
24public:
25 wxArtBrowserDialog(wxWindow *parent);
26
27 void SetArtClient(const wxArtClient& client);
e53a95bc 28 void SetArtBitmap(const wxArtID& id, const wxArtClient& client, const wxSize& size = wxDefaultSize);
ccb42cc5
VS
29
30private:
31 void OnSelectItem(wxListEvent &event);
32 void OnChooseClient(wxCommandEvent &event);
ef8dd4a3 33
ccb42cc5
VS
34 wxListCtrl *m_list;
35 wxStaticBitmap *m_canvas;
e53a95bc 36 wxStaticText *m_text;
ccb42cc5
VS
37 wxString m_client;
38
39 DECLARE_EVENT_TABLE()
40};
41
42#endif // __ARTBROWS_H__
43