KiCad PCB EDA Suite
Loading...
Searching...
No Matches
panel_printer_list.h
Go to the documentation of this file.
1/*
2 * This program source code file is part of KICAD, a free EDA CAD application.
3 *
4 * Copyright (C) 2023 jean-pierre.charras
5 * Copyright (C) Kicad Developers, see AUTHORS.txt for contributors.
6 *
7 *
8 * This program is free software: you can redistribute it and/or modify it
9 * under the terms of the GNU General Public License as published by the
10 * Free Software Foundation, either version 3 of the License, or (at your
11 * option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful, but
14 * WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License along
19 * with this program. If not, see <http://www.gnu.org/licenses/>.
20 */
21
22#ifndef PANEL_PRINTER_LIST_H
23#define PANEL_PRINTER_LIST_H
24
26
27
29{
30public:
31 PANEL_PRINTER_LIST( wxWindow* aParent, wxWindowID id = wxID_ANY,
32 const wxPoint& pos = wxDefaultPosition,
33 const wxSize& size = wxSize( 378,109 ), long style = wxTAB_TRAVERSAL,
34 const wxString& name = wxEmptyString );
35
37
40 wxString GetSelectedPrinterName();
41
44
45private:
46 void onPrinterChoice( wxCommandEvent& event ) override;
47
48 // The printer name selected in this dialog
49 // static to store the choice during a session
50 static wxString m_selectedPrinterName;
51 // The default printer name selected by the OS
53 // The list of available printer names
54 wxArrayString m_printer_list;
55};
56
57#endif
const char * name
Definition: DXF_plotter.cpp:59
Class PANEL_PRINTER_LIST_BASE.
wxArrayString m_printer_list
static wxString m_selectedPrinterName
void onPrinterChoice(wxCommandEvent &event) override