KiCad PCB EDA Suite
Loading...
Searching...
No Matches
panel_printer_list_base.cpp
Go to the documentation of this file.
1
2// C++ code generated with wxFormBuilder (version 3.10.1-282-g1fa54006)
3// http://www.wxformbuilder.org/
4//
5// PLEASE DO *NOT* EDIT THIS FILE!
7
9
11
12PANEL_PRINTER_LIST_BASE::PANEL_PRINTER_LIST_BASE( wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style, const wxString& name ) : wxPanel( parent, id, pos, size, style, name )
13{
14 wxBoxSizer* bSizerMain;
15 bSizerMain = new wxBoxSizer( wxVERTICAL );
16
17 m_sbSizerPrinters = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Printers") ), wxVERTICAL );
18
19 wxArrayString m_choicePrinterChoices;
20 m_choicePrinter = new wxChoice( m_sbSizerPrinters->GetStaticBox(), wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choicePrinterChoices, 0 );
21 m_choicePrinter->SetSelection( 0 );
22 m_sbSizerPrinters->Add( m_choicePrinter, 0, wxTOP|wxRIGHT|wxLEFT|wxEXPAND, 5 );
23
24 wxBoxSizer* bSizerPrinterState;
25 bSizerPrinterState = new wxBoxSizer( wxHORIZONTAL );
26
27 m_staticTextPrn = new wxStaticText( m_sbSizerPrinters->GetStaticBox(), wxID_ANY, _("Info:"), wxDefaultPosition, wxDefaultSize, 0 );
28 m_staticTextPrn->Wrap( -1 );
29 bSizerPrinterState->Add( m_staticTextPrn, 0, wxALL, 5 );
30
31
32 bSizerPrinterState->Add( 0, 0, 0, wxRIGHT|wxLEFT, 5 );
33
34 m_stPrinterState = new wxStaticText( m_sbSizerPrinters->GetStaticBox(), wxID_ANY, _("dummy"), wxDefaultPosition, wxDefaultSize, 0 );
35 m_stPrinterState->Wrap( -1 );
36 bSizerPrinterState->Add( m_stPrinterState, 0, wxALL, 5 );
37
38
39 m_sbSizerPrinters->Add( bSizerPrinterState, 0, wxEXPAND, 5 );
40
41
42 bSizerMain->Add( m_sbSizerPrinters, 0, wxEXPAND, 5 );
43
44
45 this->SetSizer( bSizerMain );
46 this->Layout();
47
48 // Connect Events
49 m_choicePrinter->Connect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( PANEL_PRINTER_LIST_BASE::onPrinterChoice ), NULL, this );
50}
51
53{
54 // Disconnect Events
55 m_choicePrinter->Disconnect( wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler( PANEL_PRINTER_LIST_BASE::onPrinterChoice ), NULL, this );
56
57}
const char * name
Definition: DXF_plotter.cpp:59
wxStaticBoxSizer * m_sbSizerPrinters
virtual void onPrinterChoice(wxCommandEvent &event)
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)
#define _(s)