Eeschema: fix bug in dialog_lib_edit_text (OnOkClick method never called).
Other very minor changes.
This commit is contained in:
commit
a6a34f3509
|
@ -1,5 +1,5 @@
|
||||||
/**********************************/
|
/**********************************/
|
||||||
/* edit_graphic_bodyitem_text.cpp */
|
/* dialog_lib_edit_text.cpp */
|
||||||
/**********************************/
|
/**********************************/
|
||||||
|
|
||||||
/* Code for editing component library text items, not fields. */
|
/* Code for editing component library text items, not fields. */
|
||||||
|
@ -113,7 +113,7 @@ void DIALOG_LIB_EDIT_TEXT::InitDialog( )
|
||||||
|
|
||||||
void DIALOG_LIB_EDIT_TEXT::OnCancelClick( wxCommandEvent& event )
|
void DIALOG_LIB_EDIT_TEXT::OnCancelClick( wxCommandEvent& event )
|
||||||
{
|
{
|
||||||
event.Skip();
|
EndModal(wxID_CANCEL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -193,5 +193,5 @@ void DIALOG_LIB_EDIT_TEXT::OnOkClick( wxCommandEvent& event )
|
||||||
if( m_Parent->GetDrawItem() )
|
if( m_Parent->GetDrawItem() )
|
||||||
m_Parent->GetDrawItem()->DisplayInfo( m_Parent );
|
m_Parent->GetDrawItem()->DisplayInfo( m_Parent );
|
||||||
|
|
||||||
Close();
|
EndModal(wxID_OK);
|
||||||
}
|
}
|
||||||
|
|
|
@ -108,8 +108,16 @@ DIALOG_LIB_EDIT_TEXT_BASE::DIALOG_LIB_EDIT_TEXT_BASE( wxWindow* parent, wxWindow
|
||||||
this->SetSizer( bMainSizer );
|
this->SetSizer( bMainSizer );
|
||||||
this->Layout();
|
this->Layout();
|
||||||
bMainSizer->Fit( this );
|
bMainSizer->Fit( this );
|
||||||
|
|
||||||
|
// Connect Events
|
||||||
|
m_sdbSizer1Cancel->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_LIB_EDIT_TEXT_BASE::OnCancelClick ), NULL, this );
|
||||||
|
m_sdbSizer1OK->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_LIB_EDIT_TEXT_BASE::OnOkClick ), NULL, this );
|
||||||
}
|
}
|
||||||
|
|
||||||
DIALOG_LIB_EDIT_TEXT_BASE::~DIALOG_LIB_EDIT_TEXT_BASE()
|
DIALOG_LIB_EDIT_TEXT_BASE::~DIALOG_LIB_EDIT_TEXT_BASE()
|
||||||
{
|
{
|
||||||
|
// Disconnect Events
|
||||||
|
m_sdbSizer1Cancel->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_LIB_EDIT_TEXT_BASE::OnCancelClick ), NULL, this );
|
||||||
|
m_sdbSizer1OK->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_LIB_EDIT_TEXT_BASE::OnOkClick ), NULL, this );
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -815,11 +815,11 @@
|
||||||
<property name="name">m_sdbSizer1</property>
|
<property name="name">m_sdbSizer1</property>
|
||||||
<property name="permission">protected</property>
|
<property name="permission">protected</property>
|
||||||
<event name="OnApplyButtonClick"></event>
|
<event name="OnApplyButtonClick"></event>
|
||||||
<event name="OnCancelButtonClick"></event>
|
<event name="OnCancelButtonClick">OnCancelClick</event>
|
||||||
<event name="OnContextHelpButtonClick"></event>
|
<event name="OnContextHelpButtonClick"></event>
|
||||||
<event name="OnHelpButtonClick"></event>
|
<event name="OnHelpButtonClick"></event>
|
||||||
<event name="OnNoButtonClick"></event>
|
<event name="OnNoButtonClick"></event>
|
||||||
<event name="OnOKButtonClick"></event>
|
<event name="OnOKButtonClick">OnOkClick</event>
|
||||||
<event name="OnSaveButtonClick"></event>
|
<event name="OnSaveButtonClick"></event>
|
||||||
<event name="OnYesButtonClick"></event>
|
<event name="OnYesButtonClick"></event>
|
||||||
</object>
|
</object>
|
||||||
|
|
|
@ -49,6 +49,11 @@ class DIALOG_LIB_EDIT_TEXT_BASE : public wxDialog
|
||||||
wxStdDialogButtonSizer* m_sdbSizer1;
|
wxStdDialogButtonSizer* m_sdbSizer1;
|
||||||
wxButton* m_sdbSizer1OK;
|
wxButton* m_sdbSizer1OK;
|
||||||
wxButton* m_sdbSizer1Cancel;
|
wxButton* m_sdbSizer1Cancel;
|
||||||
|
|
||||||
|
// Virtual event handlers, overide them in your derived class
|
||||||
|
virtual void OnCancelClick( wxCommandEvent& event ) { event.Skip(); }
|
||||||
|
virtual void OnOkClick( wxCommandEvent& event ) { event.Skip(); }
|
||||||
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
|
|
|
@ -1,358 +0,0 @@
|
||||||
/**********************************/
|
|
||||||
/* Netlist generator for pads-pcb */
|
|
||||||
/**********************************/
|
|
||||||
|
|
||||||
/* read the generic netlist created by eeschema and convert it to a pads-pcb form
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include <stdio.h>
|
|
||||||
#include <stdlib.h>
|
|
||||||
#include <string.h>
|
|
||||||
|
|
||||||
#include <ctype.h>
|
|
||||||
|
|
||||||
/* Pads-pcb sample:
|
|
||||||
*PADS-PCB*
|
|
||||||
*PART*
|
|
||||||
* C1 CHIP_D
|
|
||||||
* C2 C1206
|
|
||||||
* C3 CHIP_B
|
|
||||||
* C4 CHIP_B
|
|
||||||
* D1 CHIP_B
|
|
||||||
* JP1 unknown
|
|
||||||
*
|
|
||||||
*NET*
|
|
||||||
*SIGNAL* N03791
|
|
||||||
* C3.1 R1.1 JP2.7 U1.3
|
|
||||||
*SIGNAL* VCC
|
|
||||||
* U2.14 Y1.8 JP5.2 U3.2 C1.1 U1.20 JP1.8 JP1.3
|
|
||||||
* C5.2 C6.1 C7.2 U1.7 Y1.7
|
|
||||||
*SIGNAL* N01384
|
|
||||||
* JP5.1 U1.1
|
|
||||||
*SIGNAL* N02594
|
|
||||||
*END*
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
/* Generic netlist sample:
|
|
||||||
* $BeginNetlist
|
|
||||||
* $BeginComponentList
|
|
||||||
*
|
|
||||||
* $BeginComponent
|
|
||||||
* TimeStamp=32568D1E
|
|
||||||
* Footprint=
|
|
||||||
* Reference=JP1
|
|
||||||
* Value=CONN_8X2
|
|
||||||
* Libname=CONN_8X2
|
|
||||||
* $BeginPinList
|
|
||||||
* 1=GND
|
|
||||||
* 2=REF10_1
|
|
||||||
* 3=GND
|
|
||||||
* 4=REF11_1
|
|
||||||
* 5=GND
|
|
||||||
* 6=REF7_1
|
|
||||||
* 7=GND
|
|
||||||
* 8=REF9_1
|
|
||||||
* 9=GND
|
|
||||||
* 10=REF6_1
|
|
||||||
* 11=GND
|
|
||||||
* 12=REF8_1
|
|
||||||
* 13=GND
|
|
||||||
* 14=REF4_1
|
|
||||||
* 15=GND
|
|
||||||
* 16=REF5_1
|
|
||||||
* $EndPinList
|
|
||||||
* $EndComponent
|
|
||||||
*
|
|
||||||
* $BeginComponent
|
|
||||||
* TimeStamp=325679C1
|
|
||||||
* Footprint=
|
|
||||||
* Reference=RR1
|
|
||||||
* Value=9x1K
|
|
||||||
* Libref=RR9
|
|
||||||
* $BeginPinList
|
|
||||||
* 1=VCC
|
|
||||||
* 2=REF5_1
|
|
||||||
* 3=REF4_1
|
|
||||||
* 4=REF8_1
|
|
||||||
* 5=REF6_1
|
|
||||||
* 6=REF9_1
|
|
||||||
* 7=REF7_1
|
|
||||||
* 8=REF11_1
|
|
||||||
* 9=REF10_1
|
|
||||||
* 10=?
|
|
||||||
* $EndPinList
|
|
||||||
* $EndComponent
|
|
||||||
* $EndComponentList
|
|
||||||
*
|
|
||||||
* $BeginNets
|
|
||||||
* Net 0 ""
|
|
||||||
* Net 1 "GND"
|
|
||||||
* BUS1 31
|
|
||||||
* U3 19
|
|
||||||
* U3 10
|
|
||||||
* U3 1
|
|
||||||
* Net 172 ""
|
|
||||||
* BUS1 32
|
|
||||||
* Net 173 ""
|
|
||||||
* BUS1 30
|
|
||||||
* $EndNets
|
|
||||||
*
|
|
||||||
* $EndNetlist
|
|
||||||
*/
|
|
||||||
|
|
||||||
char* GetLine( FILE* File, char* Line, int* LineNum, int SizeLine );
|
|
||||||
int ReadAndWriteComponentDataSection( FILE* InFile, FILE* OutFile, int* LineNumber );
|
|
||||||
int ReadAndWriteNetsDataSection( FILE* InFile, FILE* OutFile, int* LineNumber );
|
|
||||||
int AreStringsEqual( const char * src, const char * ref );
|
|
||||||
|
|
||||||
|
|
||||||
class ComponentDataClass
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
char m_Reference[256];
|
|
||||||
char m_Value[256];
|
|
||||||
char m_Footprint[256];
|
|
||||||
char m_LibRef[256];
|
|
||||||
long m_TimeStamp;
|
|
||||||
|
|
||||||
public:
|
|
||||||
ComponentDataClass()
|
|
||||||
{
|
|
||||||
InitData();
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
void InitData()
|
|
||||||
{
|
|
||||||
m_TimeStamp = 0;
|
|
||||||
m_Reference[0] = 0;
|
|
||||||
m_Value[0] = 0;
|
|
||||||
m_Footprint[0] = 0;
|
|
||||||
m_LibRef[0] = 0;
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
/********************************/
|
|
||||||
int main( int argc, char** argv )
|
|
||||||
/********************************/
|
|
||||||
{
|
|
||||||
char* InputfileName, * OutputFilename;
|
|
||||||
FILE* InFile, * OutFile;
|
|
||||||
int LineNumber;
|
|
||||||
char Line[1024];
|
|
||||||
|
|
||||||
if( argc < 3 )
|
|
||||||
{
|
|
||||||
printf( "\nUsage; netlist_form_pads-pcb infile outfile\n" );
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
|
|
||||||
InputfileName = argv[1];
|
|
||||||
OutputFilename = argv[2];
|
|
||||||
|
|
||||||
if( ( InFile = fopen( InputfileName, "rt" ) ) == NULL )
|
|
||||||
{
|
|
||||||
printf( "Failed to open file %s", InputfileName );
|
|
||||||
return -2;
|
|
||||||
}
|
|
||||||
if( ( OutFile = fopen( OutputFilename, "wt" ) ) == NULL )
|
|
||||||
{
|
|
||||||
printf( "Failed to create file %s", OutputFilename );
|
|
||||||
return -3;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/* Write header: */
|
|
||||||
fprintf( OutFile, "*PADS-PCB*\n*PART*\n" );
|
|
||||||
|
|
||||||
/* Read and write data lines */
|
|
||||||
while( GetLine( InFile, Line, &LineNumber, sizeof(Line) ) )
|
|
||||||
{
|
|
||||||
if( AreStringsEqual( Line, "$BeginComponent" ) )
|
|
||||||
{
|
|
||||||
ReadAndWriteComponentDataSection( InFile, OutFile, &LineNumber );
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
if( AreStringsEqual( Line, "$BeginNets" ) )
|
|
||||||
{
|
|
||||||
fprintf( OutFile, "\n*NET*\n" );
|
|
||||||
ReadAndWriteNetsDataSection( InFile, OutFile, &LineNumber );
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
fprintf( OutFile, "*END*\n" );
|
|
||||||
|
|
||||||
fclose( InFile );
|
|
||||||
fclose( OutFile );
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/****************************************************************/
|
|
||||||
int ReadAndWriteComponentDataSection( FILE* InFile, FILE* OutFile, int* LineNumber )
|
|
||||||
/****************************************************************/
|
|
||||||
|
|
||||||
/* Read the Components Section from the Generic Netlist and create Components section in Pads-Pcb format
|
|
||||||
* For the component section only reference and footprint are used.
|
|
||||||
* Create lines like:
|
|
||||||
* C1 CHIP_D
|
|
||||||
* C2 unknown
|
|
||||||
*/
|
|
||||||
{
|
|
||||||
char Line[1024];
|
|
||||||
|
|
||||||
class ComponentDataClass ComponentData;
|
|
||||||
char* ident, * data;
|
|
||||||
|
|
||||||
while( GetLine( InFile, Line, LineNumber, sizeof(Line) ) )
|
|
||||||
{
|
|
||||||
if( AreStringsEqual( Line, "$BeginPinList" ) )
|
|
||||||
{
|
|
||||||
while( GetLine( InFile, Line, LineNumber, sizeof(Line) ) )
|
|
||||||
if( AreStringsEqual( Line, "$EndPinList" ) )
|
|
||||||
break;
|
|
||||||
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
if( AreStringsEqual( Line, "$EndComponent" ) ) // Create the output for the component:
|
|
||||||
{
|
|
||||||
/* Create the line like: C2 unknown */
|
|
||||||
|
|
||||||
fprintf( OutFile, "%s ", ComponentData.m_Reference );
|
|
||||||
fprintf( OutFile, "%s\n",
|
|
||||||
strlen( ComponentData.m_Footprint ) ? ComponentData.m_Footprint : "unknown" );
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
ident = strtok( Line, "=\n\r" );
|
|
||||||
data = strtok( NULL, "=\n\r" );
|
|
||||||
if( data == NULL )
|
|
||||||
continue;
|
|
||||||
if( AreStringsEqual( Line, "TimeStamp" ) )
|
|
||||||
{
|
|
||||||
ComponentData.m_TimeStamp = atol( data );
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
if( AreStringsEqual( Line, "Footprint" ) )
|
|
||||||
{
|
|
||||||
strncpy( ComponentData.m_Footprint, data, 255 );
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
if( AreStringsEqual( Line, "Reference" ) )
|
|
||||||
{
|
|
||||||
strncpy( ComponentData.m_Reference, data, 255 );
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
if( AreStringsEqual( Line, "Value" ) )
|
|
||||||
{
|
|
||||||
strncpy( ComponentData.m_Value, data, 255 );
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
if( AreStringsEqual( Line, "Libref" ) )
|
|
||||||
{
|
|
||||||
strncpy( ComponentData.m_LibRef, data, 255 );
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/****************************************************************/
|
|
||||||
int ReadAndWriteNetsDataSection( FILE* InFile, FILE* OutFile, int* LineNumber )
|
|
||||||
/****************************************************************/
|
|
||||||
|
|
||||||
/* Read the Nets Section from the Generic Netlist and create Nets section in Pads-Pcb format
|
|
||||||
* create info type:
|
|
||||||
*SIGNAL* N03791
|
|
||||||
* C3.1 R1.1 JP2.7 U1.3
|
|
||||||
*/
|
|
||||||
{
|
|
||||||
char Line[1024];
|
|
||||||
char* ident, * netnum, * netname, * pin;
|
|
||||||
|
|
||||||
while( GetLine( InFile, Line, LineNumber, sizeof(Line) ) )
|
|
||||||
{
|
|
||||||
if( AreStringsEqual( Line, "$EndNets" ) )
|
|
||||||
return 0;
|
|
||||||
ident = strtok( Line, " \n\r" );
|
|
||||||
if( AreStringsEqual( ident, "Net" ) )
|
|
||||||
{
|
|
||||||
netnum = strtok( NULL, " \n\r" );
|
|
||||||
netname = strtok( NULL, " \"\n\r" );
|
|
||||||
if( (netname == NULL) || strlen( netname ) == 0 )
|
|
||||||
{ // Create the line like: *SIGNAL* N03791
|
|
||||||
int num = atoi( netnum );
|
|
||||||
sprintf( Line, "N-%6.6d", num );
|
|
||||||
netname = Line;
|
|
||||||
}
|
|
||||||
fprintf( OutFile, "*SIGNAL* %s\n", netname );
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
// Create the line like: C3.1 R1.1 JP2.7 U1.3
|
|
||||||
pin = strtok( NULL, " \n\r" );
|
|
||||||
fprintf( OutFile, " %s.%s\n", ident, pin );
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/*****************************************************************/
|
|
||||||
char* GetLine( FILE* File, char* Line, int* LineNum, int SizeLine )
|
|
||||||
/*****************************************************************/
|
|
||||||
|
|
||||||
/* Return a non empty line
|
|
||||||
* increment *LineNum for each read line
|
|
||||||
* Comment lines (starting by '#') are skipped
|
|
||||||
*/
|
|
||||||
{
|
|
||||||
do {
|
|
||||||
if( fgets( Line, SizeLine, File ) == NULL )
|
|
||||||
return NULL;
|
|
||||||
if( LineNum )
|
|
||||||
*LineNum += 1;
|
|
||||||
} while( Line[0] == '#' || Line[0] == '\n' || Line[0] == '\r'
|
|
||||||
|| Line[0] == 0 );
|
|
||||||
|
|
||||||
strtok( Line, "\n\r" );
|
|
||||||
return Line;
|
|
||||||
}
|
|
||||||
|
|
||||||
/***************************************************/
|
|
||||||
int AreStringsEqual( const char * src, const char * ref )
|
|
||||||
/***************************************************/
|
|
||||||
/* Compare 2 strings (case insensitive),
|
|
||||||
* and return 1 (true) if equal or 0 (false) if different
|
|
||||||
* stricmp does the same job, but does not exist under all systems
|
|
||||||
*/
|
|
||||||
{
|
|
||||||
int match = 1;
|
|
||||||
while (src && ref )
|
|
||||||
{
|
|
||||||
unsigned char c1 = *src;
|
|
||||||
unsigned char c2 = *ref;
|
|
||||||
if ( c1 >= 'a' && c1 <= 'z' )
|
|
||||||
c1 += 'A' - 'a';
|
|
||||||
if ( c2 >= 'a' && c2 <= 'z' )
|
|
||||||
c2 += 'A' - 'a';
|
|
||||||
if ( c1 != c2 )
|
|
||||||
{
|
|
||||||
match = 0;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
if ( c1 == 0 || c2 == 0 )
|
|
||||||
break;
|
|
||||||
src++; ref++;
|
|
||||||
}
|
|
||||||
|
|
||||||
return match;
|
|
||||||
}
|
|
|
@ -0,0 +1,67 @@
|
||||||
|
G04 start of page 2 for group 0 idx 0
|
||||||
|
G04 Title: (unknown), component *
|
||||||
|
G04 Creator: pcb 20080202 *
|
||||||
|
G04 CreationDate: Sat 27 Feb 2010 07:29:32 PM GMT UTC *
|
||||||
|
G04 For: randomplague *
|
||||||
|
G04 Format: Gerber/RS-274X *
|
||||||
|
G04 PCB-Dimensions: 70000 45000 *
|
||||||
|
G04 PCB-Coordinate-Origin: lower left *
|
||||||
|
%MOIN*%
|
||||||
|
%FSLAX24Y24*%
|
||||||
|
%LNFRONT*%
|
||||||
|
%ADD11C,0.0200*%
|
||||||
|
%ADD12C,0.0600*%
|
||||||
|
%ADD13R,0.0200X0.0200*%
|
||||||
|
%ADD14R,0.0512X0.0512*%
|
||||||
|
%ADD15C,0.0380*%
|
||||||
|
G54D11*X1900Y1250D02*X1250D01*
|
||||||
|
X1900Y750D02*X750D01*
|
||||||
|
X2550D02*X3250D01*
|
||||||
|
X1250Y1250D02*X750Y1750D01*
|
||||||
|
X1900Y2250D02*Y2600D01*
|
||||||
|
X750Y3750D01*
|
||||||
|
X1000Y2750D02*X750D01*
|
||||||
|
X1000D02*X1500Y2250D01*
|
||||||
|
Y1750D02*X1900D01*
|
||||||
|
X1500D02*Y2250D01*
|
||||||
|
X3250Y750D02*Y3069D01*
|
||||||
|
X5750Y3750D02*X4000D01*
|
||||||
|
X4600Y2250D02*Y2900D01*
|
||||||
|
X4000Y3500D01*
|
||||||
|
X3250Y3069D02*X2819Y3500D01*
|
||||||
|
X4600Y750D02*X5750D01*
|
||||||
|
X4600Y1250D02*X5250D01*
|
||||||
|
X5750Y1750D01*
|
||||||
|
X4600D02*X5000D01*
|
||||||
|
X5750Y2750D02*X5250Y2250D01*
|
||||||
|
X5000Y2000D02*Y1750D01*
|
||||||
|
Y2000D02*X5250Y2250D01*
|
||||||
|
G54D11*G36*
|
||||||
|
X5450Y4050D02*Y3450D01*
|
||||||
|
X6050D01*
|
||||||
|
Y4050D01*
|
||||||
|
X5450D01*
|
||||||
|
G37*
|
||||||
|
G54D12*X5750Y2750D03*
|
||||||
|
Y1750D03*
|
||||||
|
G54D11*G36*
|
||||||
|
X450Y4050D02*Y3450D01*
|
||||||
|
X1050D01*
|
||||||
|
Y4050D01*
|
||||||
|
X450D01*
|
||||||
|
G37*
|
||||||
|
G54D12*X750Y2750D03*
|
||||||
|
Y1750D03*
|
||||||
|
Y750D03*
|
||||||
|
X5750D03*
|
||||||
|
G54D13*X3950D02*X4600D01*
|
||||||
|
X3950Y1250D02*X4600D01*
|
||||||
|
X3950Y1750D02*X4600D01*
|
||||||
|
X1900Y2250D02*X2550D01*
|
||||||
|
X1900Y1750D02*X2550D01*
|
||||||
|
X1900Y1250D02*X2550D01*
|
||||||
|
X1900Y750D02*X2550D01*
|
||||||
|
X3950Y2250D02*X4600D01*
|
||||||
|
G54D14*X2819Y4051D02*Y3500D01*
|
||||||
|
X4000Y4051D02*Y3500D01*
|
||||||
|
G54D15*M02*
|
|
@ -17,7 +17,7 @@
|
||||||
|
|
||||||
; General Product Description Definitions
|
; General Product Description Definitions
|
||||||
!define PRODUCT_NAME "KiCad"
|
!define PRODUCT_NAME "KiCad"
|
||||||
!define PRODUCT_VERSION "2010.05.05"
|
!define PRODUCT_VERSION "2010.12.06"
|
||||||
!define PRODUCT_WEB_SITE "http://iut-tice.ujf-grenoble.fr/kicad/"
|
!define PRODUCT_WEB_SITE "http://iut-tice.ujf-grenoble.fr/kicad/"
|
||||||
!define SOURCEFORGE_WEB_SITE "http://kicad.sourceforge.net/"
|
!define SOURCEFORGE_WEB_SITE "http://kicad.sourceforge.net/"
|
||||||
!define COMPANY_NAME ""
|
!define COMPANY_NAME ""
|
||||||
|
|
|
@ -1,263 +1,263 @@
|
||||||
///////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////
|
||||||
// C++ code generated with wxFormBuilder (version Oct 18 2009)
|
// C++ code generated with wxFormBuilder (version Sep 8 2010)
|
||||||
// http://www.wxformbuilder.org/
|
// http://www.wxformbuilder.org/
|
||||||
//
|
//
|
||||||
// PLEASE DO "NOT" EDIT THIS FILE!
|
// PLEASE DO "NOT" EDIT THIS FILE!
|
||||||
///////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
#include "dialog_plot_base.h"
|
#include "dialog_plot_base.h"
|
||||||
|
|
||||||
///////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
DIALOG_PLOT_BASE::DIALOG_PLOT_BASE( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxDialog( parent, id, title, pos, size, style )
|
DIALOG_PLOT_BASE::DIALOG_PLOT_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( wxSize( -1,350 ), wxDefaultSize );
|
this->SetSizeHints( wxSize( -1,350 ), wxDefaultSize );
|
||||||
|
|
||||||
wxBoxSizer* bMainSizer;
|
wxBoxSizer* bMainSizer;
|
||||||
bMainSizer = new wxBoxSizer( wxVERTICAL );
|
bMainSizer = new wxBoxSizer( wxVERTICAL );
|
||||||
|
|
||||||
wxBoxSizer* bUpperSizer;
|
wxBoxSizer* bUpperSizer;
|
||||||
bUpperSizer = new wxBoxSizer( wxHORIZONTAL );
|
bUpperSizer = new wxBoxSizer( wxHORIZONTAL );
|
||||||
|
|
||||||
wxBoxSizer* bLeftSizer;
|
wxBoxSizer* bLeftSizer;
|
||||||
bLeftSizer = new wxBoxSizer( wxVERTICAL );
|
bLeftSizer = new wxBoxSizer( wxVERTICAL );
|
||||||
|
|
||||||
wxStaticBoxSizer* sbLayersSizer;
|
wxStaticBoxSizer* sbLayersSizer;
|
||||||
sbLayersSizer = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Layers:") ), wxHORIZONTAL );
|
sbLayersSizer = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Layers:") ), wxHORIZONTAL );
|
||||||
|
|
||||||
m_CopperLayersBoxSizer = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Copper Layers:") ), wxVERTICAL );
|
m_CopperLayersBoxSizer = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Copper Layers:") ), wxVERTICAL );
|
||||||
|
|
||||||
sbLayersSizer->Add( m_CopperLayersBoxSizer, 1, wxALL, 5 );
|
sbLayersSizer->Add( m_CopperLayersBoxSizer, 1, wxALL, 5 );
|
||||||
|
|
||||||
m_TechnicalLayersBoxSizer = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Technical Layers:") ), wxVERTICAL );
|
m_TechnicalLayersBoxSizer = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Technical Layers:") ), wxVERTICAL );
|
||||||
|
|
||||||
sbLayersSizer->Add( m_TechnicalLayersBoxSizer, 1, wxALL, 5 );
|
sbLayersSizer->Add( m_TechnicalLayersBoxSizer, 1, wxALL, 5 );
|
||||||
|
|
||||||
bLeftSizer->Add( sbLayersSizer, 1, wxEXPAND, 5 );
|
bLeftSizer->Add( sbLayersSizer, 1, wxEXPAND, 5 );
|
||||||
|
|
||||||
m_Use_Gerber_Extensions = new wxCheckBox( this, ID_USE_GERBER_EXTENSIONS, _("Use Proper Gerber Extensions"), wxDefaultPosition, wxDefaultSize, 0 );
|
m_Use_Gerber_Extensions = new wxCheckBox( this, ID_USE_GERBER_EXTENSIONS, _("Use Proper Gerber Extensions"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
m_Use_Gerber_Extensions->SetToolTip( _("Use Proper Gerber Extensions - .GBL, .GTL, etc...") );
|
m_Use_Gerber_Extensions->SetToolTip( _("Use Proper Gerber Extensions - .GBL, .GTL, etc...") );
|
||||||
|
|
||||||
bLeftSizer->Add( m_Use_Gerber_Extensions, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
|
bLeftSizer->Add( m_Use_Gerber_Extensions, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
|
||||||
|
|
||||||
m_Exclude_Edges_Pcb = new wxCheckBox( this, wxID_ANY, _("Exclude pcb edge layer"), wxDefaultPosition, wxDefaultSize, 0 );
|
m_Exclude_Edges_Pcb = new wxCheckBox( this, wxID_ANY, _("Exclude pcb edge layer"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
m_Exclude_Edges_Pcb->SetToolTip( _("Exclude contents of the pcb edge layer from all other layers") );
|
m_Exclude_Edges_Pcb->SetToolTip( _("Exclude contents of the pcb edge layer from all other layers") );
|
||||||
|
|
||||||
bLeftSizer->Add( m_Exclude_Edges_Pcb, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
|
bLeftSizer->Add( m_Exclude_Edges_Pcb, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
|
||||||
|
|
||||||
m_SubtractMaskFromSilk = new wxCheckBox( this, wxID_ANY, _("Subtract Mask from Silk"), wxDefaultPosition, wxDefaultSize, 0 );
|
m_SubtractMaskFromSilk = new wxCheckBox( this, wxID_ANY, _("Subtract Mask from Silk"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
m_SubtractMaskFromSilk->SetToolTip( _("Remove silkscreen from areas without soldermask") );
|
m_SubtractMaskFromSilk->SetToolTip( _("Remove silkscreen from areas without soldermask") );
|
||||||
|
|
||||||
bLeftSizer->Add( m_SubtractMaskFromSilk, 0, wxALL, 5 );
|
bLeftSizer->Add( m_SubtractMaskFromSilk, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
|
||||||
|
|
||||||
m_Plot_Sheet_Ref = new wxCheckBox( this, wxID_ANY, _("Print sheet reference"), wxDefaultPosition, wxDefaultSize, 0 );
|
m_Plot_Sheet_Ref = new wxCheckBox( this, wxID_ANY, _("Print sheet reference"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
bLeftSizer->Add( m_Plot_Sheet_Ref, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
|
bLeftSizer->Add( m_Plot_Sheet_Ref, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
|
||||||
|
|
||||||
m_Plot_Pads_on_Silkscreen = new wxCheckBox( this, ID_ALLOW_PRINT_PAD_ON_SILKSCREEN, _("Print pads on silkscreen"), wxDefaultPosition, wxDefaultSize, 0 );
|
m_Plot_Pads_on_Silkscreen = new wxCheckBox( this, ID_ALLOW_PRINT_PAD_ON_SILKSCREEN, _("Print pads on silkscreen"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
m_Plot_Pads_on_Silkscreen->SetToolTip( _("Enable/disable print/plot pads on silkscreen layers\nWhen disable, pads are never potted on silkscreen layers\nWhen enable, pads are potted only if they appear on silkscreen layers") );
|
m_Plot_Pads_on_Silkscreen->SetToolTip( _("Enable/disable print/plot pads on silkscreen layers\nWhen disable, pads are never potted on silkscreen layers\nWhen enable, pads are potted only if they appear on silkscreen layers") );
|
||||||
|
|
||||||
bLeftSizer->Add( m_Plot_Pads_on_Silkscreen, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
|
bLeftSizer->Add( m_Plot_Pads_on_Silkscreen, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
|
||||||
|
|
||||||
m_Plot_Text_Value = new wxCheckBox( this, ID_PRINT_VALUE, _("Print module value"), wxDefaultPosition, wxDefaultSize, 0 );
|
m_Plot_Text_Value = new wxCheckBox( this, ID_PRINT_VALUE, _("Print module value"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
bLeftSizer->Add( m_Plot_Text_Value, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
|
bLeftSizer->Add( m_Plot_Text_Value, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
|
||||||
|
|
||||||
m_Plot_Text_Ref = new wxCheckBox( this, ID_PRINT_REF, _("Print module reference"), wxDefaultPosition, wxDefaultSize, 0 );
|
m_Plot_Text_Ref = new wxCheckBox( this, ID_PRINT_REF, _("Print module reference"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
bLeftSizer->Add( m_Plot_Text_Ref, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
|
bLeftSizer->Add( m_Plot_Text_Ref, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
|
||||||
|
|
||||||
m_Plot_Text_Div = new wxCheckBox( this, ID_PRINT_MODULE_TEXTS, _("Print other module texts"), wxDefaultPosition, wxDefaultSize, 0 );
|
m_Plot_Text_Div = new wxCheckBox( this, ID_PRINT_MODULE_TEXTS, _("Print other module texts"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
m_Plot_Text_Div->SetToolTip( _("Enable/disable print/plot module field texts on silkscreen layers") );
|
m_Plot_Text_Div->SetToolTip( _("Enable/disable print/plot module field texts on silkscreen layers") );
|
||||||
|
|
||||||
bLeftSizer->Add( m_Plot_Text_Div, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
|
bLeftSizer->Add( m_Plot_Text_Div, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
|
||||||
|
|
||||||
m_Plot_Invisible_Text = new wxCheckBox( this, ID_FORCE_PRINT_INVISIBLE_TEXT, _("Force print invisible texts"), wxDefaultPosition, wxDefaultSize, 0 );
|
m_Plot_Invisible_Text = new wxCheckBox( this, ID_FORCE_PRINT_INVISIBLE_TEXT, _("Force print invisible texts"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
m_Plot_Invisible_Text->SetToolTip( _("Force print/plot module invisible texts on silkscreen layers") );
|
m_Plot_Invisible_Text->SetToolTip( _("Force print/plot module invisible texts on silkscreen layers") );
|
||||||
|
|
||||||
bLeftSizer->Add( m_Plot_Invisible_Text, 0, wxALL, 5 );
|
bLeftSizer->Add( m_Plot_Invisible_Text, 0, wxALL, 5 );
|
||||||
|
|
||||||
bUpperSizer->Add( bLeftSizer, 2, wxEXPAND, 5 );
|
bUpperSizer->Add( bLeftSizer, 2, wxEXPAND, 5 );
|
||||||
|
|
||||||
wxBoxSizer* bPlotOptionsSizer;
|
wxBoxSizer* bPlotOptionsSizer;
|
||||||
bPlotOptionsSizer = new wxBoxSizer( wxVERTICAL );
|
bPlotOptionsSizer = new wxBoxSizer( wxVERTICAL );
|
||||||
|
|
||||||
wxString m_Drill_Shape_OptChoices[] = { _("No drill mark"), _("Small mark"), _("Real drill") };
|
wxString m_Drill_Shape_OptChoices[] = { _("No drill mark"), _("Small mark"), _("Real drill") };
|
||||||
int m_Drill_Shape_OptNChoices = sizeof( m_Drill_Shape_OptChoices ) / sizeof( wxString );
|
int m_Drill_Shape_OptNChoices = sizeof( m_Drill_Shape_OptChoices ) / sizeof( wxString );
|
||||||
m_Drill_Shape_Opt = new wxRadioBox( this, ID_DRILL_SHAPE_OPT, _("Pads Drill Opt"), wxDefaultPosition, wxDefaultSize, m_Drill_Shape_OptNChoices, m_Drill_Shape_OptChoices, 1, wxRA_SPECIFY_COLS );
|
m_Drill_Shape_Opt = new wxRadioBox( this, ID_DRILL_SHAPE_OPT, _("Pads Drill Opt"), wxDefaultPosition, wxDefaultSize, m_Drill_Shape_OptNChoices, m_Drill_Shape_OptChoices, 1, wxRA_SPECIFY_COLS );
|
||||||
m_Drill_Shape_Opt->SetSelection( 1 );
|
m_Drill_Shape_Opt->SetSelection( 1 );
|
||||||
bPlotOptionsSizer->Add( m_Drill_Shape_Opt, 0, wxALL|wxEXPAND, 5 );
|
bPlotOptionsSizer->Add( m_Drill_Shape_Opt, 0, wxALL|wxEXPAND, 5 );
|
||||||
|
|
||||||
wxString m_Scale_OptChoices[] = { _("Auto scale"), _("Scale 1"), _("Scale 1.5"), _("Scale 2"), _("Scale 3") };
|
wxString m_Scale_OptChoices[] = { _("Auto scale"), _("Scale 1"), _("Scale 1.5"), _("Scale 2"), _("Scale 3") };
|
||||||
int m_Scale_OptNChoices = sizeof( m_Scale_OptChoices ) / sizeof( wxString );
|
int m_Scale_OptNChoices = sizeof( m_Scale_OptChoices ) / sizeof( wxString );
|
||||||
m_Scale_Opt = new wxRadioBox( this, wxID_ANY, _("Scale Opt"), wxDefaultPosition, wxDefaultSize, m_Scale_OptNChoices, m_Scale_OptChoices, 1, wxRA_SPECIFY_COLS );
|
m_Scale_Opt = new wxRadioBox( this, wxID_ANY, _("Scale Opt"), wxDefaultPosition, wxDefaultSize, m_Scale_OptNChoices, m_Scale_OptChoices, 1, wxRA_SPECIFY_COLS );
|
||||||
m_Scale_Opt->SetSelection( 0 );
|
m_Scale_Opt->SetSelection( 0 );
|
||||||
bPlotOptionsSizer->Add( m_Scale_Opt, 0, wxALL|wxEXPAND, 5 );
|
bPlotOptionsSizer->Add( m_Scale_Opt, 0, wxALL|wxEXPAND, 5 );
|
||||||
|
|
||||||
wxString m_PlotModeOptChoices[] = { _("Line"), _("Filled"), _("Sketch") };
|
wxString m_PlotModeOptChoices[] = { _("Line"), _("Filled"), _("Sketch") };
|
||||||
int m_PlotModeOptNChoices = sizeof( m_PlotModeOptChoices ) / sizeof( wxString );
|
int m_PlotModeOptNChoices = sizeof( m_PlotModeOptChoices ) / sizeof( wxString );
|
||||||
m_PlotModeOpt = new wxRadioBox( this, wxID_ANY, _("Plot Mode"), wxDefaultPosition, wxDefaultSize, m_PlotModeOptNChoices, m_PlotModeOptChoices, 1, wxRA_SPECIFY_COLS );
|
m_PlotModeOpt = new wxRadioBox( this, wxID_ANY, _("Plot Mode"), wxDefaultPosition, wxDefaultSize, m_PlotModeOptNChoices, m_PlotModeOptChoices, 1, wxRA_SPECIFY_COLS );
|
||||||
m_PlotModeOpt->SetSelection( 0 );
|
m_PlotModeOpt->SetSelection( 0 );
|
||||||
bPlotOptionsSizer->Add( m_PlotModeOpt, 0, wxALL|wxEXPAND, 5 );
|
bPlotOptionsSizer->Add( m_PlotModeOpt, 0, wxALL|wxEXPAND, 5 );
|
||||||
|
|
||||||
wxString m_Choice_Plot_OffsetChoices[] = { _("Absolute"), _("Auxiliary axis") };
|
wxString m_Choice_Plot_OffsetChoices[] = { _("Absolute"), _("Auxiliary axis") };
|
||||||
int m_Choice_Plot_OffsetNChoices = sizeof( m_Choice_Plot_OffsetChoices ) / sizeof( wxString );
|
int m_Choice_Plot_OffsetNChoices = sizeof( m_Choice_Plot_OffsetChoices ) / sizeof( wxString );
|
||||||
m_Choice_Plot_Offset = new wxRadioBox( this, wxID_ANY, _("Plot Origin"), wxDefaultPosition, wxDefaultSize, m_Choice_Plot_OffsetNChoices, m_Choice_Plot_OffsetChoices, 1, wxRA_SPECIFY_COLS );
|
m_Choice_Plot_Offset = new wxRadioBox( this, wxID_ANY, _("Plot Origin"), wxDefaultPosition, wxDefaultSize, m_Choice_Plot_OffsetNChoices, m_Choice_Plot_OffsetChoices, 1, wxRA_SPECIFY_COLS );
|
||||||
m_Choice_Plot_Offset->SetSelection( 0 );
|
m_Choice_Plot_Offset->SetSelection( 0 );
|
||||||
bPlotOptionsSizer->Add( m_Choice_Plot_Offset, 0, wxALL|wxEXPAND, 5 );
|
bPlotOptionsSizer->Add( m_Choice_Plot_Offset, 0, wxALL|wxEXPAND, 5 );
|
||||||
|
|
||||||
bUpperSizer->Add( bPlotOptionsSizer, 1, 0, 5 );
|
bUpperSizer->Add( bPlotOptionsSizer, 1, 0, 5 );
|
||||||
|
|
||||||
wxBoxSizer* bSizerFmtPlot;
|
wxBoxSizer* bSizerFmtPlot;
|
||||||
bSizerFmtPlot = new wxBoxSizer( wxVERTICAL );
|
bSizerFmtPlot = new wxBoxSizer( wxVERTICAL );
|
||||||
|
|
||||||
wxString m_PlotFormatOptChoices[] = { _("HPGL"), _("Gerber"), _("Postscript"), _("Postscript A4"), _("DXF Export") };
|
wxString m_PlotFormatOptChoices[] = { _("HPGL"), _("Gerber"), _("Postscript"), _("Postscript A4"), _("DXF Export") };
|
||||||
int m_PlotFormatOptNChoices = sizeof( m_PlotFormatOptChoices ) / sizeof( wxString );
|
int m_PlotFormatOptNChoices = sizeof( m_PlotFormatOptChoices ) / sizeof( wxString );
|
||||||
m_PlotFormatOpt = new wxRadioBox( this, wxID_ANY, _("Plot Format"), wxDefaultPosition, wxDefaultSize, m_PlotFormatOptNChoices, m_PlotFormatOptChoices, 1, wxRA_SPECIFY_COLS );
|
m_PlotFormatOpt = new wxRadioBox( this, wxID_ANY, _("Plot Format"), wxDefaultPosition, wxDefaultSize, m_PlotFormatOptNChoices, m_PlotFormatOptChoices, 1, wxRA_SPECIFY_COLS );
|
||||||
m_PlotFormatOpt->SetSelection( 1 );
|
m_PlotFormatOpt->SetSelection( 1 );
|
||||||
bSizerFmtPlot->Add( m_PlotFormatOpt, 0, wxALL|wxEXPAND, 5 );
|
bSizerFmtPlot->Add( m_PlotFormatOpt, 0, wxALL|wxEXPAND, 5 );
|
||||||
|
|
||||||
wxStaticBoxSizer* m_HPGL_OptionsBox;
|
wxStaticBoxSizer* m_HPGL_OptionsBox;
|
||||||
m_HPGL_OptionsBox = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("HPGL Options:") ), wxVERTICAL );
|
m_HPGL_OptionsBox = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("HPGL Options:") ), wxVERTICAL );
|
||||||
|
|
||||||
m_textPenSize = new wxStaticText( this, wxID_ANY, _("Pen size"), wxDefaultPosition, wxDefaultSize, 0 );
|
m_textPenSize = new wxStaticText( this, wxID_ANY, _("Pen size"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
m_textPenSize->Wrap( -1 );
|
m_textPenSize->Wrap( -1 );
|
||||||
m_HPGL_OptionsBox->Add( m_textPenSize, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
|
m_HPGL_OptionsBox->Add( m_textPenSize, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
|
||||||
|
|
||||||
m_HPGLPenSizeOpt = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
|
m_HPGLPenSizeOpt = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
m_HPGL_OptionsBox->Add( m_HPGLPenSizeOpt, 0, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
|
m_HPGL_OptionsBox->Add( m_HPGLPenSizeOpt, 0, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
|
||||||
|
|
||||||
m_staticText3 = new wxStaticText( this, wxID_ANY, _("Pen Speed (cm/s)"), wxDefaultPosition, wxDefaultSize, 0 );
|
m_staticText3 = new wxStaticText( this, wxID_ANY, _("Pen Speed (cm/s)"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
m_staticText3->Wrap( -1 );
|
m_staticText3->Wrap( -1 );
|
||||||
m_HPGL_OptionsBox->Add( m_staticText3, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
|
m_HPGL_OptionsBox->Add( m_staticText3, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
|
||||||
|
|
||||||
m_HPGLPenSpeedOpt = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
|
m_HPGLPenSpeedOpt = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
m_HPGLPenSpeedOpt->SetToolTip( _("Set pen speed in cm/s") );
|
m_HPGLPenSpeedOpt->SetToolTip( _("Set pen speed in cm/s") );
|
||||||
|
|
||||||
m_HPGL_OptionsBox->Add( m_HPGLPenSpeedOpt, 0, wxBOTTOM|wxRIGHT|wxLEFT|wxEXPAND, 5 );
|
m_HPGL_OptionsBox->Add( m_HPGLPenSpeedOpt, 0, wxBOTTOM|wxRIGHT|wxLEFT|wxEXPAND, 5 );
|
||||||
|
|
||||||
m_textPenOvr = new wxStaticText( this, wxID_ANY, _("Pen ovr"), wxDefaultPosition, wxDefaultSize, 0 );
|
m_textPenOvr = new wxStaticText( this, wxID_ANY, _("Pen ovr"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
m_textPenOvr->Wrap( -1 );
|
m_textPenOvr->Wrap( -1 );
|
||||||
m_HPGL_OptionsBox->Add( m_textPenOvr, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
|
m_HPGL_OptionsBox->Add( m_textPenOvr, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
|
||||||
|
|
||||||
m_HPGLPenOverlayOpt = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
|
m_HPGLPenOverlayOpt = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
m_HPGLPenOverlayOpt->SetToolTip( _("Set plot overlay for filling") );
|
m_HPGLPenOverlayOpt->SetToolTip( _("Set plot overlay for filling") );
|
||||||
|
|
||||||
m_HPGL_OptionsBox->Add( m_HPGLPenOverlayOpt, 0, wxBOTTOM|wxRIGHT|wxLEFT|wxEXPAND, 5 );
|
m_HPGL_OptionsBox->Add( m_HPGLPenOverlayOpt, 0, wxBOTTOM|wxRIGHT|wxLEFT|wxEXPAND, 5 );
|
||||||
|
|
||||||
bSizerFmtPlot->Add( m_HPGL_OptionsBox, 1, wxEXPAND, 5 );
|
bSizerFmtPlot->Add( m_HPGL_OptionsBox, 1, wxEXPAND, 5 );
|
||||||
|
|
||||||
wxStaticBoxSizer* sbSizerPSOpt;
|
wxStaticBoxSizer* sbSizerPSOpt;
|
||||||
sbSizerPSOpt = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("PS Options:") ), wxVERTICAL );
|
sbSizerPSOpt = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("PS Options:") ), wxVERTICAL );
|
||||||
|
|
||||||
m_Plot_PS_Negative = new wxCheckBox( this, wxID_ANY, _("Plot negative"), wxDefaultPosition, wxDefaultSize, 0 );
|
m_Plot_PS_Negative = new wxCheckBox( this, wxID_ANY, _("Plot negative"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
sbSizerPSOpt->Add( m_Plot_PS_Negative, 0, wxALL, 5 );
|
sbSizerPSOpt->Add( m_Plot_PS_Negative, 0, wxALL, 5 );
|
||||||
|
|
||||||
bSizerFmtPlot->Add( sbSizerPSOpt, 1, wxEXPAND, 5 );
|
bSizerFmtPlot->Add( sbSizerPSOpt, 0, wxEXPAND, 5 );
|
||||||
|
|
||||||
wxStaticBoxSizer* sbSizerOutputDir;
|
wxStaticBoxSizer* sbSizerOutputDir;
|
||||||
sbSizerOutputDir = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Output Directory:") ), wxVERTICAL );
|
sbSizerOutputDir = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Output Directory:") ), wxVERTICAL );
|
||||||
|
|
||||||
m_OutputDirectory = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
|
m_OutputDirectory = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
sbSizerOutputDir->Add( m_OutputDirectory, 0, wxALIGN_LEFT|wxEXPAND, 5 );
|
sbSizerOutputDir->Add( m_OutputDirectory, 0, wxALIGN_LEFT|wxEXPAND, 5 );
|
||||||
|
|
||||||
m_BrowseButton = new wxButton( this, ID_BROWSE_OUTPUT_DIRECTORY, _("Browse..."), wxDefaultPosition, wxDefaultSize, 0 );
|
m_BrowseButton = new wxButton( this, ID_BROWSE_OUTPUT_DIRECTORY, _("Browse..."), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
sbSizerOutputDir->Add( m_BrowseButton, 0, wxALL, 5 );
|
sbSizerOutputDir->Add( m_BrowseButton, 0, wxALL, 5 );
|
||||||
|
|
||||||
bSizerFmtPlot->Add( sbSizerOutputDir, 1, wxEXPAND, 5 );
|
bSizerFmtPlot->Add( sbSizerOutputDir, 0, wxEXPAND, 5 );
|
||||||
|
|
||||||
bUpperSizer->Add( bSizerFmtPlot, 1, wxEXPAND, 5 );
|
bUpperSizer->Add( bSizerFmtPlot, 1, wxEXPAND, 5 );
|
||||||
|
|
||||||
wxBoxSizer* bButtonsSizer;
|
wxBoxSizer* bButtonsSizer;
|
||||||
bButtonsSizer = new wxBoxSizer( wxVERTICAL );
|
bButtonsSizer = new wxBoxSizer( wxVERTICAL );
|
||||||
|
|
||||||
m_PlotMirorOpt = new wxCheckBox( this, ID_MIROR_OPT, _("Plot mirror"), wxDefaultPosition, wxDefaultSize, 0 );
|
m_PlotMirorOpt = new wxCheckBox( this, ID_MIROR_OPT, _("Plot mirror"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
bButtonsSizer->Add( m_PlotMirorOpt, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
|
bButtonsSizer->Add( m_PlotMirorOpt, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
|
||||||
|
|
||||||
m_PlotNoViaOnMaskOpt = new wxCheckBox( this, ID_MASKVIA_OPT, _("Vias on mask"), wxDefaultPosition, wxDefaultSize, 0 );
|
m_PlotNoViaOnMaskOpt = new wxCheckBox( this, ID_MASKVIA_OPT, _("Vias on mask"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
m_PlotNoViaOnMaskOpt->SetToolTip( _("Print/plot vias on mask layers. They are in this case not protected") );
|
m_PlotNoViaOnMaskOpt->SetToolTip( _("Print/plot vias on mask layers. They are in this case not protected") );
|
||||||
|
|
||||||
bButtonsSizer->Add( m_PlotNoViaOnMaskOpt, 0, wxALL, 5 );
|
bButtonsSizer->Add( m_PlotNoViaOnMaskOpt, 0, wxALL, 5 );
|
||||||
|
|
||||||
m_staticText6 = new wxStaticText( this, wxID_ANY, _("Default pen size"), wxDefaultPosition, wxDefaultSize, 0 );
|
m_staticText6 = new wxStaticText( this, wxID_ANY, _("Default pen size"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
m_staticText6->Wrap( -1 );
|
m_staticText6->Wrap( -1 );
|
||||||
m_staticText6->SetToolTip( _("Pen size used to draw items that have no pen size specified.\nUsed mainly to draw items in sketch mode.") );
|
m_staticText6->SetToolTip( _("Pen size used to draw items that have no pen size specified.\nUsed mainly to draw items in sketch mode.") );
|
||||||
|
|
||||||
bButtonsSizer->Add( m_staticText6, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
|
bButtonsSizer->Add( m_staticText6, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
|
||||||
|
|
||||||
m_LinesWidth = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
|
m_LinesWidth = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
bButtonsSizer->Add( m_LinesWidth, 0, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
|
bButtonsSizer->Add( m_LinesWidth, 0, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
|
||||||
|
|
||||||
|
|
||||||
bButtonsSizer->Add( 0, 20, 1, wxEXPAND, 5 );
|
bButtonsSizer->Add( 0, 20, 1, wxEXPAND, 5 );
|
||||||
|
|
||||||
m_staticText7 = new wxStaticText( this, wxID_ANY, _("X scale adjust"), wxDefaultPosition, wxDefaultSize, 0 );
|
m_staticText7 = new wxStaticText( this, wxID_ANY, _("X scale adjust"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
m_staticText7->Wrap( -1 );
|
m_staticText7->Wrap( -1 );
|
||||||
bButtonsSizer->Add( m_staticText7, 0, wxRIGHT|wxLEFT, 5 );
|
bButtonsSizer->Add( m_staticText7, 0, wxRIGHT|wxLEFT, 5 );
|
||||||
|
|
||||||
m_FineAdjustXscaleOpt = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
|
m_FineAdjustXscaleOpt = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
m_FineAdjustXscaleOpt->SetToolTip( _("Set X scale adjust for exact scale plotting") );
|
m_FineAdjustXscaleOpt->SetToolTip( _("Set X scale adjust for exact scale plotting") );
|
||||||
|
|
||||||
bButtonsSizer->Add( m_FineAdjustXscaleOpt, 0, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
|
bButtonsSizer->Add( m_FineAdjustXscaleOpt, 0, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
|
||||||
|
|
||||||
m_staticText8 = new wxStaticText( this, wxID_ANY, _("Y scale adjust"), wxDefaultPosition, wxDefaultSize, 0 );
|
m_staticText8 = new wxStaticText( this, wxID_ANY, _("Y scale adjust"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
m_staticText8->Wrap( -1 );
|
m_staticText8->Wrap( -1 );
|
||||||
bButtonsSizer->Add( m_staticText8, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
|
bButtonsSizer->Add( m_staticText8, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
|
||||||
|
|
||||||
m_FineAdjustYscaleOpt = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
|
m_FineAdjustYscaleOpt = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
bButtonsSizer->Add( m_FineAdjustYscaleOpt, 0, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
|
bButtonsSizer->Add( m_FineAdjustYscaleOpt, 0, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
|
||||||
|
|
||||||
|
|
||||||
bButtonsSizer->Add( 0, 20, 1, wxEXPAND, 5 );
|
bButtonsSizer->Add( 0, 20, 1, wxEXPAND, 5 );
|
||||||
|
|
||||||
m_PlotButton = new wxButton( this, ID_EXEC_PLOT, _("Plot"), wxDefaultPosition, wxDefaultSize, 0 );
|
m_PlotButton = new wxButton( this, ID_EXEC_PLOT, _("Plot"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
m_PlotButton->SetDefault();
|
m_PlotButton->SetDefault();
|
||||||
bButtonsSizer->Add( m_PlotButton, 0, wxALL|wxALIGN_CENTER_HORIZONTAL|wxEXPAND, 5 );
|
bButtonsSizer->Add( m_PlotButton, 0, wxALL|wxALIGN_CENTER_HORIZONTAL|wxEXPAND, 5 );
|
||||||
|
|
||||||
m_buttonSaveOpt = new wxButton( this, ID_SAVE_OPT_PLOT, _("Save Options"), wxDefaultPosition, wxDefaultSize, 0 );
|
m_buttonSaveOpt = new wxButton( this, ID_SAVE_OPT_PLOT, _("Save Options"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
bButtonsSizer->Add( m_buttonSaveOpt, 0, wxALL|wxALIGN_CENTER_HORIZONTAL|wxEXPAND, 5 );
|
bButtonsSizer->Add( m_buttonSaveOpt, 0, wxALL|wxALIGN_CENTER_HORIZONTAL|wxEXPAND, 5 );
|
||||||
|
|
||||||
m_buttonDrill = new wxButton( this, ID_CREATE_DRILL_FILE, _("Generate drill file"), wxDefaultPosition, wxDefaultSize, 0 );
|
m_buttonDrill = new wxButton( this, ID_CREATE_DRILL_FILE, _("Generate drill file"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
bButtonsSizer->Add( m_buttonDrill, 0, wxALL|wxALIGN_CENTER_HORIZONTAL|wxEXPAND, 5 );
|
bButtonsSizer->Add( m_buttonDrill, 0, wxALL|wxALIGN_CENTER_HORIZONTAL|wxEXPAND, 5 );
|
||||||
|
|
||||||
m_buttonQuit = new wxButton( this, wxID_CANCEL, _("Quit"), wxDefaultPosition, wxDefaultSize, 0 );
|
m_buttonQuit = new wxButton( this, wxID_CANCEL, _("Quit"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
bButtonsSizer->Add( m_buttonQuit, 0, wxALL|wxALIGN_CENTER_HORIZONTAL|wxEXPAND, 5 );
|
bButtonsSizer->Add( m_buttonQuit, 0, wxALL|wxALIGN_CENTER_HORIZONTAL|wxEXPAND, 5 );
|
||||||
|
|
||||||
bUpperSizer->Add( bButtonsSizer, 1, wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
|
bUpperSizer->Add( bButtonsSizer, 1, wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
|
||||||
|
|
||||||
bMainSizer->Add( bUpperSizer, 0, wxEXPAND, 5 );
|
bMainSizer->Add( bUpperSizer, 0, wxEXPAND, 5 );
|
||||||
|
|
||||||
m_staticText2 = new wxStaticText( this, wxID_ANY, _("Messages:"), wxDefaultPosition, wxDefaultSize, 0 );
|
m_staticText2 = new wxStaticText( this, wxID_ANY, _("Messages:"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
m_staticText2->Wrap( -1 );
|
m_staticText2->Wrap( -1 );
|
||||||
bMainSizer->Add( m_staticText2, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
|
bMainSizer->Add( m_staticText2, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
|
||||||
|
|
||||||
m_MessagesBox = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_MULTILINE );
|
m_MessagesBox = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_MULTILINE );
|
||||||
m_MessagesBox->SetMinSize( wxSize( -1,120 ) );
|
m_MessagesBox->SetMinSize( wxSize( -1,120 ) );
|
||||||
|
|
||||||
bMainSizer->Add( m_MessagesBox, 1, wxBOTTOM|wxRIGHT|wxLEFT|wxEXPAND, 5 );
|
bMainSizer->Add( m_MessagesBox, 1, wxBOTTOM|wxRIGHT|wxLEFT|wxEXPAND, 5 );
|
||||||
|
|
||||||
this->SetSizer( bMainSizer );
|
this->SetSizer( bMainSizer );
|
||||||
this->Layout();
|
this->Layout();
|
||||||
bMainSizer->Fit( this );
|
bMainSizer->Fit( this );
|
||||||
|
|
||||||
// Connect Events
|
// Connect Events
|
||||||
this->Connect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( DIALOG_PLOT_BASE::OnCloseWindow ) );
|
this->Connect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( DIALOG_PLOT_BASE::OnCloseWindow ) );
|
||||||
this->Connect( wxEVT_INIT_DIALOG, wxInitDialogEventHandler( DIALOG_PLOT_BASE::OnInitDialog ) );
|
this->Connect( wxEVT_INIT_DIALOG, wxInitDialogEventHandler( DIALOG_PLOT_BASE::OnInitDialog ) );
|
||||||
m_PlotFormatOpt->Connect( wxEVT_COMMAND_RADIOBOX_SELECTED, wxCommandEventHandler( DIALOG_PLOT_BASE::SetPlotFormat ), NULL, this );
|
m_PlotFormatOpt->Connect( wxEVT_COMMAND_RADIOBOX_SELECTED, wxCommandEventHandler( DIALOG_PLOT_BASE::SetPlotFormat ), NULL, this );
|
||||||
m_BrowseButton->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_PLOT_BASE::OnOutputDirectoryBrowseClicked ), NULL, this );
|
m_BrowseButton->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_PLOT_BASE::OnOutputDirectoryBrowseClicked ), NULL, this );
|
||||||
m_PlotButton->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_PLOT_BASE::Plot ), NULL, this );
|
m_PlotButton->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_PLOT_BASE::Plot ), NULL, this );
|
||||||
m_buttonSaveOpt->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_PLOT_BASE::SaveOptPlot ), NULL, this );
|
m_buttonSaveOpt->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_PLOT_BASE::SaveOptPlot ), NULL, this );
|
||||||
m_buttonDrill->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_PLOT_BASE::CreateDrillFile ), NULL, this );
|
m_buttonDrill->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_PLOT_BASE::CreateDrillFile ), NULL, this );
|
||||||
m_buttonQuit->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_PLOT_BASE::OnQuit ), NULL, this );
|
m_buttonQuit->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_PLOT_BASE::OnQuit ), NULL, this );
|
||||||
}
|
}
|
||||||
|
|
||||||
DIALOG_PLOT_BASE::~DIALOG_PLOT_BASE()
|
DIALOG_PLOT_BASE::~DIALOG_PLOT_BASE()
|
||||||
{
|
{
|
||||||
// Disconnect Events
|
// Disconnect Events
|
||||||
this->Disconnect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( DIALOG_PLOT_BASE::OnCloseWindow ) );
|
this->Disconnect( wxEVT_CLOSE_WINDOW, wxCloseEventHandler( DIALOG_PLOT_BASE::OnCloseWindow ) );
|
||||||
this->Disconnect( wxEVT_INIT_DIALOG, wxInitDialogEventHandler( DIALOG_PLOT_BASE::OnInitDialog ) );
|
this->Disconnect( wxEVT_INIT_DIALOG, wxInitDialogEventHandler( DIALOG_PLOT_BASE::OnInitDialog ) );
|
||||||
m_PlotFormatOpt->Disconnect( wxEVT_COMMAND_RADIOBOX_SELECTED, wxCommandEventHandler( DIALOG_PLOT_BASE::SetPlotFormat ), NULL, this );
|
m_PlotFormatOpt->Disconnect( wxEVT_COMMAND_RADIOBOX_SELECTED, wxCommandEventHandler( DIALOG_PLOT_BASE::SetPlotFormat ), NULL, this );
|
||||||
m_BrowseButton->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_PLOT_BASE::OnOutputDirectoryBrowseClicked ), NULL, this );
|
m_BrowseButton->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_PLOT_BASE::OnOutputDirectoryBrowseClicked ), NULL, this );
|
||||||
m_PlotButton->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_PLOT_BASE::Plot ), NULL, this );
|
m_PlotButton->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_PLOT_BASE::Plot ), NULL, this );
|
||||||
m_buttonSaveOpt->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_PLOT_BASE::SaveOptPlot ), NULL, this );
|
m_buttonSaveOpt->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_PLOT_BASE::SaveOptPlot ), NULL, this );
|
||||||
m_buttonDrill->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_PLOT_BASE::CreateDrillFile ), NULL, this );
|
m_buttonDrill->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_PLOT_BASE::CreateDrillFile ), NULL, this );
|
||||||
m_buttonQuit->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_PLOT_BASE::OnQuit ), NULL, this );
|
m_buttonQuit->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_PLOT_BASE::OnQuit ), NULL, this );
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -1,114 +1,114 @@
|
||||||
///////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////
|
||||||
// C++ code generated with wxFormBuilder (version Oct 18 2009)
|
// C++ code generated with wxFormBuilder (version Sep 8 2010)
|
||||||
// http://www.wxformbuilder.org/
|
// http://www.wxformbuilder.org/
|
||||||
//
|
//
|
||||||
// PLEASE DO "NOT" EDIT THIS FILE!
|
// PLEASE DO "NOT" EDIT THIS FILE!
|
||||||
///////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
#ifndef __dialog_plot_base__
|
#ifndef __dialog_plot_base__
|
||||||
#define __dialog_plot_base__
|
#define __dialog_plot_base__
|
||||||
|
|
||||||
#include <wx/intl.h>
|
#include <wx/intl.h>
|
||||||
|
|
||||||
#include <wx/string.h>
|
#include <wx/string.h>
|
||||||
#include <wx/sizer.h>
|
#include <wx/sizer.h>
|
||||||
#include <wx/statbox.h>
|
#include <wx/statbox.h>
|
||||||
#include <wx/gdicmn.h>
|
#include <wx/gdicmn.h>
|
||||||
#include <wx/checkbox.h>
|
#include <wx/checkbox.h>
|
||||||
#include <wx/font.h>
|
#include <wx/font.h>
|
||||||
#include <wx/colour.h>
|
#include <wx/colour.h>
|
||||||
#include <wx/settings.h>
|
#include <wx/settings.h>
|
||||||
#include <wx/radiobox.h>
|
#include <wx/radiobox.h>
|
||||||
#include <wx/stattext.h>
|
#include <wx/stattext.h>
|
||||||
#include <wx/textctrl.h>
|
#include <wx/textctrl.h>
|
||||||
#include <wx/button.h>
|
#include <wx/button.h>
|
||||||
#include <wx/dialog.h>
|
#include <wx/dialog.h>
|
||||||
|
|
||||||
///////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
///////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////
|
||||||
/// Class DIALOG_PLOT_BASE
|
/// Class DIALOG_PLOT_BASE
|
||||||
///////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////
|
||||||
class DIALOG_PLOT_BASE : public wxDialog
|
class DIALOG_PLOT_BASE : public wxDialog
|
||||||
{
|
{
|
||||||
private:
|
private:
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
enum
|
enum
|
||||||
{
|
{
|
||||||
ID_USE_GERBER_EXTENSIONS = 1000,
|
ID_USE_GERBER_EXTENSIONS = 1000,
|
||||||
ID_ALLOW_PRINT_PAD_ON_SILKSCREEN,
|
ID_ALLOW_PRINT_PAD_ON_SILKSCREEN,
|
||||||
ID_PRINT_VALUE,
|
ID_PRINT_VALUE,
|
||||||
ID_PRINT_REF,
|
ID_PRINT_REF,
|
||||||
ID_PRINT_MODULE_TEXTS,
|
ID_PRINT_MODULE_TEXTS,
|
||||||
ID_FORCE_PRINT_INVISIBLE_TEXT,
|
ID_FORCE_PRINT_INVISIBLE_TEXT,
|
||||||
ID_DRILL_SHAPE_OPT,
|
ID_DRILL_SHAPE_OPT,
|
||||||
ID_BROWSE_OUTPUT_DIRECTORY,
|
ID_BROWSE_OUTPUT_DIRECTORY,
|
||||||
ID_MIROR_OPT,
|
ID_MIROR_OPT,
|
||||||
ID_MASKVIA_OPT,
|
ID_MASKVIA_OPT,
|
||||||
ID_EXEC_PLOT,
|
ID_EXEC_PLOT,
|
||||||
ID_SAVE_OPT_PLOT,
|
ID_SAVE_OPT_PLOT,
|
||||||
ID_CREATE_DRILL_FILE,
|
ID_CREATE_DRILL_FILE,
|
||||||
};
|
};
|
||||||
|
|
||||||
wxStaticBoxSizer* m_CopperLayersBoxSizer;
|
wxStaticBoxSizer* m_CopperLayersBoxSizer;
|
||||||
wxStaticBoxSizer* m_TechnicalLayersBoxSizer;
|
wxStaticBoxSizer* m_TechnicalLayersBoxSizer;
|
||||||
wxCheckBox* m_Use_Gerber_Extensions;
|
wxCheckBox* m_Use_Gerber_Extensions;
|
||||||
wxCheckBox* m_Exclude_Edges_Pcb;
|
wxCheckBox* m_Exclude_Edges_Pcb;
|
||||||
wxCheckBox* m_SubtractMaskFromSilk;
|
wxCheckBox* m_SubtractMaskFromSilk;
|
||||||
wxCheckBox* m_Plot_Sheet_Ref;
|
wxCheckBox* m_Plot_Sheet_Ref;
|
||||||
wxCheckBox* m_Plot_Pads_on_Silkscreen;
|
wxCheckBox* m_Plot_Pads_on_Silkscreen;
|
||||||
wxCheckBox* m_Plot_Text_Value;
|
wxCheckBox* m_Plot_Text_Value;
|
||||||
wxCheckBox* m_Plot_Text_Ref;
|
wxCheckBox* m_Plot_Text_Ref;
|
||||||
wxCheckBox* m_Plot_Text_Div;
|
wxCheckBox* m_Plot_Text_Div;
|
||||||
wxCheckBox* m_Plot_Invisible_Text;
|
wxCheckBox* m_Plot_Invisible_Text;
|
||||||
wxRadioBox* m_Drill_Shape_Opt;
|
wxRadioBox* m_Drill_Shape_Opt;
|
||||||
wxRadioBox* m_Scale_Opt;
|
wxRadioBox* m_Scale_Opt;
|
||||||
wxRadioBox* m_PlotModeOpt;
|
wxRadioBox* m_PlotModeOpt;
|
||||||
wxRadioBox* m_Choice_Plot_Offset;
|
wxRadioBox* m_Choice_Plot_Offset;
|
||||||
wxRadioBox* m_PlotFormatOpt;
|
wxRadioBox* m_PlotFormatOpt;
|
||||||
wxStaticText* m_textPenSize;
|
wxStaticText* m_textPenSize;
|
||||||
wxTextCtrl* m_HPGLPenSizeOpt;
|
wxTextCtrl* m_HPGLPenSizeOpt;
|
||||||
wxStaticText* m_staticText3;
|
wxStaticText* m_staticText3;
|
||||||
wxTextCtrl* m_HPGLPenSpeedOpt;
|
wxTextCtrl* m_HPGLPenSpeedOpt;
|
||||||
wxStaticText* m_textPenOvr;
|
wxStaticText* m_textPenOvr;
|
||||||
wxTextCtrl* m_HPGLPenOverlayOpt;
|
wxTextCtrl* m_HPGLPenOverlayOpt;
|
||||||
wxCheckBox* m_Plot_PS_Negative;
|
wxCheckBox* m_Plot_PS_Negative;
|
||||||
wxTextCtrl* m_OutputDirectory;
|
wxTextCtrl* m_OutputDirectory;
|
||||||
wxButton* m_BrowseButton;
|
wxButton* m_BrowseButton;
|
||||||
wxCheckBox* m_PlotMirorOpt;
|
wxCheckBox* m_PlotMirorOpt;
|
||||||
wxCheckBox* m_PlotNoViaOnMaskOpt;
|
wxCheckBox* m_PlotNoViaOnMaskOpt;
|
||||||
wxStaticText* m_staticText6;
|
wxStaticText* m_staticText6;
|
||||||
wxTextCtrl* m_LinesWidth;
|
wxTextCtrl* m_LinesWidth;
|
||||||
|
|
||||||
wxStaticText* m_staticText7;
|
wxStaticText* m_staticText7;
|
||||||
wxTextCtrl* m_FineAdjustXscaleOpt;
|
wxTextCtrl* m_FineAdjustXscaleOpt;
|
||||||
wxStaticText* m_staticText8;
|
wxStaticText* m_staticText8;
|
||||||
wxTextCtrl* m_FineAdjustYscaleOpt;
|
wxTextCtrl* m_FineAdjustYscaleOpt;
|
||||||
|
|
||||||
wxButton* m_PlotButton;
|
wxButton* m_PlotButton;
|
||||||
wxButton* m_buttonSaveOpt;
|
wxButton* m_buttonSaveOpt;
|
||||||
wxButton* m_buttonDrill;
|
wxButton* m_buttonDrill;
|
||||||
wxButton* m_buttonQuit;
|
wxButton* m_buttonQuit;
|
||||||
wxStaticText* m_staticText2;
|
wxStaticText* m_staticText2;
|
||||||
wxTextCtrl* m_MessagesBox;
|
wxTextCtrl* m_MessagesBox;
|
||||||
|
|
||||||
// Virtual event handlers, overide them in your derived class
|
// Virtual event handlers, overide them in your derived class
|
||||||
virtual void OnCloseWindow( wxCloseEvent& event ) { event.Skip(); }
|
virtual void OnCloseWindow( wxCloseEvent& event ) { event.Skip(); }
|
||||||
virtual void OnInitDialog( wxInitDialogEvent& event ) { event.Skip(); }
|
virtual void OnInitDialog( wxInitDialogEvent& event ) { event.Skip(); }
|
||||||
virtual void SetPlotFormat( wxCommandEvent& event ) { event.Skip(); }
|
virtual void SetPlotFormat( wxCommandEvent& event ) { event.Skip(); }
|
||||||
virtual void OnOutputDirectoryBrowseClicked( wxCommandEvent& event ) { event.Skip(); }
|
virtual void OnOutputDirectoryBrowseClicked( wxCommandEvent& event ) { event.Skip(); }
|
||||||
virtual void Plot( wxCommandEvent& event ) { event.Skip(); }
|
virtual void Plot( wxCommandEvent& event ) { event.Skip(); }
|
||||||
virtual void SaveOptPlot( wxCommandEvent& event ) { event.Skip(); }
|
virtual void SaveOptPlot( wxCommandEvent& event ) { event.Skip(); }
|
||||||
virtual void CreateDrillFile( wxCommandEvent& event ) { event.Skip(); }
|
virtual void CreateDrillFile( wxCommandEvent& event ) { event.Skip(); }
|
||||||
virtual void OnQuit( wxCommandEvent& event ) { event.Skip(); }
|
virtual void OnQuit( wxCommandEvent& event ) { event.Skip(); }
|
||||||
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
DIALOG_PLOT_BASE( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = _("Plot"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( -1,-1 ), long style = wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER );
|
DIALOG_PLOT_BASE( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = _("Plot"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( -1,-1 ), long style = wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER );
|
||||||
~DIALOG_PLOT_BASE();
|
~DIALOG_PLOT_BASE();
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif //__dialog_plot_base__
|
#endif //__dialog_plot_base__
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
release version:
|
release version:
|
||||||
2010 dec 03 (BZR R2639)
|
2010 dec 06 (BZR testing 2644)
|
||||||
files (.zip,.tgz):
|
files (.zip,.tgz):
|
||||||
kicad-2010-12-03-testing
|
kicad-2010-12-06-testing
|
||||||
|
|
Loading…
Reference in New Issue