KiCad PCB EDA Suite
Loading...
Searching...
No Matches
PANEL_PRINTER_LIST Class Reference

#include <panel_printer_list.h>

Inheritance diagram for PANEL_PRINTER_LIST:
PANEL_PRINTER_LIST_BASE

Public Member Functions

 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)
 
 ~PANEL_PRINTER_LIST ()
 
wxString GetSelectedPrinterName ()
 
bool AsPrintersAvailable ()
 

Protected Attributes

wxStaticBoxSizer * m_sbSizerPrinters
 
wxChoice * m_choicePrinter
 
wxStaticText * m_staticTextPrn
 
wxStaticText * m_stPrinterState
 

Private Member Functions

void onPrinterChoice (wxCommandEvent &event) override
 

Private Attributes

wxString m_defaultPrinterName
 
wxArrayString m_printer_list
 

Static Private Attributes

static wxString m_selectedPrinterName
 

Detailed Description

Definition at line 28 of file panel_printer_list.h.

Constructor & Destructor Documentation

◆ PANEL_PRINTER_LIST()

PANEL_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 )

◆ ~PANEL_PRINTER_LIST()

PANEL_PRINTER_LIST::~PANEL_PRINTER_LIST ( )

Definition at line 160 of file panel_printer_list.cpp.

Member Function Documentation

◆ AsPrintersAvailable()

bool PANEL_PRINTER_LIST::AsPrintersAvailable ( )
Returns
false if no printer in list

Definition at line 165 of file panel_printer_list.cpp.

References PANEL_PRINTER_LIST_BASE::m_choicePrinter.

Referenced by GetSelectedPrinterName().

◆ GetSelectedPrinterName()

wxString PANEL_PRINTER_LIST::GetSelectedPrinterName ( )
Returns
the selected printer name or a empty name for the default printer

Definition at line 184 of file panel_printer_list.cpp.

References AsPrintersAvailable(), PANEL_PRINTER_LIST_BASE::m_choicePrinter, and m_selectedPrinterName.

◆ onPrinterChoice()

void PANEL_PRINTER_LIST::onPrinterChoice ( wxCommandEvent & event)
overrideprivatevirtual

Member Data Documentation

◆ m_choicePrinter

◆ m_defaultPrinterName

wxString PANEL_PRINTER_LIST::m_defaultPrinterName
private

Definition at line 52 of file panel_printer_list.h.

Referenced by onPrinterChoice(), and PANEL_PRINTER_LIST().

◆ m_printer_list

wxArrayString PANEL_PRINTER_LIST::m_printer_list
private

Definition at line 54 of file panel_printer_list.h.

Referenced by PANEL_PRINTER_LIST().

◆ m_sbSizerPrinters

wxStaticBoxSizer* PANEL_PRINTER_LIST_BASE::m_sbSizerPrinters
protectedinherited

Definition at line 34 of file panel_printer_list_base.h.

Referenced by PANEL_PRINTER_LIST_BASE().

◆ m_selectedPrinterName

wxString PANEL_PRINTER_LIST::m_selectedPrinterName
staticprivate

◆ m_staticTextPrn

wxStaticText* PANEL_PRINTER_LIST_BASE::m_staticTextPrn
protectedinherited

Definition at line 36 of file panel_printer_list_base.h.

Referenced by PANEL_PRINTER_LIST_BASE().

◆ m_stPrinterState

wxStaticText* PANEL_PRINTER_LIST_BASE::m_stPrinterState
protectedinherited

The documentation for this class was generated from the following files: