added resources browser to wxArtProvider sample (similar to the one from gtk-demo)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14964 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
45
samples/artprov/artbrows.h
Normal file
45
samples/artprov/artbrows.h
Normal file
@@ -0,0 +1,45 @@
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// 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__
|
||||
|
||||
#ifdef __GNUG__
|
||||
#pragma interface "artbrows.h"
|
||||
#endif
|
||||
|
||||
#include "wx/dialog.h"
|
||||
#include "wx/artprov.h"
|
||||
|
||||
class WXDLLEXPORT wxListCtrl;
|
||||
class WXDLLEXPORT wxListEvent;
|
||||
class WXDLLEXPORT wxStaticBitmap;
|
||||
|
||||
class wxArtBrowserDialog : public wxDialog
|
||||
{
|
||||
public:
|
||||
wxArtBrowserDialog(wxWindow *parent);
|
||||
|
||||
void SetArtClient(const wxArtClient& client);
|
||||
|
||||
private:
|
||||
void OnSelectItem(wxListEvent &event);
|
||||
void OnChooseClient(wxCommandEvent &event);
|
||||
|
||||
wxListCtrl *m_list;
|
||||
wxStaticBitmap *m_canvas;
|
||||
wxString m_client;
|
||||
|
||||
DECLARE_EVENT_TABLE()
|
||||
};
|
||||
|
||||
#endif // __ARTBROWS_H__
|
||||
|
Reference in New Issue
Block a user