KiCad PCB EDA Suite
DIALOG_PAGES_SETTINGS Class Reference

#include <dialog_page_settings.h>

Inheritance diagram for DIALOG_PAGES_SETTINGS:
DIALOG_PAGES_SETTINGS_BASE DIALOG_SHIM KIWAY_HOLDER

Public Member Functions

 DIALOG_PAGES_SETTINGS (EDA_DRAW_FRAME *parent)
 
 ~DIALOG_PAGES_SETTINGS ()
 
const wxString GetWksFileName ()
 
void SetWksFileName (const wxString &aFilename)
 
void EnableWksFileNamePicker (bool aEnable)
 
int ShowQuasiModal ()
 
void EndQuasiModal (int retCode)
 
bool IsQuasiModal ()
 
bool Show (bool show) override
 
bool Enable (bool enable) override
 
KIWAYKiway () const
 Function Kiway returns a reference to the KIWAY that this object has an opportunity to participate in. More...
 
PROJECTPrj () const
 Function Prj returns a reference to the PROJECT "associated with" this KIWAY. More...
 
void SetKiway (wxWindow *aDest, KIWAY *aKiway)
 Function SetKiway. More...
 

Protected Member Functions

virtual void OnCheckboxTitleClick (wxCommandEvent &event)
 
void FinishDialogSettings ()
 In all dialogs, we must call the same functions to fix minimal dlg size, the default position and perhaps some others to fix a few issues depending on Windows Managers this helper function does these calls. More...
 
void FixOSXCancelButtonIssue ()
 A ugly hack to fix an issue on OSX: when typing ctrl+c in a wxTextCtrl inside a dialog, it is closed instead of copying a text if a button with wxID_CANCEL is used in a wxStdDialogButtonSizer, when the dlg is created by wxFormBuilder: the label is &Cancel, and this accelerator key has priority to copy text standard accelerator, and the dlg is closed when trying to copy text this function do nothing on other platforms. More...
 

Protected Attributes

wxStaticText * m_staticTextPaper
 
wxStaticLine * m_staticline2
 
wxStaticText * m_staticTextSize
 
wxChoice * m_paperSizeComboBox
 
wxStaticText * m_staticTextOrient
 
wxChoice * m_orientationComboBox
 
wxStaticText * m_staticTextCustSize
 
wxStaticText * m_staticTextHeight
 
wxTextCtrl * m_TextUserSizeY
 
wxStaticText * m_staticTextWidth
 
wxTextCtrl * m_TextUserSizeX
 
wxStaticText * m_staticTextPreview
 
wxStaticBitmap * m_PageLayoutExampleBitmap
 
wxStaticLine * m_staticline1
 
wxStaticText * m_staticTexttbprm
 
wxStaticLine * m_staticline3
 
wxStaticText * m_TextSheetCount
 
wxStaticText * m_TextSheetNumber
 
wxStaticText * m_staticTextDate
 
wxTextCtrl * m_TextDate
 
wxButton * m_ApplyDate
 
wxDatePickerCtrl * m_PickDate
 
wxCheckBox * m_DateExport
 
wxStaticText * m_staticTextRev
 
wxTextCtrl * m_TextRevision
 
wxCheckBox * m_RevisionExport
 
wxStaticText * m_staticTextTitle
 
wxTextCtrl * m_TextTitle
 
wxCheckBox * m_TitleExport
 
wxStaticText * m_staticText13
 
wxTextCtrl * m_TextCompany
 
wxCheckBox * m_CompanyExport
 
wxStaticText * m_staticTextComment1
 
wxTextCtrl * m_TextComment1
 
wxCheckBox * m_Comment1Export
 
wxStaticText * m_staticTextComment2
 
wxTextCtrl * m_TextComment2
 
wxCheckBox * m_Comment2Export
 
wxStaticText * m_staticTextComment3
 
wxTextCtrl * m_TextComment3
 
wxCheckBox * m_Comment3Export
 
wxStaticText * m_staticTextComment4
 
wxTextCtrl * m_TextComment4
 
wxCheckBox * m_Comment4Export
 
wxStaticText * m_staticTextfilename
 
wxTextCtrl * m_textCtrlFilePicker
 
wxButton * m_buttonBrowse
 
wxStdDialogButtonSizer * m_sdbSizer
 
wxButton * m_sdbSizerOK
 
wxButton * m_sdbSizerCancel
 
std::string m_hash_key
 
EVENT_LOOPm_qmodal_loop
 
bool m_qmodal_showing
 
WDO_ENABLE_DISABLEm_qmodal_parent_disabler
 

Private Member Functions

void initDialog ()
 
void OnOkClick (wxCommandEvent &event) override
 
void OnPaperSizeChoice (wxCommandEvent &event) override
 
void OnUserPageSizeXTextUpdated (wxCommandEvent &event) override
 
void OnUserPageSizeYTextUpdated (wxCommandEvent &event) override
 
void OnPageOrientationChoice (wxCommandEvent &event) override
 
void OnRevisionTextUpdated (wxCommandEvent &event) override
 
void OnDateTextUpdated (wxCommandEvent &event) override
 
void OnTitleTextUpdated (wxCommandEvent &event) override
 
void OnCompanyTextUpdated (wxCommandEvent &event) override
 
void OnComment1TextUpdated (wxCommandEvent &event) override
 
void OnComment2TextUpdated (wxCommandEvent &event) override
 
void OnComment3TextUpdated (wxCommandEvent &event) override
 
void OnComment4TextUpdated (wxCommandEvent &event) override
 
void OnDateApplyClick (wxCommandEvent &event) override
 
void OnWksFileSelection (wxCommandEvent &event) override
 
bool SavePageSettings ()
 
void SetCurrentPageSizeSelection (const wxString &aPaperSize)
 
void UpdatePageLayoutExample ()
 
void GetPageLayoutInfoFromDialog ()
 
void GetCustomSizeMilsFromDialog ()
 
bool LocalPrjConfigChanged ()
 

Private Attributes

EDA_DRAW_FRAMEm_parent
 
BASE_SCREENm_screen
 
wxString m_projectPath
 
wxArrayString m_pageFmt
 
bool m_initialized
 list of page sizes (not translated) More...
 
bool m_localPrjConfigChanged
 
wxBitmap * m_page_bitmap
 the page layuout filename was changed More...
 
wxSize m_layout_size
 Temporary bitmap for the page layout example. More...
 
PAGE_INFO m_pageInfo
 Logical page layout size. More...
 
bool m_customFmt
 Temporary page info. More...
 
TITLE_BLOCK m_tb
 true if the page selection is custom More...
 
WORKSHEET_LAYOUTm_pagelayout
 Temporary title block (basic inscriptions). More...
 

Detailed Description

DIALOG_PAGES_SETTINGS class declaration

Definition at line 35 of file dialog_page_settings.h.

Constructor & Destructor Documentation

DIALOG_PAGES_SETTINGS::DIALOG_PAGES_SETTINGS ( EDA_DRAW_FRAME parent)

Definition at line 93 of file dialog_page_settings.cpp.

References PROJECT::GetProjectPath(), EDA_DRAW_FRAME::GetScreen(), EDA_DRAW_FRAME::GetTitleBlock(), initDialog(), m_customFmt, m_localPrjConfigChanged, m_page_bitmap, m_pagelayout, m_parent, DIALOG_PAGES_SETTINGS_BASE::m_PickDate, m_projectPath, m_screen, m_tb, and KIWAY_HOLDER::Prj().

93  :
95  m_initialized( false )
96 {
97  m_parent = parent;
100  m_page_bitmap = NULL;
102  m_customFmt = false;
103  m_localPrjConfigChanged = false;
104  m_pagelayout = NULL;
105 
106  m_PickDate->SetValue( wxDateTime::Now() );
107 
108  initDialog();
109 
110  GetSizer()->SetSizeHints( this );
111  Centre();
112 }
virtual const TITLE_BLOCK & GetTitleBlock() const =0
TITLE_BLOCK m_tb
true if the page selection is custom
bool m_initialized
list of page sizes (not translated)
wxBitmap * m_page_bitmap
the page layuout filename was changed
PROJECT & Prj() const
Function Prj returns a reference to the PROJECT "associated with" this KIWAY.
virtual BASE_SCREEN * GetScreen() const
Function GetScreen returns a pointer to a BASE_SCREEN or one of its derivatives.
Definition: draw_frame.h:334
DIALOG_PAGES_SETTINGS_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Page Settings"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(748, 470), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
WORKSHEET_LAYOUT * m_pagelayout
Temporary title block (basic inscriptions).
VTBL_ENTRY const wxString GetProjectPath() const
Function GetProjectPath returns the full path of the project.
Definition: project.cpp:102
bool m_customFmt
Temporary page info.
DIALOG_PAGES_SETTINGS::~DIALOG_PAGES_SETTINGS ( )

Definition at line 115 of file dialog_page_settings.cpp.

References m_page_bitmap, and m_pagelayout.

116 {
117  delete m_page_bitmap;
118  delete m_pagelayout;
119 }
wxBitmap * m_page_bitmap
the page layuout filename was changed
WORKSHEET_LAYOUT * m_pagelayout
Temporary title block (basic inscriptions).

Member Function Documentation

bool DIALOG_SHIM::Enable ( bool  enable)
overrideinherited

Definition at line 182 of file dialog_shim.cpp.

Referenced by DIALOG_PRINT_USING_PRINTER::InitValues().

183 {
184  // so we can do logging of this state change:
185 
186 #if defined(DEBUG)
187  const char* type_id = typeid( *this ).name();
188  printf( "wxDialog %s: %s\n", type_id, enable ? "enabled" : "disabled" );
189 #endif
190 
191  return wxDialog::Enable( enable );
192 }
void DIALOG_PAGES_SETTINGS::EnableWksFileNamePicker ( bool  aEnable)
inline

Definition at line 66 of file dialog_page_settings.h.

References DIALOG_PAGES_SETTINGS_BASE::m_buttonBrowse, and DIALOG_PAGES_SETTINGS_BASE::m_textCtrlFilePicker.

Referenced by EVT_MENU_RANGE().

67  {
68  m_textCtrlFilePicker->Enable( aEnable );
69  m_buttonBrowse->Enable( aEnable );
70  }
void DIALOG_SHIM::EndQuasiModal ( int  retCode)
inherited

Definition at line 540 of file dialog_shim.cpp.

References DIALOG_SHIM::IsQuasiModal(), DIALOG_SHIM::m_qmodal_loop, DIALOG_SHIM::m_qmodal_parent_disabler, DIALOG_SHIM::m_qmodal_showing, and DIALOG_SHIM::Show().

Referenced by HK_PROMPT_DIALOG::EndFlexible(), DIALOG_SHIM::OnButton(), DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB::OnCancelButtonClick(), DIALOG_EDIT_COMPONENT_IN_SCHEMATIC::OnCancelButtonClick(), DIALOG_EDIT_ONE_FIELD::OnCancelClick(), DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB::OnCloseDialog(), DIALOG_EDIT_ONE_FIELD::OnCloseDialog(), DIALOG_EDIT_COMPONENT_IN_SCHEMATIC::OnCloseDialog(), DIALOG_CHOOSE_COMPONENT::OnCloseTimer(), DIALOG_SHIM::OnCloseWindow(), DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB::OnOKButtonClick(), DIALOG_EDIT_COMPONENT_IN_SCHEMATIC::OnOKButtonClick(), DIALOG_EDIT_ONE_FIELD::OnOkClick(), DIALOG_EXCHANGE_MODULE::OnQuit(), DIALOG_CHOOSE_COMPONENT::OnSchViewDClick(), DIALOG_EDIT_COMPONENT_IN_SCHEMATIC::SetInitCmp(), and DIALOG_SHIM::~DIALOG_SHIM().

541 {
542  // Hook up validator and transfer data from controls handling so quasi-modal dialogs
543  // handle validation in the same way as other dialogs.
544  if( ( retCode == wxID_OK ) && ( !Validate() || !TransferDataFromWindow() ) )
545  return;
546 
547  SetReturnCode( retCode );
548 
549  if( !IsQuasiModal() )
550  {
551  wxFAIL_MSG( wxT( "either DIALOG_SHIM::EndQuasiModal called twice or ShowQuasiModal wasn't called" ) );
552  return;
553  }
554 
555  m_qmodal_showing = false;
556 
557  if( m_qmodal_loop )
558  {
559  if( m_qmodal_loop->IsRunning() )
560  m_qmodal_loop->Exit( 0 );
561  else
562  m_qmodal_loop->ScheduleExit( 0 );
563 
564  m_qmodal_loop = NULL;
565  }
566 
569 
570  Show( false );
571 }
bool m_qmodal_showing
Definition: dialog_shim.h:132
EVENT_LOOP * m_qmodal_loop
Definition: dialog_shim.h:131
bool IsQuasiModal()
Definition: dialog_shim.h:93
bool Show(bool show) override
WDO_ENABLE_DISABLE * m_qmodal_parent_disabler
Definition: dialog_shim.h:133
void DIALOG_SHIM::FinishDialogSettings ( )
protectedinherited

