2002-04-06 09:55:16 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: artbrows.h
|
|
|
|
// Purpose: wxArtProvider demo - art browser dialog
|
|
|
|
// Author: Vaclav Slavik
|
|
|
|
// Modified by:
|
|
|
|
// Created: 2002/04/05
|
|
|
|
// RCS-ID: $Id$
|
|
|
|
// Copyright: (c) Vaclav Slavik
|
|
|
|
// Licence: wxWindows license
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef __ARTBROWS_H__
|
|
|
|
#define __ARTBROWS_H__
|
|
|
|
|
|
|
|
#include "wx/dialog.h"
|
|
|
|
#include "wx/artprov.h"
|
|
|
|
|
2007-11-12 23:25:27 -05:00
|
|
|
class WXDLLIMPEXP_FWD_CORE wxListCtrl;
|
|
|
|
class WXDLLIMPEXP_FWD_CORE wxListEvent;
|
|
|
|
class WXDLLIMPEXP_FWD_CORE wxStaticBitmap;
|
2002-04-06 09:55:16 -05:00
|
|
|
|
|
|
|
class wxArtBrowserDialog : public wxDialog
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
wxArtBrowserDialog(wxWindow *parent);
|
|
|
|
|
|
|
|
void SetArtClient(const wxArtClient& client);
|
2005-03-12 05:33:00 -05:00
|
|
|
void SetArtBitmap(const wxArtID& id, const wxArtClient& client, const wxSize& size = wxDefaultSize);
|
2002-04-06 09:55:16 -05:00
|
|
|
|
|
|
|
private:
|
|
|
|
void OnSelectItem(wxListEvent &event);
|
|
|
|
void OnChooseClient(wxCommandEvent &event);
|
2007-11-12 23:25:27 -05:00
|
|
|
|
2002-04-06 09:55:16 -05:00
|
|
|
wxListCtrl *m_list;
|
|
|
|
wxStaticBitmap *m_canvas;
|
2005-03-12 05:33:00 -05:00
|
|
|
wxStaticText *m_text;
|
2002-04-06 09:55:16 -05:00
|
|
|
wxString m_client;
|
|
|
|
|
|
|
|
DECLARE_EVENT_TABLE()
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // __ARTBROWS_H__
|
|
|
|
|