wxMaxima
Loading...
Searching...
No Matches
gridctrlsample.h
1
2// Name: samples/gridctrl/gridctrlsample.h
3// Purpose: wxGrid PDF export demo
4// Author: Blake Madden
5// Created: 2026-06-22
6// Copyright: (c) Blake Madden
7// Licence: wxWindows licence
9
10#ifndef _GRIDCTRL_SAMPLE_H_
11#define _GRIDCTRL_SAMPLE_H_
12
13#include <wx/wx.h>
14#include <wx/grid.h>
15
16class MyFrame : public wxFrame
17{
18public:
19 MyFrame(const wxString& title);
20
21private:
22 void OnExportDirect(wxCommandEvent& event);
23 void OnExportDC(wxCommandEvent& event);
24 void OnExportFullWidth(wxCommandEvent& event);
25 void OnExportSimple(wxCommandEvent& event);
26 void OnExportWithRowLabels(wxCommandEvent& event);
27 void OnExportRange(wxCommandEvent& event);
28 void OnExportFinancial(wxCommandEvent& event);
29 void OnExportWithIcons(wxCommandEvent& event);
30 void OnExportHeadersFooters(wxCommandEvent& event);
31 void OnExit(wxCommandEvent& event);
32
33 wxGrid* m_grid{ nullptr };
34
35 void PopulateGrid();
36
37 wxDECLARE_EVENT_TABLE();
38};
39
40class MyApp : public wxApp
41{
42public:
43 virtual bool OnInit();
44};
45
46enum
47{
48 ID_EXPORT_DIRECT = wxID_HIGHEST + 1,
49 ID_EXPORT_DC,
50 ID_EXPORT_FULL_WIDTH,
51 ID_EXPORT_SIMPLE,
52 ID_EXPORT_ROW_LABELS,
53 ID_EXPORT_RANGE,
54 ID_EXPORT_FINANCIAL,
55 ID_EXPORT_WITH_ICONS,
56 ID_EXPORT_HEADERS_FOOTERS
57};
58
59#endif
Definition: test_ImgCell.cpp:354
bool OnInit() override
Definition: test_ImgCell.cpp:367
Definition: gridctrlsample.h:17