In all dialogs, we must call the same functions to fix minimal dlg size, the default position and perhaps some others to fix a few issues depending on Windows Managers this helper function does these calls.

FinishDialogSettings must be called from derived classes, when all widgets are initialized, and therefore their size fixed. If TransferDataToWindow() is used to initialize widgets, at end of TransferDataToWindow, or better at end of a wxInitDialogEvent handler

In any case, the best way is to call it in a wxInitDialogEvent handler after calling TransfertDataToWindow(), which is the default wxInitDialogEvent handler wxDialog

Definition at line 104 of file dialog_shim.cpp.

References PCAD2KICAD::Center.

Referenced by COLOR4D_PICKER_DLG::COLOR4D_PICKER_DLG(), DIALOG_BOM::DIALOG_BOM(), DIALOG_COPPER_ZONE::DIALOG_COPPER_ZONE(), DIALOG_DESIGN_RULES::DIALOG_DESIGN_RULES(), DIALOG_DIMENSION_EDITOR::DIALOG_DIMENSION_EDITOR(), DIALOG_DISPLAY_OPTIONS::DIALOG_DISPLAY_OPTIONS(), DIALOG_DRC_CONTROL::DIALOG_DRC_CONTROL(), DIALOG_EDIT_COMPONENT_IN_LIBRARY::DIALOG_EDIT_COMPONENT_IN_LIBRARY(), DIALOG_EESCHEMA_OPTIONS::DIALOG_EESCHEMA_OPTIONS(), DIALOG_ENUM_PADS::DIALOG_ENUM_PADS(), DIALOG_EXPORT_3DFILE::DIALOG_EXPORT_3DFILE(), DIALOG_EXPORT_IDF3::DIALOG_EXPORT_IDF3(), DIALOG_EXPORT_STEP::DIALOG_EXPORT_STEP(), DIALOG_FOOTPRINT_WIZARD_LIST::DIALOG_FOOTPRINT_WIZARD_LIST(), DIALOG_GLOBAL_SYM_LIB_TABLE_CONFIG::DIALOG_GLOBAL_SYM_LIB_TABLE_CONFIG(), DIALOG_KEEPOUT_AREA_PROPERTIES::DIALOG_KEEPOUT_AREA_PROPERTIES(), DIALOG_LABEL_EDITOR::DIALOG_LABEL_EDITOR(), DIALOG_LIB_EDIT_DRAW_ITEM::DIALOG_LIB_EDIT_DRAW_ITEM(), DIALOG_LIB_EDIT_TEXT::DIALOG_LIB_EDIT_TEXT(), DIALOG_LIB_NEW_COMPONENT::DIALOG_LIB_NEW_COMPONENT(), DIALOG_LIBEDIT_OPTIONS::DIALOG_LIBEDIT_OPTIONS(), DIALOG_PAD_PROPERTIES::DIALOG_PAD_PROPERTIES(), DIALOG_PLOT_SCHEMATIC::DIALOG_PLOT_SCHEMATIC(), DIALOG_SCH_EDIT_SHEET_PIN::DIALOG_SCH_EDIT_SHEET_PIN(), DIALOG_SCH_SHEET_PROPS::DIALOG_SCH_SHEET_PROPS(), DIALOG_SELECT_PRETTY_LIB::DIALOG_SELECT_PRETTY_LIB(), DIALOG_TRACK_VIA_SIZE::DIALOG_TRACK_VIA_SIZE(), DIALOG_EDIT_ONE_FIELD::init(), NETLIST_DIALOG::NETLIST_DIALOG(), DIALOG_LIB_EDIT_PIN::OnInitDialog(), DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB::OnInitDialog(), DIALOG_TRACK_VIA_PROPERTIES::OnInitDlg(), DIALOG_GRAPHIC_ITEMS_OPTIONS::OnInitDlg(), DialogEditModuleText::OnInitDlg(), DIALOG_SET_GRID::OnInitDlg(), DIALOG_PCB_TEXT_PROPERTIES::OnInitDlg(), DIALOG_PRINT_FOR_MODEDIT::OnInitDlg(), DIALOG_GRAPHIC_ITEM_PROPERTIES::OnInitDlg(), DIALOG_MODULE_MODULE_EDITOR::OnInitDlg(), DIALOG_SIM_SETTINGS::onInitDlg(), DIALOG_SPICE_MODEL::onInitDlg(), DIALOG_MODULE_BOARD_EDITOR::OnInitDlg(), DIALOG_PRINT_USING_PRINTER::OnInitDlg(), DIALOG_EDIT_COMPONENT_IN_SCHEMATIC::OnInitDlg(), TARGET_PROPERTIES_DIALOG_EDITOR::TARGET_PROPERTIES_DIALOG_EDITOR(), and DIALOG_SIGNAL_LIST::TransferDataToWindow().

105 {
106  // must be called from the constructor of derived classes,
107  // when all widgets are initialized, and therefore their size fixed
108 
109  // SetSizeHints fixes the minimal size of sizers in the dialog
110  // (SetSizeHints calls Fit(), so no need to call it)
111  GetSizer()->SetSizeHints( this );
112 
113  // the default position, when calling the first time the dlg
114  Center();
115 }
void DIALOG_SHIM::FixOSXCancelButtonIssue ( )
protectedinherited

A ugly hack to fix an issue on OSX: when typing ctrl+c in a wxTextCtrl inside a dialog, it is closed instead of copying a text if a button with wxID_CANCEL is used in a wxStdDialogButtonSizer, when the dlg is created by wxFormBuilder: the label is &Cancel, and this accelerator key has priority to copy text standard accelerator, and the dlg is closed when trying to copy text this function do nothing on other platforms.

Definition at line 117 of file dialog_shim.cpp.

Referenced by DIALOG_SHIM::Show().

118 {
119 #ifdef __WXMAC__
120  // A ugly hack to fix an issue on OSX: ctrl+c closes the dialog instead of
121  // copying a text if a button with wxID_CANCEL is used in a wxStdDialogButtonSizer
122  // created by wxFormBuilder: the label is &Cancel, and this accelerator key has priority
123  // to copy text standard accelerator, and the dlg is closed when trying to copy text
124  wxButton* button = dynamic_cast< wxButton* > ( wxWindow::FindWindowById( wxID_CANCEL, this ) );
125 
126  if( button )
127  button->SetLabel( _( "Cancel" ) );
128 #endif
129 }
void DIALOG_PAGES_SETTINGS::GetCustomSizeMilsFromDialog ( )
private

Definition at line 771 of file dialog_page_settings.cpp.

References Clamp(), g_UserUnit, INCHES, KiROUND(), m_layout_size, DIALOG_PAGES_SETTINGS_BASE::m_TextUserSizeX, DIALOG_PAGES_SETTINGS_BASE::m_TextUserSizeY, and MILLIMETRES.

Referenced by GetPageLayoutInfoFromDialog(), and SavePageSettings().

772 {
773  double customSizeX;
774  double customSizeY;
775  wxString msg;
776 
777  msg = m_TextUserSizeX->GetValue();
778  msg.ToDouble( &customSizeX );
779 
780  msg = m_TextUserSizeY->GetValue();
781  msg.ToDouble( &customSizeY );
782 
783  switch( g_UserUnit )
784  {
785  case MILLIMETRES:
786  customSizeX *= 1000. / 25.4;
787  customSizeY *= 1000. / 25.4;
788  break;
789 
790  default:
791  case INCHES:
792  customSizeX *= 1000.;
793  customSizeY *= 1000.;
794  }
795 
796  // Prepare to painless double -> int conversion.
797  customSizeX = Clamp( double( INT_MIN ), customSizeX, double( INT_MAX ) );
798  customSizeY = Clamp( double( INT_MIN ), customSizeY, double( INT_MAX ) );
799  m_layout_size = wxSize( KiROUND( customSizeX ), KiROUND( customSizeY ) );
800 }
const T & Clamp(const T &lower, const T &value, const T &upper)
Function Clamp limits value within the range lower <= value <= upper.
Definition: macros.h:127
static int KiROUND(double v)
KiROUND rounds a floating point number to an int using "round halfway cases away from zero"...
Definition: common.h:107
wxSize m_layout_size
Temporary bitmap for the page layout example.
Definition: common.h:145
EDA_UNITS_T g_UserUnit
Global variables definitions.
Definition: common.cpp:56
void DIALOG_PAGES_SETTINGS::GetPageLayoutInfoFromDialog ( )
private

Definition at line 701 of file dialog_page_settings.cpp.

References PAGE_INFO::A, PAGE_INFO::A0, PAGE_INFO::A1, PAGE_INFO::A2, PAGE_INFO::A3, PAGE_INFO::A4, PAGE_INFO::B, PAGE_INFO::C, PAGE_INFO::Custom, PAGE_INFO::D, DIM, PAGE_INFO::E, GetCustomSizeMilsFromDialog(), PAGE_INFO::GetSizeMils(), m_layout_size, DIALOG_PAGES_SETTINGS_BASE::m_orientationComboBox, m_pageFmt, DIALOG_PAGES_SETTINGS_BASE::m_paperSizeComboBox, PAGE_INFO::SetType(), PAGE_INFO::USLedger, PAGE_INFO::USLegal, and PAGE_INFO::USLetter.

Referenced by initDialog(), OnComment1TextUpdated(), OnComment2TextUpdated(), OnComment3TextUpdated(), OnComment4TextUpdated(), OnCompanyTextUpdated(), OnDateTextUpdated(), OnPageOrientationChoice(), OnPaperSizeChoice(), OnRevisionTextUpdated(), OnTitleTextUpdated(), OnUserPageSizeXTextUpdated(), OnUserPageSizeYTextUpdated(), and OnWksFileSelection().

702 {
703  int idx = m_paperSizeComboBox->GetSelection();
704 
705  if( idx < 0 )
706  idx = 0;
707 
708  const wxString paperType = m_pageFmt[idx];
709 
710  // here we assume translators will keep original paper size spellings
711  if( paperType.Contains( PAGE_INFO::Custom ) )
712  {
714 
715  if( m_layout_size.x && m_layout_size.y )
716  {
717  if( m_layout_size.x < m_layout_size.y )
718  m_orientationComboBox->SetStringSelection( _( "Portrait" ) );
719  else
720  m_orientationComboBox->SetStringSelection( _( "Landscape" ) );
721  }
722  }
723  else
724  {
725  PAGE_INFO pageInfo; // SetType() later to lookup size
726 
727  static const wxChar* papers[] = {
728  // longest common string first, since sequential search below
734  PAGE_INFO::A,
735  PAGE_INFO::B,
736  PAGE_INFO::C,
737  PAGE_INFO::D,
738  PAGE_INFO::E,
742  };
743 
744  unsigned i;
745 
746  for( i=0; i < DIM( papers ); ++i )
747  {
748  if( paperType.Contains( papers[i] ) )
749  {
750  pageInfo.SetType( papers[i] );
751  break;
752  }
753  }
754 
755  wxASSERT( i != DIM(papers) ); // dialog UI match the above list?
756 
757  m_layout_size = pageInfo.GetSizeMils();
758 
759  // swap sizes to match orientation
760  bool isPortrait = (bool) m_orientationComboBox->GetSelection();
761 
762  if( ( isPortrait && m_layout_size.x >= m_layout_size.y ) ||
763  ( !isPortrait && m_layout_size.x < m_layout_size.y ) )
764  {
766  }
767  }
768 }
#define DIM(x)
of elements in an array
Definition: macros.h:98
static const wxChar A[]
static const wxChar E[]
static const wxChar A3[]
static const wxChar Custom[]
"User" defined page type
static const wxChar D[]
wxSize m_layout_size
Temporary bitmap for the page layout example.
const wxSize & GetSizeMils() const
static const wxChar USLegal[]
static const wxChar B[]
static const wxChar C[]
Class PAGE_INFO describes the page size and margins of a paper page on which to eventually print or p...
static const wxChar A4[]
bool SetType(const wxString &aStandardPageDescriptionName, bool IsPortrait=false)
Function SetType sets the name of the page type and also the sizes and margins commonly associated wi...
static const wxChar USLedger[]
static const wxChar A1[]
static const wxChar USLetter[]
static const wxChar A2[]
static const wxChar A0[]
const wxString DIALOG_PAGES_SETTINGS::GetWksFileName ( )
inline

Definition at line 56 of file dialog_page_settings.h.

References DIALOG_PAGES_SETTINGS_BASE::m_textCtrlFilePicker.

Referenced by OnWksFileSelection(), and SavePageSettings().

57  {
58  return m_textCtrlFilePicker->GetValue();
59  }
void DIALOG_PAGES_SETTINGS::initDialog ( )
private

Definition at line 122 of file dialog_page_settings.cpp.

References DIM, dummy(), g_UserUnit, TITLE_BLOCK::GetComment1(), TITLE_BLOCK::GetComment2(), TITLE_BLOCK::GetComment3(), TITLE_BLOCK::GetComment4(), TITLE_BLOCK::GetCompany(), PAGE_INFO::GetCustomHeightMils(), PAGE_INFO::GetCustomWidthMils(), TITLE_BLOCK::GetDate(), PAGE_INFO::GetHeightMils(), GetPageLayoutInfoFromDialog(), EDA_DRAW_FRAME::GetPageSettings(), TITLE_BLOCK::GetRevision(), TITLE_BLOCK::GetTitle(), PAGE_INFO::GetType(), PAGE_INFO::GetWidthMils(), INCHES, PAGE_INFO::IsPortrait(), DIALOG_PAGES_SETTINGS_BASE::m_Comment1Export, DIALOG_PAGES_SETTINGS_BASE::m_Comment2Export, DIALOG_PAGES_SETTINGS_BASE::m_Comment3Export, DIALOG_PAGES_SETTINGS_BASE::m_Comment4Export, DIALOG_PAGES_SETTINGS_BASE::m_CompanyExport, m_customFmt, DIALOG_PAGES_SETTINGS_BASE::m_DateExport, m_initialized, BASE_SCREEN::m_NumberOfScreens, DIALOG_PAGES_SETTINGS_BASE::m_orientationComboBox, m_pageFmt, m_pageInfo, BASE_SCREEN::m_PageLayoutDescrFileName, DIALOG_PAGES_SETTINGS_BASE::m_paperSizeComboBox, m_parent, DIALOG_PAGES_SETTINGS_BASE::m_RevisionExport, m_screen, BASE_SCREEN::m_ScreenNumber, DIALOG_PAGES_SETTINGS_BASE::m_sdbSizerOK, m_tb, DIALOG_PAGES_SETTINGS_BASE::m_TextComment1, DIALOG_PAGES_SETTINGS_BASE::m_TextComment2, DIALOG_PAGES_SETTINGS_BASE::m_TextComment3, DIALOG_PAGES_SETTINGS_BASE::m_TextComment4, DIALOG_PAGES_SETTINGS_BASE::m_TextCompany, DIALOG_PAGES_SETTINGS_BASE::m_TextDate, DIALOG_PAGES_SETTINGS_BASE::m_TextRevision, DIALOG_PAGES_SETTINGS_BASE::m_TextSheetCount, DIALOG_PAGES_SETTINGS_BASE::m_TextSheetNumber, DIALOG_PAGES_SETTINGS_BASE::m_TextTitle, DIALOG_PAGES_SETTINGS_BASE::m_TextUserSizeX, DIALOG_PAGES_SETTINGS_BASE::m_TextUserSizeY, DIALOG_PAGES_SETTINGS_BASE::m_TitleExport, MILLIMETRES, OnPaperSizeChoice(), pageFmts, SetCurrentPageSizeSelection(), SetWksFileName(), and UpdatePageLayoutExample().

Referenced by DIALOG_PAGES_SETTINGS().

123 {
124  wxString msg;
125  double customSizeX;
126  double customSizeY;
127 
128  // initalize page format choice box and page format list.
129  // The first shows translated strings, the second contains not translated strings
130  m_paperSizeComboBox->Clear();
131 
132  for( unsigned ii = 0; ii < DIM(pageFmts); ii++ )
133  {
134  m_pageFmt.Add( pageFmts[ii] );
135  m_paperSizeComboBox->Append( wxGetTranslation( pageFmts[ii] ) );
136  }
137 
138  // initialize the page layout descr filename
140 
141 
142 #ifdef EESCHEMA
143  // Init display value for schematic sub-sheet number
144  wxString format = m_TextSheetCount->GetLabel();
145  msg.Printf( format, m_screen->m_NumberOfScreens );
146  m_TextSheetCount->SetLabel( msg );
147 
148  format = m_TextSheetNumber->GetLabel();
149  msg.Printf( format, m_screen->m_ScreenNumber );
150  m_TextSheetNumber->SetLabel( msg );
151 #else
152  m_TextSheetCount->Show( false );
153  m_TextSheetNumber->Show( false );
154 #endif
155 
158  m_orientationComboBox->SetSelection( m_pageInfo.IsPortrait() );
159 
160  // only a click fires the "selection changed" event, so have to fabricate this check
161  wxCommandEvent dummy;
162  OnPaperSizeChoice( dummy );
163 
164  if( m_customFmt) // The custom value is defined by the page size
165  {
166  customSizeX = m_pageInfo.GetWidthMils();
167  customSizeY = m_pageInfo.GetHeightMils();
168  }
169  else // The custom value is set to a default value, or the last defined value
170  {
171  customSizeX = m_pageInfo.GetCustomWidthMils();
172  customSizeY = m_pageInfo.GetCustomHeightMils();
173  }
174 
175  switch( g_UserUnit )
176  {
177  case MILLIMETRES:
178  customSizeX *= 25.4e-3;
179  customSizeY *= 25.4e-3;
180 
181  msg.Printf( wxT( "%.2f" ), customSizeX );
182  m_TextUserSizeX->SetValue( msg );
183 
184  msg.Printf( wxT( "%.2f" ), customSizeY );
185  m_TextUserSizeY->SetValue( msg );
186  break;
187 
188  default:
189  case INCHES:
190  customSizeX /= 1000.0;
191  customSizeY /= 1000.0;
192 
193  msg.Printf( wxT( "%.3f" ), customSizeX );
194  m_TextUserSizeX->SetValue( msg );
195 
196  msg.Printf( wxT( "%.3f" ), customSizeY );
197  m_TextUserSizeY->SetValue( msg );
198  break;
199  }
200 
201  m_TextRevision->SetValue( m_tb.GetRevision() );
202  m_TextDate->SetValue( m_tb.GetDate() );
203  m_TextTitle->SetValue( m_tb.GetTitle() );
204  m_TextCompany->SetValue( m_tb.GetCompany() );
205  m_TextComment1->SetValue( m_tb.GetComment1() );
206  m_TextComment2->SetValue( m_tb.GetComment2() );
207  m_TextComment3->SetValue( m_tb.GetComment3() );
208  m_TextComment4->SetValue( m_tb.GetComment4() );
209 
210 #ifndef EESCHEMA
211  // these options have meaning only for Eeschema.
212  // disable them for other apps
213  m_RevisionExport->Show( false );
214  m_DateExport->Show( false );
215  m_TitleExport->Show( false );
216  m_CompanyExport->Show( false );
217  m_Comment1Export->Show( false );
218  m_Comment2Export->Show( false );
219  m_Comment3Export->Show( false );
220  m_Comment4Export->Show( false );
221 #endif
222 
225 
226  // Make the OK button the default.
227  m_sdbSizerOK->SetDefault();
228  m_initialized = true;
229 }
#define DIM(x)
of elements in an array
Definition: macros.h:98
static int GetCustomHeightMils()
Function GetCustomHeightMils.
const wxString & GetCompany() const
TITLE_BLOCK m_tb
true if the page selection is custom
void SetWksFileName(const wxString &aFilename)
const wxString & GetComment4() const
const wxString & GetDate() const
bool m_initialized
list of page sizes (not translated)
static wxString m_PageLayoutDescrFileName
the name of the page layout descr file, or emty to used the default pagelayout
virtual const PAGE_INFO & GetPageSettings() const =0
const wxString & GetTitle() const
bool IsPortrait() const
const wxString & GetRevision() const
Definition: common.h:145
const wxString & GetComment3() const
void SetCurrentPageSizeSelection(const wxString &aPaperSize)
int GetWidthMils() const
const wxString & GetComment2() const
EDA_UNITS_T g_UserUnit
Global variables definitions.
Definition: common.cpp:56
const wxString & GetComment1() const
PAGE_INFO m_pageInfo
Logical page layout size.
static LIB_PART * dummy()
Used when a LIB_PART is not found in library to draw a dummy shape This component is a 400 mils squar...
static const wxString pageFmts[]
static int GetCustomWidthMils()
Function GetCustomWidthMils.
bool m_customFmt
Temporary page info.
void OnPaperSizeChoice(wxCommandEvent &event) override
const wxString & GetType() const
int GetHeightMils() const
KIWAY& KIWAY_HOLDER::Kiway ( ) const
inlineinherited

Function Kiway returns a reference to the KIWAY that this object has an opportunity to participate in.

A KIWAY_HOLDER is not necessarily a KIWAY_PLAYER.

Definition at line 60 of file kiway_player.h.

References KIWAY_HOLDER::m_kiway.

Referenced by SCH_EDIT_FRAME::AppendOneEEProject(), CVPCB_MAINFRAME::BuildLIBRARY_LISTBOX(), DIALOG_CHOOSE_COMPONENT::ConstructRightPanel(), CVPCB_MAINFRAME::CreateScreenCmp(), CVPCB_MAINFRAME::CVPCB_MAINFRAME(), DIALOG_SHIM::DIALOG_SHIM(), EDIT_TOOL::editFootprintInFpEditor(), SCH_EDIT_FRAME::EditSheet(), DISPLAY_FOOTPRINTS_FRAME::Get_Module(), FOOTPRINT_EDIT_FRAME::GetPlotSettings(), DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB::initBuffers(), LIB_EDIT_FRAME::InstallConfigFrame(), PCB_EDIT_FRAME::InstallModuleOptionsFrame(), KIWAY_PLAYER::language_change(), SCH_SHEET::Load(), CVPCB_MAINFRAME::LoadFootprintFiles(), KIWAY_PLAYER::OnChangeIconsOptions(), CVPCB_MAINFRAME::OnEditFootprintLibraryTable(), SCH_BASE_FRAME::OnEditSymbolLibTable(), DIALOG_CHOOSE_COMPONENT::OnInitDialog(), SCH_EDIT_FRAME::OnLeftClick(), SCH_BASE_FRAME::OnOpenLibraryViewer(), SCH_EDIT_FRAME::OnSimulate(), DIALOG_EDIT_ONE_FIELD::OnTextValueSelectButtonClick(), FOOTPRINT_EDIT_FRAME::OnUpdateInsertModuleInBoard(), FOOTPRINT_EDIT_FRAME::OnUpdateLoadModuleFromBoard(), FOOTPRINT_EDIT_FRAME::OnUpdateReplaceModuleInBoard(), SCH_EDIT_FRAME::OpenProjectFiles(), KIWAY_HOLDER::Prj(), PCB_EDIT_FRAME::Process_Config(), PCB_EDIT_FRAME::Process_Special_Functions(), FOOTPRINT_EDIT_FRAME::ProcessPreferences(), CVPCB_MAINFRAME::ReadNetListAndFpFiles(), FOOTPRINT_VIEWER_FRAME::ReCreateFootprintList(), LIB_EDIT_FRAME::refreshSchematic(), SCH_EDIT_FRAME::SaveEEFile(), CVPCB_MAINFRAME::SaveFootprintAssociation(), SCH_BASE_FRAME::SelectComponentFromLibBrowser(), CVPCB_MAINFRAME::SendMessageToEESCHEMA(), PCB_EDIT_FRAME::SendMessageToEESCHEMA(), SCH_EDIT_FRAME::SendMessageToPCBNEW(), SCH_EDIT_FRAME::sendNetlist(), FOOTPRINT_EDIT_FRAME::SetPlotSettings(), DISPLAY_FOOTPRINTS_FRAME::Show3D_Frame(), FOOTPRINT_VIEWER_FRAME::Show3D_Frame(), FOOTPRINT_EDIT_FRAME::Show3D_Frame(), FOOTPRINT_WIZARD_FRAME::Show3D_Frame(), DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB::showButtonHandler(), DIALOG_EDIT_COMPONENT_IN_SCHEMATIC::showButtonHandler(), SIM_PLOT_FRAME::SIM_PLOT_FRAME(), and DIALOG_EXCHANGE_MODULE::ViewAndSelectFootprint().

61  {
62  wxASSERT( m_kiway ); // smoke out bugs in Debug build, then Release runs fine.
63  return *m_kiway;
64  }
KIWAY * m_kiway
Definition: kiway_player.h:85
bool DIALOG_PAGES_SETTINGS::LocalPrjConfigChanged ( )
inlineprivate
Returns
true if the local prj config is chande i.e. if the page layout descr file has chnaged

Definition at line 117 of file dialog_page_settings.h.

References m_localPrjConfigChanged.

Referenced by OnOkClick().

virtual void DIALOG_PAGES_SETTINGS_BASE::OnCheckboxTitleClick ( wxCommandEvent &  event)
inlineprotectedvirtualinherited
void DIALOG_PAGES_SETTINGS::OnComment1TextUpdated ( wxCommandEvent &  event)
overrideprivatevirtual

Reimplemented from DIALOG_PAGES_SETTINGS_BASE.

Definition at line 360 of file dialog_page_settings.cpp.

References GetPageLayoutInfoFromDialog(), m_initialized, m_tb, DIALOG_PAGES_SETTINGS_BASE::m_TextComment1, TITLE_BLOCK::SetComment1(), and UpdatePageLayoutExample().

361 {
362  if( m_initialized && m_TextComment1->IsModified() )
363  {
365  m_tb.SetComment1( m_TextComment1->GetValue() );
367  }
368 }
void SetComment1(const wxString &aComment)
TITLE_BLOCK m_tb
true if the page selection is custom
bool m_initialized
list of page sizes (not translated)
void DIALOG_PAGES_SETTINGS::OnComment2TextUpdated ( wxCommandEvent &  event)
overrideprivatevirtual

Reimplemented from DIALOG_PAGES_SETTINGS_BASE.

Definition at line 371 of file dialog_page_settings.cpp.

References GetPageLayoutInfoFromDialog(), m_initialized, m_tb, DIALOG_PAGES_SETTINGS_BASE::m_TextComment2, TITLE_BLOCK::SetComment2(), and UpdatePageLayoutExample().

372 {
373  if( m_initialized && m_TextComment2->IsModified() )
374  {
376  m_tb.SetComment2( m_TextComment2->GetValue() );
378  }
379 }
TITLE_BLOCK m_tb
true if the page selection is custom
bool m_initialized
list of page sizes (not translated)
void SetComment2(const wxString &aComment)
void DIALOG_PAGES_SETTINGS::OnComment3TextUpdated ( wxCommandEvent &  event)
overrideprivatevirtual

Reimplemented from DIALOG_PAGES_SETTINGS_BASE.

Definition at line 382 of file dialog_page_settings.cpp.

References GetPageLayoutInfoFromDialog(), m_initialized, m_tb, DIALOG_PAGES_SETTINGS_BASE::m_TextComment3, TITLE_BLOCK::SetComment3(), and UpdatePageLayoutExample().

383 {
384  if( m_initialized && m_TextComment3->IsModified() )
385  {
387  m_tb.SetComment3( m_TextComment3->GetValue() );
389  }
390 }
TITLE_BLOCK m_tb
true if the page selection is custom
bool m_initialized
list of page sizes (not translated)
void SetComment3(const wxString &aComment)
void DIALOG_PAGES_SETTINGS::OnComment4TextUpdated ( wxCommandEvent &  event)
overrideprivatevirtual

Reimplemented from DIALOG_PAGES_SETTINGS_BASE.

Definition at line 393 of file dialog_page_settings.cpp.

References GetPageLayoutInfoFromDialog(), m_initialized, m_tb, DIALOG_PAGES_SETTINGS_BASE::m_TextComment4, TITLE_BLOCK::SetComment4(), and UpdatePageLayoutExample().

394 {
395  if( m_initialized && m_TextComment4->IsModified() )
396  {
398  m_tb.SetComment4( m_TextComment4->GetValue() );
400  }
401 }
TITLE_BLOCK m_tb
true if the page selection is custom
bool m_initialized
list of page sizes (not translated)
void SetComment4(const wxString &aComment)
void DIALOG_PAGES_SETTINGS::OnCompanyTextUpdated ( wxCommandEvent &  event)
overrideprivatevirtual

Reimplemented from DIALOG_PAGES_SETTINGS_BASE.

Definition at line 349 of file dialog_page_settings.cpp.

References GetPageLayoutInfoFromDialog(), m_initialized, m_tb, DIALOG_PAGES_SETTINGS_BASE::m_TextCompany, TITLE_BLOCK::SetCompany(), and UpdatePageLayoutExample().

350 {
351  if( m_initialized && m_TextCompany->IsModified() )
352  {
354  m_tb.SetCompany( m_TextCompany->GetValue() );
356  }
357 }
TITLE_BLOCK m_tb
true if the page selection is custom
bool m_initialized
list of page sizes (not translated)
void SetCompany(const wxString &aCompany)
void DIALOG_PAGES_SETTINGS::OnDateApplyClick ( wxCommandEvent &  event)
overrideprivatevirtual

Reimplemented from DIALOG_PAGES_SETTINGS_BASE.

Definition at line 404 of file dialog_page_settings.cpp.

References DIALOG_PAGES_SETTINGS_BASE::m_PickDate, and DIALOG_PAGES_SETTINGS_BASE::m_TextDate.

405 {
406  wxDateTime datetime = m_PickDate->GetValue();
407  wxString date =
408  // We can choose different formats. Only one must be uncommented
409  //
410  // datetime.Format( wxLocale::GetInfo( wxLOCALE_SHORT_DATE_FMT ) );
411  // datetime.Format( wxLocale::GetInfo( wxLOCALE_LONG_DATE_FMT ) );
412  // datetime.Format( wxT("%Y-%b-%d") );
413  datetime.FormatISODate();
414 
415  m_TextDate->SetValue( date );
416 }
void DIALOG_PAGES_SETTINGS::OnDateTextUpdated ( wxCommandEvent &  event)
overrideprivatevirtual

Reimplemented from DIALOG_PAGES_SETTINGS_BASE.

Definition at line 327 of file dialog_page_settings.cpp.

References GetPageLayoutInfoFromDialog(), m_initialized, m_tb, DIALOG_PAGES_SETTINGS_BASE::m_TextDate, TITLE_BLOCK::SetDate(), and UpdatePageLayoutExample().

328 {
329  if( m_initialized && m_TextDate->IsModified() )
330  {
332  m_tb.SetDate( m_TextDate->GetValue() );
334  }
335 }
TITLE_BLOCK m_tb
true if the page selection is custom
void SetDate(const wxString &aDate)
Function SetDate sets the date field, and defaults to the current time and date.
bool m_initialized
list of page sizes (not translated)
void DIALOG_PAGES_SETTINGS::OnOkClick ( wxCommandEvent &  event)
overrideprivatevirtual

Reimplemented from DIALOG_PAGES_SETTINGS_BASE.

Definition at line 232 of file dialog_page_settings.cpp.

References EDA_DRAW_FRAME::GetCanvas(), LocalPrjConfigChanged(), m_parent, m_screen, EDA_DRAW_PANEL::Refresh(), SavePageSettings(), EDA_BASE_FRAME::SaveProjectSettings(), and BASE_SCREEN::SetModify().

233 {
234  if( SavePageSettings() )
235  {
236  m_screen->SetModify();
237  m_parent->GetCanvas()->Refresh();
238 
239  if( LocalPrjConfigChanged() )
240  m_parent->SaveProjectSettings( true );
241  }
242 
243  event.Skip();
244 }
virtual void Refresh(bool eraseBackground=true, const wxRect *rect=NULL) override
Update the board display after modifying it bu a python script (note: it is automatically called by a...
Definition: draw_panel.cpp:325
EDA_DRAW_PANEL * GetCanvas()
Definition: draw_frame.h:324
virtual void SaveProjectSettings(bool aAskForSave)
Function SaveProjectSettings saves changes to the project settings to the project (...
Definition: wxstruct.h:274
void DIALOG_PAGES_SETTINGS::OnPageOrientationChoice ( wxCommandEvent &  event)
overrideprivatevirtual

Reimplemented from DIALOG_PAGES_SETTINGS_BASE.

Definition at line 306 of file dialog_page_settings.cpp.

References GetPageLayoutInfoFromDialog(), m_initialized, and UpdatePageLayoutExample().

307 {
308  if( m_initialized )
309  {
312  }
313 }
bool m_initialized
list of page sizes (not translated)
void DIALOG_PAGES_SETTINGS::OnPaperSizeChoice ( wxCommandEvent &  event)
overrideprivatevirtual

Reimplemented from DIALOG_PAGES_SETTINGS_BASE.

Definition at line 247 of file dialog_page_settings.cpp.

References PAGE_INFO::Custom, GetPageLayoutInfoFromDialog(), m_customFmt, DIALOG_PAGES_SETTINGS_BASE::m_orientationComboBox, m_pageFmt, DIALOG_PAGES_SETTINGS_BASE::m_paperSizeComboBox, DIALOG_PAGES_SETTINGS_BASE::m_TextUserSizeX, DIALOG_PAGES_SETTINGS_BASE::m_TextUserSizeY, and UpdatePageLayoutExample().

Referenced by initDialog().

248 {
249  int idx = m_paperSizeComboBox->GetSelection();
250 
251  if( idx < 0 )
252  idx = 0;
253 
254  const wxString paperType = m_pageFmt[idx];
255 
256  if( paperType.Contains( PAGE_INFO::Custom ) )
257  {
258  m_orientationComboBox->Enable( false );
259  m_TextUserSizeX->Enable( true );
260  m_TextUserSizeY->Enable( true );
261  m_customFmt = true;
262  }
263  else
264  {
265  m_orientationComboBox->Enable( true );
266 
267 #if 0
268  // ForcePortrait() does not exist, but could be useful.
269  // so I leave these lines, which could be seen as a todo feature
270  if( paperType.ForcePortrait() )
271  {
272  m_orientationComboBox->SetStringSelection( _( "Portrait" ) );
273  m_orientationComboBox->Enable( false );
274  }
275 #endif
276  m_TextUserSizeX->Enable( false );
277  m_TextUserSizeY->Enable( false );
278  m_customFmt = false;
279  }
280 
283 }
static const wxChar Custom[]
"User" defined page type
bool m_customFmt
Temporary page info.
void DIALOG_PAGES_SETTINGS::OnRevisionTextUpdated ( wxCommandEvent &  event)
overrideprivatevirtual

Reimplemented from DIALOG_PAGES_SETTINGS_BASE.

Definition at line 316 of file dialog_page_settings.cpp.

References GetPageLayoutInfoFromDialog(), m_initialized, m_tb, DIALOG_PAGES_SETTINGS_BASE::m_TextRevision, TITLE_BLOCK::SetRevision(), and UpdatePageLayoutExample().

317 {
318  if( m_initialized && m_TextRevision->IsModified() )
319  {
321  m_tb.SetRevision( m_TextRevision->GetValue() );
323  }
324 }
void SetRevision(const wxString &aRevision)
TITLE_BLOCK m_tb
true if the page selection is custom
bool m_initialized
list of page sizes (not translated)
void DIALOG_PAGES_SETTINGS::OnTitleTextUpdated ( wxCommandEvent &  event)
overrideprivatevirtual

Reimplemented from DIALOG_PAGES_SETTINGS_BASE.

Definition at line 338 of file dialog_page_settings.cpp.

References GetPageLayoutInfoFromDialog(), m_initialized, m_tb, DIALOG_PAGES_SETTINGS_BASE::m_TextTitle, TITLE_BLOCK::SetTitle(), and UpdatePageLayoutExample().

339 {
340  if( m_initialized && m_TextTitle->IsModified() )
341  {
343  m_tb.SetTitle( m_TextTitle->GetValue() );
345  }
346 }
TITLE_BLOCK m_tb
true if the page selection is custom
bool m_initialized
list of page sizes (not translated)
void SetTitle(const wxString &aTitle)
void DIALOG_PAGES_SETTINGS::OnUserPageSizeXTextUpdated ( wxCommandEvent &  event)
overrideprivatevirtual

Reimplemented from DIALOG_PAGES_SETTINGS_BASE.

Definition at line 286 of file dialog_page_settings.cpp.

References GetPageLayoutInfoFromDialog(), m_initialized, DIALOG_PAGES_SETTINGS_BASE::m_TextUserSizeX, and UpdatePageLayoutExample().

287 {
288  if( m_initialized && m_TextUserSizeX->IsModified() )
289  {
292  }
293 }
bool m_initialized
list of page sizes (not translated)
void DIALOG_PAGES_SETTINGS::OnUserPageSizeYTextUpdated ( wxCommandEvent &  event)
overrideprivatevirtual

Reimplemented from DIALOG_PAGES_SETTINGS_BASE.

Definition at line 296 of file dialog_page_settings.cpp.

References GetPageLayoutInfoFromDialog(), m_initialized, DIALOG_PAGES_SETTINGS_BASE::m_TextUserSizeY, and UpdatePageLayoutExample().

297 {
298  if( m_initialized && m_TextUserSizeY->IsModified() )
299  {
302  }
303 }
bool m_initialized
list of page sizes (not translated)
void DIALOG_PAGES_SETTINGS::OnWksFileSelection ( wxCommandEvent &  event)
overrideprivatevirtual

Reimplemented from DIALOG_PAGES_SETTINGS_BASE.

Definition at line 803 of file dialog_page_settings.cpp.

References Format(), GetChars(), GetPageLayoutInfoFromDialog(), GetWksFileName(), IsOK(), m_pagelayout, m_projectPath, WORKSHEET_LAYOUT::MakeShortFileName(), PageLayoutDescrFileWildcard, WORKSHEET_LAYOUT::SetPageLayout(), SetWksFileName(), and UpdatePageLayoutExample().

804 {
805  // Display a file picker dialog
806  wxFileDialog fileDialog( this, _( "Select Page Layout Descr File" ),
809  wxFD_DEFAULT_STYLE | wxFD_FILE_MUST_EXIST );
810 
811  if( fileDialog.ShowModal() != wxID_OK )
812  return;
813 
814  wxString fileName = fileDialog.GetPath();
815 
816  // Try to remove the path, if the path is the current working dir,
817  // or the dir of kicad.pro (template), and use a relative path
818  wxString shortFileName = WORKSHEET_LAYOUT::MakeShortFileName( fileName, m_projectPath );
819 
820  // For Win/Linux/macOS compatibility, a relative path is a good idea
821  if( shortFileName != GetWksFileName() && shortFileName != fileName )
822  {
823  wxString msg = wxString::Format( _(
824  "The page layout descr filename has changed.\n"
825  "Do you want to use the relative path:\n"
826  "'%s'\n"
827  "instead of\n"
828  "'%s'" ), GetChars( shortFileName ), GetChars( fileName ) );
829 
830  if( !IsOK( this, msg ) )
831  shortFileName = fileName;
832  }
833 
834  SetWksFileName( shortFileName );
835 
836  if( m_pagelayout == NULL )
838 
839  m_pagelayout->SetPageLayout( fileName );
840 
843 }
const wxString PageLayoutDescrFileWildcard
void SetWksFileName(const wxString &aFilename)
const wxString GetWksFileName()
WORKSHEET_LAYOUT handles the graphic items list to draw/plot the title block and other items (page re...
static const wxChar * GetChars(const wxString &s)
Function GetChars returns a wxChar* to the actual wxChar* data within a wxString, and is helpful for ...
Definition: macros.h:92
void Format(OUTPUTFORMATTER *out, int aNestLevel, int aCtl, CPTREE &aTree)
Function Format outputs a PTREE into s-expression format via an OUTPUTFORMATTER derivative.
Definition: ptree.cpp:205
static const wxString MakeShortFileName(const wxString &aFullFileName, const wxString &aProjectPath)
WORKSHEET_LAYOUT * m_pagelayout
Temporary title block (basic inscriptions).
bool IsOK(wxWindow *aParent, const wxString &aMessage)
Function IsOK displays a yes/no dialog with aMessage and returns the user response.
Definition: confirm.cpp:129
void SetPageLayout(const wxString &aFullFileName=wxEmptyString, bool Append=false)
Populates the list with a custom layout, or the default layout, if no custom layout available...
PROJECT & KIWAY_HOLDER::Prj ( ) const
inherited

Function Prj returns a reference to the PROJECT "associated with" this KIWAY.

Definition at line 34 of file kiway_holder.cpp.

References KIWAY_HOLDER::Kiway(), and KIWAY::Prj().

Referenced by SCH_EDIT_FRAME::AnnotateComponents(), SCH_EDIT_FRAME::AppendOneEEProject(), PCB_EDIT_FRAME::ArchiveModulesOnBoard(), SCH_EDIT_FRAME::backAnnotateFootprints(), LIB_VIEW_FRAME::BestZoom(), DIALOG_MODULE_MODULE_EDITOR::BrowseAndAdd3DShapeFile(), DIALOG_MODULE_BOARD_EDITOR::BrowseAndAdd3DShapeFile(), DIALOG_EDIT_COMPONENT_IN_LIBRARY::BrowseAndSelectDocFile(), DIALOG_EXCHANGE_MODULE::BrowseAndSelectFootprint(), CVPCB_MAINFRAME::BuildLIBRARY_LISTBOX(), DIALOG_MODULE_MODULE_EDITOR::Cfg3DPath(), DIALOG_MODULE_BOARD_EDITOR::Cfg3DPath(), SCH_EDIT_FRAME::CheckAnnotate(), SCH_SCREEN::CheckComponentsToPartsLinks(), SCH_EDIT_FRAME::ConvertPart(), DIALOG_EDIT_COMPONENT_IN_SCHEMATIC::copyPanelToOptions(), SCH_EDIT_FRAME::CreateArchiveLibrary(), PCB_BASE_EDIT_FRAME::CreateNewLibrary(), DIALOG_PLOT_SCHEMATIC::createPlotFileName(), DIALOG_SYMBOL_REMAP::createProjectSymbolLibTable(), FOOTPRINT_EDIT_FRAME::DeleteModuleFromCurrentLibrary(), LIB_EDIT_FRAME::DeleteOnePart(), DIALOG_CONFIG_EQUFILES::DIALOG_CONFIG_EQUFILES(), DIALOG_EESCHEMA_CONFIG::DIALOG_EESCHEMA_CONFIG(), DIALOG_FP_LIB_TABLE::DIALOG_FP_LIB_TABLE(), DIALOG_MODULE_BOARD_EDITOR::DIALOG_MODULE_BOARD_EDITOR(), DIALOG_MODULE_MODULE_EDITOR::DIALOG_MODULE_MODULE_EDITOR(), DIALOG_PAGES_SETTINGS(), DIALOG_SCH_EDIT_ONE_FIELD::DIALOG_SCH_EDIT_ONE_FIELD(), DIALOG_SYMBOL_LIB_TABLE::DIALOG_SYMBOL_LIB_TABLE(), LIB_VIEW_FRAME::DisplayLibInfos(), SCH_BASE_FRAME::DisplayListComponentsInLib(), PCB_EDIT_FRAME::doAutoSave(), DIALOG_MODULE_MODULE_EDITOR::Edit3DShapeFileName(), DIALOG_MODULE_BOARD_EDITOR::Edit3DShapeFileName(), SCH_EDIT_FRAME::EditComponentFieldText(), SCH_EDIT_FRAME::EditSheet(), PCB_EDIT_FRAME::Export_IDF3(), PCB_EDIT_FRAME::ExportToGenCAD(), PCB_EDIT_FRAME::ExportVRML_File(), PCB_EDIT_FRAME::Files_io_from_id(), PCB_EDIT_FRAME::GenD356File(), NETLIST_DIALOG::GenNetlist(), DISPLAY_FOOTPRINTS_FRAME::Get_Module(), FOOTPRINT_VIEWER_FRAME::getCurFootprintName(), LIB_EDIT_FRAME::GetCurLib(), FOOTPRINT_VIEWER_FRAME::getCurNickname(), LIB_EDIT_FRAME::GetCurPart(), FOOTPRINT_EDIT_FRAME::GetCurrentLib(), FOOTPRINT_EDIT_FRAME::getLibPath(), DIALOG_SYMBOL_REMAP::getLibsNotInGlobalSymbolLibTable(), DIALOG_BOM::getPluginFileName(), LIB_VIEW_FRAME::getSelectedAlias(), FP_THREAD_IFACE::GetTable(), DIALOG_EDIT_COMPONENT_IN_SCHEMATIC::InitBuffers(), DIALOG_MODULE_MODULE_EDITOR::initModeditProperties(), DIALOG_MODULE_BOARD_EDITOR::InitModeditProperties(), LIB_EDIT_FRAME::InstallConfigFrame(), SCH_EDIT_FRAME::InstallConfigFrame(), PCB_EDIT_FRAME::InstallNetlistFrame(), SCH_EDIT_FRAME::IsSearchCacheObsolete(), SCH_EDIT_FRAME::Load_Component(), SCH_EDIT_FRAME::LoadCmpToFootprintLinkFile(), DIALOG_BOM_EDITOR::LoadComponents(), CVPCB_MAINFRAME::LoadFootprintFiles(), SCH_EDIT_FRAME::LoadOneEEFile(), LIB_EDIT_FRAME::LoadOneLibraryPart(), LIB_EDIT_FRAME::LoadOneSymbol(), CVPCB_MAINFRAME::LoadProjectFile(), SCH_EDIT_FRAME::LoadProjectFile(), PCB_EDIT_FRAME::LoadProjectSettings(), DIALOG_DRC_CONTROL::makeValidFileNameReport(), FOOTPRINT_VIEWER_FRAME::OnActivate(), DIALOG_EESCHEMA_CONFIG::OnAddOrInsertLibClick(), DIALOG_EESCHEMA_CONFIG::OnAddOrInsertPath(), DIALOG_DRC_CONTROL::OnButtonBrowseRptFileClick(), LIB_EDIT_FRAME::OnCloseWindow(), CVPCB_MAINFRAME::OnEditFootprintLibraryTable(), SCH_BASE_FRAME::OnEditSymbolLibTable(), DIALOG_GENDRILL::OnGenReportFile(), DIALOG_CHOOSE_COMPONENT::OnInitDialog(), PCB_EDIT_FRAME::OnLeftClick(), DIALOG_EDIT_COMPONENT_IN_SCHEMATIC::OnOKButtonClick(), DIALOG_NETLIST::OnOpenNetlistClick(), DIALOG_PLOT::OnOutputDirectoryBrowseClicked(), DIALOG_SVG_PRINT::OnOutputDirectoryBrowseClicked(), DIALOG_GENDRILL::OnOutputDirectoryBrowseClicked(), DIALOG_PLOT_SCHEMATIC::OnOutputDirectoryBrowseClicked(), DIALOG_GEN_MODULE_POSITION::OnOutputDirectoryBrowseClicked(), LIB_EDIT_FRAME::OnPlotCurrentComponent(), DIALOG_SYMBOL_REMAP::OnRemapSymbols(), SCH_EDIT_FRAME::OnRightClick(), DIALOG_BOM::OnRunPlugin(), DIALOG_NETLIST::OnSaveMessagesToFile(), SCH_EDIT_FRAME::OnSaveProject(), DIALOG_SPICE_MODEL::onSelectIcLib(), LIB_VIEW_FRAME::OnSelectSymbol(), SCH_EDIT_FRAME::OnSelectUnit(), DIALOG_SPICE_MODEL::onSemiSelectLib(), DIALOG_EDIT_COMPONENT_IN_SCHEMATIC::OnTestChipName(), FOOTPRINT_EDIT_FRAME::OnUpdateSelectCurrentLib(), LIB_EDIT_FRAME::OnViewEntryDoc(), LIB_VIEW_FRAME::onViewSymbolDocument(), SCH_EDIT_FRAME::OpenProjectFiles(), PCB_EDIT_FRAME::OpenProjectFiles(), SCH_EDIT_FRAME::PasteListOfItems(), PCB_EDITOR_CONTROL::PlaceModule(), SCH_EDIT_FRAME::prepareForNetlist(), SCH_EDIT_FRAME::Process_Config(), PCB_EDIT_FRAME::Process_Config(), SCH_EDIT_FRAME::Process_Special_Functions(), SCH_EDIT_FRAME::ProcessCmpToFootprintLinkFile(), FOOTPRINT_EDIT_FRAME::ProcessPreferences(), CVPCB_MAINFRAME::ReadNetListAndFpFiles(), PCB_EDIT_FRAME::RecreateCmpFileFromBoard(), FOOTPRINT_VIEWER_FRAME::ReCreateFootprintList(), LIB_VIEW_FRAME::ReCreateHToolbar(), FOOTPRINT_VIEWER_FRAME::ReCreateLibraryList(), LIB_VIEW_FRAME::ReCreateListCmp(), LIB_VIEW_FRAME::ReCreateListLib(), LIB_VIEW_FRAME::RedrawActiveWindow(), EDA_3D_VIEWER::ReloadRequest(), DIALOG_SYMBOL_REMAP::remapSymbolToLibTable(), SCH_EDIT_FRAME::RescueProject(), FOOTPRINT_EDIT_FRAME::restoreLastFootprint(), FOOTPRINT_EDIT_FRAME::retainLastFootprint(), SCH_SCREEN::Save(), LIB_EDIT_FRAME::SaveActiveLibrary(), SCH_EDIT_FRAME::SaveEEFile(), FOOTPRINT_EDIT_FRAME::SaveFootprintInLibrary(), LIB_EDIT_FRAME::SaveOneSymbol(), CVPCB_MAINFRAME::SaveProjectFile(), SCH_EDIT_FRAME::SaveProjectSettings(), PCB_EDIT_FRAME::SaveProjectSettings(), FOOTPRINT_VIEWER_FRAME::SelectAndViewFootprint(), SCH_BASE_FRAME::SelectComponentFromLibrary(), FOOTPRINT_VIEWER_FRAME::SelectCurrentFootprint(), PCB_BASE_FRAME::SelectLibrary(), SCH_BASE_FRAME::SelectLibraryFromList(), SCH_EDIT_FRAME::sendNetlist(), FOOTPRINT_VIEWER_FRAME::setCurFootprintName(), LIB_EDIT_FRAME::SetCurLib(), FOOTPRINT_VIEWER_FRAME::setCurNickname(), LIB_EDIT_FRAME::SetCurPart(), DIALOG_EDIT_COMPONENT_IN_SCHEMATIC::SetInitCmp(), SIM_PLOT_FRAME::SIM_PLOT_FRAME(), EDA_3D_VIEWER::takeScreenshot(), DIALOG_ERC::TestErc(), DIALOG_SPICE_MODEL::updateFromFile(), SIM_PLOT_FRAME::updateNetlistExporter(), FOOTPRINT_VIEWER_FRAME::UpdateTitle(), CVPCB_MAINFRAME::UpdateTitle(), FOOTPRINT_EDIT_FRAME::updateTitle(), SCH_EDIT_FRAME::WriteNetListFile(), DIALOG_MODULE_BOARD_EDITOR::~DIALOG_MODULE_BOARD_EDITOR(), and DIALOG_MODULE_MODULE_EDITOR::~DIALOG_MODULE_MODULE_EDITOR().

35 {
36  return Kiway().Prj();
37 }
KIWAY & Kiway() const
Function Kiway returns a reference to the KIWAY that this object has an opportunity to participate in...
Definition: kiway_player.h:60
VTBL_ENTRY PROJECT & Prj() const
Function Prj returns the PROJECT associated with this KIWAY.
Definition: kiway.cpp:144
bool DIALOG_PAGES_SETTINGS::SavePageSettings ( )
private

Definition at line 419 of file dialog_page_settings.cpp.

References PAGE_INFO::A, PAGE_INFO::A0, PAGE_INFO::A1, PAGE_INFO::A2, PAGE_INFO::A3, PAGE_INFO::A4, PAGE_INFO::B, PAGE_INFO::C, Clamp(), PAGE_INFO::Custom, PAGE_INFO::D, PAGE_INFO::E, Format(), g_UserUnit, PAGE_INFO::GERBER, GetChars(), TITLE_BLOCK::GetComment1(), TITLE_BLOCK::GetComment2(), TITLE_BLOCK::GetComment3(), TITLE_BLOCK::GetComment4(), TITLE_BLOCK::GetCompany(), GetCustomSizeMilsFromDialog(), TITLE_BLOCK::GetDate(), SCH_SCREENS::GetFirst(), SCH_SCREENS::GetNext(), TITLE_BLOCK::GetRevision(), WORKSHEET_LAYOUT::GetTheInstance(), TITLE_BLOCK::GetTitle(), SCH_SCREEN::GetTitleBlock(), GetWksFileName(), INCHES, DIALOG_PAGES_SETTINGS_BASE::m_Comment1Export, DIALOG_PAGES_SETTINGS_BASE::m_Comment2Export, DIALOG_PAGES_SETTINGS_BASE::m_Comment3Export, DIALOG_PAGES_SETTINGS_BASE::m_Comment4Export, DIALOG_PAGES_SETTINGS_BASE::m_CompanyExport, DIALOG_PAGES_SETTINGS_BASE::m_DateExport, m_layout_size, m_localPrjConfigChanged, DIALOG_PAGES_SETTINGS_BASE::m_orientationComboBox, m_pageFmt, m_pageInfo, BASE_SCREEN::m_PageLayoutDescrFileName, DIALOG_PAGES_SETTINGS_BASE::m_paperSizeComboBox, m_parent, m_projectPath, DIALOG_PAGES_SETTINGS_BASE::m_RevisionExport, m_screen, m_tb, DIALOG_PAGES_SETTINGS_BASE::m_TextComment1, DIALOG_PAGES_SETTINGS_BASE::m_TextComment2, DIALOG_PAGES_SETTINGS_BASE::m_TextComment3, DIALOG_PAGES_SETTINGS_BASE::m_TextComment4, DIALOG_PAGES_SETTINGS_BASE::m_TextCompany, DIALOG_PAGES_SETTINGS_BASE::m_TextDate, DIALOG_PAGES_SETTINGS_BASE::m_TextRevision, DIALOG_PAGES_SETTINGS_BASE::m_TextTitle, DIALOG_PAGES_SETTINGS_BASE::m_TitleExport, WORKSHEET_LAYOUT::MakeFullFileName(), MAX_PAGE_SIZE, MIN_PAGE_SIZE, TITLE_BLOCK::SetComment1(), TITLE_BLOCK::SetComment2(), TITLE_BLOCK::SetComment3(), TITLE_BLOCK::SetComment4(), TITLE_BLOCK::SetCompany(), PAGE_INFO::SetCustomHeightMils(), PAGE_INFO::SetCustomWidthMils(), TITLE_BLOCK::SetDate(), PAGE_INFO::SetHeightMils(), WORKSHEET_LAYOUT::SetPageLayout(), EDA_DRAW_FRAME::SetPageSettings(), PAGE_INFO::SetPortrait(), TITLE_BLOCK::SetRevision(), TITLE_BLOCK::SetTitle(), SCH_SCREEN::SetTitleBlock(), EDA_DRAW_FRAME::SetTitleBlock(), PAGE_INFO::SetType(), PAGE_INFO::SetWidthMils(), PAGE_INFO::USLedger, PAGE_INFO::USLegal, and PAGE_INFO::USLetter.

Referenced by OnOkClick().

420 {
421  bool retSuccess = false;
422 
423  wxString fileName = GetWksFileName();
424 
426  {
427  wxString fullFileName =
429 
430  if( !fullFileName.IsEmpty() )
431  {
432 
433  if( !wxFileExists( fullFileName ) )
434  {
435  wxString msg;
436  msg.Printf( _("Page layout description file <%s> not found. Abort"),
437  GetChars( fullFileName ) );
438  wxMessageBox( msg );
439  return false;
440  }
441  }
442 
445  pglayout.SetPageLayout( fullFileName );
447  }
448 
449  int idx = m_paperSizeComboBox->GetSelection();
450 
451  if( idx < 0 )
452  idx = 0;
453 
454  const wxString paperType = m_pageFmt[idx];
455 
456  if( paperType.Contains( PAGE_INFO::Custom ) )
457  {
459 
460  retSuccess = m_pageInfo.SetType( PAGE_INFO::Custom );
461 
462  if( retSuccess )
463  {
466  {
467  wxString msg = wxString::Format( _( "Selected custom paper size\nis out of the permissible \
468 limits\n%.1f - %.1f %s!\nSelect another custom paper size?" ),
469  g_UserUnit == INCHES ? MIN_PAGE_SIZE / 1000. : MIN_PAGE_SIZE * 25.4 / 1000,
470  g_UserUnit == INCHES ? MAX_PAGE_SIZE / 1000. : MAX_PAGE_SIZE * 25.4 / 1000,
471  g_UserUnit == INCHES ? _( "inches" ) : _( "mm" ) );
472 
473  if( wxMessageBox( msg, _( "Warning!" ), wxYES_NO | wxICON_EXCLAMATION, this ) == wxYES )
474  {
475  return false;
476  }
477 
480  }
481 
484 
487  }
488  }
489  else
490  {
491  // search for longest common string first, e.g. A4 before A
492  if( paperType.Contains( PAGE_INFO::USLetter ) )
493  retSuccess = m_pageInfo.SetType( PAGE_INFO::USLetter );
494  else if( paperType.Contains( PAGE_INFO::USLegal ) )
495  retSuccess = m_pageInfo.SetType( PAGE_INFO::USLegal );
496  else if( paperType.Contains( PAGE_INFO::USLedger ) )
497  retSuccess = m_pageInfo.SetType( PAGE_INFO::USLedger );
498  else if( paperType.Contains( PAGE_INFO::GERBER ) )
499  retSuccess = m_pageInfo.SetType( PAGE_INFO::GERBER );
500  else if( paperType.Contains( PAGE_INFO::A4 ) )
501  retSuccess = m_pageInfo.SetType( PAGE_INFO::A4 );
502  else if( paperType.Contains( PAGE_INFO::A3 ) )
503  retSuccess = m_pageInfo.SetType( PAGE_INFO::A3 );
504  else if( paperType.Contains( PAGE_INFO::A2 ) )
505  retSuccess = m_pageInfo.SetType( PAGE_INFO::A2 );
506  else if( paperType.Contains( PAGE_INFO::A1 ) )
507  retSuccess = m_pageInfo.SetType( PAGE_INFO::A1 );
508  else if( paperType.Contains( PAGE_INFO::A0 ) )
509  retSuccess = m_pageInfo.SetType( PAGE_INFO::A0 );
510  else if( paperType.Contains( PAGE_INFO::A ) )
511  retSuccess = m_pageInfo.SetType( PAGE_INFO::A );
512  else if( paperType.Contains( PAGE_INFO::B ) )
513  retSuccess = m_pageInfo.SetType( PAGE_INFO::B );
514  else if( paperType.Contains( PAGE_INFO::C ) )
515  retSuccess = m_pageInfo.SetType( PAGE_INFO::C );
516  else if( paperType.Contains( PAGE_INFO::D ) )
517  retSuccess = m_pageInfo.SetType( PAGE_INFO::D );
518  else if( paperType.Contains( PAGE_INFO::E ) )
519  retSuccess = m_pageInfo.SetType( PAGE_INFO::E );
520 
521  if( retSuccess )
522  {
523  int choice = m_orientationComboBox->GetSelection();
524  m_pageInfo.SetPortrait( choice != 0 );
525  }
526  }
527 
528  if( !retSuccess )
529  {
530  wxASSERT_MSG( false, wxT( "the translation for paper size must preserve original spellings" ) );
532  }
533 
535 
536  m_tb.SetRevision( m_TextRevision->GetValue() );
537  m_tb.SetDate( m_TextDate->GetValue() );
538  m_tb.SetCompany( m_TextCompany->GetValue() );
539  m_tb.SetTitle( m_TextTitle->GetValue() );
540  m_tb.SetComment1( m_TextComment1->GetValue() );
541  m_tb.SetComment2( m_TextComment2->GetValue() );
542  m_tb.SetComment3( m_TextComment3->GetValue() );
543  m_tb.SetComment4( m_TextComment4->GetValue() );
544 
546 
547 
548 #ifdef EESCHEMA
549  // Exports settings to other sheets if requested:
550  SCH_SCREEN* screen;
551 
552  // Build the screen list
553  SCH_SCREENS ScreenList;
554 
555  // Update title blocks for all screens
556  for( screen = ScreenList.GetFirst(); screen != NULL; screen = ScreenList.GetNext() )
557  {
558  if( screen == m_screen )
559  continue;
560 
561  TITLE_BLOCK tb2 = screen->GetTitleBlock();
562 
563  if( m_RevisionExport->IsChecked() )
564  tb2.SetRevision( m_tb.GetRevision() );
565 
566  if( m_DateExport->IsChecked() )
567  tb2.SetDate( m_tb.GetDate() );
568 
569  if( m_TitleExport->IsChecked() )
570  tb2.SetTitle( m_tb.GetTitle() );
571 
572  if( m_CompanyExport->IsChecked() )
573  tb2.SetCompany( m_tb.GetCompany() );
574 
575  if( m_Comment1Export->IsChecked() )
576  tb2.SetComment1( m_tb.GetComment1() );
577 
578  if( m_Comment2Export->IsChecked() )
579  tb2.SetComment2( m_tb.GetComment2() );
580 
581  if( m_Comment3Export->IsChecked() )
582  tb2.SetComment3( m_tb.GetComment3() );
583 
584  if( m_Comment4Export->IsChecked() )
585  tb2.SetComment4( m_tb.GetComment4() );
586 
587  screen->SetTitleBlock( tb2 );
588  }
589 
590 #endif
591 
592  return true;
593 }
void SetComment1(const wxString &aComment)
virtual void SetPageSettings(const PAGE_INFO &aPageSettings)=0
static const wxChar A[]
SCH_SCREEN * GetNext()
const T & Clamp(const T &lower, const T &value, const T &upper)
Function Clamp limits value within the range lower <= value <= upper.
Definition: macros.h:127
const wxString & GetCompany() const
virtual void SetTitleBlock(const TITLE_BLOCK &aTitleBlock)=0
void SetRevision(const wxString &aRevision)
static const wxChar E[]
static const wxChar GERBER[]
TITLE_BLOCK m_tb
true if the page selection is custom
static const wxChar A3[]
static void SetCustomWidthMils(int aWidthInMils)
Function SetCustomWidthMils sets the width of Custom page in mils, for any custom page constructed or...
const wxString & GetComment4() const
void SetDate(const wxString &aDate)
Function SetDate sets the date field, and defaults to the current time and date.
const wxString & GetDate() const
static const wxChar Custom[]
"User" defined page type
static const wxChar D[]
const wxString GetWksFileName()
Class TITLE_BLOCK holds the information shown in the lower right corner of a plot, printout, or editing view.
wxSize m_layout_size
Temporary bitmap for the page layout example.
void SetComment4(const wxString &aComment)
static WORKSHEET_LAYOUT & GetTheInstance()
static function: returns the instance of WORKSHEET_LAYOUT used in the application ...
static wxString m_PageLayoutDescrFileName
the name of the page layout descr file, or emty to used the default pagelayout
const wxString & GetTitle() const
static const wxChar USLegal[]
static const wxChar B[]
static const wxChar C[]
const wxString & GetRevision() const
Definition: common.h:145
void SetCompany(const wxString &aCompany)
static const wxChar A4[]
const wxString & GetComment3() const
bool SetType(const wxString &aStandardPageDescriptionName, bool IsPortrait=false)
Function SetType sets the name of the page type and also the sizes and margins commonly associated wi...
void SetTitleBlock(const TITLE_BLOCK &aTitleBlock)
void SetTitle(const wxString &aTitle)
void SetPortrait(bool isPortrait)
Function SetPortrait will rotate the paper page 90 degrees.
void SetHeightMils(int aHeightInMils)
const TITLE_BLOCK & GetTitleBlock() const
static const wxChar USLedger[]
const wxString & GetComment2() const
WORKSHEET_LAYOUT handles the graphic items list to draw/plot the title block and other items (page re...
EDA_UNITS_T g_UserUnit
Global variables definitions.
Definition: common.cpp:56
static const wxChar A1[]
static const wxChar USLetter[]
void SetComment2(const wxString &aComment)
const wxString & GetComment1() const
PAGE_INFO m_pageInfo
Logical page layout size.
static const wxChar * GetChars(const wxString &s)
Function GetChars returns a wxChar* to the actual wxChar* data within a wxString, and is helpful for ...
Definition: macros.h:92
void Format(OUTPUTFORMATTER *out, int aNestLevel, int aCtl, CPTREE &aTree)
Function Format outputs a PTREE into s-expression format via an OUTPUTFORMATTER derivative.
Definition: ptree.cpp:205
#define MAX_PAGE_SIZE
static const wxString MakeFullFileName(const wxString &aShortFileName, const wxString &aProjectPath)
Static function.
void SetWidthMils(int aWidthInMils)
static const wxChar A2[]
SCH_SCREEN * GetFirst()
void SetComment3(const wxString &aComment)
#define MIN_PAGE_SIZE
Min and max page sizes for clamping.
static void SetCustomHeightMils(int aHeightInMils)
Function SetCustomHeightMils sets the height of Custom page in mils, for any custom page constructed ...
Class SCH_SCREENS is a container class that holds multiple SCH_SCREENs in a hierarchy.
void SetPageLayout(const wxString &aFullFileName=wxEmptyString, bool Append=false)
Populates the list with a custom layout, or the default layout, if no custom layout available...
static const wxChar A0[]
void DIALOG_PAGES_SETTINGS::SetCurrentPageSizeSelection ( const wxString &  aPaperSize)
private

Definition at line 596 of file dialog_page_settings.cpp.

References m_pageFmt, and DIALOG_PAGES_SETTINGS_BASE::m_paperSizeComboBox.

Referenced by initDialog().

597 {
598  // search all the not translated label list containing our paper type
599  for( unsigned i = 0; i < m_pageFmt.GetCount(); ++i )
600  {
601  // parse each label looking for aPaperSize within it
602  wxStringTokenizer st( m_pageFmt[i] );
603 
604  while( st.HasMoreTokens() )
605  {
606  if( st.GetNextToken() == aPaperSize )
607  {
608  m_paperSizeComboBox->SetSelection( i );
609  return;
610  }
611  }
612  }
613 }
void KIWAY_HOLDER::SetKiway ( wxWindow *  aDest,
KIWAY aKiway 
)
inherited

Function SetKiway.

Parameters
aDestis the recipient of aKiway pointer. It is only used for debugging, since "this" is not a wxWindow*. "this" is a KIWAY_HOLDER mix-in.
aKiwayis often from a parent window, or from KIFACE::CreateWindow().

Definition at line 41 of file kiway_holder.cpp.

References KIWAY_HOLDER::m_kiway, and name.

Referenced by DIALOG_SHIM::DIALOG_SHIM(), and SIM_PLOT_FRAME::SIM_PLOT_FRAME().

42 {
43 #if defined(DEBUG)
44  // offer a trap point for debugging most any window
45  wxASSERT( aDest );
46  if( !strcmp( typeid(aDest).name(), "DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB" ) )
47  {
48  int breakhere=1;
49  (void) breakhere;
50  }
51 #endif
52 
53  (void) aDest;
54 
55  m_kiway = aKiway;
56 }
KIWAY * m_kiway
Definition: kiway_player.h:85
const char * name
void DIALOG_PAGES_SETTINGS::SetWksFileName ( const wxString &  aFilename)
inline
bool DIALOG_SHIM::Show ( bool  show)
overrideinherited

Definition at line 139 of file dialog_shim.cpp.

References class_map, DIALOG_SHIM::FixOSXCancelButtonIssue(), EDA_RECT::GetPosition(), EDA_RECT::GetSize(), DIALOG_SHIM::m_hash_key, wxPoint::x, and wxPoint::y.

Referenced by DisplayHotkeyList(), DIALOG_SHIM::EndQuasiModal(), InvokeDialogERC(), DIALOG_ANNOTATE::OnApplyClick(), DIALOG_SCH_FIND::OnCancel(), DIALOG_ANNOTATE::OnCancelClick(), DIALOG_DRC_CONTROL::OnLeftDClickClearance(), DIALOG_DRC_CONTROL::OnLeftDClickUnconnected(), DIALOG_DRC_CONTROL::OnPopupMenu(), DIALOG_EXCHANGE_MODULE::OnQuit(), POSITION_RELATIVE_TOOL::PositionRelative(), CVPCB_MAINFRAME::ReadNetListAndFpFiles(), DRC::ShowDRCDialog(), and DIALOG_SHIM::ShowQuasiModal().

140 {
141  bool ret;
142  const char* hash_key;
143 
144  if( m_hash_key.size() )
145  {
146  // a special case like EDA_LIST_DIALOG, which has multiple uses.
147  hash_key = m_hash_key.c_str();
148  }
149  else
150  {
151  hash_key = typeid(*this).name();
152  }
153 
154  // Show or hide the window. If hiding, save current position and size.
155  // If showing, use previous position and size.
156  if( show )
157  {
158  wxDialog::Raise(); // Needed on OS X and some other window managers (i.e. Unity)
159  ret = wxDialog::Show( show );
160 
161  // classname is key, returns a zeroed out default EDA_RECT if none existed before.
162  EDA_RECT r = class_map[ hash_key ];
163 
164  if( r.GetSize().x != 0 && r.GetSize().y != 0 )
165  SetSize( r.GetPosition().x, r.GetPosition().y, r.GetSize().x, r.GetSize().y, 0 );
166  }
167  else
168  {
169  // Save the dialog's position & size before hiding, using classname as key
170  EDA_RECT r( wxDialog::GetPosition(), wxDialog::GetSize() );
171  class_map[ hash_key ] = r;
172 
173  ret = wxDialog::Show( show );
174  }
175 
177 
178  return ret;
179 }
std::string m_hash_key
Definition: dialog_shim.h:128
void FixOSXCancelButtonIssue()
A ugly hack to fix an issue on OSX: when typing ctrl+c in a wxTextCtrl inside a dialog, it is closed instead of copying a text if a button with wxID_CANCEL is used in a wxStdDialogButtonSizer, when the dlg is created by wxFormBuilder: the label is &Cancel, and this accelerator key has priority to copy text standard accelerator, and the dlg is closed when trying to copy text this function do nothing on other platforms.
static RECT_MAP class_map
const wxPoint & GetPosition() const
Class EDA_RECT handles the component boundary box.
const wxSize & GetSize() const
int DIALOG_SHIM::ShowQuasiModal ( )
inherited

Definition at line 495 of file dialog_shim.cpp.

References DBG, DIALOG_SHIM::m_qmodal_loop, DIALOG_SHIM::m_qmodal_parent_disabler, DIALOG_SHIM::m_qmodal_showing, and DIALOG_SHIM::Show().

Referenced by LIB_EDIT_FRAME::DeleteOnePart(), SCH_EDIT_FRAME::EditComponent(), SCH_EDIT_FRAME::EditComponentFieldText(), LIB_EDIT_FRAME::EditField(), EDIT_TOOL::ExchangeFootprints(), PCB_EDIT_FRAME::InstallExchangeModuleFrame(), LIB_EDIT_FRAME::InstallFieldsEditorDialog(), SCH_EDIT_FRAME::InstallHierarchyFrame(), InvokeDialogCreateBOMEditor(), LIB_VIEW_FRAME::OnSelectSymbol(), and SCH_BASE_FRAME::SelectComponentFromLibrary().

496 {
497  // This is an exception safe way to zero a pointer before returning.
498  // Yes, even though DismissModal() clears this first normally, this is
499  // here in case there's an exception before the dialog is dismissed.
500  struct NULLER
501  {
502  void*& m_what;
503  NULLER( void*& aPtr ) : m_what( aPtr ) {}
504  ~NULLER() { m_what = 0; } // indeed, set it to NULL on destruction
505  } clear_this( (void*&) m_qmodal_loop );
506 
507  // release the mouse if it's currently captured as the window having it
508  // will be disabled when this dialog is shown -- but will still keep the
509  // capture making it impossible to do anything in the modal dialog itself
510  wxWindow* win = wxWindow::GetCapture();
511  if( win )
512  win->ReleaseMouse();
513 
514  // Get the optimal parent
515  wxWindow* parent = GetParentForModalDialog( GetParent(), GetWindowStyle() );
516 
517  // Show the optimal parent
518  DBG( if( parent ) printf( "%s: optimal parent: %s\n", __func__, typeid(*parent).name() );)
519 
520  wxASSERT_MSG( !m_qmodal_parent_disabler,
521  wxT( "Caller using ShowQuasiModal() twice on same window?" ) );
522 
523  // quasi-modal: disable only my "optimal" parent
525 
526  Show( true );
527 
528  m_qmodal_showing = true;
529 
530  EVENT_LOOP event_loop;
531 
532  m_qmodal_loop = &event_loop;
533 
534  event_loop.Run();
535 
536  return GetReturnCode();
537 }
bool m_qmodal_showing
Definition: dialog_shim.h:132
EVENT_LOOP * m_qmodal_loop
Definition: dialog_shim.h:131
bool Show(bool show) override
WDO_ENABLE_DISABLE * m_qmodal_parent_disabler
Definition: dialog_shim.h:133
Toggle a window's "enable" status to disabled, then enabled on destruction.
Definition: dialog_shim.cpp:33
#define DBG(x)
Definition: fctsys.h:33
void DIALOG_PAGES_SETTINGS::UpdatePageLayoutExample ( )
private

Definition at line 616 of file dialog_page_settings.cpp.

References Clamp(), DARKGRAY, DrawPageLayout(), GRResetPenAndBrush(), KiROUND(), m_customFmt, m_layout_size, BASE_SCREEN::m_NumberOfScreens, m_page_bitmap, m_pageFmt, m_pagelayout, DIALOG_PAGES_SETTINGS_BASE::m_PageLayoutExampleBitmap, DIALOG_PAGES_SETTINGS_BASE::m_paperSizeComboBox, m_screen, BASE_SCREEN::m_ScreenNumber, m_tb, MAX_PAGE_EXAMPLE_SIZE, MAX_PAGE_SIZE, BASE_SCREEN::MilsToIuScalar(), MIN_PAGE_SIZE, RED, Refresh(), WORKSHEET_LAYOUT::SetAltInstance(), PAGE_INFO::SetHeightMils(), PAGE_INFO::SetType(), and PAGE_INFO::SetWidthMils().

Referenced by initDialog(), OnComment1TextUpdated(), OnComment2TextUpdated(), OnComment3TextUpdated(), OnComment4TextUpdated(), OnCompanyTextUpdated(), OnDateTextUpdated(), OnPageOrientationChoice(), OnPaperSizeChoice(), OnRevisionTextUpdated(), OnTitleTextUpdated(), OnUserPageSizeXTextUpdated(), OnUserPageSizeYTextUpdated(), and OnWksFileSelection().

617 {
618  int lyWidth, lyHeight;
619 
620  wxSize clamped_layout_size( Clamp( MIN_PAGE_SIZE, m_layout_size.x, MAX_PAGE_SIZE ),
622 
623  double lyRatio = clamped_layout_size.x < clamped_layout_size.y ?
624  (double) clamped_layout_size.y / clamped_layout_size.x :
625  (double) clamped_layout_size.x / clamped_layout_size.y;
626 
627  if( clamped_layout_size.x < clamped_layout_size.y )
628  {
629  lyHeight = MAX_PAGE_EXAMPLE_SIZE;
630  lyWidth = KiROUND( (double) lyHeight / lyRatio );
631  }
632  else
633  {
634  lyWidth = MAX_PAGE_EXAMPLE_SIZE;
635  lyHeight = KiROUND( (double) lyWidth / lyRatio );
636  }
637 
638  if( m_page_bitmap )
639  {
640  m_PageLayoutExampleBitmap->SetBitmap( wxNullBitmap );
641  delete m_page_bitmap;
642  }
643 
644  m_page_bitmap = new wxBitmap( lyWidth + 1, lyHeight + 1 );
645 
646  if( m_page_bitmap->IsOk() )
647  {
648  // Calculate layout preview scale.
649  int appScale = m_screen->MilsToIuScalar();
650 
651  double scaleW = (double) lyWidth / clamped_layout_size.x / appScale;
652  double scaleH = (double) lyHeight / clamped_layout_size.y / appScale;
653 
654  // Prepare DC.
655  wxSize example_size( lyWidth + 1, lyHeight + 1 );
656  wxMemoryDC memDC;
657  memDC.SelectObject( *m_page_bitmap );
658  memDC.SetClippingRegion( wxPoint( 0, 0 ), example_size );
659  memDC.Clear();
660  memDC.SetUserScale( scaleW, scaleH );
661 
662  // Get logical page size and margins.
663  PAGE_INFO pageDUMMY;
664 
665  // Get page type
666  int idx = m_paperSizeComboBox->GetSelection();
667 
668  if( idx < 0 )
669  idx = 0;
670 
671  wxString pageFmtName = m_pageFmt[idx].BeforeFirst( ' ' );
672  bool portrait = clamped_layout_size.x < clamped_layout_size.y;
673  pageDUMMY.SetType( pageFmtName, portrait );
674  if( m_customFmt )
675  {
676  pageDUMMY.SetWidthMils( clamped_layout_size.x );
677  pageDUMMY.SetHeightMils( clamped_layout_size.y );
678  }
679 
680  // Draw layout preview.
681  wxString emptyString;
682  GRResetPenAndBrush( &memDC );
683 
685  DrawPageLayout( &memDC, NULL, pageDUMMY,
686  emptyString, emptyString,
688  m_screen->m_ScreenNumber, 1, appScale, DARKGRAY, RED );
689 
690  memDC.SelectObject( wxNullBitmap );
693 
694  // Refresh the dialog.
695  Layout();
696  Refresh();
697  }
698 }
void GRResetPenAndBrush(wxDC *DC)
Definition: gr_basic.cpp:196
#define MAX_PAGE_EXAMPLE_SIZE
const T & Clamp(const T &lower, const T &value, const T &upper)
Function Clamp limits value within the range lower <= value <= upper.
Definition: macros.h:127
static int KiROUND(double v)
KiROUND rounds a floating point number to an int using "round halfway cases away from zero"...
Definition: common.h:107
TITLE_BLOCK m_tb
true if the page selection is custom
wxSize m_layout_size
Temporary bitmap for the page layout example.
wxBitmap * m_page_bitmap
the page layuout filename was changed
void Refresh()
Update the board display after modifying it bu a python script (note: it is automatically called by a...
Class PAGE_INFO describes the page size and margins of a paper page on which to eventually print or p...
Definition: colors.h:60
bool SetType(const wxString &aStandardPageDescriptionName, bool IsPortrait=false)
Function SetType sets the name of the page type and also the sizes and margins commonly associated wi...
virtual int MilsToIuScalar()
Function MilsToIuScalar returns the scalar required to convert mils to internal units.
void SetHeightMils(int aHeightInMils)
void DrawPageLayout(wxDC *aDC, EDA_RECT *aClipBox, const PAGE_INFO &aPageInfo, const wxString &aFullSheetName, const wxString &aFileName, TITLE_BLOCK &aTitleBlock, int aSheetCount, int aSheetNumber, int aPenWidth, double aScalar, COLOR4D aColor, COLOR4D aAltColor, const wxString &aSheetLayer)
Function DrawPageLayout is a core function to draw the page layout with the frame and the basic inscr...
Definition: worksheet.cpp:49
#define MAX_PAGE_SIZE
WORKSHEET_LAYOUT * m_pagelayout
Temporary title block (basic inscriptions).
void SetWidthMils(int aWidthInMils)
bool m_customFmt
Temporary page info.
#define MIN_PAGE_SIZE
Min and max page sizes for clamping.
static void SetAltInstance(WORKSHEET_LAYOUT *aLayout=NULL)
static function: Set an alternate instance of WORKSHEET_LAYOUT mainly used in page setting dialog ...

Member Data Documentation

wxButton* DIALOG_PAGES_SETTINGS_BASE::m_ApplyDate
protectedinherited
wxButton* DIALOG_PAGES_SETTINGS_BASE::m_buttonBrowse
protectedinherited
wxCheckBox* DIALOG_PAGES_SETTINGS_BASE::m_Comment1Export
protectedinherited
wxCheckBox* DIALOG_PAGES_SETTINGS_BASE::m_Comment2Export
protectedinherited
wxCheckBox* DIALOG_PAGES_SETTINGS_BASE::m_Comment3Export
protectedinherited
wxCheckBox* DIALOG_PAGES_SETTINGS_BASE::m_Comment4Export
protectedinherited
wxCheckBox* DIALOG_PAGES_SETTINGS_BASE::m_CompanyExport
protectedinherited
bool DIALOG_PAGES_SETTINGS::m_customFmt
private

Temporary page info.

Definition at line 47 of file dialog_page_settings.h.

Referenced by DIALOG_PAGES_SETTINGS(), initDialog(), OnPaperSizeChoice(), and UpdatePageLayoutExample().

wxCheckBox* DIALOG_PAGES_SETTINGS_BASE::m_DateExport
protectedinherited
std::string DIALOG_SHIM::m_hash_key
protectedinherited
wxSize DIALOG_PAGES_SETTINGS::m_layout_size
private

Temporary bitmap for the page layout example.

Definition at line 45 of file dialog_page_settings.h.

Referenced by GetCustomSizeMilsFromDialog(), GetPageLayoutInfoFromDialog(), SavePageSettings(), and UpdatePageLayoutExample().

bool DIALOG_PAGES_SETTINGS::m_localPrjConfigChanged
private
wxBitmap* DIALOG_PAGES_SETTINGS::m_page_bitmap
private

the page layuout filename was changed

Definition at line 44 of file dialog_page_settings.h.

Referenced by DIALOG_PAGES_SETTINGS(), UpdatePageLayoutExample(), and ~DIALOG_PAGES_SETTINGS().

wxArrayString DIALOG_PAGES_SETTINGS::m_pageFmt
private
PAGE_INFO DIALOG_PAGES_SETTINGS::m_pageInfo
private

Logical page layout size.

Definition at line 46 of file dialog_page_settings.h.

Referenced by initDialog(), and SavePageSettings().

WORKSHEET_LAYOUT* DIALOG_PAGES_SETTINGS::m_pagelayout
private

Temporary title block (basic inscriptions).

Definition at line 49 of file dialog_page_settings.h.

Referenced by DIALOG_PAGES_SETTINGS(), OnWksFileSelection(), UpdatePageLayoutExample(), and ~DIALOG_PAGES_SETTINGS().

wxStaticBitmap* DIALOG_PAGES_SETTINGS_BASE::m_PageLayoutExampleBitmap
protectedinherited
EDA_DRAW_FRAME* DIALOG_PAGES_SETTINGS::m_parent
private
wxDatePickerCtrl* DIALOG_PAGES_SETTINGS_BASE::m_PickDate
protectedinherited
wxString DIALOG_PAGES_SETTINGS::m_projectPath
private
EVENT_LOOP* DIALOG_SHIM::m_qmodal_loop
protectedinherited

Definition at line 131 of file dialog_shim.h.

Referenced by DIALOG_SHIM::EndQuasiModal(), and DIALOG_SHIM::ShowQuasiModal().

WDO_ENABLE_DISABLE* DIALOG_SHIM::m_qmodal_parent_disabler
protectedinherited
bool DIALOG_SHIM::m_qmodal_showing
protectedinherited
wxCheckBox* DIALOG_PAGES_SETTINGS_BASE::m_RevisionExport
protectedinherited
BASE_SCREEN* DIALOG_PAGES_SETTINGS::m_screen
private
wxStdDialogButtonSizer* DIALOG_PAGES_SETTINGS_BASE::m_sdbSizer
protectedinherited
wxButton* DIALOG_PAGES_SETTINGS_BASE::m_sdbSizerCancel
protectedinherited
wxButton* DIALOG_PAGES_SETTINGS_BASE::m_sdbSizerOK
protectedinherited
wxStaticLine* DIALOG_PAGES_SETTINGS_BASE::m_staticline1
protectedinherited
wxStaticLine* DIALOG_PAGES_SETTINGS_BASE::m_staticline2
protectedinherited
wxStaticLine* DIALOG_PAGES_SETTINGS_BASE::m_staticline3
protectedinherited
wxStaticText* DIALOG_PAGES_SETTINGS_BASE::m_staticText13
protectedinherited
wxStaticText* DIALOG_PAGES_SETTINGS_BASE::m_staticTextComment1
protectedinherited
wxStaticText* DIALOG_PAGES_SETTINGS_BASE::m_staticTextComment2
protectedinherited
wxStaticText* DIALOG_PAGES_SETTINGS_BASE::m_staticTextComment3
protectedinherited
wxStaticText* DIALOG_PAGES_SETTINGS_BASE::m_staticTextComment4
protectedinherited
wxStaticText* DIALOG_PAGES_SETTINGS_BASE::m_staticTextCustSize
protectedinherited
wxStaticText* DIALOG_PAGES_SETTINGS_BASE::m_staticTextDate
protectedinherited
wxStaticText* DIALOG_PAGES_SETTINGS_BASE::m_staticTextfilename
protectedinherited
wxStaticText* DIALOG_PAGES_SETTINGS_BASE::m_staticTextHeight
protectedinherited
wxStaticText* DIALOG_PAGES_SETTINGS_BASE::m_staticTextOrient
protectedinherited
wxStaticText* DIALOG_PAGES_SETTINGS_BASE::m_staticTextPaper
protectedinherited
wxStaticText* DIALOG_PAGES_SETTINGS_BASE::m_staticTextPreview
protectedinherited
wxStaticText* DIALOG_PAGES_SETTINGS_BASE::m_staticTextRev
protectedinherited
wxStaticText* DIALOG_PAGES_SETTINGS_BASE::m_staticTextSize
protectedinherited
wxStaticText* DIALOG_PAGES_SETTINGS_BASE::m_staticTexttbprm
protectedinherited
wxStaticText* DIALOG_PAGES_SETTINGS_BASE::m_staticTextTitle
protectedinherited
wxStaticText* DIALOG_PAGES_SETTINGS_BASE::m_staticTextWidth
protectedinherited
wxTextCtrl* DIALOG_PAGES_SETTINGS_BASE::m_TextComment1
protectedinherited
wxTextCtrl* DIALOG_PAGES_SETTINGS_BASE::m_TextComment2
protectedinherited
wxTextCtrl* DIALOG_PAGES_SETTINGS_BASE::m_TextComment3
protectedinherited
wxTextCtrl* DIALOG_PAGES_SETTINGS_BASE::m_TextComment4
protectedinherited
wxTextCtrl* DIALOG_PAGES_SETTINGS_BASE::m_TextCompany
protectedinherited
wxTextCtrl* DIALOG_PAGES_SETTINGS_BASE::m_textCtrlFilePicker
protectedinherited
wxTextCtrl* DIALOG_PAGES_SETTINGS_BASE::m_TextRevision
protectedinherited
wxStaticText* DIALOG_PAGES_SETTINGS_BASE::m_TextSheetCount
protectedinherited
wxStaticText* DIALOG_PAGES_SETTINGS_BASE::m_TextSheetNumber
protectedinherited
wxTextCtrl* DIALOG_PAGES_SETTINGS_BASE::m_TextTitle
protectedinherited
wxCheckBox* DIALOG_PAGES_SETTINGS_BASE::m_TitleExport
protectedinherited

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