artbrows.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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. #ifndef __ARTBROWS_H__
  11. #define __ARTBROWS_H__
  12. #include "wx/dialog.h"
  13. #include "wx/artprov.h"
  14. class WXDLLIMPEXP_FWD_CORE wxListCtrl;
  15. class WXDLLIMPEXP_FWD_CORE wxListEvent;
  16. class WXDLLIMPEXP_FWD_CORE wxStaticBitmap;
  17. class wxArtBrowserDialog : public wxDialog
  18. {
  19. public:
  20. wxArtBrowserDialog(wxWindow *parent);
  21. void SetArtClient(const wxArtClient& client);
  22. void SetArtBitmap(const wxArtID& id, const wxArtClient& client, const wxSize& size = wxDefaultSize);
  23. private:
  24. void OnSelectItem(wxListEvent &event);
  25. void OnChooseClient(wxCommandEvent &event);
  26. wxListCtrl *m_list;
  27. wxStaticBitmap *m_canvas;
  28. wxStaticText *m_text;
  29. wxString m_client;
  30. wxDECLARE_EVENT_TABLE();
  31. };
  32. #endif // __ARTBROWS_H__