German translation update. Replaced dialog page settings dialogblock version by the same built with wxFormBuilder
This commit is contained in:
parent
bdb0ca80f9
commit
6aba45eb78
|
@ -4,6 +4,11 @@ KiCad ChangeLog 2010
|
||||||
Please add newer entries at the top, list the date and your name with
|
Please add newer entries at the top, list the date and your name with
|
||||||
email address.
|
email address.
|
||||||
|
|
||||||
|
2010-mar-13 UPDATE Jean-Pierre Charras <jean-pierre.charras@gipsa-lab.inpg.fr>
|
||||||
|
================================================================================
|
||||||
|
++ All:
|
||||||
|
Stable verion for kicad release
|
||||||
|
|
||||||
2010-mar-10 UPDATE Jean-Pierre Charras <jean-pierre.charras@gipsa-lab.inpg.fr>
|
2010-mar-10 UPDATE Jean-Pierre Charras <jean-pierre.charras@gipsa-lab.inpg.fr>
|
||||||
================================================================================
|
================================================================================
|
||||||
++Pcbnew:
|
++Pcbnew:
|
||||||
|
@ -18,7 +23,7 @@ email address.
|
||||||
//if defined, used the layer manager copper layers order
|
//if defined, used the layer manager copper layers order
|
||||||
// (from FRONT to BACK) to display inner layers.
|
// (from FRONT to BACK) to display inner layers.
|
||||||
// if not, use the default order (from BACK to FRONT)
|
// if not, use the default order (from BACK to FRONT)
|
||||||
|
|
||||||
Currently not active, can be changed if the correponding lines are uncommented in dialog_layers_setup.cpp
|
Currently not active, can be changed if the correponding lines are uncommented in dialog_layers_setup.cpp
|
||||||
|
|
||||||
2010-Mar-3 UPDATE Dick Hollenbeck <dick@softplc.com>
|
2010-Mar-3 UPDATE Dick Hollenbeck <dick@softplc.com>
|
||||||
|
|
|
@ -28,6 +28,7 @@ set(COMMON_SRCS
|
||||||
dialog_display_info_HTML_base.cpp
|
dialog_display_info_HTML_base.cpp
|
||||||
dialog_load_error.cpp
|
dialog_load_error.cpp
|
||||||
dcsvg.cpp
|
dcsvg.cpp
|
||||||
|
dialog_page_settings_base.cpp
|
||||||
displlst.cpp
|
displlst.cpp
|
||||||
dlist.cpp
|
dlist.cpp
|
||||||
drawframe.cpp
|
drawframe.cpp
|
||||||
|
|
|
@ -0,0 +1,267 @@
|
||||||
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
// Name: dialog_page_settings.cpp
|
||||||
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
/* The "Page Settings" dialog box created by this file (and setpage.h)
|
||||||
|
* contains seven checkboxes which *are* shown when that dialog box is
|
||||||
|
* invoked in EESchema, but which are *not* shown when that dialog box is
|
||||||
|
* invoked in Pcbnew instead.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "fctsys.h"
|
||||||
|
#include "common.h"
|
||||||
|
#include "base_struct.h"
|
||||||
|
#include "class_drawpanel.h"
|
||||||
|
#include "class_base_screen.h"
|
||||||
|
#include "wxstruct.h"
|
||||||
|
|
||||||
|
#include "wx/valgen.h"
|
||||||
|
|
||||||
|
#ifdef EESCHEMA
|
||||||
|
#include "program.h"
|
||||||
|
#include "general.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#include "dialog_page_settings.h"
|
||||||
|
|
||||||
|
#define NB_ITEMS 11
|
||||||
|
Ki_PageDescr * SheetList[NB_ITEMS + 1] =
|
||||||
|
{
|
||||||
|
&g_Sheet_A4, &g_Sheet_A3, &g_Sheet_A2, &g_Sheet_A1, &g_Sheet_A0,
|
||||||
|
&g_Sheet_A, &g_Sheet_B, &g_Sheet_C, &g_Sheet_D, &g_Sheet_E,
|
||||||
|
&g_Sheet_user, NULL
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/******************************************************************/
|
||||||
|
void WinEDA_DrawFrame::Process_PageSettings(wxCommandEvent& event)
|
||||||
|
/******************************************************************/
|
||||||
|
/* Creation de la fenetre de configuration
|
||||||
|
*/
|
||||||
|
{
|
||||||
|
DIALOG_PAGES_SETTINGS frame(this);
|
||||||
|
int diag = frame.ShowModal();
|
||||||
|
if ( DrawPanel && diag )
|
||||||
|
DrawPanel->Refresh();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
DIALOG_PAGES_SETTINGS::DIALOG_PAGES_SETTINGS( WinEDA_DrawFrame* parent ):
|
||||||
|
DIALOG_PAGES_SETTINGS_BASE( parent )
|
||||||
|
{
|
||||||
|
m_Parent = parent;
|
||||||
|
m_Screen = m_Parent->GetBaseScreen();
|
||||||
|
m_Modified = 0;
|
||||||
|
m_SelectedSheet = NULL;
|
||||||
|
m_CurrentSelection = 0;
|
||||||
|
|
||||||
|
initDialog( );
|
||||||
|
|
||||||
|
GetSizer()->SetSizeHints(this);
|
||||||
|
Centre();
|
||||||
|
}
|
||||||
|
|
||||||
|
DIALOG_PAGES_SETTINGS::~DIALOG_PAGES_SETTINGS()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
void DIALOG_PAGES_SETTINGS::initDialog()
|
||||||
|
{
|
||||||
|
wxString msg;
|
||||||
|
|
||||||
|
SetFocus();
|
||||||
|
SearchPageSizeSelection();
|
||||||
|
|
||||||
|
// Init display value for sheet User size
|
||||||
|
wxString format = m_TextSheetCount->GetLabel();
|
||||||
|
msg.Printf(format, m_Screen->m_NumberOfScreen);
|
||||||
|
m_TextSheetCount->SetLabel(msg);
|
||||||
|
format = m_TextSheetNumber->GetLabel();
|
||||||
|
msg.Printf(format, m_Screen->m_ScreenNumber);
|
||||||
|
m_TextSheetNumber->SetLabel(msg);
|
||||||
|
|
||||||
|
if( g_UnitMetric )
|
||||||
|
{
|
||||||
|
UserSizeX = (double)g_Sheet_user.m_Size.x * 25.4 / 1000;
|
||||||
|
UserSizeY = (double)g_Sheet_user.m_Size.y * 25.4 / 1000;
|
||||||
|
msg.Printf( wxT("%.2f"), UserSizeX );
|
||||||
|
m_TextUserSizeX->SetValue(msg);
|
||||||
|
msg.Printf( wxT("%.2f"), UserSizeY );
|
||||||
|
m_TextUserSizeY->SetValue(msg);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
UserSizeX = (double)g_Sheet_user.m_Size.x / 1000;
|
||||||
|
UserSizeY = (double)g_Sheet_user.m_Size.y / 1000;
|
||||||
|
msg.Printf( wxT("%.3f"), UserSizeX );
|
||||||
|
m_TextUserSizeX->SetValue(msg);
|
||||||
|
msg.Printf( wxT("%.3f"), UserSizeY );
|
||||||
|
m_TextUserSizeY->SetValue(msg);
|
||||||
|
}
|
||||||
|
// Set validators
|
||||||
|
m_PageSizeBox->SetValidator( wxGenericValidator(& m_CurrentSelection) );
|
||||||
|
m_TextRevision->SetValidator( wxTextValidator(wxFILTER_NONE, & m_Screen->m_Revision) );
|
||||||
|
m_TextTitle->SetValidator( wxTextValidator(wxFILTER_NONE, & m_Screen->m_Title) );
|
||||||
|
m_TextCompany->SetValidator( wxTextValidator(wxFILTER_NONE, & m_Screen->m_Company) );
|
||||||
|
m_TextComment1->SetValidator( wxTextValidator(wxFILTER_NONE, & m_Screen->m_Commentaire1) );
|
||||||
|
m_TextComment2->SetValidator( wxTextValidator(wxFILTER_NONE, & m_Screen->m_Commentaire2) );
|
||||||
|
m_TextComment3->SetValidator( wxTextValidator(wxFILTER_NONE, & m_Screen->m_Commentaire3) );
|
||||||
|
m_TextComment4->SetValidator( wxTextValidator(wxFILTER_NONE, & m_Screen->m_Commentaire4) );
|
||||||
|
|
||||||
|
#ifndef EESCHEMA
|
||||||
|
m_RevisionExport->Show(false);
|
||||||
|
m_TitleExport->Show(false);
|
||||||
|
m_CompanyExport->Show(false);
|
||||||
|
m_Comment1Export->Show(false);
|
||||||
|
m_Comment2Export->Show(false);
|
||||||
|
m_Comment3Export->Show(false);
|
||||||
|
m_Comment4Export->Show(false);
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/*!
|
||||||
|
* wxEVT_CLOSE_WINDOW event handler for ID_DIALOG
|
||||||
|
*/
|
||||||
|
|
||||||
|
void DIALOG_PAGES_SETTINGS::OnCloseWindow( wxCloseEvent& event )
|
||||||
|
{
|
||||||
|
EndModal( m_Modified );
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/*!
|
||||||
|
* wxEVT_COMMAND_BUTTON_CLICKED event handler for wxID_OK
|
||||||
|
*/
|
||||||
|
|
||||||
|
void DIALOG_PAGES_SETTINGS::OnOkClick( wxCommandEvent& event )
|
||||||
|
{
|
||||||
|
SavePageSettings( event );
|
||||||
|
m_Modified = 1;
|
||||||
|
Close( TRUE );
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/*!
|
||||||
|
* wxEVT_COMMAND_BUTTON_CLICKED event handler for wxID_CANCEL
|
||||||
|
*/
|
||||||
|
|
||||||
|
void DIALOG_PAGES_SETTINGS::OnCancelClick( wxCommandEvent& event )
|
||||||
|
{
|
||||||
|
Close( TRUE );
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/*****************************************************************/
|
||||||
|
void DIALOG_PAGES_SETTINGS::SavePageSettings(wxCommandEvent& event)
|
||||||
|
/*****************************************************************/
|
||||||
|
/* Mise a jour effective des textes et dimensions
|
||||||
|
*/
|
||||||
|
{
|
||||||
|
double dtmp;
|
||||||
|
wxString msg;
|
||||||
|
|
||||||
|
m_Screen->m_Revision = m_TextRevision->GetValue();
|
||||||
|
m_Screen->m_Company = m_TextCompany->GetValue();
|
||||||
|
m_Screen->m_Title = m_TextTitle->GetValue();
|
||||||
|
m_Screen->m_Commentaire1 = m_TextComment1->GetValue();
|
||||||
|
m_Screen->m_Commentaire2 = m_TextComment2->GetValue();
|
||||||
|
m_Screen->m_Commentaire3 = m_TextComment3->GetValue();
|
||||||
|
m_Screen->m_Commentaire4 = m_TextComment4->GetValue();
|
||||||
|
|
||||||
|
msg = m_TextUserSizeX->GetValue();
|
||||||
|
msg.ToDouble(&dtmp);
|
||||||
|
UserSizeX = dtmp;
|
||||||
|
msg = m_TextUserSizeY->GetValue();
|
||||||
|
msg.ToDouble(&dtmp);
|
||||||
|
UserSizeY = dtmp;
|
||||||
|
|
||||||
|
int ii = m_PageSizeBox->GetSelection();
|
||||||
|
|
||||||
|
if( ii < 0 )
|
||||||
|
ii = 0;
|
||||||
|
|
||||||
|
m_SelectedSheet = SheetList[ii];
|
||||||
|
m_Screen->m_CurrentSheetDesc = m_SelectedSheet;
|
||||||
|
|
||||||
|
if( g_UnitMetric )
|
||||||
|
{
|
||||||
|
g_Sheet_user.m_Size.x = (int)( UserSizeX * 1000 / 25.4 );
|
||||||
|
g_Sheet_user.m_Size.y = (int)( UserSizeY * 1000 / 25.4 );
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
g_Sheet_user.m_Size.x = (int)( UserSizeX * 1000 );
|
||||||
|
g_Sheet_user.m_Size.y = (int)( UserSizeY * 1000 );
|
||||||
|
}
|
||||||
|
|
||||||
|
if( g_Sheet_user.m_Size.x < 6000 )
|
||||||
|
g_Sheet_user.m_Size.x = 6000;
|
||||||
|
|
||||||
|
if( g_Sheet_user.m_Size.x > 44000 )
|
||||||
|
g_Sheet_user.m_Size.x = 44000;
|
||||||
|
|
||||||
|
if( g_Sheet_user.m_Size.y < 4000 )
|
||||||
|
g_Sheet_user.m_Size.y = 4000;
|
||||||
|
|
||||||
|
if( g_Sheet_user.m_Size.y > 44000 )
|
||||||
|
g_Sheet_user.m_Size.y = 44000;
|
||||||
|
|
||||||
|
#ifdef EESCHEMA
|
||||||
|
/* Exports settings to other sheets if requested: */
|
||||||
|
SCH_SCREEN * screen;
|
||||||
|
/* Build the screen list */
|
||||||
|
EDA_ScreenList ScreenList;
|
||||||
|
/* Update the datas */
|
||||||
|
for( screen = ScreenList.GetFirst(); screen != NULL; screen = ScreenList.GetNext() )
|
||||||
|
{
|
||||||
|
if( screen == m_Screen )
|
||||||
|
continue;
|
||||||
|
|
||||||
|
if( m_RevisionExport->IsChecked() )
|
||||||
|
screen->m_Revision = m_Screen->m_Revision;
|
||||||
|
|
||||||
|
if( m_TitleExport->IsChecked() )
|
||||||
|
screen->m_Title =m_Screen->m_Title;
|
||||||
|
|
||||||
|
if( m_CompanyExport->IsChecked() )
|
||||||
|
screen->m_Company = m_Screen->m_Company;
|
||||||
|
|
||||||
|
if( m_Comment1Export->IsChecked() )
|
||||||
|
screen->m_Commentaire1 = m_Screen->m_Commentaire1;
|
||||||
|
|
||||||
|
if( m_Comment2Export->IsChecked() )
|
||||||
|
screen->m_Commentaire2 = m_Screen->m_Commentaire2;
|
||||||
|
|
||||||
|
if( m_Comment3Export->IsChecked() )
|
||||||
|
screen->m_Commentaire3 = m_Screen->m_Commentaire3;
|
||||||
|
|
||||||
|
if( m_Comment4Export->IsChecked() )
|
||||||
|
screen->m_Commentaire4 = m_Screen->m_Commentaire4;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
m_Screen->SetModify();
|
||||||
|
m_Screen->SetRefreshReq();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/*******************************************************/
|
||||||
|
void DIALOG_PAGES_SETTINGS::SearchPageSizeSelection()
|
||||||
|
/*******************************************************/
|
||||||
|
/* Search the correct index to activate the radiobox list size selection
|
||||||
|
* according to the current page size
|
||||||
|
*/
|
||||||
|
{
|
||||||
|
Ki_PageDescr * sheet;
|
||||||
|
int ii;
|
||||||
|
|
||||||
|
m_CurrentSelection = NB_ITEMS - 1;
|
||||||
|
for( ii = 0; ii < NB_ITEMS; ii++ )
|
||||||
|
{
|
||||||
|
sheet = SheetList[ii];
|
||||||
|
if( m_Parent->GetBaseScreen()->m_CurrentSheetDesc == sheet )
|
||||||
|
m_CurrentSelection = ii;
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,46 @@
|
||||||
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
// Name: setpage.h
|
||||||
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
#ifndef _DIALOG_PAGES_SETTINGS_H_
|
||||||
|
#define _DIALOG_PAGES_SETTINGS_H_
|
||||||
|
|
||||||
|
#include "dialog_page_settings_base.h"
|
||||||
|
|
||||||
|
/*!
|
||||||
|
* DIALOG_PAGES_SETTINGS class declaration
|
||||||
|
*/
|
||||||
|
|
||||||
|
class DIALOG_PAGES_SETTINGS: public DIALOG_PAGES_SETTINGS_BASE
|
||||||
|
{
|
||||||
|
private:
|
||||||
|
WinEDA_DrawFrame *m_Parent;
|
||||||
|
BASE_SCREEN * m_Screen;
|
||||||
|
int m_Modified;
|
||||||
|
Ki_PageDescr * m_SelectedSheet;
|
||||||
|
float UserSizeX, UserSizeY;
|
||||||
|
int m_CurrentSelection;
|
||||||
|
|
||||||
|
public:
|
||||||
|
DIALOG_PAGES_SETTINGS( WinEDA_DrawFrame* parent );
|
||||||
|
~DIALOG_PAGES_SETTINGS();
|
||||||
|
|
||||||
|
private:
|
||||||
|
/// Initialises member variables
|
||||||
|
void initDialog();
|
||||||
|
|
||||||
|
/// wxEVT_CLOSE_WINDOW event handler for ID_DIALOG
|
||||||
|
void OnCloseWindow( wxCloseEvent& event );
|
||||||
|
|
||||||
|
/// wxEVT_COMMAND_BUTTON_CLICKED event handler for wxID_OK
|
||||||
|
void OnOkClick( wxCommandEvent& event );
|
||||||
|
|
||||||
|
/// wxEVT_COMMAND_BUTTON_CLICKED event handler for wxID_CANCEL
|
||||||
|
void OnCancelClick( wxCommandEvent& event );
|
||||||
|
void SearchPageSizeSelection();
|
||||||
|
void SavePageSettings(wxCommandEvent& event);
|
||||||
|
void ReturnSizeSelected(wxCommandEvent& event);
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif // _DIALOG_PAGES_SETTINGS_H_
|
|
@ -0,0 +1,233 @@
|
||||||
|
///////////////////////////////////////////////////////////////////////////
|
||||||
|
// C++ code generated with wxFormBuilder (version Apr 16 2008)
|
||||||
|
// http://www.wxformbuilder.org/
|
||||||
|
//
|
||||||
|
// PLEASE DO "NOT" EDIT THIS FILE!
|
||||||
|
///////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
#include "dialog_page_settings_base.h"
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
DIALOG_PAGES_SETTINGS_BASE::DIALOG_PAGES_SETTINGS_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* bMainSizer;
|
||||||
|
bMainSizer = new wxBoxSizer( wxVERTICAL );
|
||||||
|
|
||||||
|
wxBoxSizer* bUpperSizerH;
|
||||||
|
bUpperSizerH = new wxBoxSizer( wxHORIZONTAL );
|
||||||
|
|
||||||
|
wxFlexGridSizer* LeftColumnSizer;
|
||||||
|
LeftColumnSizer = new wxFlexGridSizer( 6, 1, 0, 0 );
|
||||||
|
LeftColumnSizer->AddGrowableRow( 1 );
|
||||||
|
LeftColumnSizer->AddGrowableRow( 3 );
|
||||||
|
LeftColumnSizer->AddGrowableRow( 4 );
|
||||||
|
LeftColumnSizer->AddGrowableRow( 5 );
|
||||||
|
LeftColumnSizer->SetFlexibleDirection( wxBOTH );
|
||||||
|
LeftColumnSizer->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
|
||||||
|
|
||||||
|
wxString m_PageSizeBoxChoices[] = { _("Size A4"), _("Size A3"), _("Size A2"), _("Size A1"), _("Size A0"), _("Size A"), _("Size B"), _("Size C"), _("Size D"), _("Size E"), _("User size") };
|
||||||
|
int m_PageSizeBoxNChoices = sizeof( m_PageSizeBoxChoices ) / sizeof( wxString );
|
||||||
|
m_PageSizeBox = new wxRadioBox( this, wxID_ANY, _("wxRadioBox"), wxDefaultPosition, wxDefaultSize, m_PageSizeBoxNChoices, m_PageSizeBoxChoices, 1, wxRA_SPECIFY_COLS );
|
||||||
|
m_PageSizeBox->SetSelection( 1 );
|
||||||
|
LeftColumnSizer->Add( m_PageSizeBox, 0, wxALL|wxEXPAND, 5 );
|
||||||
|
|
||||||
|
|
||||||
|
LeftColumnSizer->Add( 5, 0, 1, wxEXPAND, 5 );
|
||||||
|
|
||||||
|
wxBoxSizer* bSizerXsize;
|
||||||
|
bSizerXsize = new wxBoxSizer( wxVERTICAL );
|
||||||
|
|
||||||
|
UserPageSizeX = new wxStaticText( this, wxID_ANY, _("User Page Size X: "), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
|
UserPageSizeX->Wrap( -1 );
|
||||||
|
bSizerXsize->Add( UserPageSizeX, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
|
||||||
|
|
||||||
|
m_TextUserSizeX = new wxTextCtrl( this, ID_TEXTCTRL_USER_PAGE_SIZE_X, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
|
bSizerXsize->Add( m_TextUserSizeX, 0, wxBOTTOM|wxRIGHT|wxLEFT, 5 );
|
||||||
|
|
||||||
|
LeftColumnSizer->Add( bSizerXsize, 1, wxEXPAND, 5 );
|
||||||
|
|
||||||
|
wxBoxSizer* bSizerYsize;
|
||||||
|
bSizerYsize = new wxBoxSizer( wxVERTICAL );
|
||||||
|
|
||||||
|
UserPageSizeY = new wxStaticText( this, wxID_ANY, _("User Page Size Y: "), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
|
UserPageSizeY->Wrap( -1 );
|
||||||
|
bSizerYsize->Add( UserPageSizeY, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
|
||||||
|
|
||||||
|
m_TextUserSizeY = new wxTextCtrl( this, ID_TEXTCTRL_USER_PAGE_SIZE_Y, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
|
bSizerYsize->Add( m_TextUserSizeY, 0, wxBOTTOM|wxRIGHT|wxLEFT, 5 );
|
||||||
|
|
||||||
|
LeftColumnSizer->Add( bSizerYsize, 1, wxEXPAND, 5 );
|
||||||
|
|
||||||
|
|
||||||
|
LeftColumnSizer->Add( 5, 5, 1, wxEXPAND, 5 );
|
||||||
|
|
||||||
|
|
||||||
|
LeftColumnSizer->Add( 5, 5, 1, wxEXPAND, 5 );
|
||||||
|
|
||||||
|
bUpperSizerH->Add( LeftColumnSizer, 0, wxEXPAND, 5 );
|
||||||
|
|
||||||
|
wxFlexGridSizer* RightColumnSizer;
|
||||||
|
RightColumnSizer = new wxFlexGridSizer( 8, 1, 0, 0 );
|
||||||
|
RightColumnSizer->AddGrowableCol( 0 );
|
||||||
|
RightColumnSizer->AddGrowableRow( 0 );
|
||||||
|
RightColumnSizer->AddGrowableRow( 1 );
|
||||||
|
RightColumnSizer->AddGrowableRow( 2 );
|
||||||
|
RightColumnSizer->AddGrowableRow( 3 );
|
||||||
|
RightColumnSizer->AddGrowableRow( 4 );
|
||||||
|
RightColumnSizer->AddGrowableRow( 5 );
|
||||||
|
RightColumnSizer->AddGrowableRow( 6 );
|
||||||
|
RightColumnSizer->AddGrowableRow( 7 );
|
||||||
|
RightColumnSizer->SetFlexibleDirection( wxBOTH );
|
||||||
|
RightColumnSizer->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
|
||||||
|
|
||||||
|
wxBoxSizer* SheetInfoSizer;
|
||||||
|
SheetInfoSizer = new wxBoxSizer( wxHORIZONTAL );
|
||||||
|
|
||||||
|
m_TextSheetCount = new wxStaticText( this, wxID_ANY, _("Number of sheets: %d"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
|
m_TextSheetCount->Wrap( -1 );
|
||||||
|
SheetInfoSizer->Add( m_TextSheetCount, 0, wxALL, 5 );
|
||||||
|
|
||||||
|
|
||||||
|
SheetInfoSizer->Add( 5, 5, 1, wxEXPAND, 5 );
|
||||||
|
|
||||||
|
m_TextSheetNumber = new wxStaticText( this, wxID_ANY, _("Sheet number: %d"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
|
m_TextSheetNumber->Wrap( -1 );
|
||||||
|
SheetInfoSizer->Add( m_TextSheetNumber, 0, wxALL, 5 );
|
||||||
|
|
||||||
|
RightColumnSizer->Add( SheetInfoSizer, 1, 0, 5 );
|
||||||
|
|
||||||
|
wxStaticBoxSizer* RevisionSizer;
|
||||||
|
RevisionSizer = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Revision:") ), wxHORIZONTAL );
|
||||||
|
|
||||||
|
m_TextRevision = new wxTextCtrl( this, ID_TEXTCTRL_REVISION, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
|
m_TextRevision->SetMinSize( wxSize( 100,-1 ) );
|
||||||
|
|
||||||
|
RevisionSizer->Add( m_TextRevision, 0, wxBOTTOM|wxRIGHT|wxLEFT, 5 );
|
||||||
|
|
||||||
|
m_RevisionExport = new wxCheckBox( this, ID_CHECKBOX_REVISION, _("Export to other sheets"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
|
|
||||||
|
RevisionSizer->Add( m_RevisionExport, 0, wxALL, 5 );
|
||||||
|
|
||||||
|
RightColumnSizer->Add( RevisionSizer, 1, wxEXPAND, 5 );
|
||||||
|
|
||||||
|
wxStaticBoxSizer* TitleSizer;
|
||||||
|
TitleSizer = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Title:") ), wxHORIZONTAL );
|
||||||
|
|
||||||
|
m_TextTitle = new wxTextCtrl( this, ID_TEXTCTRL_TITLE, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
|
m_TextTitle->SetMinSize( wxSize( 400,-1 ) );
|
||||||
|
|
||||||
|
TitleSizer->Add( m_TextTitle, 1, wxBOTTOM|wxRIGHT|wxLEFT, 5 );
|
||||||
|
|
||||||
|
m_TitleExport = new wxCheckBox( this, wxID_ANY, _("Export to other sheets"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
|
|
||||||
|
TitleSizer->Add( m_TitleExport, 0, wxALL, 5 );
|
||||||
|
|
||||||
|
RightColumnSizer->Add( TitleSizer, 1, wxEXPAND, 5 );
|
||||||
|
|
||||||
|
wxStaticBoxSizer* CompanySizer;
|
||||||
|
CompanySizer = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Company:") ), wxHORIZONTAL );
|
||||||
|
|
||||||
|
m_TextCompany = new wxTextCtrl( this, ID_TEXTCTRL_COMPANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
|
m_TextCompany->SetMinSize( wxSize( 400,-1 ) );
|
||||||
|
|
||||||
|
CompanySizer->Add( m_TextCompany, 1, wxBOTTOM|wxRIGHT|wxLEFT, 5 );
|
||||||
|
|
||||||
|
m_CompanyExport = new wxCheckBox( this, ID_CHECKBOX_COMPANY, _("Export to other sheets"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
|
|
||||||
|
CompanySizer->Add( m_CompanyExport, 0, wxALL, 5 );
|
||||||
|
|
||||||
|
RightColumnSizer->Add( CompanySizer, 1, wxEXPAND, 5 );
|
||||||
|
|
||||||
|
wxStaticBoxSizer* Comment1Sizer;
|
||||||
|
Comment1Sizer = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Comment1:") ), wxHORIZONTAL );
|
||||||
|
|
||||||
|
m_TextComment1 = new wxTextCtrl( this, ID_TEXTCTRL_COMMENT1, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
|
m_TextComment1->SetMinSize( wxSize( 400,-1 ) );
|
||||||
|
|
||||||
|
Comment1Sizer->Add( m_TextComment1, 1, wxBOTTOM|wxRIGHT|wxLEFT, 5 );
|
||||||
|
|
||||||
|
m_Comment1Export = new wxCheckBox( this, ID_CHECKBOX_COMMENT1, _("Export to other sheets"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
|
|
||||||
|
Comment1Sizer->Add( m_Comment1Export, 0, wxALL, 5 );
|
||||||
|
|
||||||
|
RightColumnSizer->Add( Comment1Sizer, 1, wxEXPAND, 5 );
|
||||||
|
|
||||||
|
wxStaticBoxSizer* Comment2Sizer;
|
||||||
|
Comment2Sizer = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Comment2:") ), wxHORIZONTAL );
|
||||||
|
|
||||||
|
m_TextComment2 = new wxTextCtrl( this, ID_TEXTCTRL_COMMENT2, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
|
m_TextComment2->SetMinSize( wxSize( 400,-1 ) );
|
||||||
|
|
||||||
|
Comment2Sizer->Add( m_TextComment2, 1, wxBOTTOM|wxRIGHT|wxLEFT, 5 );
|
||||||
|
|
||||||
|
m_Comment2Export = new wxCheckBox( this, ID_CHECKBOX_COMMENT2, _("Export to other sheets"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
|
|
||||||
|
Comment2Sizer->Add( m_Comment2Export, 0, wxALL, 5 );
|
||||||
|
|
||||||
|
RightColumnSizer->Add( Comment2Sizer, 1, wxEXPAND, 5 );
|
||||||
|
|
||||||
|
wxStaticBoxSizer* Comment3Sizer;
|
||||||
|
Comment3Sizer = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Comment3:") ), wxHORIZONTAL );
|
||||||
|
|
||||||
|
m_TextComment3 = new wxTextCtrl( this, ID_TEXTCTRL_COMMENT3, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
|
m_TextComment3->SetMinSize( wxSize( 400,-1 ) );
|
||||||
|
|
||||||
|
Comment3Sizer->Add( m_TextComment3, 1, wxBOTTOM|wxRIGHT|wxLEFT, 5 );
|
||||||
|
|
||||||
|
m_Comment3Export = new wxCheckBox( this, ID_CHECKBOX_COMMENT3, _("Export to other sheets"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
|
|
||||||
|
Comment3Sizer->Add( m_Comment3Export, 0, wxALL, 5 );
|
||||||
|
|
||||||
|
RightColumnSizer->Add( Comment3Sizer, 1, wxEXPAND, 5 );
|
||||||
|
|
||||||
|
wxStaticBoxSizer* Comment4Sizer;
|
||||||
|
Comment4Sizer = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Comment4:") ), wxHORIZONTAL );
|
||||||
|
|
||||||
|
m_TextComment4 = new wxTextCtrl( this, ID_TEXTCTRL_COMMENT4, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
|
m_TextComment4->SetMinSize( wxSize( 400,-1 ) );
|
||||||
|
|
||||||
|
Comment4Sizer->Add( m_TextComment4, 1, wxBOTTOM|wxRIGHT|wxLEFT, 5 );
|
||||||
|
|
||||||
|
m_Comment4Export = new wxCheckBox( this, ID_CHECKBOX_COMMENT4, _("Export to other sheets"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
|
|
||||||
|
Comment4Sizer->Add( m_Comment4Export, 0, wxALL, 5 );
|
||||||
|
|
||||||
|
RightColumnSizer->Add( Comment4Sizer, 1, wxEXPAND, 5 );
|
||||||
|
|
||||||
|
bUpperSizerH->Add( RightColumnSizer, 1, wxEXPAND, 5 );
|
||||||
|
|
||||||
|
bMainSizer->Add( bUpperSizerH, 1, wxEXPAND, 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();
|
||||||
|
bMainSizer->Add( m_sdbSizer1, 0, wxEXPAND|wxALIGN_RIGHT|wxALL, 5 );
|
||||||
|
|
||||||
|
this->SetSizer( bMainSizer );
|
||||||
|
this->Layout();
|
||||||
|
|
||||||
|
// Connect Events
|
||||||
|
this->Connect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( DIALOG_PAGES_SETTINGS_BASE::OnCloseWindow ) );
|
||||||
|
m_TextUserSizeX->Connect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( DIALOG_PAGES_SETTINGS_BASE::OnTextctrlUserPageSizeXTextUpdated ), NULL, this );
|
||||||
|
m_TextUserSizeY->Connect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( DIALOG_PAGES_SETTINGS_BASE::OnTextctrlUserPageSizeYTextUpdated ), NULL, this );
|
||||||
|
m_TitleExport->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_PAGES_SETTINGS_BASE::OnCheckboxTitleClick ), NULL, this );
|
||||||
|
m_sdbSizer1Cancel->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_PAGES_SETTINGS_BASE::OnCancelClick ), NULL, this );
|
||||||
|
m_sdbSizer1OK->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_PAGES_SETTINGS_BASE::OnOkClick ), NULL, this );
|
||||||
|
}
|
||||||
|
|
||||||
|
DIALOG_PAGES_SETTINGS_BASE::~DIALOG_PAGES_SETTINGS_BASE()
|
||||||
|
{
|
||||||
|
// Disconnect Events
|
||||||
|
this->Disconnect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( DIALOG_PAGES_SETTINGS_BASE::OnCloseWindow ) );
|
||||||
|
m_TextUserSizeX->Disconnect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( DIALOG_PAGES_SETTINGS_BASE::OnTextctrlUserPageSizeXTextUpdated ), NULL, this );
|
||||||
|
m_TextUserSizeY->Disconnect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( DIALOG_PAGES_SETTINGS_BASE::OnTextctrlUserPageSizeYTextUpdated ), NULL, this );
|
||||||
|
m_TitleExport->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_PAGES_SETTINGS_BASE::OnCheckboxTitleClick ), NULL, this );
|
||||||
|
m_sdbSizer1Cancel->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_PAGES_SETTINGS_BASE::OnCancelClick ), NULL, this );
|
||||||
|
m_sdbSizer1OK->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_PAGES_SETTINGS_BASE::OnOkClick ), NULL, this );
|
||||||
|
}
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,97 @@
|
||||||
|
///////////////////////////////////////////////////////////////////////////
|
||||||
|
// C++ code generated with wxFormBuilder (version Apr 16 2008)
|
||||||
|
// http://www.wxformbuilder.org/
|
||||||
|
//
|
||||||
|
// PLEASE DO "NOT" EDIT THIS FILE!
|
||||||
|
///////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
#ifndef __dialog_page_settings_base__
|
||||||
|
#define __dialog_page_settings_base__
|
||||||
|
|
||||||
|
#include <wx/intl.h>
|
||||||
|
|
||||||
|
#include <wx/string.h>
|
||||||
|
#include <wx/radiobox.h>
|
||||||
|
#include <wx/gdicmn.h>
|
||||||
|
#include <wx/font.h>
|
||||||
|
#include <wx/colour.h>
|
||||||
|
#include <wx/settings.h>
|
||||||
|
#include <wx/stattext.h>
|
||||||
|
#include <wx/textctrl.h>
|
||||||
|
#include <wx/sizer.h>
|
||||||
|
#include <wx/checkbox.h>
|
||||||
|
#include <wx/statbox.h>
|
||||||
|
#include <wx/button.h>
|
||||||
|
#include <wx/dialog.h>
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
#define ID_TEXTCTRL_USER_PAGE_SIZE_X 1000
|
||||||
|
#define ID_TEXTCTRL_USER_PAGE_SIZE_Y 1001
|
||||||
|
#define ID_TEXTCTRL_REVISION 1002
|
||||||
|
#define ID_CHECKBOX_REVISION 1003
|
||||||
|
#define ID_TEXTCTRL_TITLE 1004
|
||||||
|
#define ID_TEXTCTRL_COMPANY 1005
|
||||||
|
#define ID_CHECKBOX_COMPANY 1006
|
||||||
|
#define ID_TEXTCTRL_COMMENT1 1007
|
||||||
|
#define ID_CHECKBOX_COMMENT1 1008
|
||||||
|
#define ID_TEXTCTRL_COMMENT2 1009
|
||||||
|
#define ID_CHECKBOX_COMMENT2 1010
|
||||||
|
#define ID_TEXTCTRL_COMMENT3 1011
|
||||||
|
#define ID_CHECKBOX_COMMENT3 1012
|
||||||
|
#define ID_TEXTCTRL_COMMENT4 1013
|
||||||
|
#define ID_CHECKBOX_COMMENT4 1014
|
||||||
|
|
||||||
|
///////////////////////////////////////////////////////////////////////////////
|
||||||
|
/// Class DIALOG_PAGES_SETTINGS_BASE
|
||||||
|
///////////////////////////////////////////////////////////////////////////////
|
||||||
|
class DIALOG_PAGES_SETTINGS_BASE : public wxDialog
|
||||||
|
{
|
||||||
|
private:
|
||||||
|
|
||||||
|
protected:
|
||||||
|
wxRadioBox* m_PageSizeBox;
|
||||||
|
|
||||||
|
wxStaticText* UserPageSizeX;
|
||||||
|
wxTextCtrl* m_TextUserSizeX;
|
||||||
|
wxStaticText* UserPageSizeY;
|
||||||
|
wxTextCtrl* m_TextUserSizeY;
|
||||||
|
|
||||||
|
|
||||||
|
wxStaticText* m_TextSheetCount;
|
||||||
|
|
||||||
|
wxStaticText* m_TextSheetNumber;
|
||||||
|
wxTextCtrl* m_TextRevision;
|
||||||
|
wxCheckBox* m_RevisionExport;
|
||||||
|
wxTextCtrl* m_TextTitle;
|
||||||
|
wxCheckBox* m_TitleExport;
|
||||||
|
wxTextCtrl* m_TextCompany;
|
||||||
|
wxCheckBox* m_CompanyExport;
|
||||||
|
wxTextCtrl* m_TextComment1;
|
||||||
|
wxCheckBox* m_Comment1Export;
|
||||||
|
wxTextCtrl* m_TextComment2;
|
||||||
|
wxCheckBox* m_Comment2Export;
|
||||||
|
wxTextCtrl* m_TextComment3;
|
||||||
|
wxCheckBox* m_Comment3Export;
|
||||||
|
wxTextCtrl* m_TextComment4;
|
||||||
|
wxCheckBox* m_Comment4Export;
|
||||||
|
wxStdDialogButtonSizer* m_sdbSizer1;
|
||||||
|
wxButton* m_sdbSizer1OK;
|
||||||
|
wxButton* m_sdbSizer1Cancel;
|
||||||
|
|
||||||
|
// Virtual event handlers, overide them in your derived class
|
||||||
|
virtual void OnCloseWindow( wxCloseEvent& event ){ event.Skip(); }
|
||||||
|
virtual void OnTextctrlUserPageSizeXTextUpdated( wxCommandEvent& event ){ event.Skip(); }
|
||||||
|
virtual void OnTextctrlUserPageSizeYTextUpdated( wxCommandEvent& event ){ event.Skip(); }
|
||||||
|
virtual void OnCheckboxTitleClick( wxCommandEvent& event ){ event.Skip(); }
|
||||||
|
virtual void OnCancelClick( wxCommandEvent& event ){ event.Skip(); }
|
||||||
|
virtual void OnOkClick( wxCommandEvent& event ){ event.Skip(); }
|
||||||
|
|
||||||
|
|
||||||
|
public:
|
||||||
|
DIALOG_PAGES_SETTINGS_BASE( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = _("Page Settings"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 439,497 ), long style = wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER );
|
||||||
|
~DIALOG_PAGES_SETTINGS_BASE();
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif //__dialog_page_settings_base__
|
|
@ -125,8 +125,8 @@ set(EESCHEMA_SRCS
|
||||||
viewlibs.cpp)
|
viewlibs.cpp)
|
||||||
|
|
||||||
set(EESCHEMA_EXTRA_SRCS
|
set(EESCHEMA_EXTRA_SRCS
|
||||||
|
../common/dialog_page_settings.cpp
|
||||||
../common/sch_item_struct.cpp
|
../common/sch_item_struct.cpp
|
||||||
../share/setpage.cpp
|
|
||||||
)
|
)
|
||||||
|
|
||||||
if(WIN32)
|
if(WIN32)
|
||||||
|
|
Binary file not shown.
1760
internat/de/kicad.po
1760
internat/de/kicad.po
File diff suppressed because it is too large
Load Diff
|
@ -174,7 +174,7 @@ set(PCBNEW_SRCS
|
||||||
)
|
)
|
||||||
|
|
||||||
set(PCBNEW_EXTRA_SRCS
|
set(PCBNEW_EXTRA_SRCS
|
||||||
../share/setpage.cpp
|
../common/dialog_page_settings.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
if(WIN32)
|
if(WIN32)
|
||||||
|
|
|
@ -1,614 +0,0 @@
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
|
||||||
// Name: setpage.cpp
|
|
||||||
// Purpose:
|
|
||||||
// Author: jean-pierre Charras
|
|
||||||
// Modified by:
|
|
||||||
// Created: 13/11/2007 09:11:27
|
|
||||||
// RCS-ID:
|
|
||||||
// Copyright: License GNU
|
|
||||||
// Licence:
|
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
|
||||||
|
|
||||||
/* The "Page Settings" dialog box created by this file (and setpage.h)
|
|
||||||
* contains seven checkboxes which *are* provided when that dialog box is
|
|
||||||
* invoked in EESchema, but which are *not* provided when that dialog box is
|
|
||||||
* invoked in Pcbnew instead. As such, various lines within this file
|
|
||||||
* (and setpage.h) are included on an appropriately conditional basis.
|
|
||||||
* (That aspect should be noted if the contents of this file (and setpage.h)
|
|
||||||
* are ever consequently modified as a consequence of setpage.pjd being
|
|
||||||
* opened in DialogBlocks (as that file now incorporates those checkboxes).)
|
|
||||||
*/
|
|
||||||
|
|
||||||
// Generated by DialogBlocks (unregistered), 13/11/2007 09:11:27
|
|
||||||
|
|
||||||
#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
|
|
||||||
#pragma implementation "setpage.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
////@begin includes
|
|
||||||
////@end includes
|
|
||||||
#include "fctsys.h"
|
|
||||||
#include "gr_basic.h"
|
|
||||||
#include "common.h"
|
|
||||||
#include "base_struct.h"
|
|
||||||
#include "class_drawpanel.h"
|
|
||||||
#include "class_base_screen.h"
|
|
||||||
#include "wxstruct.h"
|
|
||||||
|
|
||||||
#ifdef EESCHEMA
|
|
||||||
#include "program.h"
|
|
||||||
#include "general.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#define NB_ITEMS 11
|
|
||||||
Ki_PageDescr * SheetList[NB_ITEMS + 1] =
|
|
||||||
{
|
|
||||||
&g_Sheet_A4, &g_Sheet_A3, &g_Sheet_A2, &g_Sheet_A1, &g_Sheet_A0,
|
|
||||||
&g_Sheet_A, &g_Sheet_B, &g_Sheet_C, &g_Sheet_D, &g_Sheet_E,
|
|
||||||
&g_Sheet_user, NULL
|
|
||||||
};
|
|
||||||
|
|
||||||
#include "setpage.h"
|
|
||||||
|
|
||||||
////@begin XPM images
|
|
||||||
////@end XPM images
|
|
||||||
|
|
||||||
/******************************************************************/
|
|
||||||
void WinEDA_DrawFrame::Process_PageSettings(wxCommandEvent& event)
|
|
||||||
/******************************************************************/
|
|
||||||
/* Creation de la fenetre de configuration
|
|
||||||
*/
|
|
||||||
{
|
|
||||||
WinEDA_SetPageFrame frame(this);
|
|
||||||
frame.ShowModal();
|
|
||||||
if ( DrawPanel )
|
|
||||||
DrawPanel->Refresh();
|
|
||||||
}
|
|
||||||
|
|
||||||
/*!
|
|
||||||
* WinEDA_SetPageFrame type definition
|
|
||||||
*/
|
|
||||||
|
|
||||||
IMPLEMENT_DYNAMIC_CLASS( WinEDA_SetPageFrame, wxDialog )
|
|
||||||
|
|
||||||
|
|
||||||
/*!
|
|
||||||
* WinEDA_SetPageFrame event table definition
|
|
||||||
*/
|
|
||||||
|
|
||||||
BEGIN_EVENT_TABLE( WinEDA_SetPageFrame, wxDialog )
|
|
||||||
|
|
||||||
////@begin WinEDA_SetPageFrame event table entries
|
|
||||||
EVT_CLOSE( WinEDA_SetPageFrame::OnCloseWindow )
|
|
||||||
|
|
||||||
EVT_BUTTON( wxID_OK, WinEDA_SetPageFrame::OnOkClick )
|
|
||||||
|
|
||||||
EVT_BUTTON( wxID_CANCEL, WinEDA_SetPageFrame::OnCancelClick )
|
|
||||||
|
|
||||||
////@end WinEDA_SetPageFrame event table entries
|
|
||||||
|
|
||||||
END_EVENT_TABLE()
|
|
||||||
|
|
||||||
|
|
||||||
/*!
|
|
||||||
* WinEDA_SetPageFrame constructors
|
|
||||||
*/
|
|
||||||
|
|
||||||
WinEDA_SetPageFrame::WinEDA_SetPageFrame( )
|
|
||||||
{
|
|
||||||
Init();
|
|
||||||
}
|
|
||||||
|
|
||||||
WinEDA_SetPageFrame::WinEDA_SetPageFrame( WinEDA_DrawFrame* parent, wxWindowID id,
|
|
||||||
const wxString& caption, const wxPoint& pos,
|
|
||||||
const wxSize& size, long style )
|
|
||||||
{
|
|
||||||
Init();
|
|
||||||
|
|
||||||
wxString msg;
|
|
||||||
|
|
||||||
m_ParentDrawFrame = parent;
|
|
||||||
m_Screen = m_ParentDrawFrame->GetBaseScreen();
|
|
||||||
m_Modified = FALSE;
|
|
||||||
m_SelectedSheet = NULL;
|
|
||||||
m_CurrentSelection = 0;
|
|
||||||
SearchPageSizeSelection();
|
|
||||||
|
|
||||||
Create( parent, id, caption, pos, size, style);
|
|
||||||
// Init display value for sheet User size
|
|
||||||
wxString format = m_TextSheetCount->GetLabel();
|
|
||||||
msg.Printf(format, m_Screen->m_NumberOfScreen);
|
|
||||||
m_TextSheetCount->SetLabel(msg);
|
|
||||||
format = m_TextSheetNumber->GetLabel();
|
|
||||||
msg.Printf(format, m_Screen->m_ScreenNumber);
|
|
||||||
m_TextSheetNumber->SetLabel(msg);
|
|
||||||
|
|
||||||
if( g_UnitMetric )
|
|
||||||
{
|
|
||||||
UserSizeX = (double)g_Sheet_user.m_Size.x * 25.4 / 1000;
|
|
||||||
UserSizeY = (double)g_Sheet_user.m_Size.y * 25.4 / 1000;
|
|
||||||
msg.Printf( wxT("%.2f"), UserSizeX );
|
|
||||||
m_TextUserSizeX->SetValue(msg);
|
|
||||||
msg.Printf( wxT("%.2f"), UserSizeY );
|
|
||||||
m_TextUserSizeY->SetValue(msg);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
UserSizeX = (double)g_Sheet_user.m_Size.x / 1000;
|
|
||||||
UserSizeY = (double)g_Sheet_user.m_Size.y / 1000;
|
|
||||||
msg.Printf( wxT("%.3f"), UserSizeX );
|
|
||||||
m_TextUserSizeX->SetValue(msg);
|
|
||||||
msg.Printf( wxT("%.3f"), UserSizeY );
|
|
||||||
m_TextUserSizeY->SetValue(msg);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/*!
|
|
||||||
* WinEDA_SetPageFrame creator
|
|
||||||
*/
|
|
||||||
|
|
||||||
bool WinEDA_SetPageFrame::Create( wxWindow* parent, wxWindowID id, const wxString& caption, const wxPoint& pos, const wxSize& size, long style )
|
|
||||||
{
|
|
||||||
////@begin WinEDA_SetPageFrame creation
|
|
||||||
wxDialog::Create( parent, id, caption, pos, size, style );
|
|
||||||
|
|
||||||
CreateControls();
|
|
||||||
if (GetSizer())
|
|
||||||
{
|
|
||||||
GetSizer()->SetSizeHints(this);
|
|
||||||
}
|
|
||||||
Centre();
|
|
||||||
////@end WinEDA_SetPageFrame creation
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/*!
|
|
||||||
* WinEDA_SetPageFrame destructor
|
|
||||||
*/
|
|
||||||
|
|
||||||
WinEDA_SetPageFrame::~WinEDA_SetPageFrame()
|
|
||||||
{
|
|
||||||
////@begin WinEDA_SetPageFrame destruction
|
|
||||||
////@end WinEDA_SetPageFrame destruction
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/*!
|
|
||||||
* Member initialisation
|
|
||||||
*/
|
|
||||||
|
|
||||||
void WinEDA_SetPageFrame::Init()
|
|
||||||
{
|
|
||||||
|
|
||||||
// NOTE: The following code has been modified by initialising the seven
|
|
||||||
// checkboxes *only* within the EESchema version of this dialog box.
|
|
||||||
|
|
||||||
////@begin WinEDA_SetPageFrame member initialisation
|
|
||||||
OuterSizer = NULL;
|
|
||||||
MainSizer = NULL;
|
|
||||||
LeftColumnSizer = NULL;
|
|
||||||
m_PageSizeBox = NULL;
|
|
||||||
UserSizeXSizer = NULL;
|
|
||||||
UserPageSizeX = NULL;
|
|
||||||
m_TextUserSizeX = NULL;
|
|
||||||
UserSizeYSizer = NULL;
|
|
||||||
UserPageSizeY = NULL;
|
|
||||||
m_TextUserSizeY = NULL;
|
|
||||||
RightColumnSizer = NULL;
|
|
||||||
SheetInfoSizer = NULL;
|
|
||||||
m_TextSheetCount = NULL;
|
|
||||||
m_TextSheetNumber = NULL;
|
|
||||||
RevisionSizer = NULL;
|
|
||||||
m_TextRevision = NULL;
|
|
||||||
m_RevisionExport = NULL;
|
|
||||||
TitleSizer = NULL;
|
|
||||||
m_TextTitle = NULL;
|
|
||||||
m_TitleExport = NULL;
|
|
||||||
CompanySizer = NULL;
|
|
||||||
m_TextCompany = NULL;
|
|
||||||
m_CompanyExport = NULL;
|
|
||||||
Comment1Sizer = NULL;
|
|
||||||
m_TextComment1 = NULL;
|
|
||||||
m_Comment1Export = NULL;
|
|
||||||
Comment2Sizer = NULL;
|
|
||||||
m_TextComment2 = NULL;
|
|
||||||
m_Comment2Export = NULL;
|
|
||||||
Comment3Sizer = NULL;
|
|
||||||
m_TextComment3 = NULL;
|
|
||||||
m_Comment3Export = NULL;
|
|
||||||
Comment4Sizer = NULL;
|
|
||||||
m_TextComment4 = NULL;
|
|
||||||
m_Comment4Export = NULL;
|
|
||||||
Line = NULL;
|
|
||||||
StdDialogButtonSizer = NULL;
|
|
||||||
Button_OK = NULL;
|
|
||||||
Button_Cancel = NULL;
|
|
||||||
////@end WinEDA_SetPageFrame member initialisation
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/*!
|
|
||||||
* Control creation for WinEDA_SetPageFrame
|
|
||||||
*/
|
|
||||||
|
|
||||||
void WinEDA_SetPageFrame::CreateControls()
|
|
||||||
{
|
|
||||||
// NOTE: The following code has been modified by providing the seven
|
|
||||||
// checkboxes *only* within the EESchema version of this dialog box.
|
|
||||||
|
|
||||||
////@begin WinEDA_SetPageFrame content construction
|
|
||||||
// Generated by DialogBlocks, 24/04/2009 15:17:10 (unregistered)
|
|
||||||
|
|
||||||
WinEDA_SetPageFrame* itemDialog1 = this;
|
|
||||||
|
|
||||||
OuterSizer = new wxBoxSizer(wxVERTICAL);
|
|
||||||
itemDialog1->SetSizer(OuterSizer);
|
|
||||||
|
|
||||||
MainSizer = new wxBoxSizer(wxHORIZONTAL);
|
|
||||||
OuterSizer->Add(MainSizer, 1, wxGROW|wxRIGHT|wxTOP|wxBOTTOM, 5);
|
|
||||||
|
|
||||||
LeftColumnSizer = new wxFlexGridSizer(6, 1, 0, 0);
|
|
||||||
LeftColumnSizer->AddGrowableRow(1);
|
|
||||||
LeftColumnSizer->AddGrowableRow(2);
|
|
||||||
LeftColumnSizer->AddGrowableRow(3);
|
|
||||||
LeftColumnSizer->AddGrowableRow(4);
|
|
||||||
LeftColumnSizer->AddGrowableRow(5);
|
|
||||||
MainSizer->Add(LeftColumnSizer, 0, wxGROW|wxLEFT|wxRIGHT|wxTOP, 5);
|
|
||||||
|
|
||||||
wxArrayString m_PageSizeBoxStrings;
|
|
||||||
m_PageSizeBoxStrings.Add(_("Size A4"));
|
|
||||||
m_PageSizeBoxStrings.Add(_("Size A3"));
|
|
||||||
m_PageSizeBoxStrings.Add(_("Size A2"));
|
|
||||||
m_PageSizeBoxStrings.Add(_("Size A1"));
|
|
||||||
m_PageSizeBoxStrings.Add(_("Size A0"));
|
|
||||||
m_PageSizeBoxStrings.Add(_("Size A"));
|
|
||||||
m_PageSizeBoxStrings.Add(_("Size B"));
|
|
||||||
m_PageSizeBoxStrings.Add(_("Size C"));
|
|
||||||
m_PageSizeBoxStrings.Add(_("Size D"));
|
|
||||||
m_PageSizeBoxStrings.Add(_("Size E"));
|
|
||||||
m_PageSizeBoxStrings.Add(_("User size"));
|
|
||||||
m_PageSizeBox = new wxRadioBox( itemDialog1, ID_RADIOBOX_PAGE_SIZE, _("Page Size:"), wxDefaultPosition, wxDefaultSize, m_PageSizeBoxStrings, 1, wxRA_SPECIFY_COLS );
|
|
||||||
m_PageSizeBox->SetSelection(0);
|
|
||||||
LeftColumnSizer->Add(m_PageSizeBox, 1, wxGROW|wxALIGN_TOP|wxLEFT|wxRIGHT, 5);
|
|
||||||
|
|
||||||
UserSizeXSizer = new wxBoxSizer(wxVERTICAL);
|
|
||||||
LeftColumnSizer->Add(UserSizeXSizer, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxTOP, 5);
|
|
||||||
|
|
||||||
UserPageSizeX = new wxStaticText( itemDialog1, wxID_STATIC, _("User Page Size X: "), wxDefaultPosition, wxDefaultSize, 0 );
|
|
||||||
UserSizeXSizer->Add(UserPageSizeX, 0, wxALIGN_LEFT|wxLEFT|wxRIGHT|wxADJUST_MINSIZE, 5);
|
|
||||||
|
|
||||||
m_TextUserSizeX = new wxTextCtrl( itemDialog1, ID_TEXTCTRL_USER_PAGE_SIZE_X, _T(""), wxDefaultPosition, wxDefaultSize, 0 );
|
|
||||||
UserSizeXSizer->Add(m_TextUserSizeX, 0, wxALIGN_LEFT|wxLEFT|wxRIGHT, 5);
|
|
||||||
|
|
||||||
UserSizeYSizer = new wxBoxSizer(wxVERTICAL);
|
|
||||||
LeftColumnSizer->Add(UserSizeYSizer, 0, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxTOP, 5);
|
|
||||||
|
|
||||||
UserPageSizeY = new wxStaticText( itemDialog1, wxID_STATIC, _("User Page Size Y: "), wxDefaultPosition, wxDefaultSize, 0 );
|
|
||||||
UserSizeYSizer->Add(UserPageSizeY, 0, wxALIGN_LEFT|wxLEFT|wxRIGHT|wxADJUST_MINSIZE, 5);
|
|
||||||
|
|
||||||
m_TextUserSizeY = new wxTextCtrl( itemDialog1, ID_TEXTCTRL_USER_PAGE_SIZE_Y, _T(""), wxDefaultPosition, wxDefaultSize, 0 );
|
|
||||||
UserSizeYSizer->Add(m_TextUserSizeY, 0, wxALIGN_LEFT|wxLEFT|wxRIGHT, 5);
|
|
||||||
|
|
||||||
LeftColumnSizer->Add(5, 10, 1, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL, 5);
|
|
||||||
|
|
||||||
LeftColumnSizer->Add(5, 10, 1, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL, 5);
|
|
||||||
|
|
||||||
LeftColumnSizer->Add(5, 10, 1, wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxALL, 5);
|
|
||||||
|
|
||||||
RightColumnSizer = new wxFlexGridSizer(8, 1, 0, 0);
|
|
||||||
RightColumnSizer->AddGrowableRow(0);
|
|
||||||
RightColumnSizer->AddGrowableRow(1);
|
|
||||||
RightColumnSizer->AddGrowableRow(2);
|
|
||||||
RightColumnSizer->AddGrowableRow(3);
|
|
||||||
RightColumnSizer->AddGrowableRow(4);
|
|
||||||
RightColumnSizer->AddGrowableRow(5);
|
|
||||||
RightColumnSizer->AddGrowableRow(6);
|
|
||||||
RightColumnSizer->AddGrowableRow(7);
|
|
||||||
RightColumnSizer->AddGrowableCol(0);
|
|
||||||
MainSizer->Add(RightColumnSizer, 1, wxGROW|wxLEFT|wxRIGHT|wxTOP, 5);
|
|
||||||
|
|
||||||
SheetInfoSizer = new wxBoxSizer(wxHORIZONTAL);
|
|
||||||
RightColumnSizer->Add(SheetInfoSizer, 0, wxGROW|wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT, 5);
|
|
||||||
|
|
||||||
m_TextSheetCount = new wxStaticText( itemDialog1, wxID_STATIC, _("Number of sheets: %d"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
||||||
SheetInfoSizer->Add(m_TextSheetCount, 0, wxGROW|wxLEFT|wxRIGHT|wxBOTTOM|wxADJUST_MINSIZE, 5);
|
|
||||||
|
|
||||||
SheetInfoSizer->Add(5, 5, 0, wxGROW|wxLEFT|wxRIGHT|wxBOTTOM, 5);
|
|
||||||
|
|
||||||
m_TextSheetNumber = new wxStaticText( itemDialog1, wxID_STATIC, _("Sheet number: %d"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
||||||
SheetInfoSizer->Add(m_TextSheetNumber, 0, wxGROW|wxLEFT|wxRIGHT|wxBOTTOM|wxADJUST_MINSIZE, 5);
|
|
||||||
|
|
||||||
wxStaticBox* itemStaticBoxSizer20Static = new wxStaticBox(itemDialog1, wxID_ANY, _("Revision:"));
|
|
||||||
RevisionSizer = new wxStaticBoxSizer(itemStaticBoxSizer20Static, wxHORIZONTAL);
|
|
||||||
RightColumnSizer->Add(RevisionSizer, 0, wxGROW|wxALIGN_CENTER_VERTICAL|wxTOP|wxBOTTOM, 5);
|
|
||||||
|
|
||||||
m_TextRevision = new wxTextCtrl( itemDialog1, ID_TEXTCTRL_REVISION, _T(""), wxDefaultPosition, wxSize(100, -1), wxTE_RICH );
|
|
||||||
RevisionSizer->Add(m_TextRevision, 0, wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT|wxBOTTOM, 5);
|
|
||||||
|
|
||||||
m_RevisionExport = new wxCheckBox( itemDialog1, ID_CHECKBOX_REVISION, _("Export to other sheets"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
||||||
m_RevisionExport->SetValue(false);
|
|
||||||
RevisionSizer->Add(m_RevisionExport, 0, wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT|wxBOTTOM, 5);
|
|
||||||
|
|
||||||
wxStaticBox* itemStaticBoxSizer23Static = new wxStaticBox(itemDialog1, wxID_ANY, _("Title:"));
|
|
||||||
TitleSizer = new wxStaticBoxSizer(itemStaticBoxSizer23Static, wxHORIZONTAL);
|
|
||||||
RightColumnSizer->Add(TitleSizer, 0, wxGROW|wxALIGN_CENTER_VERTICAL|wxTOP|wxBOTTOM|wxADJUST_MINSIZE, 5);
|
|
||||||
|
|
||||||
m_TextTitle = new wxTextCtrl( itemDialog1, ID_TEXTCTRL_TITLE, _T(""), wxDefaultPosition, wxSize(400, -1), 0 );
|
|
||||||
TitleSizer->Add(m_TextTitle, 0, wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT|wxBOTTOM, 5);
|
|
||||||
|
|
||||||
m_TitleExport = new wxCheckBox( itemDialog1, ID_CHECKBOX_TITLE, _("Export to other sheets"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
||||||
m_TitleExport->SetValue(false);
|
|
||||||
TitleSizer->Add(m_TitleExport, 0, wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT|wxBOTTOM, 5);
|
|
||||||
|
|
||||||
wxStaticBox* itemStaticBoxSizer26Static = new wxStaticBox(itemDialog1, wxID_ANY, _("Company:"));
|
|
||||||
CompanySizer = new wxStaticBoxSizer(itemStaticBoxSizer26Static, wxHORIZONTAL);
|
|
||||||
RightColumnSizer->Add(CompanySizer, 0, wxGROW|wxALIGN_CENTER_VERTICAL|wxTOP|wxBOTTOM|wxADJUST_MINSIZE, 5);
|
|
||||||
|
|
||||||
m_TextCompany = new wxTextCtrl( itemDialog1, ID_TEXTCTRL_COMPANY, _T(""), wxDefaultPosition, wxSize(400, -1), 0 );
|
|
||||||
CompanySizer->Add(m_TextCompany, 0, wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT|wxBOTTOM, 5);
|
|
||||||
|
|
||||||
m_CompanyExport = new wxCheckBox( itemDialog1, ID_CHECKBOX_COMPANY, _("Export to other sheets"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
||||||
m_CompanyExport->SetValue(false);
|
|
||||||
CompanySizer->Add(m_CompanyExport, 0, wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT|wxBOTTOM, 5);
|
|
||||||
|
|
||||||
wxStaticBox* itemStaticBoxSizer29Static = new wxStaticBox(itemDialog1, wxID_STATIC, _("Comment1:"));
|
|
||||||
Comment1Sizer = new wxStaticBoxSizer(itemStaticBoxSizer29Static, wxHORIZONTAL);
|
|
||||||
RightColumnSizer->Add(Comment1Sizer, 0, wxGROW|wxALIGN_CENTER_VERTICAL|wxTOP|wxBOTTOM|wxADJUST_MINSIZE, 5);
|
|
||||||
|
|
||||||
m_TextComment1 = new wxTextCtrl( itemDialog1, ID_TEXTCTRL_COMMENT1, _T(""), wxDefaultPosition, wxSize(400, -1), 0 );
|
|
||||||
Comment1Sizer->Add(m_TextComment1, 0, wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT|wxBOTTOM, 5);
|
|
||||||
|
|
||||||
m_Comment1Export = new wxCheckBox( itemDialog1, ID_CHECKBOX_COMMENT1, _("Export to other sheets"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
||||||
m_Comment1Export->SetValue(false);
|
|
||||||
Comment1Sizer->Add(m_Comment1Export, 0, wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT|wxBOTTOM, 5);
|
|
||||||
|
|
||||||
wxStaticBox* itemStaticBoxSizer32Static = new wxStaticBox(itemDialog1, wxID_STATIC, _("Comment2:"));
|
|
||||||
Comment2Sizer = new wxStaticBoxSizer(itemStaticBoxSizer32Static, wxHORIZONTAL);
|
|
||||||
RightColumnSizer->Add(Comment2Sizer, 0, wxGROW|wxALIGN_CENTER_VERTICAL|wxTOP|wxBOTTOM|wxADJUST_MINSIZE, 5);
|
|
||||||
|
|
||||||
m_TextComment2 = new wxTextCtrl( itemDialog1, ID_TEXTCTRL_COMMENT2, _T(""), wxDefaultPosition, wxSize(400, -1), 0 );
|
|
||||||
Comment2Sizer->Add(m_TextComment2, 0, wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT|wxBOTTOM, 5);
|
|
||||||
|
|
||||||
m_Comment2Export = new wxCheckBox( itemDialog1, ID_CHECKBOX_COMMENT2, _("Export to other sheets"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
||||||
m_Comment2Export->SetValue(false);
|
|
||||||
Comment2Sizer->Add(m_Comment2Export, 0, wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT|wxBOTTOM, 5);
|
|
||||||
|
|
||||||
wxStaticBox* itemStaticBoxSizer35Static = new wxStaticBox(itemDialog1, wxID_STATIC, _("Comment3:"));
|
|
||||||
Comment3Sizer = new wxStaticBoxSizer(itemStaticBoxSizer35Static, wxHORIZONTAL);
|
|
||||||
RightColumnSizer->Add(Comment3Sizer, 0, wxGROW|wxALIGN_CENTER_VERTICAL|wxTOP|wxBOTTOM|wxADJUST_MINSIZE, 5);
|
|
||||||
|
|
||||||
m_TextComment3 = new wxTextCtrl( itemDialog1, ID_TEXTCTRL_COMMENT3, _T(""), wxDefaultPosition, wxSize(400, -1), 0 );
|
|
||||||
Comment3Sizer->Add(m_TextComment3, 0, wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT|wxBOTTOM, 5);
|
|
||||||
|
|
||||||
m_Comment3Export = new wxCheckBox( itemDialog1, ID_CHECKBOX_COMMENT3, _("Export to other sheets"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
||||||
m_Comment3Export->SetValue(false);
|
|
||||||
Comment3Sizer->Add(m_Comment3Export, 0, wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT|wxBOTTOM, 5);
|
|
||||||
|
|
||||||
wxStaticBox* itemStaticBoxSizer38Static = new wxStaticBox(itemDialog1, wxID_STATIC, _("Comment4:"));
|
|
||||||
Comment4Sizer = new wxStaticBoxSizer(itemStaticBoxSizer38Static, wxHORIZONTAL);
|
|
||||||
RightColumnSizer->Add(Comment4Sizer, 0, wxGROW|wxALIGN_CENTER_VERTICAL|wxTOP|wxBOTTOM|wxADJUST_MINSIZE, 5);
|
|
||||||
|
|
||||||
m_TextComment4 = new wxTextCtrl( itemDialog1, ID_TEXTCTRL_COMMENT4, _T(""), wxDefaultPosition, wxSize(400, -1), 0 );
|
|
||||||
Comment4Sizer->Add(m_TextComment4, 0, wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT|wxBOTTOM, 5);
|
|
||||||
|
|
||||||
m_Comment4Export = new wxCheckBox( itemDialog1, ID_CHECKBOX_COMMENT4, _("Export to other sheets"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
||||||
m_Comment4Export->SetValue(false);
|
|
||||||
Comment4Sizer->Add(m_Comment4Export, 0, wxALIGN_CENTER_VERTICAL|wxLEFT|wxRIGHT|wxBOTTOM, 5);
|
|
||||||
|
|
||||||
Line = new wxStaticLine( itemDialog1, ID_STATICLINE, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
|
|
||||||
OuterSizer->Add(Line, 0, wxGROW|wxLEFT|wxRIGHT, 5);
|
|
||||||
|
|
||||||
StdDialogButtonSizer = new wxStdDialogButtonSizer;
|
|
||||||
|
|
||||||
OuterSizer->Add(StdDialogButtonSizer, 0, wxGROW|wxALL, 10);
|
|
||||||
Button_OK = new wxButton( itemDialog1, wxID_OK, _("&OK"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
||||||
StdDialogButtonSizer->AddButton(Button_OK);
|
|
||||||
|
|
||||||
Button_Cancel = new wxButton( itemDialog1, wxID_CANCEL, _("&Cancel"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
||||||
StdDialogButtonSizer->AddButton(Button_Cancel);
|
|
||||||
|
|
||||||
StdDialogButtonSizer->Realize();
|
|
||||||
|
|
||||||
// Set validators
|
|
||||||
m_PageSizeBox->SetValidator( wxGenericValidator(& m_CurrentSelection) );
|
|
||||||
m_TextRevision->SetValidator( wxTextValidator(wxFILTER_NONE, & m_Screen->m_Revision) );
|
|
||||||
m_TextTitle->SetValidator( wxTextValidator(wxFILTER_NONE, & m_Screen->m_Title) );
|
|
||||||
m_TextCompany->SetValidator( wxTextValidator(wxFILTER_NONE, & m_Screen->m_Company) );
|
|
||||||
m_TextComment1->SetValidator( wxTextValidator(wxFILTER_NONE, & m_Screen->m_Commentaire1) );
|
|
||||||
m_TextComment2->SetValidator( wxTextValidator(wxFILTER_NONE, & m_Screen->m_Commentaire2) );
|
|
||||||
m_TextComment3->SetValidator( wxTextValidator(wxFILTER_NONE, & m_Screen->m_Commentaire3) );
|
|
||||||
m_TextComment4->SetValidator( wxTextValidator(wxFILTER_NONE, & m_Screen->m_Commentaire4) );
|
|
||||||
////@end WinEDA_SetPageFrame content construction
|
|
||||||
#ifndef EESCHEMA
|
|
||||||
m_RevisionExport->Show(false);
|
|
||||||
m_TitleExport->Show(false);
|
|
||||||
m_CompanyExport->Show(false);
|
|
||||||
m_Comment1Export->Show(false);
|
|
||||||
m_Comment2Export->Show(false);
|
|
||||||
m_Comment3Export->Show(false);
|
|
||||||
m_Comment4Export->Show(false);
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/*!
|
|
||||||
* wxEVT_CLOSE_WINDOW event handler for ID_DIALOG
|
|
||||||
*/
|
|
||||||
|
|
||||||
void WinEDA_SetPageFrame::OnCloseWindow( wxCloseEvent& event )
|
|
||||||
{
|
|
||||||
EndModal( m_Modified );
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/*!
|
|
||||||
* wxEVT_COMMAND_BUTTON_CLICKED event handler for wxID_OK
|
|
||||||
*/
|
|
||||||
|
|
||||||
void WinEDA_SetPageFrame::OnOkClick( wxCommandEvent& event )
|
|
||||||
{
|
|
||||||
SavePageSettings( event );
|
|
||||||
Close( TRUE );
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/*!
|
|
||||||
* wxEVT_COMMAND_BUTTON_CLICKED event handler for wxID_CANCEL
|
|
||||||
*/
|
|
||||||
|
|
||||||
void WinEDA_SetPageFrame::OnCancelClick( wxCommandEvent& event )
|
|
||||||
{
|
|
||||||
Close( TRUE );
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/*!
|
|
||||||
* Should we show tooltips?
|
|
||||||
*/
|
|
||||||
|
|
||||||
bool WinEDA_SetPageFrame::ShowToolTips()
|
|
||||||
{
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
/*!
|
|
||||||
* Get bitmap resources
|
|
||||||
*/
|
|
||||||
|
|
||||||
wxBitmap WinEDA_SetPageFrame::GetBitmapResource( const wxString& name )
|
|
||||||
{
|
|
||||||
// Bitmap retrieval
|
|
||||||
////@begin WinEDA_SetPageFrame bitmap retrieval
|
|
||||||
wxUnusedVar(name);
|
|
||||||
return wxNullBitmap;
|
|
||||||
////@end WinEDA_SetPageFrame bitmap retrieval
|
|
||||||
}
|
|
||||||
|
|
||||||
/*!
|
|
||||||
* Get icon resources
|
|
||||||
*/
|
|
||||||
|
|
||||||
wxIcon WinEDA_SetPageFrame::GetIconResource( const wxString& name )
|
|
||||||
{
|
|
||||||
// Icon retrieval
|
|
||||||
////@begin WinEDA_SetPageFrame icon retrieval
|
|
||||||
wxUnusedVar(name);
|
|
||||||
return wxNullIcon;
|
|
||||||
////@end WinEDA_SetPageFrame icon retrieval
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/*****************************************************************/
|
|
||||||
void WinEDA_SetPageFrame::SavePageSettings(wxCommandEvent& event)
|
|
||||||
/*****************************************************************/
|
|
||||||
/* Mise a jour effective des textes et dimensions
|
|
||||||
*/
|
|
||||||
{
|
|
||||||
double dtmp;
|
|
||||||
wxString msg;
|
|
||||||
|
|
||||||
m_Screen->m_Revision = m_TextRevision->GetValue();
|
|
||||||
m_Screen->m_Company = m_TextCompany->GetValue();
|
|
||||||
m_Screen->m_Title = m_TextTitle->GetValue();
|
|
||||||
m_Screen->m_Commentaire1 = m_TextComment1->GetValue();
|
|
||||||
m_Screen->m_Commentaire2 = m_TextComment2->GetValue();
|
|
||||||
m_Screen->m_Commentaire3 = m_TextComment3->GetValue();
|
|
||||||
m_Screen->m_Commentaire4 = m_TextComment4->GetValue();
|
|
||||||
|
|
||||||
msg = m_TextUserSizeX->GetValue();
|
|
||||||
msg.ToDouble(&dtmp);
|
|
||||||
UserSizeX = dtmp;
|
|
||||||
msg = m_TextUserSizeY->GetValue();
|
|
||||||
msg.ToDouble(&dtmp);
|
|
||||||
UserSizeY = dtmp;
|
|
||||||
|
|
||||||
int ii = m_PageSizeBox->GetSelection();
|
|
||||||
|
|
||||||
if( ii < 0 )
|
|
||||||
ii = 0;
|
|
||||||
|
|
||||||
m_SelectedSheet = SheetList[ii];
|
|
||||||
m_Screen->m_CurrentSheetDesc = m_SelectedSheet;
|
|
||||||
|
|
||||||
if( g_UnitMetric )
|
|
||||||
{
|
|
||||||
g_Sheet_user.m_Size.x = (int)( UserSizeX * 1000 / 25.4 );
|
|
||||||
g_Sheet_user.m_Size.y = (int)( UserSizeY * 1000 / 25.4 );
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
g_Sheet_user.m_Size.x = (int)( UserSizeX * 1000 );
|
|
||||||
g_Sheet_user.m_Size.y = (int)( UserSizeY * 1000 );
|
|
||||||
}
|
|
||||||
|
|
||||||
if( g_Sheet_user.m_Size.x < 6000 )
|
|
||||||
g_Sheet_user.m_Size.x = 6000;
|
|
||||||
|
|
||||||
if( g_Sheet_user.m_Size.x > 44000 )
|
|
||||||
g_Sheet_user.m_Size.x = 44000;
|
|
||||||
|
|
||||||
if( g_Sheet_user.m_Size.y < 4000 )
|
|
||||||
g_Sheet_user.m_Size.y = 4000;
|
|
||||||
|
|
||||||
if( g_Sheet_user.m_Size.y > 44000 )
|
|
||||||
g_Sheet_user.m_Size.y = 44000;
|
|
||||||
|
|
||||||
#ifdef EESCHEMA
|
|
||||||
/* Exports settings to other sheets if requested: */
|
|
||||||
SCH_SCREEN * screen;
|
|
||||||
/* Build the screen list */
|
|
||||||
EDA_ScreenList ScreenList;
|
|
||||||
/* Update the datas */
|
|
||||||
for( screen = ScreenList.GetFirst(); screen != NULL; screen = ScreenList.GetNext() )
|
|
||||||
{
|
|
||||||
if( screen == m_Screen )
|
|
||||||
continue;
|
|
||||||
|
|
||||||
if( m_RevisionExport->IsChecked() )
|
|
||||||
screen->m_Revision = m_Screen->m_Revision;
|
|
||||||
|
|
||||||
if( m_TitleExport->IsChecked() )
|
|
||||||
screen->m_Title =m_Screen->m_Title;
|
|
||||||
|
|
||||||
if( m_CompanyExport->IsChecked() )
|
|
||||||
screen->m_Company = m_Screen->m_Company;
|
|
||||||
|
|
||||||
if( m_Comment1Export->IsChecked() )
|
|
||||||
screen->m_Commentaire1 = m_Screen->m_Commentaire1;
|
|
||||||
|
|
||||||
if( m_Comment2Export->IsChecked() )
|
|
||||||
screen->m_Commentaire2 = m_Screen->m_Commentaire2;
|
|
||||||
|
|
||||||
if( m_Comment3Export->IsChecked() )
|
|
||||||
screen->m_Commentaire3 = m_Screen->m_Commentaire3;
|
|
||||||
|
|
||||||
if( m_Comment4Export->IsChecked() )
|
|
||||||
screen->m_Commentaire4 = m_Screen->m_Commentaire4;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
m_Screen->SetModify();
|
|
||||||
m_Screen->SetRefreshReq();
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/*******************************************************/
|
|
||||||
void WinEDA_SetPageFrame::SearchPageSizeSelection()
|
|
||||||
/*******************************************************/
|
|
||||||
/* Search the correct index to activate the radiobox list size selection
|
|
||||||
* according to the current page size
|
|
||||||
*/
|
|
||||||
{
|
|
||||||
Ki_PageDescr * sheet;
|
|
||||||
int ii;
|
|
||||||
|
|
||||||
m_CurrentSelection = NB_ITEMS - 1;
|
|
||||||
for( ii = 0; ii < NB_ITEMS; ii++ )
|
|
||||||
{
|
|
||||||
sheet = SheetList[ii];
|
|
||||||
if( m_ParentDrawFrame->GetBaseScreen()->m_CurrentSheetDesc == sheet )
|
|
||||||
m_CurrentSelection = ii;
|
|
||||||
}
|
|
||||||
}
|
|
205
share/setpage.h
205
share/setpage.h
|
@ -1,205 +0,0 @@
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
|
||||||
// Name: setpage.h
|
|
||||||
// Purpose:
|
|
||||||
// Author: jean-pierre Charras
|
|
||||||
// Modified by:
|
|
||||||
// Created: 13/11/2007 09:11:27
|
|
||||||
// RCS-ID:
|
|
||||||
// Copyright: License GNU
|
|
||||||
// Licence:
|
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
|
||||||
|
|
||||||
/* The "Page Settings" dialog box created by this file (and setpage.cpp)
|
|
||||||
* contains seven checkboxes which *are* provided when that dialog box is
|
|
||||||
* invoked in EESchema, but which are *not* provided when that dialog box is
|
|
||||||
* invoked in Pcbnew instead. As such, various lines within this file
|
|
||||||
* (and setpage.cpp) are included on an appropriately conditional basis.
|
|
||||||
* (That aspect should be noted if the contents of this file (and setpage.cpp)
|
|
||||||
* are ever consequently modified as a consequence of setpage.pjd being
|
|
||||||
* opened in DialogBlocks (as that file now incorporates those checkboxes).)
|
|
||||||
*/
|
|
||||||
|
|
||||||
// Generated by DialogBlocks (unregistered), 13/11/2007 09:11:27
|
|
||||||
|
|
||||||
#ifndef _SETPAGE_H_
|
|
||||||
#define _SETPAGE_H_
|
|
||||||
|
|
||||||
#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
|
|
||||||
#pragma interface "setpage.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/*!
|
|
||||||
* Includes
|
|
||||||
*/
|
|
||||||
|
|
||||||
////@begin includes
|
|
||||||
#include "wx/valgen.h"
|
|
||||||
#include "wx/valtext.h"
|
|
||||||
#include "wx/statline.h"
|
|
||||||
////@end includes
|
|
||||||
|
|
||||||
/*!
|
|
||||||
* Forward declarations
|
|
||||||
*/
|
|
||||||
|
|
||||||
////@begin forward declarations
|
|
||||||
class wxBoxSizer;
|
|
||||||
class wxFlexGridSizer;
|
|
||||||
class wxStaticLine;
|
|
||||||
class wxStdDialogButtonSizer;
|
|
||||||
////@end forward declarations
|
|
||||||
|
|
||||||
/*!
|
|
||||||
* Control identifiers
|
|
||||||
*/
|
|
||||||
|
|
||||||
// NOTE: The following code has been modified by listing the seven checkbox-
|
|
||||||
// related definitions *only* within the EESchema version of this dialog box.
|
|
||||||
|
|
||||||
////@begin control identifiers
|
|
||||||
#define ID_DIALOG 10000
|
|
||||||
#define ID_RADIOBOX_PAGE_SIZE 10001
|
|
||||||
#define ID_TEXTCTRL_USER_PAGE_SIZE_X 10002
|
|
||||||
#define ID_TEXTCTRL_USER_PAGE_SIZE_Y 10003
|
|
||||||
#define ID_TEXTCTRL_REVISION 10004
|
|
||||||
#define ID_CHECKBOX_REVISION 10011
|
|
||||||
#define ID_TEXTCTRL_TITLE 10005
|
|
||||||
#define ID_CHECKBOX_TITLE 10012
|
|
||||||
#define ID_TEXTCTRL_COMPANY 10006
|
|
||||||
#define ID_CHECKBOX_COMPANY 10013
|
|
||||||
#define ID_TEXTCTRL_COMMENT1 10007
|
|
||||||
#define ID_CHECKBOX_COMMENT1 10014
|
|
||||||
#define ID_TEXTCTRL_COMMENT2 10008
|
|
||||||
#define ID_CHECKBOX_COMMENT2 10015
|
|
||||||
#define ID_TEXTCTRL_COMMENT3 10009
|
|
||||||
#define ID_CHECKBOX_COMMENT3 10016
|
|
||||||
#define ID_TEXTCTRL_COMMENT4 10010
|
|
||||||
#define ID_CHECKBOX_COMMENT4 10017
|
|
||||||
#define ID_STATICLINE 10018
|
|
||||||
#define SYMBOL_WINEDA_SETPAGEFRAME_STYLE wxDEFAULT_DIALOG_STYLE|MAYBE_RESIZE_BORDER
|
|
||||||
#define SYMBOL_WINEDA_SETPAGEFRAME_TITLE _("Page Settings")
|
|
||||||
#define SYMBOL_WINEDA_SETPAGEFRAME_IDNAME ID_DIALOG
|
|
||||||
#define SYMBOL_WINEDA_SETPAGEFRAME_SIZE wxSize(400, 300)
|
|
||||||
#define SYMBOL_WINEDA_SETPAGEFRAME_POSITION wxDefaultPosition
|
|
||||||
////@end control identifiers
|
|
||||||
|
|
||||||
|
|
||||||
/*!
|
|
||||||
* WinEDA_SetPageFrame class declaration
|
|
||||||
*/
|
|
||||||
|
|
||||||
class WinEDA_SetPageFrame: public wxDialog
|
|
||||||
{
|
|
||||||
DECLARE_DYNAMIC_CLASS( WinEDA_SetPageFrame )
|
|
||||||
DECLARE_EVENT_TABLE()
|
|
||||||
|
|
||||||
public:
|
|
||||||
/// Constructors
|
|
||||||
WinEDA_SetPageFrame( );
|
|
||||||
WinEDA_SetPageFrame( WinEDA_DrawFrame* parent,
|
|
||||||
wxWindowID id = SYMBOL_WINEDA_SETPAGEFRAME_IDNAME,
|
|
||||||
const wxString& caption = SYMBOL_WINEDA_SETPAGEFRAME_TITLE,
|
|
||||||
const wxPoint& pos = SYMBOL_WINEDA_SETPAGEFRAME_POSITION,
|
|
||||||
const wxSize& size = SYMBOL_WINEDA_SETPAGEFRAME_SIZE,
|
|
||||||
long style = SYMBOL_WINEDA_SETPAGEFRAME_STYLE );
|
|
||||||
|
|
||||||
/// Creation
|
|
||||||
bool Create( wxWindow* parent, wxWindowID id = SYMBOL_WINEDA_SETPAGEFRAME_IDNAME,
|
|
||||||
const wxString& caption = SYMBOL_WINEDA_SETPAGEFRAME_TITLE,
|
|
||||||
const wxPoint& pos = SYMBOL_WINEDA_SETPAGEFRAME_POSITION,
|
|
||||||
const wxSize& size = SYMBOL_WINEDA_SETPAGEFRAME_SIZE,
|
|
||||||
long style = SYMBOL_WINEDA_SETPAGEFRAME_STYLE );
|
|
||||||
|
|
||||||
/// Destructor
|
|
||||||
~WinEDA_SetPageFrame();
|
|
||||||
|
|
||||||
/// Initialises member variables
|
|
||||||
void Init();
|
|
||||||
|
|
||||||
/// Creates the controls and sizers
|
|
||||||
void CreateControls();
|
|
||||||
|
|
||||||
////@begin WinEDA_SetPageFrame event handler declarations
|
|
||||||
|
|
||||||
/// wxEVT_CLOSE_WINDOW event handler for ID_DIALOG
|
|
||||||
void OnCloseWindow( wxCloseEvent& event );
|
|
||||||
|
|
||||||
/// wxEVT_COMMAND_BUTTON_CLICKED event handler for wxID_OK
|
|
||||||
void OnOkClick( wxCommandEvent& event );
|
|
||||||
|
|
||||||
/// wxEVT_COMMAND_BUTTON_CLICKED event handler for wxID_CANCEL
|
|
||||||
void OnCancelClick( wxCommandEvent& event );
|
|
||||||
|
|
||||||
////@end WinEDA_SetPageFrame event handler declarations
|
|
||||||
|
|
||||||
////@begin WinEDA_SetPageFrame member function declarations
|
|
||||||
|
|
||||||
/// Retrieves bitmap resources
|
|
||||||
wxBitmap GetBitmapResource( const wxString& name );
|
|
||||||
|
|
||||||
/// Retrieves icon resources
|
|
||||||
wxIcon GetIconResource( const wxString& name );
|
|
||||||
////@end WinEDA_SetPageFrame member function declarations
|
|
||||||
|
|
||||||
/// Should we show tooltips?
|
|
||||||
static bool ShowToolTips();
|
|
||||||
|
|
||||||
void SearchPageSizeSelection();
|
|
||||||
void SavePageSettings(wxCommandEvent& event);
|
|
||||||
void ReturnSizeSelected(wxCommandEvent& event);
|
|
||||||
|
|
||||||
// NOTE: The following code has been modified by listing the seven
|
|
||||||
// checkboxes *only* within the EESchema version of this dialog box.
|
|
||||||
|
|
||||||
////@begin WinEDA_SetPageFrame member variables
|
|
||||||
wxBoxSizer* OuterSizer;
|
|
||||||
wxBoxSizer* MainSizer;
|
|
||||||
wxFlexGridSizer* LeftColumnSizer;
|
|
||||||
wxRadioBox* m_PageSizeBox;
|
|
||||||
wxBoxSizer* UserSizeXSizer;
|
|
||||||
wxStaticText* UserPageSizeX;
|
|
||||||
wxTextCtrl* m_TextUserSizeX;
|
|
||||||
wxBoxSizer* UserSizeYSizer;
|
|
||||||
wxStaticText* UserPageSizeY;
|
|
||||||
wxTextCtrl* m_TextUserSizeY;
|
|
||||||
wxFlexGridSizer* RightColumnSizer;
|
|
||||||
wxBoxSizer* SheetInfoSizer;
|
|
||||||
wxStaticText* m_TextSheetCount;
|
|
||||||
wxStaticText* m_TextSheetNumber;
|
|
||||||
wxStaticBoxSizer* RevisionSizer;
|
|
||||||
wxTextCtrl* m_TextRevision;
|
|
||||||
wxCheckBox* m_RevisionExport;
|
|
||||||
wxStaticBoxSizer* TitleSizer;
|
|
||||||
wxTextCtrl* m_TextTitle;
|
|
||||||
wxCheckBox* m_TitleExport;
|
|
||||||
wxStaticBoxSizer* CompanySizer;
|
|
||||||
wxTextCtrl* m_TextCompany;
|
|
||||||
wxCheckBox* m_CompanyExport;
|
|
||||||
wxStaticBoxSizer* Comment1Sizer;
|
|
||||||
wxTextCtrl* m_TextComment1;
|
|
||||||
wxCheckBox* m_Comment1Export;
|
|
||||||
wxStaticBoxSizer* Comment2Sizer;
|
|
||||||
wxTextCtrl* m_TextComment2;
|
|
||||||
wxCheckBox* m_Comment2Export;
|
|
||||||
wxStaticBoxSizer* Comment3Sizer;
|
|
||||||
wxTextCtrl* m_TextComment3;
|
|
||||||
wxCheckBox* m_Comment3Export;
|
|
||||||
wxStaticBoxSizer* Comment4Sizer;
|
|
||||||
wxTextCtrl* m_TextComment4;
|
|
||||||
wxCheckBox* m_Comment4Export;
|
|
||||||
wxStaticLine* Line;
|
|
||||||
wxStdDialogButtonSizer* StdDialogButtonSizer;
|
|
||||||
wxButton* Button_OK;
|
|
||||||
wxButton* Button_Cancel;
|
|
||||||
////@end WinEDA_SetPageFrame member variables
|
|
||||||
|
|
||||||
WinEDA_DrawFrame *m_ParentDrawFrame;
|
|
||||||
BASE_SCREEN * m_Screen;
|
|
||||||
int m_Modified;
|
|
||||||
Ki_PageDescr * m_SelectedSheet;
|
|
||||||
float UserSizeX, UserSizeY;
|
|
||||||
int m_CurrentSelection;
|
|
||||||
};
|
|
||||||
|
|
||||||
#endif
|
|
||||||
// _SETPAGE_H_
|
|
2612
share/setpage.pjd
2612
share/setpage.pjd
File diff suppressed because it is too large
Load Diff
|
@ -1,4 +1,4 @@
|
||||||
release version:
|
release version:
|
||||||
2010 mar 13
|
2010 mar 14
|
||||||
files (.zip,.tgz):
|
files (.zip,.tgz):
|
||||||
kicad-2010-03-13-final
|
kicad-2010-03-14-final
|
||||||
|
|
Loading…
Reference in New Issue