]> git.saurik.com Git - wxWidgets.git/blob - samples/artprov/artbrows.h
more wxFD_XXX renamings (patch 1488371)
[wxWidgets.git] / samples / artprov / artbrows.h
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
9 // Licence: wxWindows license
10 /////////////////////////////////////////////////////////////////////////////
11
12 #ifndef __ARTBROWS_H__
13 #define __ARTBROWS_H__
14
15 #include "wx/dialog.h"
16 #include "wx/artprov.h"
17
18 class WXDLLEXPORT wxListCtrl;
19 class WXDLLEXPORT wxListEvent;
20 class WXDLLEXPORT wxStaticBitmap;
21
22 class wxArtBrowserDialog : public wxDialog
23 {
24 public:
25 wxArtBrowserDialog(wxWindow *parent);
26
27 void SetArtClient(const wxArtClient& client);
28 void SetArtBitmap(const wxArtID& id, const wxArtClient& client, const wxSize& size = wxDefaultSize);
29
30 private:
31 void OnSelectItem(wxListEvent &event);
32 void OnChooseClient(wxCommandEvent &event);
33
34 wxListCtrl *m_list;
35 wxStaticBitmap *m_canvas;
36 wxStaticText *m_text;
37 wxString m_client;
38
39 DECLARE_EVENT_TABLE()
40 };
41
42 #endif // __ARTBROWS_H__
43