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#pragma once
23
25
26
28{
29public:
30 PANEL_PRINTER_LIST( wxWindow* aParent, wxWindowID id = wxID_ANY,
31 const wxPoint& pos = wxDefaultPosition,
32 const wxSize& size = wxSize( 378,109 ), long style = wxTAB_TRAVERSAL,
33 const wxString& name = wxEmptyString );
34
36
38 wxString GetSelectedPrinterName();
39
42
43private:
44 void onPrinterChoice( wxCommandEvent& event ) override;
45
46 // The printer name selected in this dialog
47 // static to store the choice during a session
48 static wxString m_selectedPrinterName;
49 // The default printer name selected by the OS
51 // The list of available printer names
52 wxArrayString m_printer_list;
53};
const char * name
PANEL_PRINTER_LIST_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(378, 109), long style=wxTAB_TRAVERSAL, const wxString &name=wxEmptyString)
wxArrayString m_printer_list
PANEL_PRINTER_LIST(wxWindow *aParent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(378, 109), long style=wxTAB_TRAVERSAL, const wxString &name=wxEmptyString)
static wxString m_selectedPrinterName
void onPrinterChoice(wxCommandEvent &event) override