23 changed files with 2069 additions and 43 deletions
-
10common/base_screen.cpp
-
1common/basicframe.cpp
-
4common/zoom.cpp
-
2eeschema/CMakeLists.txt
-
20eeschema/dialog_eeschema_config.cpp
-
42eeschema/dialog_libedit_dimensions.cpp
-
160eeschema/dialog_libedit_dimensions_base.cpp
-
1545eeschema/dialog_libedit_dimensions_base.fbp
-
75eeschema/dialog_libedit_dimensions_base.h
-
4eeschema/eelayer.cpp
-
4eeschema/eelayer.h
-
85eeschema/eeschema_config.cpp
-
5eeschema/eeschema_id.h
-
35eeschema/libeditframe.cpp
-
10eeschema/libeditframe.h
-
45eeschema/menubar_libedit.cpp
-
2eeschema/protos.h
-
24eeschema/schframe.cpp
-
8gerbview/gerberframe.cpp
-
7include/id.h
-
7include/wxEeschemaStruct.h
-
2pcbnew/classpcb.cpp
-
15pcbnew/pcbframe.cpp
@ -0,0 +1,42 @@ |
|||
/*
|
|||
* dialog_libedit_dimensions.cpp |
|||
* Handles the dialog so set current texts and pins sizes in LibEdit |
|||
*/ |
|||
#include "fctsys.h"
|
|||
//#include "appl_wxstruct.h"
|
|||
#include "common.h"
|
|||
//#include "class_drawpanel.h"
|
|||
|
|||
#include "program.h"
|
|||
#include "general.h"
|
|||
#include "libeditframe.h"
|
|||
|
|||
|
|||
#include "dialog_libedit_dimensions_base.h"
|
|||
|
|||
|
|||
class DIALOG_LIBEDIT_DIMENSIONS : public DIALOG_LIBEDIT_DIMENSIONS_BASE |
|||
{ |
|||
private: |
|||
public: |
|||
DIALOG_LIBEDIT_DIMENSIONS( WinEDA_LibeditFrame* parent); |
|||
~DIALOG_LIBEDIT_DIMENSIONS(); |
|||
|
|||
}; |
|||
|
|||
void WinEDA_LibeditFrame::InstallDimensionsDialog( wxCommandEvent& event ) |
|||
{ |
|||
DIALOG_LIBEDIT_DIMENSIONS dlg(this); |
|||
dlg.ShowModal( ); |
|||
} |
|||
|
|||
DIALOG_LIBEDIT_DIMENSIONS::DIALOG_LIBEDIT_DIMENSIONS( WinEDA_LibeditFrame* parent ) |
|||
: DIALOG_LIBEDIT_DIMENSIONS_BASE( parent ) |
|||
{ |
|||
this->Centre( wxBOTH ); |
|||
} |
|||
|
|||
DIALOG_LIBEDIT_DIMENSIONS::~DIALOG_LIBEDIT_DIMENSIONS() |
|||
{ |
|||
} |
|||
|
|||
@ -0,0 +1,160 @@ |
|||
///////////////////////////////////////////////////////////////////////////
|
|||
// C++ code generated with wxFormBuilder (version Apr 16 2008)
|
|||
// http://www.wxformbuilder.org/
|
|||
//
|
|||
// PLEASE DO "NOT" EDIT THIS FILE!
|
|||
///////////////////////////////////////////////////////////////////////////
|
|||
|
|||
#include "dialog_libedit_dimensions_base.h"
|
|||
|
|||
///////////////////////////////////////////////////////////////////////////
|
|||
|
|||
DIALOG_LIBEDIT_DIMENSIONS_BASE::DIALOG_LIBEDIT_DIMENSIONS_BASE( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxDialog( parent, id, title, pos, size, style ) |
|||
{ |
|||
this->SetSizeHints( wxDefaultSize, wxDefaultSize ); |
|||
|
|||
wxBoxSizer* mainSizer; |
|||
mainSizer = new wxBoxSizer( wxHORIZONTAL ); |
|||
|
|||
wxBoxSizer* bSizerMain; |
|||
bSizerMain = new wxBoxSizer( wxVERTICAL ); |
|||
|
|||
wxFlexGridSizer* fgSizer1; |
|||
fgSizer1 = new wxFlexGridSizer( 7, 3, 0, 0 ); |
|||
fgSizer1->AddGrowableCol( 0 ); |
|||
fgSizer1->AddGrowableCol( 1 ); |
|||
fgSizer1->AddGrowableCol( 2 ); |
|||
fgSizer1->SetFlexibleDirection( wxHORIZONTAL ); |
|||
fgSizer1->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED ); |
|||
|
|||
m_staticText3 = new wxStaticText( this, wxID_ANY, _("&Grid size:"), wxDefaultPosition, wxDefaultSize, 0 ); |
|||
m_staticText3->Wrap( -1 ); |
|||
fgSizer1->Add( m_staticText3, 1, wxALIGN_CENTER_VERTICAL|wxALL, 3 ); |
|||
|
|||
wxString m_choiceGridSizeChoices[] = { _("100"), _("50"), _("25"), _("10"), _("5"), _("2"), _("1") }; |
|||
int m_choiceGridSizeNChoices = sizeof( m_choiceGridSizeChoices ) / sizeof( wxString ); |
|||
m_choiceGridSize = new wxChoice( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choiceGridSizeNChoices, m_choiceGridSizeChoices, 0 ); |
|||
m_choiceGridSize->SetSelection( 0 ); |
|||
fgSizer1->Add( m_choiceGridSize, 0, wxALIGN_CENTER_VERTICAL|wxALL|wxEXPAND, 3 ); |
|||
|
|||
m_staticGridUnits = new wxStaticText( this, wxID_ANY, _("mils"), wxDefaultPosition, wxDefaultSize, 0 ); |
|||
m_staticGridUnits->Wrap( -1 ); |
|||
fgSizer1->Add( m_staticGridUnits, 0, wxALIGN_CENTER_VERTICAL|wxALL, 3 ); |
|||
|
|||
m_staticText5 = new wxStaticText( this, wxID_ANY, _("Current graphic &line width:"), wxDefaultPosition, wxDefaultSize, 0 ); |
|||
m_staticText5->Wrap( -1 ); |
|||
fgSizer1->Add( m_staticText5, 1, wxALIGN_CENTER_VERTICAL|wxALL, 3 ); |
|||
|
|||
m_CurrentGraphicLineThicknessCtrl = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 ); |
|||
fgSizer1->Add( m_CurrentGraphicLineThicknessCtrl, 0, wxALL|wxEXPAND, 5 ); |
|||
|
|||
m_staticLineWidthUnits = new wxStaticText( this, wxID_ANY, _("mils"), wxDefaultPosition, wxDefaultSize, 0 ); |
|||
m_staticLineWidthUnits->Wrap( -1 ); |
|||
fgSizer1->Add( m_staticLineWidthUnits, 0, wxALIGN_CENTER_VERTICAL|wxALL, 3 ); |
|||
|
|||
m_staticText7 = new wxStaticText( this, wxID_ANY, _("Current graphic text &size:"), wxDefaultPosition, wxDefaultSize, 0 ); |
|||
m_staticText7->Wrap( -1 ); |
|||
fgSizer1->Add( m_staticText7, 1, wxALIGN_CENTER_VERTICAL|wxALL, 3 ); |
|||
|
|||
m_CurrentGraphicTextSizeCtrl = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 ); |
|||
fgSizer1->Add( m_CurrentGraphicTextSizeCtrl, 0, wxALL|wxEXPAND, 5 ); |
|||
|
|||
m_staticTextSizeUnits = new wxStaticText( this, wxID_ANY, _("mils"), wxDefaultPosition, wxDefaultSize, 0 ); |
|||
m_staticTextSizeUnits->Wrap( -1 ); |
|||
fgSizer1->Add( m_staticTextSizeUnits, 0, wxALIGN_CENTER_VERTICAL|wxALL, 3 ); |
|||
|
|||
m_staticText9 = new wxStaticText( this, wxID_ANY, _("Repeat draw item &horizontal displacement:"), wxDefaultPosition, wxDefaultSize, 0 ); |
|||
m_staticText9->Wrap( -1 ); |
|||
fgSizer1->Add( m_staticText9, 1, wxALIGN_CENTER_VERTICAL|wxALL, 3 ); |
|||
|
|||
wxString m_choiceRepeatHorizontalChoices[] = { _("100"), _("50") }; |
|||
int m_choiceRepeatHorizontalNChoices = sizeof( m_choiceRepeatHorizontalChoices ) / sizeof( wxString ); |
|||
m_choiceRepeatHorizontal = new wxChoice( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choiceRepeatHorizontalNChoices, m_choiceRepeatHorizontalChoices, 0 ); |
|||
m_choiceRepeatHorizontal->SetSelection( 0 ); |
|||
fgSizer1->Add( m_choiceRepeatHorizontal, 0, wxALL|wxEXPAND, 5 ); |
|||
|
|||
m_staticRepeatXUnits = new wxStaticText( this, wxID_ANY, _("mils"), wxDefaultPosition, wxDefaultSize, 0 ); |
|||
m_staticRepeatXUnits->Wrap( -1 ); |
|||
fgSizer1->Add( m_staticRepeatXUnits, 0, wxALIGN_CENTER_VERTICAL|wxALL, 3 ); |
|||
|
|||
m_staticText12 = new wxStaticText( this, wxID_ANY, _("Repeat draw item &vertical displacement:"), wxDefaultPosition, wxDefaultSize, 0 ); |
|||
m_staticText12->Wrap( -1 ); |
|||
fgSizer1->Add( m_staticText12, 1, wxALIGN_CENTER_VERTICAL|wxALL, 3 ); |
|||
|
|||
wxString m_choiceRepeatVerticalChoices[] = { _("100"), _("50") }; |
|||
int m_choiceRepeatVerticalNChoices = sizeof( m_choiceRepeatVerticalChoices ) / sizeof( wxString ); |
|||
m_choiceRepeatVertical = new wxChoice( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_choiceRepeatVerticalNChoices, m_choiceRepeatVerticalChoices, 0 ); |
|||
m_choiceRepeatVertical->SetSelection( 0 ); |
|||
fgSizer1->Add( m_choiceRepeatVertical, 0, wxALL|wxEXPAND, 5 ); |
|||
|
|||
m_staticRepeatYUnits = new wxStaticText( this, wxID_ANY, _("mils"), wxDefaultPosition, wxDefaultSize, 0 ); |
|||
m_staticRepeatYUnits->Wrap( -1 ); |
|||
fgSizer1->Add( m_staticRepeatYUnits, 0, wxALIGN_CENTER_VERTICAL|wxALL, 3 ); |
|||
|
|||
m_staticText15 = new wxStaticText( this, wxID_ANY, _("Current &pin lenght"), wxDefaultPosition, wxDefaultSize, 0 ); |
|||
m_staticText15->Wrap( -1 ); |
|||
fgSizer1->Add( m_staticText15, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 ); |
|||
|
|||
m_CurrentPinLenghtCtrl = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 ); |
|||
fgSizer1->Add( m_CurrentPinLenghtCtrl, 0, wxEXPAND|wxALL, 5 ); |
|||
|
|||
m_staticText161 = new wxStaticText( this, wxID_ANY, _("mils"), wxDefaultPosition, wxDefaultSize, 0 ); |
|||
m_staticText161->Wrap( -1 ); |
|||
fgSizer1->Add( m_staticText161, 0, wxALL, 5 ); |
|||
|
|||
m_CurrentPinNameSizeText = new wxStaticText( this, wxID_ANY, _("Current pin name size"), wxDefaultPosition, wxDefaultSize, 0 ); |
|||
m_CurrentPinNameSizeText->Wrap( -1 ); |
|||
fgSizer1->Add( m_CurrentPinNameSizeText, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 ); |
|||
|
|||
m_CurrentPinNameSizeCtrl = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 ); |
|||
fgSizer1->Add( m_CurrentPinNameSizeCtrl, 0, wxALL|wxEXPAND, 5 ); |
|||
|
|||
m_staticText18 = new wxStaticText( this, wxID_ANY, _("mils"), wxDefaultPosition, wxDefaultSize, 0 ); |
|||
m_staticText18->Wrap( -1 ); |
|||
fgSizer1->Add( m_staticText18, 0, wxALL, 5 ); |
|||
|
|||
m_CurrentPinNumberSizeText = new wxStaticText( this, wxID_ANY, _("Current pin number size"), wxDefaultPosition, wxDefaultSize, 0 ); |
|||
m_CurrentPinNumberSizeText->Wrap( -1 ); |
|||
fgSizer1->Add( m_CurrentPinNumberSizeText, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 ); |
|||
|
|||
m_CurrentPinNumberSizeCtrl = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 ); |
|||
fgSizer1->Add( m_CurrentPinNumberSizeCtrl, 0, wxALL|wxEXPAND, 5 ); |
|||
|
|||
m_staticText20 = new wxStaticText( this, wxID_ANY, _("mils"), wxDefaultPosition, wxDefaultSize, 0 ); |
|||
m_staticText20->Wrap( -1 ); |
|||
fgSizer1->Add( m_staticText20, 0, wxALL, 5 ); |
|||
|
|||
m_staticText16 = new wxStaticText( this, wxID_ANY, _("&Repeat pin number increment:"), wxDefaultPosition, wxDefaultSize, 0 ); |
|||
m_staticText16->Wrap( -1 ); |
|||
fgSizer1->Add( m_staticText16, 0, wxALL|wxALIGN_CENTER_VERTICAL, 3 ); |
|||
|
|||
m_spinRepeatLabel = new wxSpinCtrl( this, 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 ); |
|||
|
|||
bSizerMain->Add( fgSizer1, 0, wxALIGN_CENTER|wxEXPAND, 0 ); |
|||
|
|||
m_staticline1 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL ); |
|||
bSizerMain->Add( m_staticline1, 0, wxEXPAND | wxALL, 5 ); |
|||
|
|||
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(); |
|||
bSizerMain->Add( m_sdbSizer1, 0, wxALL|wxEXPAND, 0 ); |
|||
|
|||
mainSizer->Add( bSizerMain, 1, wxALL|wxEXPAND, 12 ); |
|||
|
|||
this->SetSizer( mainSizer ); |
|||
this->Layout(); |
|||
|
|||
this->Centre( wxBOTH ); |
|||
} |
|||
|
|||
DIALOG_LIBEDIT_DIMENSIONS_BASE::~DIALOG_LIBEDIT_DIMENSIONS_BASE() |
|||
{ |
|||
} |
|||
1545
eeschema/dialog_libedit_dimensions_base.fbp
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
@ -0,0 +1,75 @@ |
|||
/////////////////////////////////////////////////////////////////////////// |
|||
// C++ code generated with wxFormBuilder (version Apr 16 2008) |
|||
// http://www.wxformbuilder.org/ |
|||
// |
|||
// PLEASE DO "NOT" EDIT THIS FILE! |
|||
/////////////////////////////////////////////////////////////////////////// |
|||
|
|||
#ifndef __dialog_libedit_dimensions_base__ |
|||
#define __dialog_libedit_dimensions_base__ |
|||
|
|||
#include <wx/intl.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/textctrl.h> |
|||
#include <wx/spinctrl.h> |
|||
#include <wx/sizer.h> |
|||
#include <wx/statline.h> |
|||
#include <wx/button.h> |
|||
#include <wx/dialog.h> |
|||
|
|||
/////////////////////////////////////////////////////////////////////////// |
|||
|
|||
/////////////////////////////////////////////////////////////////////////////// |
|||
/// Class DIALOG_LIBEDIT_DIMENSIONS_BASE |
|||
/////////////////////////////////////////////////////////////////////////////// |
|||
class DIALOG_LIBEDIT_DIMENSIONS_BASE : public wxDialog |
|||
{ |
|||
private: |
|||
|
|||
protected: |
|||
wxStaticText* m_staticText3; |
|||
wxChoice* m_choiceGridSize; |
|||
wxStaticText* m_staticGridUnits; |
|||
wxStaticText* m_staticText5; |
|||
wxTextCtrl* m_CurrentGraphicLineThicknessCtrl; |
|||
wxStaticText* m_staticLineWidthUnits; |
|||
wxStaticText* m_staticText7; |
|||
wxTextCtrl* m_CurrentGraphicTextSizeCtrl; |
|||
wxStaticText* m_staticTextSizeUnits; |
|||
wxStaticText* m_staticText9; |
|||
wxChoice* m_choiceRepeatHorizontal; |
|||
wxStaticText* m_staticRepeatXUnits; |
|||
wxStaticText* m_staticText12; |
|||
wxChoice* m_choiceRepeatVertical; |
|||
wxStaticText* m_staticRepeatYUnits; |
|||
wxStaticText* m_staticText15; |
|||
wxTextCtrl* m_CurrentPinLenghtCtrl; |
|||
wxStaticText* m_staticText161; |
|||
wxStaticText* m_CurrentPinNameSizeText; |
|||
wxTextCtrl* m_CurrentPinNameSizeCtrl; |
|||
wxStaticText* m_staticText18; |
|||
wxStaticText* m_CurrentPinNumberSizeText; |
|||
wxTextCtrl* m_CurrentPinNumberSizeCtrl; |
|||
wxStaticText* m_staticText20; |
|||
wxStaticText* m_staticText16; |
|||
wxSpinCtrl* m_spinRepeatLabel; |
|||
|
|||
wxStaticLine* m_staticline1; |
|||
wxStdDialogButtonSizer* m_sdbSizer1; |
|||
wxButton* m_sdbSizer1OK; |
|||
wxButton* m_sdbSizer1Cancel; |
|||
|
|||
public: |
|||
DIALOG_LIBEDIT_DIMENSIONS_BASE( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = _("Library Editor Options"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 412,358 ), long style = wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER ); |
|||
~DIALOG_LIBEDIT_DIMENSIONS_BASE(); |
|||
|
|||
}; |
|||
|
|||
#endif //__dialog_libedit_dimensions_base__ |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue