21 changed files with 6284 additions and 5733 deletions
-
9common/common_plot_functions.cpp
-
21common/dialogs/dialog_page_settings.cpp
-
142common/title_block_shapes.h
-
212common/title_block_shapes_gost.h
-
160common/worksheet.cpp
-
427common/worksheet_shape_builder.h
-
6eeschema/dialogs/dialog_eeschema_config.cpp
-
10eeschema/dialogs/dialog_eeschema_options.cpp
-
2eeschema/dialogs/dialog_eeschema_options.h
-
658eeschema/dialogs/dialog_eeschema_options_base.cpp
-
10013eeschema/dialogs/dialog_eeschema_options_base.fbp
-
260eeschema/dialogs/dialog_eeschema_options_base.h
-
2eeschema/dialogs/dialog_print_using_printer.cpp
-
2eeschema/eeredraw.cpp
-
4eeschema/eeschema_config.cpp
-
4eeschema/schframe.cpp
-
4gerbview/draw_gerber_screen.cpp
-
41include/worksheet.h
-
34include/wxstruct.h
-
2pcbnew/printout_controler.cpp
-
4pcbnew/tracepcb.cpp
@ -1,195 +1,232 @@ |
|||
/** |
|||
* @file worksheet_shape_builder.h |
|||
* @brief classes and function to generate graphics to plt or draw titles blocks |
|||
* and frame references |
|||
*/ |
|||
|
|||
#ifndef WORKSHEET_SHAPE_BUILDER_H |
|||
#define WORKSHEET_SHAPE_BUILDER_H |
|||
|
|||
|
|||
/* |
|||
* Helper classes to handle basic graphic items used to raw/plot |
|||
* title blocks and frame references |
|||
* segments |
|||
* rect |
|||
* polygons (for logos) |
|||
* graphic texts |
|||
*/ |
|||
class WS_DRAW_ITEM_BASE // This basic class, not directly usable. |
|||
{ |
|||
public: |
|||
enum WS_DRAW_TYPE { |
|||
wsg_line, wsg_rect, wsg_poly, wsg_text |
|||
}; |
|||
protected: |
|||
WS_DRAW_TYPE m_type; // wsg_line, wsg_rect, wsg_poly, wsg_text |
|||
EDA_COLOR_T m_color; |
|||
protected: |
|||
WS_DRAW_ITEM_BASE( WS_DRAW_TYPE aType, EDA_COLOR_T aColor ) |
|||
{ |
|||
m_type = aType; |
|||
m_color = aColor; |
|||
} |
|||
|
|||
public: |
|||
virtual ~WS_DRAW_ITEM_BASE() {} |
|||
|
|||
// Accessors: |
|||
EDA_COLOR_T GetColor() { return m_color; } |
|||
WS_DRAW_TYPE GetType() { return m_type; }; |
|||
}; |
|||
|
|||
// This class draws a thick segment |
|||
class WS_DRAW_ITEM_LINE : public WS_DRAW_ITEM_BASE |
|||
{ |
|||
wxPoint m_start; // start point of line/rect |
|||
wxPoint m_end; // end point |
|||
int m_penWidth; |
|||
public: |
|||
WS_DRAW_ITEM_LINE( wxPoint aStart, wxPoint aEnd, |
|||
int aPenWidth, EDA_COLOR_T aColor ) : |
|||
WS_DRAW_ITEM_BASE( wsg_line, aColor ) |
|||
{ |
|||
m_start = aStart; |
|||
m_end = aEnd; |
|||
m_penWidth = aPenWidth; |
|||
} |
|||
|
|||
// Accessors: |
|||
int GetPenWidth() { return m_penWidth; } |
|||
const wxPoint& GetStart() { return m_start; } |
|||
const wxPoint& GetEnd() { return m_end; } |
|||
}; |
|||
|
|||
// This class draws a polygon |
|||
class WS_DRAW_ITEM_POLYGON : public WS_DRAW_ITEM_BASE |
|||
{ |
|||
int m_penWidth; |
|||
public: |
|||
std::vector <wxPoint> m_Corners; |
|||
public: |
|||
WS_DRAW_ITEM_POLYGON( wxPoint aStart, wxPoint aEnd, |
|||
int aPenWidth, EDA_COLOR_T aColor ) : |
|||
WS_DRAW_ITEM_BASE( wsg_poly, aColor ) |
|||
{ |
|||
m_penWidth = aPenWidth; |
|||
} |
|||
|
|||
// Accessors: |
|||
int GetPenWidth() { return m_penWidth; } |
|||
}; |
|||
|
|||
// This class draws a not filled rectangle with thick segment |
|||
class WS_DRAW_ITEM_RECT : public WS_DRAW_ITEM_LINE |
|||
{ |
|||
public: |
|||
WS_DRAW_ITEM_RECT( wxPoint aStart, wxPoint aEnd, |
|||
int aPenWidth, EDA_COLOR_T aColor ) : |
|||
WS_DRAW_ITEM_LINE( aStart, aEnd, aPenWidth, aColor ) |
|||
{ |
|||
m_type = wsg_rect; |
|||
} |
|||
}; |
|||
|
|||
// This class draws a graphic text. |
|||
// it is derived from an EDA_TEXT, so it handle all caracteristics |
|||
// of this graphic text (justification, rotation ... ) |
|||
class WS_DRAW_ITEM_TEXT : public WS_DRAW_ITEM_BASE, public EDA_TEXT |
|||
{ |
|||
public: |
|||
WS_DRAW_ITEM_TEXT( wxString& aText, wxPoint aPos, wxSize aSize, |
|||
int aPenWidth, EDA_COLOR_T aColor, |
|||
bool aItalic = false, bool aBold = false ) : |
|||
WS_DRAW_ITEM_BASE( wsg_text, aColor ), EDA_TEXT( aText ) |
|||
{ |
|||
SetTextPosition( aPos ); |
|||
SetSize( aSize ); |
|||
SetThickness( aPenWidth ); |
|||
SetItalic( aItalic ); |
|||
SetBold( aBold ); |
|||
} |
|||
|
|||
// Accessors: |
|||
int GetPenWidth() { return GetThickness(); } |
|||
}; |
|||
|
|||
/* |
|||
* this class stores the list of graphic items to draw/plot |
|||
* the title block and frame references |
|||
*/ |
|||
class WS_DRAW_ITEM_LIST |
|||
{ |
|||
std::vector <WS_DRAW_ITEM_BASE*> m_graphicList; |
|||
unsigned m_idx; |
|||
|
|||
public: |
|||
WS_DRAW_ITEM_LIST() |
|||
{ |
|||
m_idx = 0; |
|||
} |
|||
|
|||
~WS_DRAW_ITEM_LIST() |
|||
{ |
|||
for( unsigned ii = 0; ii < m_graphicList.size(); ii++ ) |
|||
delete m_graphicList[ii]; |
|||
} |
|||
|
|||
void Append( WS_DRAW_ITEM_BASE* aItem ) |
|||
{ |
|||
m_graphicList.push_back( aItem ); |
|||
} |
|||
|
|||
WS_DRAW_ITEM_BASE* GetFirst() |
|||
{ |
|||
m_idx = 0; |
|||
|
|||
if( m_graphicList.size() ) |
|||
return m_graphicList[0]; |
|||
else |
|||
return NULL; |
|||
} |
|||
|
|||
WS_DRAW_ITEM_BASE* GetNext() |
|||
{ |
|||
m_idx++; |
|||
|
|||
if( m_graphicList.size() > m_idx ) |
|||
return m_graphicList[m_idx]; |
|||
else |
|||
return NULL; |
|||
} |
|||
|
|||
/** |
|||
* Function BuildWorkSheetGraphicList is a core function for |
|||
* drawing or plotting the page layout with |
|||
* the frame and the basic inscriptions. |
|||
* It fills the list of basic graphic items to draw or plot. |
|||
* currently lines, rect, polygons and texts |
|||
* |
|||
* @param aPageSize The size of the page layout. |
|||
* @param aLTmargin The left top margin of the page layout. |
|||
* @param aRBmargin The right bottom margin of the page layout. |
|||
* @param aPaperFormat The paper size type, for basic inscriptions. |
|||
* @param aFileName The file name, for basic inscriptions. |
|||
* @param aTitleBlock The sheet title block, for basic inscriptions. |
|||
* @param aSheetCount The number of sheets (for basic inscriptions). |
|||
* @param aSheetNumber The sheet number (for basic inscriptions). |
|||
* @param aPenWidth The line width for drawing. |
|||
* @param aScalar Scalar to convert from mils to internal units. |
|||
* @param aLineColor The color for drawing. |
|||
* @param aTextColor The color for inscriptions. |
|||
*/ |
|||
void BuildWorkSheetGraphicList( wxSize& aPageSize, |
|||
wxPoint& aLTmargin, wxPoint& aRBmargin, |
|||
const wxString& aPaperFormat, |
|||
const wxString& aFileName, |
|||
const wxString& aSheetPathHumanReadable, |
|||
const TITLE_BLOCK& aTitleBlock, |
|||
int aSheetCount, int aSheetNumber, |
|||
int aPenWidth, double aScalar, |
|||
EDA_COLOR_T aLineColor, EDA_COLOR_T aTextColor ); |
|||
}; |
|||
|
|||
|
|||
#endif // WORKSHEET_SHAPE_BUILDER_H |
|||
/** |
|||
* @file worksheet_shape_builder.h |
|||
* @brief classes and function to generate graphics to plt or draw titles blocks |
|||
* and frame references |
|||
*/ |
|||
|
|||
#ifndef WORKSHEET_SHAPE_BUILDER_H |
|||
#define WORKSHEET_SHAPE_BUILDER_H |
|||
|
|||
|
|||
/* |
|||
* Helper classes to handle basic graphic items used to raw/plot |
|||
* title blocks and frame references |
|||
* segments |
|||
* rect |
|||
* polygons (for logos) |
|||
* graphic texts |
|||
*/ |
|||
class WS_DRAW_ITEM_BASE // This basic class, not directly usable. |
|||
{ |
|||
public: |
|||
enum WS_DRAW_TYPE { |
|||
wsg_line, wsg_rect, wsg_poly, wsg_text |
|||
}; |
|||
protected: |
|||
WS_DRAW_TYPE m_type; // wsg_line, wsg_rect, wsg_poly, wsg_text |
|||
EDA_COLOR_T m_color; |
|||
protected: |
|||
WS_DRAW_ITEM_BASE( WS_DRAW_TYPE aType, EDA_COLOR_T aColor ) |
|||
{ |
|||
m_type = aType; |
|||
m_color = aColor; |
|||
} |
|||
|
|||
public: |
|||
virtual ~WS_DRAW_ITEM_BASE() {} |
|||
|
|||
// Accessors: |
|||
EDA_COLOR_T GetColor() { return m_color; } |
|||
WS_DRAW_TYPE GetType() { return m_type; }; |
|||
}; |
|||
|
|||
// This class draws a thick segment |
|||
class WS_DRAW_ITEM_LINE : public WS_DRAW_ITEM_BASE |
|||
{ |
|||
wxPoint m_start; // start point of line/rect |
|||
wxPoint m_end; // end point |
|||
int m_penWidth; |
|||
public: |
|||
WS_DRAW_ITEM_LINE( wxPoint aStart, wxPoint aEnd, |
|||
int aPenWidth, EDA_COLOR_T aColor ) : |
|||
WS_DRAW_ITEM_BASE( wsg_line, aColor ) |
|||
{ |
|||
m_start = aStart; |
|||
m_end = aEnd; |
|||
m_penWidth = aPenWidth; |
|||
} |
|||
|
|||
// Accessors: |
|||
int GetPenWidth() { return m_penWidth; } |
|||
const wxPoint& GetStart() { return m_start; } |
|||
const wxPoint& GetEnd() { return m_end; } |
|||
}; |
|||
|
|||
// This class draws a polygon |
|||
class WS_DRAW_ITEM_POLYGON : public WS_DRAW_ITEM_BASE |
|||
{ |
|||
int m_penWidth; |
|||
public: |
|||
std::vector <wxPoint> m_Corners; |
|||
public: |
|||
WS_DRAW_ITEM_POLYGON( wxPoint aStart, wxPoint aEnd, |
|||
int aPenWidth, EDA_COLOR_T aColor ) : |
|||
WS_DRAW_ITEM_BASE( wsg_poly, aColor ) |
|||
{ |
|||
m_penWidth = aPenWidth; |
|||
} |
|||
|
|||
// Accessors: |
|||
int GetPenWidth() { return m_penWidth; } |
|||
}; |
|||
|
|||
// This class draws a not filled rectangle with thick segment |
|||
class WS_DRAW_ITEM_RECT : public WS_DRAW_ITEM_LINE |
|||
{ |
|||
public: |
|||
WS_DRAW_ITEM_RECT( wxPoint aStart, wxPoint aEnd, |
|||
int aPenWidth, EDA_COLOR_T aColor ) : |
|||
WS_DRAW_ITEM_LINE( aStart, aEnd, aPenWidth, aColor ) |
|||
{ |
|||
m_type = wsg_rect; |
|||
} |
|||
}; |
|||
|
|||
// This class draws a graphic text. |
|||
// it is derived from an EDA_TEXT, so it handle all caracteristics |
|||
// of this graphic text (justification, rotation ... ) |
|||
class WS_DRAW_ITEM_TEXT : public WS_DRAW_ITEM_BASE, public EDA_TEXT |
|||
{ |
|||
public: |
|||
WS_DRAW_ITEM_TEXT( wxString& aText, wxPoint aPos, wxSize aSize, |
|||
int aPenWidth, EDA_COLOR_T aColor, |
|||
bool aItalic = false, bool aBold = false ) : |
|||
WS_DRAW_ITEM_BASE( wsg_text, aColor ), EDA_TEXT( aText ) |
|||
{ |
|||
SetTextPosition( aPos ); |
|||
SetSize( aSize ); |
|||
SetThickness( aPenWidth ); |
|||
SetItalic( aItalic ); |
|||
SetBold( aBold ); |
|||
} |
|||
|
|||
// Accessors: |
|||
int GetPenWidth() { return GetThickness(); } |
|||
}; |
|||
|
|||
/* |
|||
* this class stores the list of graphic items to draw/plot |
|||
* the title block and frame references |
|||
*/ |
|||
class WS_DRAW_ITEM_LIST |
|||
{ |
|||
std::vector <WS_DRAW_ITEM_BASE*> m_graphicList; // Items to draw/plot |
|||
unsigned m_idx; // for GetFirst, GetNext functions |
|||
wxPoint m_LTmargin; // The left top margin in mils of the page layout. |
|||
wxPoint m_RBmargin; // The right bottom margin in mils of the page layout. |
|||
wxSize m_pageSize; // the page size in mils |
|||
double m_milsToIu; // the scalar to convert pages units ( mils) |
|||
// to draw/plot units. |
|||
int m_penSize; // The line width for drawings. |
|||
|
|||
public: |
|||
WS_DRAW_ITEM_LIST() |
|||
{ |
|||
m_idx = 0; |
|||
} |
|||
|
|||
~WS_DRAW_ITEM_LIST() |
|||
{ |
|||
for( unsigned ii = 0; ii < m_graphicList.size(); ii++ ) |
|||
delete m_graphicList[ii]; |
|||
} |
|||
|
|||
/* Function SetPenSize |
|||
* Set the defualt pen size to draw/plot lines and texts |
|||
* @param aPenSize the thickness of lines |
|||
*/ |
|||
void SetPenSize( int aPenSize ) |
|||
{ |
|||
m_penSize = aPenSize; |
|||
} |
|||
|
|||
/* Function SetMilsToIUfactor |
|||
* Set the scalar to convert pages units ( mils) to draw/plot units |
|||
* @param aScale the conversion factor |
|||
*/ |
|||
void SetMilsToIUfactor( double aScale ) |
|||
{ |
|||
m_milsToIu = aScale; |
|||
} |
|||
|
|||
/* Function SetPageSize |
|||
* Set the size of the page layout |
|||
* @param aPageSize size (in mils) of the page layout. |
|||
*/ |
|||
void SetPageSize( const wxSize& aPageSize ) |
|||
{ |
|||
m_pageSize = aPageSize; |
|||
} |
|||
|
|||
/* Function SetMargins |
|||
* Set the The left top margin and the right bottom margin |
|||
* of the page layout |
|||
* @param aLTmargin The left top margin of the page layout. |
|||
* @param aRBmargin The right bottom margin of the page layout. |
|||
*/ |
|||
void SetMargins( const wxPoint& aLTmargin, const wxPoint& aRBmargin ) |
|||
{ |
|||
m_LTmargin = aLTmargin; |
|||
m_RBmargin = aRBmargin; |
|||
} |
|||
|
|||
void Append( WS_DRAW_ITEM_BASE* aItem ) |
|||
{ |
|||
m_graphicList.push_back( aItem ); |
|||
} |
|||
|
|||
WS_DRAW_ITEM_BASE* GetFirst() |
|||
{ |
|||
m_idx = 0; |
|||
|
|||
if( m_graphicList.size() ) |
|||
return m_graphicList[0]; |
|||
else |
|||
return NULL; |
|||
} |
|||
|
|||
WS_DRAW_ITEM_BASE* GetNext() |
|||
{ |
|||
m_idx++; |
|||
|
|||
if( m_graphicList.size() > m_idx ) |
|||
return m_graphicList[m_idx]; |
|||
else |
|||
return NULL; |
|||
} |
|||
|
|||
/** |
|||
* Function BuildWorkSheetGraphicList is a core function for |
|||
* drawing or plotting the page layout with |
|||
* the frame and the basic inscriptions. |
|||
* It fills the list of basic graphic items to draw or plot. |
|||
* currently lines, rect, polygons and texts |
|||
* |
|||
* @param aPaperFormat The paper size type, for basic inscriptions. |
|||
* @param aFileName The file name, for basic inscriptions. |
|||
* @param aTitleBlock The sheet title block, for basic inscriptions. |
|||
* @param aSheetCount The number of sheets (for basic inscriptions). |
|||
* @param aSheetNumber The sheet number (for basic inscriptions). |
|||
* @param aLineColor The color for drawing. |
|||
* @param aTextColor The color for inscriptions. |
|||
*/ |
|||
void BuildWorkSheetGraphicList( const wxString& aPaperFormat, |
|||
const wxString& aFileName, |
|||
const wxString& aSheetPathHumanReadable, |
|||
const TITLE_BLOCK& aTitleBlock, |
|||
int aSheetCount, int aSheetNumber, |
|||
EDA_COLOR_T aLineColor, EDA_COLOR_T aTextColor ); |
|||
}; |
|||
|
|||
|
|||
#endif // WORKSHEET_SHAPE_BUILDER_H |
|||
@ -1,318 +1,340 @@ |
|||
///////////////////////////////////////////////////////////////////////////
|
|||
// C++ code generated with wxFormBuilder (version Oct 8 2012)
|
|||
// http://www.wxformbuilder.org/
|
|||
//
|
|||
// PLEASE DO "NOT" EDIT THIS FILE!
|
|||
///////////////////////////////////////////////////////////////////////////
|
|||
|
|||
#include "dialog_eeschema_options_base.h"
|
|||
|
|||
///////////////////////////////////////////////////////////////////////////
|
|||
|
|||
BEGIN_EVENT_TABLE( DIALOG_EESCHEMA_OPTIONS_BASE, DIALOG_SHIM ) |
|||
EVT_CHOICE( wxID_ANY, DIALOG_EESCHEMA_OPTIONS_BASE::_wxFB_OnChooseUnits ) |
|||
EVT_CHECKBOX( xwID_ANY, DIALOG_EESCHEMA_OPTIONS_BASE::_wxFB_OnMiddleBtnPanEnbl ) |
|||
END_EVENT_TABLE() |
|||
|
|||
DIALOG_EESCHEMA_OPTIONS_BASE::DIALOG_EESCHEMA_OPTIONS_BASE( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : DIALOG_SHIM( parent, id, title, pos, size, style ) |
|||
{ |
|||
this->SetSizeHints( wxDefaultSize, wxDefaultSize ); |
|||
|
|||
wxBoxSizer* mainSizer; |
|||
mainSizer = new wxBoxSizer( wxVERTICAL ); |
|||
|
|||
wxBoxSizer* bOptionsSizer; |
|||
bOptionsSizer = new wxBoxSizer( wxVERTICAL ); |
|||
|
|||
m_notebook1 = new wxNotebook( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 ); |
|||
m_notebook1->SetBackgroundColour( wxSystemSettings::GetColour( wxSYS_COLOUR_BTNFACE ) ); |
|||
|
|||
m_panel1 = new wxPanel( m_notebook1, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL ); |
|||
wxBoxSizer* p1mainSizer; |
|||
p1mainSizer = new wxBoxSizer( wxHORIZONTAL ); |
|||
|
|||
wxBoxSizer* bSizer3; |
|||
bSizer3 = new wxBoxSizer( wxVERTICAL ); |
|||
|
|||
wxFlexGridSizer* fgSizer1; |
|||
fgSizer1 = new wxFlexGridSizer( 9, 3, 0, 0 ); |
|||
fgSizer1->AddGrowableCol( 0 ); |
|||
fgSizer1->AddGrowableCol( 1 ); |
|||
fgSizer1->AddGrowableCol( 2 ); |
|||
fgSizer1->SetFlexibleDirection( wxHORIZONTAL ); |
|||
fgSizer1->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED ); |
|||
|
|||
m_staticText2 = new wxStaticText( m_panel1, wxID_ANY, _("Measurement &units:"), wxDefaultPosition, wxDefaultSize, 0 ); |
|||
m_staticText2->Wrap( -1 ); |
|||
fgSizer1->Add( m_staticText2, 1, wxALIGN_CENTER_VERTICAL|wxALL, 3 ); |
|||
|
|||
wxArrayString m_choiceUnitsChoices; |
|||
m_choiceUnits = new wxChoice( m_panel1, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choiceUnitsChoices, 0 ); |
|||
m_choiceUnits->SetSelection( 0 ); |
|||
fgSizer1->Add( m_choiceUnits, 1, wxALIGN_CENTER_VERTICAL|wxALL|wxEXPAND, 3 ); |
|||
|
|||
|
|||
fgSizer1->Add( 0, 0, 1, wxALIGN_CENTER_VERTICAL|wxEXPAND, 3 ); |
|||
|
|||
m_staticText3 = new wxStaticText( m_panel1, wxID_ANY, _("&Grid size:"), wxDefaultPosition, wxDefaultSize, 0 ); |
|||
m_staticText3->Wrap( -1 ); |
|||
fgSizer1->Add( m_staticText3, 1, wxALIGN_CENTER_VERTICAL|wxALL, 3 ); |
|||
|
|||
wxArrayString m_choiceGridSizeChoices; |
|||
m_choiceGridSize = new wxChoice( m_panel1, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choiceGridSizeChoices, 0 ); |
|||
m_choiceGridSize->SetSelection( 0 ); |
|||
fgSizer1->Add( m_choiceGridSize, 0, wxALIGN_CENTER_VERTICAL|wxALL|wxEXPAND, 3 ); |
|||
|
|||
m_staticGridUnits = new wxStaticText( m_panel1, wxID_ANY, _("mils"), wxDefaultPosition, wxDefaultSize, 0 ); |
|||
m_staticGridUnits->Wrap( -1 ); |
|||
fgSizer1->Add( m_staticGridUnits, 0, wxALIGN_CENTER_VERTICAL|wxALL, 3 ); |
|||
|
|||
m_staticText51 = new wxStaticText( m_panel1, wxID_ANY, _("Default &bus width:"), wxDefaultPosition, wxDefaultSize, 0 ); |
|||
m_staticText51->Wrap( -1 ); |
|||
fgSizer1->Add( m_staticText51, 0, wxALIGN_CENTER_VERTICAL|wxALL, 3 ); |
|||
|
|||
m_spinBusWidth = new wxSpinCtrl( m_panel1, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS|wxSP_WRAP, 1, 100, 1 ); |
|||
fgSizer1->Add( m_spinBusWidth, 0, wxALIGN_CENTER_VERTICAL|wxALL|wxEXPAND, 3 ); |
|||
|
|||
m_staticBusWidthUnits = new wxStaticText( m_panel1, wxID_ANY, _("mils"), wxDefaultPosition, wxDefaultSize, 0 ); |
|||
m_staticBusWidthUnits->Wrap( -1 ); |
|||
fgSizer1->Add( m_staticBusWidthUnits, 0, wxALIGN_CENTER_VERTICAL|wxALL, 3 ); |
|||
|
|||
m_staticText5 = new wxStaticText( m_panel1, wxID_ANY, _("Default &line width:"), wxDefaultPosition, wxDefaultSize, 0 ); |
|||
m_staticText5->Wrap( -1 ); |
|||
fgSizer1->Add( m_staticText5, 1, wxALIGN_CENTER_VERTICAL|wxALL, 3 ); |
|||
|
|||
m_spinLineWidth = new wxSpinCtrl( m_panel1, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS|wxSP_WRAP, 1, 100, 1 ); |
|||
fgSizer1->Add( m_spinLineWidth, 0, wxALIGN_CENTER_VERTICAL|wxALL|wxEXPAND, 3 ); |
|||
|
|||
m_staticLineWidthUnits = new wxStaticText( m_panel1, wxID_ANY, _("mils"), wxDefaultPosition, wxDefaultSize, 0 ); |
|||
m_staticLineWidthUnits->Wrap( -1 ); |
|||
fgSizer1->Add( m_staticLineWidthUnits, 0, wxALIGN_CENTER_VERTICAL|wxALL, 3 ); |
|||
|
|||
m_staticText7 = new wxStaticText( m_panel1, wxID_ANY, _("Default text &size:"), wxDefaultPosition, wxDefaultSize, 0 ); |
|||
m_staticText7->Wrap( -1 ); |
|||
fgSizer1->Add( m_staticText7, 1, wxALIGN_CENTER_VERTICAL|wxALL, 3 ); |
|||
|
|||
m_spinTextSize = new wxSpinCtrl( m_panel1, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS|wxSP_WRAP, 0, 1000, 0 ); |
|||
fgSizer1->Add( m_spinTextSize, 0, wxALIGN_CENTER_VERTICAL|wxALL|wxEXPAND, 3 ); |
|||
|
|||
m_staticTextSizeUnits = new wxStaticText( m_panel1, wxID_ANY, _("mils"), wxDefaultPosition, wxDefaultSize, 0 ); |
|||
m_staticTextSizeUnits->Wrap( -1 ); |
|||
fgSizer1->Add( m_staticTextSizeUnits, 0, wxALIGN_CENTER_VERTICAL|wxALL, 3 ); |
|||
|
|||
m_staticText9 = new wxStaticText( m_panel1, wxID_ANY, _("Repeat draw item &horizontal displacement:"), wxDefaultPosition, wxDefaultSize, 0 ); |
|||
m_staticText9->Wrap( -1 ); |
|||
fgSizer1->Add( m_staticText9, 1, wxALIGN_CENTER_VERTICAL|wxALL, 3 ); |
|||
|
|||
m_spinRepeatHorizontal = new wxSpinCtrl( m_panel1, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS|wxSP_WRAP, -5000, 5000, 0 ); |
|||
fgSizer1->Add( m_spinRepeatHorizontal, 0, wxALIGN_CENTER_VERTICAL|wxALL|wxEXPAND, 3 ); |
|||
|
|||
m_staticRepeatXUnits = new wxStaticText( m_panel1, wxID_ANY, _("mils"), wxDefaultPosition, wxDefaultSize, 0 ); |
|||
m_staticRepeatXUnits->Wrap( -1 ); |
|||
fgSizer1->Add( m_staticRepeatXUnits, 0, wxALIGN_CENTER_VERTICAL|wxALL, 3 ); |
|||
|
|||
m_staticText12 = new wxStaticText( m_panel1, wxID_ANY, _("Repeat draw item &vertical displacement:"), wxDefaultPosition, wxDefaultSize, 0 ); |
|||
m_staticText12->Wrap( -1 ); |
|||
fgSizer1->Add( m_staticText12, 1, wxALIGN_CENTER_VERTICAL|wxALL, 3 ); |
|||
|
|||
m_spinRepeatVertical = new wxSpinCtrl( m_panel1, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS|wxSP_WRAP, -5000, 5000, 100 ); |
|||
fgSizer1->Add( m_spinRepeatVertical, 0, wxALIGN_CENTER_VERTICAL|wxALL|wxEXPAND, 3 ); |
|||
|
|||
m_staticRepeatYUnits = new wxStaticText( m_panel1, wxID_ANY, _("mils"), wxDefaultPosition, wxDefaultSize, 0 ); |
|||
m_staticRepeatYUnits->Wrap( -1 ); |
|||
fgSizer1->Add( m_staticRepeatYUnits, 0, wxALIGN_CENTER_VERTICAL|wxALL, 3 ); |
|||
|
|||
m_staticText16 = new wxStaticText( m_panel1, wxID_ANY, _("&Repeat label increment:"), wxDefaultPosition, wxDefaultSize, 0 ); |
|||
m_staticText16->Wrap( -1 ); |
|||
fgSizer1->Add( m_staticText16, 1, wxALIGN_CENTER_VERTICAL|wxALL, 3 ); |
|||
|
|||
m_spinRepeatLabel = new wxSpinCtrl( m_panel1, wxID_ANY, wxT("1"), wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS|wxSP_WRAP, 0, 10, 1 ); |
|||
fgSizer1->Add( m_spinRepeatLabel, 0, wxALIGN_CENTER_VERTICAL|wxALL|wxEXPAND, 3 ); |
|||
|
|||
|
|||
fgSizer1->Add( 0, 0, 1, wxALIGN_CENTER_VERTICAL|wxEXPAND, 3 ); |
|||
|
|||
m_staticText221 = new wxStaticText( m_panel1, wxID_ANY, _("Auto save &time interval:"), wxDefaultPosition, wxDefaultSize, 0 ); |
|||
m_staticText221->Wrap( -1 ); |
|||
fgSizer1->Add( m_staticText221, 1, wxALIGN_CENTER_VERTICAL|wxALL, 3 ); |
|||
|
|||
m_spinAutoSaveInterval = new wxSpinCtrl( m_panel1, ID_M_SPINAUTOSAVEINTERVAL, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, 0, 1000, 10 ); |
|||
fgSizer1->Add( m_spinAutoSaveInterval, 0, wxALIGN_CENTER_VERTICAL|wxALL|wxEXPAND, 3 ); |
|||
|
|||
m_staticText23 = new wxStaticText( m_panel1, wxID_ANY, _("minutes"), wxDefaultPosition, wxDefaultSize, 0 ); |
|||
m_staticText23->Wrap( -1 ); |
|||
fgSizer1->Add( m_staticText23, 0, wxALIGN_CENTER_VERTICAL|wxALL, 3 ); |
|||
|
|||
|
|||
bSizer3->Add( fgSizer1, 0, wxALIGN_CENTER|wxEXPAND, 0 ); |
|||
|
|||
wxBoxSizer* bSizer2; |
|||
bSizer2 = new wxBoxSizer( wxVERTICAL ); |
|||
|
|||
m_checkShowGrid = new wxCheckBox( m_panel1, wxID_ANY, _("Show gr&id"), wxDefaultPosition, wxDefaultSize, 0 ); |
|||
bSizer2->Add( m_checkShowGrid, 0, wxALL|wxEXPAND, 3 ); |
|||
|
|||
m_checkShowHiddenPins = new wxCheckBox( m_panel1, wxID_ANY, _("Show hi&dden pins"), wxDefaultPosition, wxDefaultSize, 0 ); |
|||
bSizer2->Add( m_checkShowHiddenPins, 0, wxALL|wxEXPAND, 3 ); |
|||
|
|||
m_checkEnableZoomNoCenter = new wxCheckBox( m_panel1, wxID_ANY, _("Do not center and &warp cursor on zoom"), wxDefaultPosition, wxDefaultSize, 0 ); |
|||
m_checkEnableZoomNoCenter->SetToolTip( _("Keep the cursor at its current location when zooming") ); |
|||
|
|||
bSizer2->Add( m_checkEnableZoomNoCenter, 0, wxALL, 3 ); |
|||
|
|||
m_checkEnableMiddleButtonPan = new wxCheckBox( m_panel1, xwID_ANY, _("Use &middle mouse button to pan"), wxDefaultPosition, wxDefaultSize, 0 ); |
|||
m_checkEnableMiddleButtonPan->SetToolTip( _("Use middle mouse button dragging to pan") ); |
|||
|
|||
bSizer2->Add( m_checkEnableMiddleButtonPan, 0, wxALL, 3 ); |
|||
|
|||
m_checkMiddleButtonPanLimited = new wxCheckBox( m_panel1, wxID_ANY, _("&Limit panning to scroll size"), wxDefaultPosition, wxDefaultSize, 0 ); |
|||
m_checkMiddleButtonPanLimited->SetToolTip( _("Middle mouse button panning limited by current scrollbar size") ); |
|||
|
|||
bSizer2->Add( m_checkMiddleButtonPanLimited, 0, wxALL, 3 ); |
|||
|
|||
m_checkAutoPan = new wxCheckBox( m_panel1, wxID_ANY, _("Pan while moving ob&ject"), wxDefaultPosition, wxDefaultSize, 0 ); |
|||
bSizer2->Add( m_checkAutoPan, 0, wxALL|wxEXPAND, 3 ); |
|||
|
|||
m_checkHVOrientation = new wxCheckBox( m_panel1, wxID_ANY, _("Allow buses and wires to be placed in H or V &orientation only"), wxDefaultPosition, wxDefaultSize, 0 ); |
|||
bSizer2->Add( m_checkHVOrientation, 0, wxALL|wxEXPAND, 3 ); |
|||
|
|||
m_checkPageLimits = new wxCheckBox( m_panel1, wxID_ANY, _("Show p&age limits"), wxDefaultPosition, wxDefaultSize, 0 ); |
|||
bSizer2->Add( m_checkPageLimits, 0, wxALL|wxEXPAND, 3 ); |
|||
|
|||
|
|||
bSizer3->Add( bSizer2, 0, wxEXPAND, 0 ); |
|||
|
|||
|
|||
p1mainSizer->Add( bSizer3, 1, wxALL|wxEXPAND, 6 ); |
|||
|
|||
|
|||
m_panel1->SetSizer( p1mainSizer ); |
|||
m_panel1->Layout(); |
|||
p1mainSizer->Fit( m_panel1 ); |
|||
m_notebook1->AddPage( m_panel1, _("General Options"), true ); |
|||
m_panel2 = new wxPanel( m_notebook1, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL ); |
|||
m_panel2->SetToolTip( _("User defined field names for schematic components. ") ); |
|||
|
|||
wxBoxSizer* bSizer6; |
|||
bSizer6 = new wxBoxSizer( wxVERTICAL ); |
|||
|
|||
wxBoxSizer* bSizer8; |
|||
bSizer8 = new wxBoxSizer( wxVERTICAL ); |
|||
|
|||
m_staticText211 = new wxStaticText( m_panel2, wxID_ANY, _("Please enter fieldnames which you want presented in the component fieldname (property) editors. Names may not include (, ), or \" characters."), wxDefaultPosition, wxDefaultSize, 0 ); |
|||
m_staticText211->Wrap( 400 ); |
|||
bSizer8->Add( m_staticText211, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5 ); |
|||
|
|||
|
|||
bSizer6->Add( bSizer8, 0, wxEXPAND, 5 ); |
|||
|
|||
wxBoxSizer* bSizer7; |
|||
bSizer7 = new wxBoxSizer( wxVERTICAL ); |
|||
|
|||
wxFlexGridSizer* fgSizer2; |
|||
fgSizer2 = new wxFlexGridSizer( 8, 2, 0, 0 ); |
|||
fgSizer2->AddGrowableCol( 1 ); |
|||
fgSizer2->SetFlexibleDirection( wxHORIZONTAL ); |
|||
fgSizer2->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED ); |
|||
|
|||
m_staticText15 = new wxStaticText( m_panel2, wxID_ANY, _("Custom field 1"), wxDefaultPosition, wxDefaultSize, 0 ); |
|||
m_staticText15->Wrap( -1 ); |
|||
fgSizer2->Add( m_staticText15, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_RIGHT|wxALL, 3 ); |
|||
|
|||
m_fieldName1 = new wxTextCtrl( m_panel2, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 ); |
|||
m_fieldName1->SetMaxLength( 0 ); |
|||
fgSizer2->Add( m_fieldName1, 0, wxALIGN_CENTER_VERTICAL|wxALL|wxEXPAND, 3 ); |
|||
|
|||
m_staticText161 = new wxStaticText( m_panel2, wxID_ANY, _("Custom field 2"), wxDefaultPosition, wxDefaultSize, 0 ); |
|||
m_staticText161->Wrap( -1 ); |
|||
fgSizer2->Add( m_staticText161, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_RIGHT|wxALL, 3 ); |
|||
|
|||
m_fieldName2 = new wxTextCtrl( m_panel2, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 ); |
|||
m_fieldName2->SetMaxLength( 0 ); |
|||
fgSizer2->Add( m_fieldName2, 0, wxALIGN_CENTER_VERTICAL|wxALL|wxEXPAND, 3 ); |
|||
|
|||
m_staticText17 = new wxStaticText( m_panel2, wxID_ANY, _("Custom field 3"), wxDefaultPosition, wxDefaultSize, 0 ); |
|||
m_staticText17->Wrap( -1 ); |
|||
fgSizer2->Add( m_staticText17, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_RIGHT|wxALL, 3 ); |
|||
|
|||
m_fieldName3 = new wxTextCtrl( m_panel2, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 ); |
|||
m_fieldName3->SetMaxLength( 0 ); |
|||
fgSizer2->Add( m_fieldName3, 0, wxALIGN_CENTER_VERTICAL|wxALL|wxEXPAND, 3 ); |
|||
|
|||
m_staticText18 = new wxStaticText( m_panel2, wxID_ANY, _("Custom field 4"), wxDefaultPosition, wxDefaultSize, 0 ); |
|||
m_staticText18->Wrap( -1 ); |
|||
fgSizer2->Add( m_staticText18, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_RIGHT|wxALL, 3 ); |
|||
|
|||
m_fieldName4 = new wxTextCtrl( m_panel2, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 ); |
|||
m_fieldName4->SetMaxLength( 0 ); |
|||
fgSizer2->Add( m_fieldName4, 0, wxALIGN_CENTER_VERTICAL|wxALL|wxEXPAND, 3 ); |
|||
|
|||
m_staticText19 = new wxStaticText( m_panel2, wxID_ANY, _("Custom field 5"), wxDefaultPosition, wxDefaultSize, 0 ); |
|||
m_staticText19->Wrap( -1 ); |
|||
fgSizer2->Add( m_staticText19, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_RIGHT|wxALL, 3 ); |
|||
|
|||
m_fieldName5 = new wxTextCtrl( m_panel2, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 ); |
|||
m_fieldName5->SetMaxLength( 0 ); |
|||
fgSizer2->Add( m_fieldName5, 0, wxALIGN_CENTER_VERTICAL|wxALL|wxEXPAND, 3 ); |
|||
|
|||
m_staticText20 = new wxStaticText( m_panel2, wxID_ANY, _("Custom field 6"), wxDefaultPosition, wxDefaultSize, 0 ); |
|||
m_staticText20->Wrap( -1 ); |
|||
fgSizer2->Add( m_staticText20, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_RIGHT|wxALL, 3 ); |
|||
|
|||
m_fieldName6 = new wxTextCtrl( m_panel2, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 ); |
|||
m_fieldName6->SetMaxLength( 0 ); |
|||
fgSizer2->Add( m_fieldName6, 0, wxALIGN_CENTER_VERTICAL|wxALL|wxEXPAND, 3 ); |
|||
|
|||
m_staticText21 = new wxStaticText( m_panel2, wxID_ANY, _("Custom field 7"), wxDefaultPosition, wxDefaultSize, 0 ); |
|||
m_staticText21->Wrap( -1 ); |
|||
fgSizer2->Add( m_staticText21, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_RIGHT|wxALL, 3 ); |
|||
|
|||
m_fieldName7 = new wxTextCtrl( m_panel2, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 ); |
|||
m_fieldName7->SetMaxLength( 0 ); |
|||
fgSizer2->Add( m_fieldName7, 0, wxALIGN_CENTER_VERTICAL|wxALL|wxEXPAND, 3 ); |
|||
|
|||
m_staticText22 = new wxStaticText( m_panel2, wxID_ANY, _("Custom field 8"), wxDefaultPosition, wxDefaultSize, 0 ); |
|||
m_staticText22->Wrap( -1 ); |
|||
fgSizer2->Add( m_staticText22, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_RIGHT|wxALL, 3 ); |
|||
|
|||
m_fieldName8 = new wxTextCtrl( m_panel2, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 ); |
|||
m_fieldName8->SetMaxLength( 0 ); |
|||
fgSizer2->Add( m_fieldName8, 0, wxALIGN_CENTER_VERTICAL|wxALL|wxEXPAND, 3 ); |
|||
|
|||
|
|||
bSizer7->Add( fgSizer2, 1, wxALIGN_CENTER|wxEXPAND, 5 ); |
|||
|
|||
|
|||
bSizer6->Add( bSizer7, 1, wxALL|wxEXPAND, 12 ); |
|||
|
|||
|
|||
m_panel2->SetSizer( bSizer6 ); |
|||
m_panel2->Layout(); |
|||
bSizer6->Fit( m_panel2 ); |
|||
m_notebook1->AddPage( m_panel2, _("Template Field Names"), false ); |
|||
|
|||
bOptionsSizer->Add( m_notebook1, 1, wxEXPAND, 0 ); |
|||
|
|||
m_sdbSizer1 = new wxStdDialogButtonSizer(); |
|||
m_sdbSizer1OK = new wxButton( this, wxID_OK ); |
|||
m_sdbSizer1->AddButton( m_sdbSizer1OK ); |
|||
m_sdbSizer1Cancel = new wxButton( this, wxID_CANCEL ); |
|||
m_sdbSizer1->AddButton( m_sdbSizer1Cancel ); |
|||
m_sdbSizer1->Realize(); |
|||
|
|||
bOptionsSizer->Add( m_sdbSizer1, 0, wxALL|wxEXPAND, 6 ); |
|||
|
|||
|
|||
mainSizer->Add( bOptionsSizer, 1, wxEXPAND, 12 ); |
|||
|
|||
|
|||
this->SetSizer( mainSizer ); |
|||
this->Layout(); |
|||
mainSizer->Fit( this ); |
|||
|
|||
this->Centre( wxBOTH ); |
|||
} |
|||
|
|||
DIALOG_EESCHEMA_OPTIONS_BASE::~DIALOG_EESCHEMA_OPTIONS_BASE() |
|||
{ |
|||
} |
|||
///////////////////////////////////////////////////////////////////////////
|
|||
// C++ code generated with wxFormBuilder (version Oct 8 2012)
|
|||
// http://www.wxformbuilder.org/
|
|||
//
|
|||
// PLEASE DO "NOT" EDIT THIS FILE!
|
|||
///////////////////////////////////////////////////////////////////////////
|
|||
|
|||
#include "dialog_eeschema_options_base.h"
|
|||
|
|||
///////////////////////////////////////////////////////////////////////////
|
|||
|
|||
BEGIN_EVENT_TABLE( DIALOG_EESCHEMA_OPTIONS_BASE, DIALOG_SHIM ) |
|||
EVT_CHOICE( wxID_ANY, DIALOG_EESCHEMA_OPTIONS_BASE::_wxFB_OnChooseUnits ) |
|||
EVT_CHECKBOX( xwID_ANY, DIALOG_EESCHEMA_OPTIONS_BASE::_wxFB_OnMiddleBtnPanEnbl ) |
|||
END_EVENT_TABLE() |
|||
|
|||
DIALOG_EESCHEMA_OPTIONS_BASE::DIALOG_EESCHEMA_OPTIONS_BASE( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : DIALOG_SHIM( parent, id, title, pos, size, style ) |
|||
{ |
|||
this->SetSizeHints( wxDefaultSize, wxDefaultSize ); |
|||
|
|||
wxBoxSizer* mainSizer; |
|||
mainSizer = new wxBoxSizer( wxVERTICAL ); |
|||
|
|||
wxBoxSizer* bOptionsSizer; |
|||
bOptionsSizer = new wxBoxSizer( wxVERTICAL ); |
|||
|
|||
m_notebook1 = new wxNotebook( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 ); |
|||
m_notebook1->SetBackgroundColour( wxSystemSettings::GetColour( wxSYS_COLOUR_BTNFACE ) ); |
|||
|
|||
m_panel1 = new wxPanel( m_notebook1, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL ); |
|||
wxBoxSizer* p1mainSizer; |
|||
p1mainSizer = new wxBoxSizer( wxHORIZONTAL ); |
|||
|
|||
wxBoxSizer* bSizer3; |
|||
bSizer3 = new wxBoxSizer( wxVERTICAL ); |
|||
|
|||
wxFlexGridSizer* fgSizer1; |
|||
fgSizer1 = new wxFlexGridSizer( 11, 3, 0, 0 ); |
|||
fgSizer1->AddGrowableCol( 0 ); |
|||
fgSizer1->AddGrowableCol( 1 ); |
|||
fgSizer1->AddGrowableCol( 2 ); |
|||
fgSizer1->SetFlexibleDirection( wxHORIZONTAL ); |
|||
fgSizer1->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED ); |
|||
|
|||
m_staticText2 = new wxStaticText( m_panel1, wxID_ANY, _("Measurement &units:"), wxDefaultPosition, wxDefaultSize, 0 ); |
|||
m_staticText2->Wrap( -1 ); |
|||
fgSizer1->Add( m_staticText2, 1, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 3 ); |
|||
|
|||
wxArrayString m_choiceUnitsChoices; |
|||
m_choiceUnits = new wxChoice( m_panel1, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choiceUnitsChoices, 0 ); |
|||
m_choiceUnits->SetSelection( 0 ); |
|||
fgSizer1->Add( m_choiceUnits, 0, wxALIGN_CENTER_VERTICAL|wxALL|wxEXPAND, 3 ); |
|||
|
|||
|
|||
fgSizer1->Add( 0, 0, 1, wxALIGN_CENTER_VERTICAL|wxEXPAND, 3 ); |
|||
|
|||
m_staticText3 = new wxStaticText( m_panel1, wxID_ANY, _("&Grid size:"), wxDefaultPosition, wxDefaultSize, 0 ); |
|||
m_staticText3->Wrap( -1 ); |
|||
fgSizer1->Add( m_staticText3, 1, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 3 ); |
|||
|
|||
wxArrayString m_choiceGridSizeChoices; |
|||
m_choiceGridSize = new wxChoice( m_panel1, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choiceGridSizeChoices, 0 ); |
|||
m_choiceGridSize->SetSelection( 0 ); |
|||
fgSizer1->Add( m_choiceGridSize, 0, wxALIGN_CENTER_VERTICAL|wxEXPAND|wxALL, 3 ); |
|||
|
|||
m_staticGridUnits = new wxStaticText( m_panel1, wxID_ANY, _("mils"), wxDefaultPosition, wxDefaultSize, 0 ); |
|||
m_staticGridUnits->Wrap( -1 ); |
|||
fgSizer1->Add( m_staticGridUnits, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 3 ); |
|||
|
|||
m_staticText51 = new wxStaticText( m_panel1, wxID_ANY, _("Default &bus width:"), wxDefaultPosition, wxDefaultSize, 0 ); |
|||
m_staticText51->Wrap( -1 ); |
|||
fgSizer1->Add( m_staticText51, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 3 ); |
|||
|
|||
m_spinBusWidth = new wxSpinCtrl( m_panel1, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS|wxSP_WRAP, 1, 100, 1 ); |
|||
fgSizer1->Add( m_spinBusWidth, 0, wxALIGN_CENTER_VERTICAL|wxALL|wxEXPAND, 3 ); |
|||
|
|||
m_staticBusWidthUnits = new wxStaticText( m_panel1, wxID_ANY, _("mils"), wxDefaultPosition, wxDefaultSize, 0 ); |
|||
m_staticBusWidthUnits->Wrap( -1 ); |
|||
fgSizer1->Add( m_staticBusWidthUnits, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 3 ); |
|||
|
|||
m_staticText5 = new wxStaticText( m_panel1, wxID_ANY, _("Default &line width:"), wxDefaultPosition, wxDefaultSize, 0 ); |
|||
m_staticText5->Wrap( -1 ); |
|||
fgSizer1->Add( m_staticText5, 1, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 3 ); |
|||
|
|||
m_spinLineWidth = new wxSpinCtrl( m_panel1, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS|wxSP_WRAP, 1, 100, 1 ); |
|||
fgSizer1->Add( m_spinLineWidth, 0, wxALIGN_CENTER_VERTICAL|wxALL|wxEXPAND, 3 ); |
|||
|
|||
m_staticLineWidthUnits = new wxStaticText( m_panel1, wxID_ANY, _("mils"), wxDefaultPosition, wxDefaultSize, 0 ); |
|||
m_staticLineWidthUnits->Wrap( -1 ); |
|||
fgSizer1->Add( m_staticLineWidthUnits, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 3 ); |
|||
|
|||
m_staticText7 = new wxStaticText( m_panel1, wxID_ANY, _("Default text &size:"), wxDefaultPosition, wxDefaultSize, 0 ); |
|||
m_staticText7->Wrap( -1 ); |
|||
fgSizer1->Add( m_staticText7, 1, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 3 ); |
|||
|
|||
m_spinTextSize = new wxSpinCtrl( m_panel1, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS|wxSP_WRAP, 0, 1000, 0 ); |
|||
fgSizer1->Add( m_spinTextSize, 0, wxALIGN_CENTER_VERTICAL|wxALL|wxEXPAND, 3 ); |
|||
|
|||
m_staticTextSizeUnits = new wxStaticText( m_panel1, wxID_ANY, _("mils"), wxDefaultPosition, wxDefaultSize, 0 ); |
|||
m_staticTextSizeUnits->Wrap( -1 ); |
|||
fgSizer1->Add( m_staticTextSizeUnits, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 3 ); |
|||
|
|||
m_staticText9 = new wxStaticText( m_panel1, wxID_ANY, _("Repeat draw item &horizontal displacement:"), wxDefaultPosition, wxDefaultSize, 0 ); |
|||
m_staticText9->Wrap( -1 ); |
|||
fgSizer1->Add( m_staticText9, 1, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 3 ); |
|||
|
|||
m_spinRepeatHorizontal = new wxSpinCtrl( m_panel1, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS|wxSP_WRAP, -5000, 5000, 0 ); |
|||
fgSizer1->Add( m_spinRepeatHorizontal, 0, wxALIGN_CENTER_VERTICAL|wxALL|wxEXPAND, 3 ); |
|||
|
|||
m_staticRepeatXUnits = new wxStaticText( m_panel1, wxID_ANY, _("mils"), wxDefaultPosition, wxDefaultSize, 0 ); |
|||
m_staticRepeatXUnits->Wrap( -1 ); |
|||
fgSizer1->Add( m_staticRepeatXUnits, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 3 ); |
|||
|
|||
m_staticText12 = new wxStaticText( m_panel1, wxID_ANY, _("Repeat draw item &vertical displacement:"), wxDefaultPosition, wxDefaultSize, 0 ); |
|||
m_staticText12->Wrap( -1 ); |
|||
fgSizer1->Add( m_staticText12, 1, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 3 ); |
|||
|
|||
m_spinRepeatVertical = new wxSpinCtrl( m_panel1, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS|wxSP_WRAP, -5000, 5000, 100 ); |
|||
fgSizer1->Add( m_spinRepeatVertical, 0, wxALIGN_CENTER_VERTICAL|wxALL|wxEXPAND, 3 ); |
|||
|
|||
m_staticRepeatYUnits = new wxStaticText( m_panel1, wxID_ANY, _("mils"), wxDefaultPosition, wxDefaultSize, 0 ); |
|||
m_staticRepeatYUnits->Wrap( -1 ); |
|||
fgSizer1->Add( m_staticRepeatYUnits, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 3 ); |
|||
|
|||
m_staticText16 = new wxStaticText( m_panel1, wxID_ANY, _("&Repeat label increment:"), wxDefaultPosition, wxDefaultSize, 0 ); |
|||
m_staticText16->Wrap( -1 ); |
|||
fgSizer1->Add( m_staticText16, 1, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 3 ); |
|||
|
|||
m_spinRepeatLabel = new wxSpinCtrl( m_panel1, wxID_ANY, wxT("1"), wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS|wxSP_WRAP, 0, 10, 1 ); |
|||
fgSizer1->Add( m_spinRepeatLabel, 0, wxALIGN_CENTER_VERTICAL|wxALL|wxEXPAND, 3 ); |
|||
|
|||
|
|||
fgSizer1->Add( 0, 0, 1, wxALIGN_CENTER_VERTICAL|wxEXPAND, 3 ); |
|||
|
|||
m_staticText221 = new wxStaticText( m_panel1, wxID_ANY, _("Auto save &time interval:"), wxDefaultPosition, wxDefaultSize, 0 ); |
|||
m_staticText221->Wrap( -1 ); |
|||
fgSizer1->Add( m_staticText221, 1, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 3 ); |
|||
|
|||
m_spinAutoSaveInterval = new wxSpinCtrl( m_panel1, ID_M_SPINAUTOSAVEINTERVAL, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, 0, 1000, 10 ); |
|||
fgSizer1->Add( m_spinAutoSaveInterval, 0, wxALIGN_CENTER_VERTICAL|wxALL|wxEXPAND, 3 ); |
|||
|
|||
m_staticText23 = new wxStaticText( m_panel1, wxID_ANY, _("minutes"), wxDefaultPosition, wxDefaultSize, 0 ); |
|||
m_staticText23->Wrap( -1 ); |
|||
fgSizer1->Add( m_staticText23, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 3 ); |
|||
|
|||
m_staticText26 = new wxStaticText( m_panel1, wxID_ANY, _("Separator ref/part id:"), wxDefaultPosition, wxDefaultSize, 0 ); |
|||
m_staticText26->Wrap( -1 ); |
|||
fgSizer1->Add( m_staticText26, 0, wxRIGHT|wxLEFT|wxALIGN_CENTER_VERTICAL, 5 ); |
|||
|
|||
m_textCtrlSeparatorRefId = new wxTextCtrl( m_panel1, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_READONLY ); |
|||
fgSizer1->Add( m_textCtrlSeparatorRefId, 0, wxALL|wxEXPAND|wxALIGN_CENTER_VERTICAL, 3 ); |
|||
|
|||
|
|||
fgSizer1->Add( 0, 0, 1, wxEXPAND, 5 ); |
|||
|
|||
m_staticText27 = new wxStaticText( m_panel1, wxID_ANY, _("Part first Id:"), wxDefaultPosition, wxDefaultSize, 0 ); |
|||
m_staticText27->Wrap( -1 ); |
|||
fgSizer1->Add( m_staticText27, 0, wxALL, 5 ); |
|||
|
|||
m_textCtrlPartFirstId = new wxTextCtrl( m_panel1, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_READONLY ); |
|||
fgSizer1->Add( m_textCtrlPartFirstId, 0, wxALL|wxEXPAND|wxALIGN_CENTER_VERTICAL, 3 ); |
|||
|
|||
|
|||
fgSizer1->Add( 0, 0, 1, wxEXPAND, 5 ); |
|||
|
|||
|
|||
bSizer3->Add( fgSizer1, 0, wxALIGN_CENTER|wxEXPAND, 0 ); |
|||
|
|||
wxBoxSizer* bSizer2; |
|||
bSizer2 = new wxBoxSizer( wxVERTICAL ); |
|||
|
|||
m_staticline1 = new wxStaticLine( m_panel1, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL ); |
|||
bSizer2->Add( m_staticline1, 0, wxEXPAND | wxALL, 5 ); |
|||
|
|||
m_checkShowGrid = new wxCheckBox( m_panel1, wxID_ANY, _("Show gr&id"), wxDefaultPosition, wxDefaultSize, 0 ); |
|||
bSizer2->Add( m_checkShowGrid, 0, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 3 ); |
|||
|
|||
m_checkShowHiddenPins = new wxCheckBox( m_panel1, wxID_ANY, _("Show hi&dden pins"), wxDefaultPosition, wxDefaultSize, 0 ); |
|||
bSizer2->Add( m_checkShowHiddenPins, 0, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 3 ); |
|||
|
|||
m_checkEnableZoomNoCenter = new wxCheckBox( m_panel1, wxID_ANY, _("Do not center and &warp cursor on zoom"), wxDefaultPosition, wxDefaultSize, 0 ); |
|||
m_checkEnableZoomNoCenter->SetToolTip( _("Keep the cursor at its current location when zooming") ); |
|||
|
|||
bSizer2->Add( m_checkEnableZoomNoCenter, 0, wxTOP|wxRIGHT|wxLEFT, 3 ); |
|||
|
|||
m_checkEnableMiddleButtonPan = new wxCheckBox( m_panel1, xwID_ANY, _("Use &middle mouse button to pan"), wxDefaultPosition, wxDefaultSize, 0 ); |
|||
m_checkEnableMiddleButtonPan->SetToolTip( _("Use middle mouse button dragging to pan") ); |
|||
|
|||
bSizer2->Add( m_checkEnableMiddleButtonPan, 0, wxTOP|wxRIGHT|wxLEFT, 3 ); |
|||
|
|||
m_checkMiddleButtonPanLimited = new wxCheckBox( m_panel1, wxID_ANY, _("&Limit panning to scroll size"), wxDefaultPosition, wxDefaultSize, 0 ); |
|||
m_checkMiddleButtonPanLimited->SetToolTip( _("Middle mouse button panning limited by current scrollbar size") ); |
|||
|
|||
bSizer2->Add( m_checkMiddleButtonPanLimited, 0, wxTOP|wxRIGHT|wxLEFT, 3 ); |
|||
|
|||
m_checkAutoPan = new wxCheckBox( m_panel1, wxID_ANY, _("Pan while moving ob&ject"), wxDefaultPosition, wxDefaultSize, 0 ); |
|||
bSizer2->Add( m_checkAutoPan, 0, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 3 ); |
|||
|
|||
m_checkHVOrientation = new wxCheckBox( m_panel1, wxID_ANY, _("Allow buses and wires to be placed in H or V &orientation only"), wxDefaultPosition, wxDefaultSize, 0 ); |
|||
bSizer2->Add( m_checkHVOrientation, 0, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 3 ); |
|||
|
|||
m_checkPageLimits = new wxCheckBox( m_panel1, wxID_ANY, _("Show p&age limits"), wxDefaultPosition, wxDefaultSize, 0 ); |
|||
bSizer2->Add( m_checkPageLimits, 0, wxALL|wxEXPAND, 3 ); |
|||
|
|||
|
|||
bSizer3->Add( bSizer2, 0, wxEXPAND, 0 ); |
|||
|
|||
|
|||
p1mainSizer->Add( bSizer3, 1, wxALL|wxEXPAND, 6 ); |
|||
|
|||
|
|||
m_panel1->SetSizer( p1mainSizer ); |
|||
m_panel1->Layout(); |
|||
p1mainSizer->Fit( m_panel1 ); |
|||
m_notebook1->AddPage( m_panel1, _("General Options"), true ); |
|||
m_panel2 = new wxPanel( m_notebook1, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL ); |
|||
m_panel2->SetToolTip( _("User defined field names for schematic components. ") ); |
|||
|
|||
wxBoxSizer* bSizer6; |
|||
bSizer6 = new wxBoxSizer( wxVERTICAL ); |
|||
|
|||
wxBoxSizer* bSizer8; |
|||
bSizer8 = new wxBoxSizer( wxVERTICAL ); |
|||
|
|||
m_staticText211 = new wxStaticText( m_panel2, wxID_ANY, _("Please enter fieldnames which you want presented in the component fieldname (property) editors. Names may not include (, ), or \" characters."), wxDefaultPosition, wxDefaultSize, 0 ); |
|||
m_staticText211->Wrap( 400 ); |
|||
bSizer8->Add( m_staticText211, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5 ); |
|||
|
|||
|
|||
bSizer6->Add( bSizer8, 0, wxEXPAND, 5 ); |
|||
|
|||
wxBoxSizer* bSizer7; |
|||
bSizer7 = new wxBoxSizer( wxVERTICAL ); |
|||
|
|||
wxFlexGridSizer* fgSizer2; |
|||
fgSizer2 = new wxFlexGridSizer( 8, 2, 0, 0 ); |
|||
fgSizer2->AddGrowableCol( 1 ); |
|||
fgSizer2->SetFlexibleDirection( wxHORIZONTAL ); |
|||
fgSizer2->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED ); |
|||
|
|||
m_staticText15 = new wxStaticText( m_panel2, wxID_ANY, _("Custom field 1"), wxDefaultPosition, wxDefaultSize, 0 ); |
|||
m_staticText15->Wrap( -1 ); |
|||
fgSizer2->Add( m_staticText15, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_RIGHT|wxALL, 3 ); |
|||
|
|||
m_fieldName1 = new wxTextCtrl( m_panel2, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 ); |
|||
m_fieldName1->SetMaxLength( 0 ); |
|||
fgSizer2->Add( m_fieldName1, 0, wxALIGN_CENTER_VERTICAL|wxALL|wxEXPAND, 3 ); |
|||
|
|||
m_staticText161 = new wxStaticText( m_panel2, wxID_ANY, _("Custom field 2"), wxDefaultPosition, wxDefaultSize, 0 ); |
|||
m_staticText161->Wrap( -1 ); |
|||
fgSizer2->Add( m_staticText161, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_RIGHT|wxALL, 3 ); |
|||
|
|||
m_fieldName2 = new wxTextCtrl( m_panel2, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 ); |
|||
m_fieldName2->SetMaxLength( 0 ); |
|||
fgSizer2->Add( m_fieldName2, 0, wxALIGN_CENTER_VERTICAL|wxALL|wxEXPAND, 3 ); |
|||
|
|||
m_staticText17 = new wxStaticText( m_panel2, wxID_ANY, _("Custom field 3"), wxDefaultPosition, wxDefaultSize, 0 ); |
|||
m_staticText17->Wrap( -1 ); |
|||
fgSizer2->Add( m_staticText17, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_RIGHT|wxALL, 3 ); |
|||
|
|||
m_fieldName3 = new wxTextCtrl( m_panel2, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 ); |
|||
m_fieldName3->SetMaxLength( 0 ); |
|||
fgSizer2->Add( m_fieldName3, 0, wxALIGN_CENTER_VERTICAL|wxALL|wxEXPAND, 3 ); |
|||
|
|||
m_staticText18 = new wxStaticText( m_panel2, wxID_ANY, _("Custom field 4"), wxDefaultPosition, wxDefaultSize, 0 ); |
|||
m_staticText18->Wrap( -1 ); |
|||
fgSizer2->Add( m_staticText18, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_RIGHT|wxALL, 3 ); |
|||
|
|||
m_fieldName4 = new wxTextCtrl( m_panel2, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 ); |
|||
m_fieldName4->SetMaxLength( 0 ); |
|||
fgSizer2->Add( m_fieldName4, 0, wxALIGN_CENTER_VERTICAL|wxALL|wxEXPAND, 3 ); |
|||
|
|||
m_staticText19 = new wxStaticText( m_panel2, wxID_ANY, _("Custom field 5"), wxDefaultPosition, wxDefaultSize, 0 ); |
|||
m_staticText19->Wrap( -1 ); |
|||
fgSizer2->Add( m_staticText19, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_RIGHT|wxALL, 3 ); |
|||
|
|||
m_fieldName5 = new wxTextCtrl( m_panel2, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 ); |
|||
m_fieldName5->SetMaxLength( 0 ); |
|||
fgSizer2->Add( m_fieldName5, 0, wxALIGN_CENTER_VERTICAL|wxALL|wxEXPAND, 3 ); |
|||
|
|||
m_staticText20 = new wxStaticText( m_panel2, wxID_ANY, _("Custom field 6"), wxDefaultPosition, wxDefaultSize, 0 ); |
|||
m_staticText20->Wrap( -1 ); |
|||
fgSizer2->Add( m_staticText20, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_RIGHT|wxALL, 3 ); |
|||
|
|||
m_fieldName6 = new wxTextCtrl( m_panel2, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 ); |
|||
m_fieldName6->SetMaxLength( 0 ); |
|||
fgSizer2->Add( m_fieldName6, 0, wxALIGN_CENTER_VERTICAL|wxALL|wxEXPAND, 3 ); |
|||
|
|||
m_staticText21 = new wxStaticText( m_panel2, wxID_ANY, _("Custom field 7"), wxDefaultPosition, wxDefaultSize, 0 ); |
|||
m_staticText21->Wrap( -1 ); |
|||
fgSizer2->Add( m_staticText21, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_RIGHT|wxALL, 3 ); |
|||
|
|||
m_fieldName7 = new wxTextCtrl( m_panel2, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 ); |
|||
m_fieldName7->SetMaxLength( 0 ); |
|||
fgSizer2->Add( m_fieldName7, 0, wxALIGN_CENTER_VERTICAL|wxALL|wxEXPAND, 3 ); |
|||
|
|||
m_staticText22 = new wxStaticText( m_panel2, wxID_ANY, _("Custom field 8"), wxDefaultPosition, wxDefaultSize, 0 ); |
|||
m_staticText22->Wrap( -1 ); |
|||
fgSizer2->Add( m_staticText22, 0, wxALIGN_CENTER_VERTICAL|wxALIGN_RIGHT|wxALL, 3 ); |
|||
|
|||
m_fieldName8 = new wxTextCtrl( m_panel2, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 ); |
|||
m_fieldName8->SetMaxLength( 0 ); |
|||
fgSizer2->Add( m_fieldName8, 0, wxALIGN_CENTER_VERTICAL|wxALL|wxEXPAND, 3 ); |
|||
|
|||
|
|||
bSizer7->Add( fgSizer2, 1, wxALIGN_CENTER|wxEXPAND, 5 ); |
|||
|
|||
|
|||
bSizer6->Add( bSizer7, 1, wxALL|wxEXPAND, 12 ); |
|||
|
|||
|
|||
m_panel2->SetSizer( bSizer6 ); |
|||
m_panel2->Layout(); |
|||
bSizer6->Fit( m_panel2 ); |
|||
m_notebook1->AddPage( m_panel2, _("Template Field Names"), false ); |
|||
|
|||
bOptionsSizer->Add( m_notebook1, 1, wxEXPAND, 0 ); |
|||
|
|||
m_sdbSizer1 = new wxStdDialogButtonSizer(); |
|||
m_sdbSizer1OK = new wxButton( this, wxID_OK ); |
|||
m_sdbSizer1->AddButton( m_sdbSizer1OK ); |
|||
m_sdbSizer1Cancel = new wxButton( this, wxID_CANCEL ); |
|||
m_sdbSizer1->AddButton( m_sdbSizer1Cancel ); |
|||
m_sdbSizer1->Realize(); |
|||
|
|||
bOptionsSizer->Add( m_sdbSizer1, 0, wxALL|wxEXPAND, 6 ); |
|||
|
|||
|
|||
mainSizer->Add( bOptionsSizer, 1, wxEXPAND, 12 ); |
|||
|
|||
|
|||
this->SetSizer( mainSizer ); |
|||
this->Layout(); |
|||
|
|||
this->Centre( wxBOTH ); |
|||
} |
|||
|
|||
DIALOG_EESCHEMA_OPTIONS_BASE::~DIALOG_EESCHEMA_OPTIONS_BASE() |
|||
{ |
|||
} |
|||
10013
eeschema/dialogs/dialog_eeschema_options_base.fbp
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
@ -1,127 +1,133 @@ |
|||
/////////////////////////////////////////////////////////////////////////// |
|||
// C++ code generated with wxFormBuilder (version Oct 8 2012) |
|||
// http://www.wxformbuilder.org/ |
|||
// |
|||
// PLEASE DO "NOT" EDIT THIS FILE! |
|||
/////////////////////////////////////////////////////////////////////////// |
|||
|
|||
#ifndef __DIALOG_EESCHEMA_OPTIONS_BASE_H__ |
|||
#define __DIALOG_EESCHEMA_OPTIONS_BASE_H__ |
|||
|
|||
#include <wx/artprov.h> |
|||
#include <wx/xrc/xmlres.h> |
|||
#include <wx/intl.h> |
|||
class DIALOG_SHIM; |
|||
|
|||
#include "dialog_shim.h" |
|||
#include <wx/string.h> |
|||
#include <wx/stattext.h> |
|||
#include <wx/gdicmn.h> |
|||
#include <wx/font.h> |
|||
#include <wx/colour.h> |
|||
#include <wx/settings.h> |
|||
#include <wx/choice.h> |
|||
#include <wx/spinctrl.h> |
|||
#include <wx/sizer.h> |
|||
#include <wx/checkbox.h> |
|||
#include <wx/panel.h> |
|||
#include <wx/bitmap.h> |
|||
#include <wx/image.h> |
|||
#include <wx/icon.h> |
|||
#include <wx/textctrl.h> |
|||
#include <wx/notebook.h> |
|||
#include <wx/button.h> |
|||
#include <wx/dialog.h> |
|||
|
|||
/////////////////////////////////////////////////////////////////////////// |
|||
|
|||
/////////////////////////////////////////////////////////////////////////////// |
|||
/// Class DIALOG_EESCHEMA_OPTIONS_BASE |
|||
/////////////////////////////////////////////////////////////////////////////// |
|||
class DIALOG_EESCHEMA_OPTIONS_BASE : public DIALOG_SHIM |
|||
{ |
|||
DECLARE_EVENT_TABLE() |
|||
private: |
|||
|
|||
// Private event handlers |
|||
void _wxFB_OnChooseUnits( wxCommandEvent& event ){ OnChooseUnits( event ); } |
|||
void _wxFB_OnMiddleBtnPanEnbl( wxCommandEvent& event ){ OnMiddleBtnPanEnbl( event ); } |
|||
|
|||
|
|||
protected: |
|||
enum |
|||
{ |
|||
ID_M_SPINAUTOSAVEINTERVAL = 1000, |
|||
xwID_ANY |
|||
}; |
|||
|
|||
wxNotebook* m_notebook1; |
|||
wxPanel* m_panel1; |
|||
wxStaticText* m_staticText2; |
|||
wxChoice* m_choiceUnits; |
|||
wxStaticText* m_staticText3; |
|||
wxChoice* m_choiceGridSize; |
|||
wxStaticText* m_staticGridUnits; |
|||
wxStaticText* m_staticText51; |
|||
wxSpinCtrl* m_spinBusWidth; |
|||
wxStaticText* m_staticBusWidthUnits; |
|||
wxStaticText* m_staticText5; |
|||
wxSpinCtrl* m_spinLineWidth; |
|||
wxStaticText* m_staticLineWidthUnits; |
|||
wxStaticText* m_staticText7; |
|||
wxSpinCtrl* m_spinTextSize; |
|||
wxStaticText* m_staticTextSizeUnits; |
|||
wxStaticText* m_staticText9; |
|||
wxSpinCtrl* m_spinRepeatHorizontal; |
|||
wxStaticText* m_staticRepeatXUnits; |
|||
wxStaticText* m_staticText12; |
|||
wxSpinCtrl* m_spinRepeatVertical; |
|||
wxStaticText* m_staticRepeatYUnits; |
|||
wxStaticText* m_staticText16; |
|||
wxSpinCtrl* m_spinRepeatLabel; |
|||
wxStaticText* m_staticText221; |
|||
wxSpinCtrl* m_spinAutoSaveInterval; |
|||
wxStaticText* m_staticText23; |
|||
wxCheckBox* m_checkShowGrid; |
|||
wxCheckBox* m_checkShowHiddenPins; |
|||
wxCheckBox* m_checkEnableZoomNoCenter; |
|||
wxCheckBox* m_checkEnableMiddleButtonPan; |
|||
wxCheckBox* m_checkMiddleButtonPanLimited; |
|||
wxCheckBox* m_checkAutoPan; |
|||
wxCheckBox* m_checkHVOrientation; |
|||
wxCheckBox* m_checkPageLimits; |
|||
wxPanel* m_panel2; |
|||
wxStaticText* m_staticText211; |
|||
wxStaticText* m_staticText15; |
|||
wxTextCtrl* m_fieldName1; |
|||
wxStaticText* m_staticText161; |
|||
wxTextCtrl* m_fieldName2; |
|||
wxStaticText* m_staticText17; |
|||
wxTextCtrl* m_fieldName3; |
|||
wxStaticText* m_staticText18; |
|||
wxTextCtrl* m_fieldName4; |
|||
wxStaticText* m_staticText19; |
|||
wxTextCtrl* m_fieldName5; |
|||
wxStaticText* m_staticText20; |
|||
wxTextCtrl* m_fieldName6; |
|||
wxStaticText* m_staticText21; |
|||
wxTextCtrl* m_fieldName7; |
|||
wxStaticText* m_staticText22; |
|||
wxTextCtrl* m_fieldName8; |
|||
wxStdDialogButtonSizer* m_sdbSizer1; |
|||
wxButton* m_sdbSizer1OK; |
|||
wxButton* m_sdbSizer1Cancel; |
|||
|
|||
// Virtual event handlers, overide them in your derived class |
|||
virtual void OnChooseUnits( wxCommandEvent& event ) { event.Skip(); } |
|||
virtual void OnMiddleBtnPanEnbl( wxCommandEvent& event ) { event.Skip(); } |
|||
|
|||
|
|||
public: |
|||
|
|||
DIALOG_EESCHEMA_OPTIONS_BASE( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = _("Schematic Editor Options"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER ); |
|||
~DIALOG_EESCHEMA_OPTIONS_BASE(); |
|||
|
|||
}; |
|||
|
|||
#endif //__DIALOG_EESCHEMA_OPTIONS_BASE_H__ |
|||
/////////////////////////////////////////////////////////////////////////// |
|||
// C++ code generated with wxFormBuilder (version Oct 8 2012) |
|||
// http://www.wxformbuilder.org/ |
|||
// |
|||
// PLEASE DO "NOT" EDIT THIS FILE! |
|||
/////////////////////////////////////////////////////////////////////////// |
|||
|
|||
#ifndef __DIALOG_EESCHEMA_OPTIONS_BASE_H__ |
|||
#define __DIALOG_EESCHEMA_OPTIONS_BASE_H__ |
|||
|
|||
#include <wx/artprov.h> |
|||
#include <wx/xrc/xmlres.h> |
|||
#include <wx/intl.h> |
|||
class DIALOG_SHIM; |
|||
|
|||
#include "dialog_shim.h" |
|||
#include <wx/string.h> |
|||
#include <wx/stattext.h> |
|||
#include <wx/gdicmn.h> |
|||
#include <wx/font.h> |
|||
#include <wx/colour.h> |
|||
#include <wx/settings.h> |
|||
#include <wx/choice.h> |
|||
#include <wx/spinctrl.h> |
|||
#include <wx/textctrl.h> |
|||
#include <wx/sizer.h> |
|||
#include <wx/statline.h> |
|||
#include <wx/checkbox.h> |
|||
#include <wx/panel.h> |
|||
#include <wx/bitmap.h> |
|||
#include <wx/image.h> |
|||
#include <wx/icon.h> |
|||
#include <wx/notebook.h> |
|||
#include <wx/button.h> |
|||
#include <wx/dialog.h> |
|||
|
|||
/////////////////////////////////////////////////////////////////////////// |
|||
|
|||
/////////////////////////////////////////////////////////////////////////////// |
|||
/// Class DIALOG_EESCHEMA_OPTIONS_BASE |
|||
/////////////////////////////////////////////////////////////////////////////// |
|||
class DIALOG_EESCHEMA_OPTIONS_BASE : public DIALOG_SHIM |
|||
{ |
|||
DECLARE_EVENT_TABLE() |
|||
private: |
|||
|
|||
// Private event handlers |
|||
void _wxFB_OnChooseUnits( wxCommandEvent& event ){ OnChooseUnits( event ); } |
|||
void _wxFB_OnMiddleBtnPanEnbl( wxCommandEvent& event ){ OnMiddleBtnPanEnbl( event ); } |
|||
|
|||
|
|||
protected: |
|||
enum |
|||
{ |
|||
ID_M_SPINAUTOSAVEINTERVAL = 1000, |
|||
xwID_ANY |
|||
}; |
|||
|
|||
wxNotebook* m_notebook1; |
|||
wxPanel* m_panel1; |
|||
wxStaticText* m_staticText2; |
|||
wxChoice* m_choiceUnits; |
|||
wxStaticText* m_staticText3; |
|||
wxChoice* m_choiceGridSize; |
|||
wxStaticText* m_staticGridUnits; |
|||
wxStaticText* m_staticText51; |
|||
wxSpinCtrl* m_spinBusWidth; |
|||
wxStaticText* m_staticBusWidthUnits; |
|||
wxStaticText* m_staticText5; |
|||
wxSpinCtrl* m_spinLineWidth; |
|||
wxStaticText* m_staticLineWidthUnits; |
|||
wxStaticText* m_staticText7; |
|||
wxSpinCtrl* m_spinTextSize; |
|||
wxStaticText* m_staticTextSizeUnits; |
|||
wxStaticText* m_staticText9; |
|||
wxSpinCtrl* m_spinRepeatHorizontal; |
|||
wxStaticText* m_staticRepeatXUnits; |
|||
wxStaticText* m_staticText12; |
|||
wxSpinCtrl* m_spinRepeatVertical; |
|||
wxStaticText* m_staticRepeatYUnits; |
|||
wxStaticText* m_staticText16; |
|||
wxSpinCtrl* m_spinRepeatLabel; |
|||
wxStaticText* m_staticText221; |
|||
wxSpinCtrl* m_spinAutoSaveInterval; |
|||
wxStaticText* m_staticText23; |
|||
wxStaticText* m_staticText26; |
|||
wxTextCtrl* m_textCtrlSeparatorRefId; |
|||
wxStaticText* m_staticText27; |
|||
wxTextCtrl* m_textCtrlPartFirstId; |
|||
wxStaticLine* m_staticline1; |
|||
wxCheckBox* m_checkShowGrid; |
|||
wxCheckBox* m_checkShowHiddenPins; |
|||
wxCheckBox* m_checkEnableZoomNoCenter; |
|||
wxCheckBox* m_checkEnableMiddleButtonPan; |
|||
wxCheckBox* m_checkMiddleButtonPanLimited; |
|||
wxCheckBox* m_checkAutoPan; |
|||
wxCheckBox* m_checkHVOrientation; |
|||
wxCheckBox* m_checkPageLimits; |
|||
wxPanel* m_panel2; |
|||
wxStaticText* m_staticText211; |
|||
wxStaticText* m_staticText15; |
|||
wxTextCtrl* m_fieldName1; |
|||
wxStaticText* m_staticText161; |
|||
wxTextCtrl* m_fieldName2; |
|||
wxStaticText* m_staticText17; |
|||
wxTextCtrl* m_fieldName3; |
|||
wxStaticText* m_staticText18; |
|||
wxTextCtrl* m_fieldName4; |
|||
wxStaticText* m_staticText19; |
|||
wxTextCtrl* m_fieldName5; |
|||
wxStaticText* m_staticText20; |
|||
wxTextCtrl* m_fieldName6; |
|||
wxStaticText* m_staticText21; |
|||
wxTextCtrl* m_fieldName7; |
|||
wxStaticText* m_staticText22; |
|||
wxTextCtrl* m_fieldName8; |
|||
wxStdDialogButtonSizer* m_sdbSizer1; |
|||
wxButton* m_sdbSizer1OK; |
|||
wxButton* m_sdbSizer1Cancel; |
|||
|
|||
// Virtual event handlers, overide them in your derived class |
|||
virtual void OnChooseUnits( wxCommandEvent& event ) { event.Skip(); } |
|||
virtual void OnMiddleBtnPanEnbl( wxCommandEvent& event ) { event.Skip(); } |
|||
|
|||
|
|||
public: |
|||
|
|||
DIALOG_EESCHEMA_OPTIONS_BASE( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = _("Schematic Editor Options"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 432,560 ), long style = wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER ); |
|||
~DIALOG_EESCHEMA_OPTIONS_BASE(); |
|||
|
|||
}; |
|||
|
|||
#endif //__DIALOG_EESCHEMA_OPTIONS_BASE_H__ |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue