-
Notifications
You must be signed in to change notification settings - Fork 1
/
wxMaterialDesignIconsMain.h
53 lines (42 loc) · 1.44 KB
/
wxMaterialDesignIconsMain.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
/***************************************************************
* Name: wxMaterialDesignIconsMain.h
* Purpose: Defines Application Frame
* Author: Federico Perini ([email protected])
* Created: 2023-11-05
* Copyright: Federico Perini (https://www.federicoperini.info)
* License:
**************************************************************/
#ifndef WXMATERIALDESIGNICONSMAIN_H
#define WXMATERIALDESIGNICONSMAIN_H
#ifndef WX_PRECOMP
#include <wx/wx.h>
#endif
#include <wx/artprov.h>
#include <wx/listctrl.h>
#include <wx/colordlg.h>
#include <wx/clrpicker.h>
#include "wxMaterialDesignIconsApp.h"
class wxArtBrowserDialog : public wxDialog
{
public:
wxArtBrowserDialog(wxWindow *parent);
~wxArtBrowserDialog();
void SetArtClient(const wxArtClient& client);
void SetArtBitmap(const wxArtID& id, const wxArtClient& client, const wxSize& size = wxDefaultSize,
const wxColour& color=wxNullColour );
private:
void OnSelectItem(wxListEvent &event);
void OnChangeSize(wxCommandEvent &event);
void OnChangeColor(wxColourPickerEvent &event);
void OnChooseClient(wxCommandEvent &event);
wxSize GetSelectedBitmapSize() const;
wxListCtrl *m_list;
wxStaticBitmap *m_canvas;
wxStaticText *m_text;
wxString m_client;
wxChoice *m_sizes;
wxColourPickerCtrl *m_color;
wxString m_currentArtId;
wxDECLARE_EVENT_TABLE();
};
#endif // WXMATERIALDESIGNICONSMAIN_H