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