-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathwxMaterialDesignIconsApp.cpp
More file actions
38 lines (28 loc) · 957 Bytes
/
wxMaterialDesignIconsApp.cpp
File metadata and controls
38 lines (28 loc) · 957 Bytes
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
/***************************************************************
* Name: wxMaterialDesignIconsApp.cpp
* Purpose: Code for Application Class
* Author: Federico Perini (federico.perini@gmail.com)
* Created: 2023-11-05
* Copyright: Federico Perini (https://www.federicoperini.info)
* License:
**************************************************************/
#ifdef WX_PRECOMP
#include "wx_pch.h"
#endif
#ifdef __BORLANDC__
#pragma hdrstop
#endif //__BORLANDC__
#include "wxMaterialDesignIconsApp.h"
#include "wxMaterialDesignIconsMain.h"
IMPLEMENT_APP(wxMaterialDesignIconsApp);
bool wxMaterialDesignIconsApp::OnInit()
{
wxFrame frame(NULL, wxID_ANY, wxT("wxArtProvider sample"),
wxDefaultPosition, wxSize(450, 340));
frame.Show(true);
// Register art provider
wxArtProvider::Push(new wxMaterialDesignArtProvider);
wxArtBrowserDialog dialog(&frame);
dialog.ShowModal();
return false;
}