2009-11-14 22:15:22 +00:00
|
|
|
/************************************/
|
|
|
|
/* dialog_graphic_items_options.cpp */
|
|
|
|
/************************************/
|
2007-06-05 12:10:51 +00:00
|
|
|
|
|
|
|
|
|
|
|
#include "fctsys.h"
|
|
|
|
#include "gr_basic.h"
|
|
|
|
|
|
|
|
#include "common.h"
|
|
|
|
#include "pcbnew.h"
|
|
|
|
#include "pcbplot.h"
|
|
|
|
#include "autorout.h"
|
|
|
|
|
2009-09-22 12:27:57 +00:00
|
|
|
#include "pcbnew_id.h"
|
2007-06-05 12:10:51 +00:00
|
|
|
|
|
|
|
#include "protos.h"
|
|
|
|
|
|
|
|
#include "dialog_graphic_items_options.h"
|
|
|
|
|
|
|
|
#include <wx/spinctrl.h>
|
|
|
|
|
|
|
|
|
2007-09-01 12:00:30 +00:00
|
|
|
void WinEDA_GraphicItemsOptionsDialog::SetDisplayValue()
|
2007-06-05 12:10:51 +00:00
|
|
|
{
|
2009-11-14 22:15:22 +00:00
|
|
|
/* Drawings width */
|
|
|
|
AddUnitSymbol( *m_GraphicSegmWidthTitle );
|
|
|
|
PutValueInLocalUnits( *m_OptPcbSegmWidth,
|
2010-01-31 20:01:46 +00:00
|
|
|
m_BrdSettings->m_DrawSegmentWidth,
|
2009-11-14 22:15:22 +00:00
|
|
|
PCB_INTERNAL_UNIT );
|
|
|
|
/* Edges width */
|
|
|
|
AddUnitSymbol( *m_BoardEdgesWidthTitle );
|
|
|
|
PutValueInLocalUnits( *m_OptPcbEdgesWidth,
|
2010-01-31 20:01:46 +00:00
|
|
|
m_BrdSettings->m_EdgeSegmentWidth,
|
2009-11-14 22:15:22 +00:00
|
|
|
PCB_INTERNAL_UNIT );
|
|
|
|
|
|
|
|
/* Pcb Textes (Size & Width) */
|
|
|
|
AddUnitSymbol( *m_CopperTextWidthTitle );
|
|
|
|
PutValueInLocalUnits( *m_OptPcbTextWidth,
|
2010-01-31 20:01:46 +00:00
|
|
|
m_BrdSettings->m_PcbTextWidth, PCB_INTERNAL_UNIT );
|
2009-11-14 22:15:22 +00:00
|
|
|
|
|
|
|
AddUnitSymbol( *m_TextSizeVTitle );
|
|
|
|
PutValueInLocalUnits( *m_OptPcbTextVSize,
|
2010-01-31 20:01:46 +00:00
|
|
|
m_BrdSettings->m_PcbTextSize.y, PCB_INTERNAL_UNIT );
|
2009-11-14 22:15:22 +00:00
|
|
|
|
|
|
|
AddUnitSymbol( *m_TextSizeHTitle );
|
|
|
|
PutValueInLocalUnits( *m_OptPcbTextHSize,
|
2010-01-31 20:01:46 +00:00
|
|
|
m_BrdSettings->m_PcbTextSize.x, PCB_INTERNAL_UNIT );
|
2009-11-14 22:15:22 +00:00
|
|
|
|
|
|
|
|
|
|
|
/* Modules: Edges width */
|
|
|
|
AddUnitSymbol( *m_EdgeModWidthTitle );
|
|
|
|
PutValueInLocalUnits( *m_OptModuleEdgesWidth,
|
|
|
|
ModuleSegmentWidth, PCB_INTERNAL_UNIT );
|
|
|
|
|
|
|
|
/* Modules: Texts: Size & width */
|
|
|
|
AddUnitSymbol( *m_TextModWidthTitle );
|
|
|
|
PutValueInLocalUnits( *m_OptModuleTextWidth,
|
|
|
|
ModuleTextWidth, PCB_INTERNAL_UNIT );
|
|
|
|
|
|
|
|
AddUnitSymbol( *m_TextModSizeVTitle );
|
|
|
|
PutValueInLocalUnits( *m_OptModuleTextVSize,
|
|
|
|
ModuleTextSize.y, PCB_INTERNAL_UNIT );
|
|
|
|
|
|
|
|
AddUnitSymbol( *m_TextModSizeHTitle );
|
|
|
|
PutValueInLocalUnits( *m_OptModuleTextHSize,
|
|
|
|
ModuleTextSize.x, PCB_INTERNAL_UNIT );
|
2007-06-05 12:10:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2009-11-14 22:15:22 +00:00
|
|
|
void WinEDA_GraphicItemsOptionsDialog::AcceptOptions( wxCommandEvent& event )
|
2007-06-05 12:10:51 +00:00
|
|
|
{
|
2010-01-31 20:01:46 +00:00
|
|
|
m_BrdSettings->m_DrawSegmentWidth =
|
2009-11-14 22:15:22 +00:00
|
|
|
ReturnValueFromTextCtrl( *m_OptPcbSegmWidth, PCB_INTERNAL_UNIT );
|
2010-01-31 20:01:46 +00:00
|
|
|
m_BrdSettings->m_EdgeSegmentWidth =
|
2009-11-14 22:15:22 +00:00
|
|
|
ReturnValueFromTextCtrl( *m_OptPcbEdgesWidth, PCB_INTERNAL_UNIT );
|
2010-01-31 20:01:46 +00:00
|
|
|
m_BrdSettings->m_PcbTextWidth =
|
2009-11-14 22:15:22 +00:00
|
|
|
ReturnValueFromTextCtrl( *m_OptPcbTextWidth, PCB_INTERNAL_UNIT );
|
2010-01-31 20:01:46 +00:00
|
|
|
m_BrdSettings->m_PcbTextSize.y =
|
2009-11-14 22:15:22 +00:00
|
|
|
ReturnValueFromTextCtrl( *m_OptPcbTextVSize, PCB_INTERNAL_UNIT );
|
2010-01-31 20:01:46 +00:00
|
|
|
m_BrdSettings->m_PcbTextSize.x =
|
2009-11-14 22:15:22 +00:00
|
|
|
ReturnValueFromTextCtrl( *m_OptPcbTextHSize, PCB_INTERNAL_UNIT );
|
|
|
|
|
|
|
|
ModuleSegmentWidth =
|
|
|
|
ReturnValueFromTextCtrl( *m_OptModuleEdgesWidth, PCB_INTERNAL_UNIT );
|
|
|
|
ModuleTextWidth =
|
|
|
|
ReturnValueFromTextCtrl( *m_OptModuleTextWidth, PCB_INTERNAL_UNIT );
|
|
|
|
ModuleTextSize.y =
|
|
|
|
ReturnValueFromTextCtrl( *m_OptModuleTextVSize, PCB_INTERNAL_UNIT );
|
|
|
|
ModuleTextSize.x =
|
|
|
|
ReturnValueFromTextCtrl( *m_OptModuleTextHSize, PCB_INTERNAL_UNIT );
|
|
|
|
|
|
|
|
EndModal( 1 );
|
2007-06-05 12:10:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/*!
|
|
|
|
* WinEDA_GraphicItemsOptionsDialog type definition
|
|
|
|
*/
|
|
|
|
|
|
|
|
IMPLEMENT_DYNAMIC_CLASS( WinEDA_GraphicItemsOptionsDialog, wxDialog )
|
|
|
|
|
|
|
|
/*!
|
|
|
|
* WinEDA_GraphicItemsOptionsDialog event table definition
|
|
|
|
*/
|
|
|
|
|
|
|
|
BEGIN_EVENT_TABLE( WinEDA_GraphicItemsOptionsDialog, wxDialog )
|
|
|
|
|
|
|
|
////@begin WinEDA_GraphicItemsOptionsDialog event table entries
|
2009-11-14 22:15:22 +00:00
|
|
|
EVT_BUTTON( wxID_OK, WinEDA_GraphicItemsOptionsDialog::OnOkClick )
|
2007-06-05 12:10:51 +00:00
|
|
|
|
2009-11-14 22:15:22 +00:00
|
|
|
EVT_BUTTON( wxID_CANCEL, WinEDA_GraphicItemsOptionsDialog::OnCancelClick )
|
2007-06-05 12:10:51 +00:00
|
|
|
|
|
|
|
////@end WinEDA_GraphicItemsOptionsDialog event table entries
|
|
|
|
|
|
|
|
END_EVENT_TABLE()
|
|
|
|
/*!
|
|
|
|
* WinEDA_GraphicItemsOptionsDialog constructors
|
|
|
|
*/
|
|
|
|
|
2009-11-14 22:15:22 +00:00
|
|
|
WinEDA_GraphicItemsOptionsDialog::WinEDA_GraphicItemsOptionsDialog()
|
2007-06-05 12:10:51 +00:00
|
|
|
{
|
2010-01-31 20:01:46 +00:00
|
|
|
m_BrdSettings = m_Parent->GetBoard()->GetBoardDesignSettings();
|
2007-06-05 12:10:51 +00:00
|
|
|
}
|
|
|
|
|
2009-11-14 22:15:22 +00:00
|
|
|
|
|
|
|
WinEDA_GraphicItemsOptionsDialog::WinEDA_GraphicItemsOptionsDialog(
|
|
|
|
WinEDA_BasePcbFrame* parent,
|
|
|
|
wxWindowID id,
|
|
|
|
const wxString& caption,
|
|
|
|
const wxPoint& pos,
|
|
|
|
const wxSize& size,
|
|
|
|
long style )
|
2007-06-05 12:10:51 +00:00
|
|
|
{
|
2009-11-14 22:15:22 +00:00
|
|
|
Create( parent, id, caption, pos, size, style );
|
2007-06-05 12:10:51 +00:00
|
|
|
}
|
|
|
|
|
2009-11-14 22:15:22 +00:00
|
|
|
|
2007-06-05 12:10:51 +00:00
|
|
|
/*!
|
|
|
|
* WinEDA_GraphicItemsOptionsDialog creator
|
|
|
|
*/
|
|
|
|
|
2009-11-14 22:15:22 +00:00
|
|
|
bool WinEDA_GraphicItemsOptionsDialog::Create( wxWindow* parent,
|
|
|
|
wxWindowID id,
|
|
|
|
const wxString& caption,
|
|
|
|
const wxPoint& pos,
|
|
|
|
const wxSize& size,
|
|
|
|
long style )
|
2007-06-05 12:10:51 +00:00
|
|
|
{
|
|
|
|
////@begin WinEDA_GraphicItemsOptionsDialog member initialisation
|
|
|
|
m_GraphicSegmWidthTitle = NULL;
|
|
|
|
m_OptPcbSegmWidth = NULL;
|
|
|
|
m_BoardEdgesWidthTitle = NULL;
|
2009-11-14 22:15:22 +00:00
|
|
|
m_OptPcbEdgesWidth = NULL;
|
2007-06-05 12:10:51 +00:00
|
|
|
m_CopperTextWidthTitle = NULL;
|
2009-11-14 22:15:22 +00:00
|
|
|
m_OptPcbTextWidth = NULL;
|
|
|
|
m_TextSizeVTitle = NULL;
|
|
|
|
m_OptPcbTextVSize = NULL;
|
|
|
|
m_TextSizeHTitle = NULL;
|
|
|
|
m_OptPcbTextHSize = NULL;
|
|
|
|
m_EdgeModWidthTitle = NULL;
|
2007-06-05 12:10:51 +00:00
|
|
|
m_OptModuleEdgesWidth = NULL;
|
2009-11-14 22:15:22 +00:00
|
|
|
m_TextModWidthTitle = NULL;
|
|
|
|
m_OptModuleTextWidth = NULL;
|
|
|
|
m_TextModSizeVTitle = NULL;
|
|
|
|
m_OptModuleTextVSize = NULL;
|
|
|
|
m_TextModSizeHTitle = NULL;
|
|
|
|
m_OptModuleTextHSize = NULL;
|
|
|
|
|
2007-06-05 12:10:51 +00:00
|
|
|
////@end WinEDA_GraphicItemsOptionsDialog member initialisation
|
|
|
|
|
|
|
|
////@begin WinEDA_GraphicItemsOptionsDialog creation
|
2009-11-14 22:15:22 +00:00
|
|
|
SetExtraStyle( wxWS_EX_BLOCK_EVENTS );
|
2007-06-05 12:10:51 +00:00
|
|
|
wxDialog::Create( parent, id, caption, pos, size, style );
|
|
|
|
|
|
|
|
CreateControls();
|
2009-11-14 22:15:22 +00:00
|
|
|
if( GetSizer() )
|
2007-11-27 01:34:35 +00:00
|
|
|
{
|
2009-11-14 22:15:22 +00:00
|
|
|
GetSizer()->SetSizeHints( this );
|
2007-11-27 01:34:35 +00:00
|
|
|
}
|
2007-06-05 12:10:51 +00:00
|
|
|
Centre();
|
2009-11-14 22:15:22 +00:00
|
|
|
|
2007-06-05 12:10:51 +00:00
|
|
|
////@end WinEDA_GraphicItemsOptionsDialog creation
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
2009-11-14 22:15:22 +00:00
|
|
|
|
2007-06-05 12:10:51 +00:00
|
|
|
/*!
|
|
|
|
* Control creation for WinEDA_GraphicItemsOptionsDialog
|
|
|
|
*/
|
|
|
|
|
|
|
|
void WinEDA_GraphicItemsOptionsDialog::CreateControls()
|
2009-11-14 22:15:22 +00:00
|
|
|
{
|
2007-06-05 12:10:51 +00:00
|
|
|
////@begin WinEDA_GraphicItemsOptionsDialog content construction
|
2009-05-01 18:06:03 +00:00
|
|
|
// Generated by DialogBlocks, 29/04/2009 15:15:02 (unregistered)
|
2007-06-05 12:10:51 +00:00
|
|
|
|
|
|
|
WinEDA_GraphicItemsOptionsDialog* itemDialog1 = this;
|
|
|
|
|
2009-11-14 22:15:22 +00:00
|
|
|
wxBoxSizer* itemBoxSizer2 = new wxBoxSizer( wxHORIZONTAL );
|
|
|
|
|
|
|
|
itemDialog1->SetSizer( itemBoxSizer2 );
|
|
|
|
|
|
|
|
wxStaticBox* itemStaticBoxSizer3Static =
|
|
|
|
new wxStaticBox(itemDialog1, wxID_ANY, _( "Graphics:" ) );
|
|
|
|
wxStaticBoxSizer* itemStaticBoxSizer3 =
|
|
|
|
new wxStaticBoxSizer( itemStaticBoxSizer3Static, wxVERTICAL );
|
|
|
|
itemBoxSizer2->Add( itemStaticBoxSizer3, 0, wxGROW | wxALL, 5 );
|
|
|
|
|
|
|
|
m_GraphicSegmWidthTitle =
|
|
|
|
new wxStaticText( itemDialog1, wxID_STATIC, _( "Graphic segm Width" ),
|
|
|
|
wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
itemStaticBoxSizer3->Add( m_GraphicSegmWidthTitle,
|
|
|
|
0,
|
|
|
|
wxALIGN_LEFT | wxLEFT | wxRIGHT | wxTOP |
|
|
|
|
wxADJUST_MINSIZE,
|
|
|
|
5 );
|
|
|
|
|
|
|
|
m_OptPcbSegmWidth = new wxTextCtrl( itemDialog1, ID_TEXTCTRL_SEGW,
|
|
|
|
_T( "" ), wxDefaultPosition,
|
|
|
|
wxDefaultSize, 0 );
|
|
|
|
itemStaticBoxSizer3->Add( m_OptPcbSegmWidth,
|
|
|
|
0,
|
|
|
|
wxGROW | wxLEFT | wxRIGHT | wxBOTTOM,
|
|
|
|
5 );
|
|
|
|
|
|
|
|
m_BoardEdgesWidthTitle =
|
|
|
|
new wxStaticText( itemDialog1, wxID_STATIC, _( "Board Edges Width" ),
|
|
|
|
wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
itemStaticBoxSizer3->Add( m_BoardEdgesWidthTitle,
|
|
|
|
0,
|
|
|
|
wxALIGN_LEFT | wxLEFT | wxRIGHT | wxTOP |
|
|
|
|
wxADJUST_MINSIZE,
|
|
|
|
5 );
|
|
|
|
|
|
|
|
m_OptPcbEdgesWidth =
|
|
|
|
new wxTextCtrl( itemDialog1, ID_TEXTCTRL_EDGES, _T( "" ),
|
|
|
|
wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
itemStaticBoxSizer3->Add( m_OptPcbEdgesWidth,
|
|
|
|
0,
|
|
|
|
wxGROW | wxLEFT | wxRIGHT | wxBOTTOM,
|
|
|
|
5 );
|
|
|
|
|
|
|
|
m_CopperTextWidthTitle =
|
|
|
|
new wxStaticText( itemDialog1, wxID_STATIC, _( "Copper Text Width" ),
|
|
|
|
wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
itemStaticBoxSizer3->Add( m_CopperTextWidthTitle,
|
|
|
|
0,
|
|
|
|
wxALIGN_LEFT | wxLEFT | wxRIGHT | wxTOP |
|
|
|
|
wxADJUST_MINSIZE,
|
|
|
|
5 );
|
|
|
|
|
|
|
|
m_OptPcbTextWidth = new wxTextCtrl( itemDialog1, ID_TEXTCTRL_TEXTW,
|
|
|
|
_T( "" ), wxDefaultPosition,
|
|
|
|
wxDefaultSize, 0 );
|
|
|
|
itemStaticBoxSizer3->Add( m_OptPcbTextWidth,
|
|
|
|
0,
|
|
|
|
wxALIGN_LEFT | wxLEFT | wxRIGHT | wxBOTTOM,
|
|
|
|
5 );
|
|
|
|
|
|
|
|
m_TextSizeVTitle = new wxStaticText( itemDialog1, wxID_STATIC,
|
|
|
|
_( "Text Size V" ), wxDefaultPosition,
|
|
|
|
wxDefaultSize, 0 );
|
|
|
|
itemStaticBoxSizer3->Add( m_TextSizeVTitle,
|
|
|
|
0,
|
|
|
|
wxALIGN_LEFT | wxLEFT | wxRIGHT | wxTOP |
|
|
|
|
wxADJUST_MINSIZE,
|
|
|
|
5 );
|
|
|
|
|
|
|
|
m_OptPcbTextVSize = new wxTextCtrl( itemDialog1, ID_TEXTCTRL_TEXTV,
|
|
|
|
_T( "" ), wxDefaultPosition,
|
|
|
|
wxDefaultSize, 0 );
|
|
|
|
itemStaticBoxSizer3->Add( m_OptPcbTextVSize,
|
|
|
|
0,
|
|
|
|
wxGROW | wxLEFT | wxRIGHT | wxBOTTOM,
|
|
|
|
5 );
|
|
|
|
|
|
|
|
m_TextSizeHTitle = new wxStaticText( itemDialog1, wxID_STATIC,
|
|
|
|
_( "Text Size H" ), wxDefaultPosition,
|
|
|
|
wxDefaultSize, 0 );
|
|
|
|
itemStaticBoxSizer3->Add( m_TextSizeHTitle,
|
|
|
|
0,
|
|
|
|
wxALIGN_LEFT | wxLEFT | wxRIGHT | wxTOP |
|
|
|
|
wxADJUST_MINSIZE,
|
|
|
|
5 );
|
|
|
|
|
|
|
|
m_OptPcbTextHSize = new wxTextCtrl( itemDialog1, ID_TEXTCTRL_TEXTH,
|
|
|
|
_T( "" ), wxDefaultPosition,
|
|
|
|
wxDefaultSize, 0 );
|
|
|
|
itemStaticBoxSizer3->Add( m_OptPcbTextHSize,
|
|
|
|
0,
|
|
|
|
wxGROW | wxLEFT | wxRIGHT | wxBOTTOM,
|
|
|
|
5 );
|
|
|
|
|
|
|
|
itemBoxSizer2->Add( 5, 5, 0, wxALIGN_CENTER_VERTICAL | wxALL, 5 );
|
|
|
|
|
|
|
|
wxStaticBox* itemStaticBoxSizer15Static =
|
|
|
|
new wxStaticBox( itemDialog1, wxID_ANY, _( "Modules:" ) );
|
|
|
|
wxStaticBoxSizer* itemStaticBoxSizer15 =
|
|
|
|
new wxStaticBoxSizer( itemStaticBoxSizer15Static, wxVERTICAL );
|
|
|
|
itemBoxSizer2->Add( itemStaticBoxSizer15, 0, wxGROW | wxALL, 5 );
|
|
|
|
|
|
|
|
m_EdgeModWidthTitle =
|
|
|
|
new wxStaticText( itemDialog1, wxID_STATIC, _( "Edges Module Width" ),
|
|
|
|
wxDefaultPosition, wxDefaultSize, 0 );
|
|
|
|
itemStaticBoxSizer15->Add( m_EdgeModWidthTitle,
|
|
|
|
0,
|
|
|
|
wxALIGN_LEFT | wxLEFT | wxRIGHT | wxTOP |
|
|
|
|
wxADJUST_MINSIZE,
|
|
|
|
5 );
|
|
|
|
|
|
|
|
m_OptModuleEdgesWidth = new wxTextCtrl( itemDialog1,
|
|
|
|
ID_TEXTCTRL_EDGEMOD_W,
|
|
|
|
_T( "" ),
|
|
|
|
wxDefaultPosition,
|
|
|
|
wxDefaultSize,
|
|
|
|
0 );
|
|
|
|
itemStaticBoxSizer15->Add( m_OptModuleEdgesWidth,
|
|
|
|
0,
|
|
|
|
wxGROW | wxLEFT | wxRIGHT | wxBOTTOM,
|
|
|
|
5 );
|
|
|
|
|
|
|
|
m_TextModWidthTitle = new wxStaticText( itemDialog1, wxID_STATIC,
|
|
|
|
_( "Text Module Width" ),
|
|
|
|
wxDefaultPosition,
|
|
|
|
wxDefaultSize, 0 );
|
|
|
|
itemStaticBoxSizer15->Add( m_TextModWidthTitle,
|
|
|
|
0,
|
|
|
|
wxALIGN_LEFT | wxLEFT | wxRIGHT | wxTOP |
|
|
|
|
wxADJUST_MINSIZE,
|
|
|
|
5 );
|
|
|
|
|
|
|
|
m_OptModuleTextWidth = new wxTextCtrl( itemDialog1,
|
|
|
|
ID_TEXTCTRL_TXTMOD_W,
|
|
|
|
_T( "" ),
|
|
|
|
wxDefaultPosition,
|
|
|
|
wxDefaultSize,
|
|
|
|
0 );
|
|
|
|
itemStaticBoxSizer15->Add( m_OptModuleTextWidth,
|
|
|
|
0,
|
|
|
|
wxGROW | wxLEFT | wxRIGHT | wxBOTTOM,
|
|
|
|
5 );
|
|
|
|
|
|
|
|
m_TextModSizeVTitle = new wxStaticText( itemDialog1, wxID_STATIC,
|
|
|
|
_( "Text Module Size V" ),
|
|
|
|
wxDefaultPosition,
|
|
|
|
wxDefaultSize, 0 );
|
|
|
|
itemStaticBoxSizer15->Add( m_TextModSizeVTitle,
|
|
|
|
0,
|
|
|
|
wxALIGN_LEFT | wxLEFT | wxRIGHT | wxTOP |
|
|
|
|
wxADJUST_MINSIZE,
|
|
|
|
5 );
|
|
|
|
|
|
|
|
m_OptModuleTextVSize = new wxTextCtrl( itemDialog1,
|
|
|
|
ID_TEXTCTRL_TXTMOD_V,
|
|
|
|
_T( "" ),
|
|
|
|
wxDefaultPosition,
|
|
|
|
wxDefaultSize,
|
|
|
|
0 );
|
|
|
|
itemStaticBoxSizer15->Add( m_OptModuleTextVSize,
|
|
|
|
0,
|
|
|
|
wxGROW | wxLEFT | wxRIGHT | wxBOTTOM,
|
|
|
|
5 );
|
|
|
|
|
|
|
|
m_TextModSizeHTitle = new wxStaticText( itemDialog1, wxID_STATIC,
|
|
|
|
_( "Text Module Size H" ),
|
|
|
|
wxDefaultPosition,
|
|
|
|
wxDefaultSize, 0 );
|
|
|
|
itemStaticBoxSizer15->Add( m_TextModSizeHTitle,
|
|
|
|
0,
|
|
|
|
wxALIGN_LEFT | wxLEFT | wxRIGHT | wxTOP |
|
|
|
|
wxADJUST_MINSIZE,
|
|
|
|
5 );
|
|
|
|
|
|
|
|
m_OptModuleTextHSize = new wxTextCtrl( itemDialog1,
|
|
|
|
ID_TEXTCTRL_TXTMOD_H,
|
|
|
|
_T( "" ),
|
|
|
|
wxDefaultPosition,
|
|
|
|
wxDefaultSize,
|
|
|
|
0 );
|
|
|
|
itemStaticBoxSizer15->Add( m_OptModuleTextHSize,
|
|
|
|
0,
|
|
|
|
wxGROW | wxLEFT | wxRIGHT | wxBOTTOM,
|
|
|
|
5 );
|
|
|
|
|
|
|
|
itemBoxSizer2->Add( 5, 5, 0, wxALIGN_CENTER_VERTICAL | wxALL, 5 );
|
|
|
|
|
|
|
|
wxBoxSizer* itemBoxSizer25 = new wxBoxSizer( wxVERTICAL );
|
|
|
|
itemBoxSizer2->Add( itemBoxSizer25, 0, wxALIGN_CENTER_VERTICAL | wxALL, 5 );
|
|
|
|
|
|
|
|
wxButton* itemButton26 = new wxButton( itemDialog1, wxID_OK, _( "&OK" ),
|
|
|
|
wxDefaultPosition,
|
|
|
|
wxDefaultSize, 0 );
|
|
|
|
itemBoxSizer25->Add( itemButton26, 0, wxGROW | wxALL, 5 );
|
|
|
|
|
|
|
|
wxButton* itemButton27 = new wxButton( itemDialog1, wxID_CANCEL,
|
|
|
|
_( "&Cancel" ), wxDefaultPosition,
|
|
|
|
wxDefaultSize, 0 );
|
|
|
|
itemBoxSizer25->Add( itemButton27, 0, wxGROW | wxALL, 5 );
|
2007-06-05 12:10:51 +00:00
|
|
|
|
|
|
|
////@end WinEDA_GraphicItemsOptionsDialog content construction
|
2009-11-14 22:15:22 +00:00
|
|
|
SetDisplayValue();
|
2007-06-05 12:10:51 +00:00
|
|
|
}
|
|
|
|
|
2009-11-14 22:15:22 +00:00
|
|
|
|
2007-06-05 12:10:51 +00:00
|
|
|
/*!
|
|
|
|
* Should we show tooltips?
|
|
|
|
*/
|
|
|
|
|
|
|
|
bool WinEDA_GraphicItemsOptionsDialog::ShowToolTips()
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
2009-11-14 22:15:22 +00:00
|
|
|
|
2007-06-05 12:10:51 +00:00
|
|
|
/*!
|
|
|
|
* Get bitmap resources
|
|
|
|
*/
|
|
|
|
|
2009-11-14 22:15:22 +00:00
|
|
|
wxBitmap WinEDA_GraphicItemsOptionsDialog::GetBitmapResource(
|
|
|
|
const wxString& name )
|
2007-06-05 12:10:51 +00:00
|
|
|
{
|
|
|
|
// Bitmap retrieval
|
|
|
|
////@begin WinEDA_GraphicItemsOptionsDialog bitmap retrieval
|
2009-11-14 22:15:22 +00:00
|
|
|
wxUnusedVar( name );
|
2007-06-05 12:10:51 +00:00
|
|
|
return wxNullBitmap;
|
2009-11-14 22:15:22 +00:00
|
|
|
|
2007-06-05 12:10:51 +00:00
|
|
|
////@end WinEDA_GraphicItemsOptionsDialog bitmap retrieval
|
|
|
|
}
|
|
|
|
|
2009-11-14 22:15:22 +00:00
|
|
|
|
2007-06-05 12:10:51 +00:00
|
|
|
/*!
|
|
|
|
* Get icon resources
|
|
|
|
*/
|
|
|
|
|
|
|
|
wxIcon WinEDA_GraphicItemsOptionsDialog::GetIconResource( const wxString& name )
|
|
|
|
{
|
|
|
|
// Icon retrieval
|
|
|
|
////@begin WinEDA_GraphicItemsOptionsDialog icon retrieval
|
2009-11-14 22:15:22 +00:00
|
|
|
wxUnusedVar( name );
|
2007-06-05 12:10:51 +00:00
|
|
|
return wxNullIcon;
|
2009-11-14 22:15:22 +00:00
|
|
|
|
2007-06-05 12:10:51 +00:00
|
|
|
////@end WinEDA_GraphicItemsOptionsDialog icon retrieval
|
|
|
|
}
|
2009-11-14 22:15:22 +00:00
|
|
|
|
|
|
|
|
2007-06-05 12:10:51 +00:00
|
|
|
/*!
|
|
|
|
* wxEVT_COMMAND_BUTTON_CLICKED event handler for wxID_OK
|
|
|
|
*/
|
|
|
|
|
|
|
|
void WinEDA_GraphicItemsOptionsDialog::OnOkClick( wxCommandEvent& event )
|
|
|
|
{
|
2009-11-14 22:15:22 +00:00
|
|
|
AcceptOptions( event );
|
2007-06-05 12:10:51 +00:00
|
|
|
}
|
|
|
|
|
2009-11-14 22:15:22 +00:00
|
|
|
|
2007-06-05 12:10:51 +00:00
|
|
|
/*!
|
|
|
|
* wxEVT_COMMAND_BUTTON_CLICKED event handler for wxID_CANCEL
|
|
|
|
*/
|
|
|
|
|
|
|
|
void WinEDA_GraphicItemsOptionsDialog::OnCancelClick( wxCommandEvent& event )
|
|
|
|
{
|
2009-11-14 22:15:22 +00:00
|
|
|
////@begin wxEVT_COMMAND_BUTTON_CLICKED event handler for wxID_CANCEL in
|
|
|
|
// WinEDA_GraphicItemsOptionsDialog.
|
2007-06-05 12:10:51 +00:00
|
|
|
// Before editing this code, remove the block markers.
|
|
|
|
event.Skip();
|
|
|
|
|
2009-11-14 22:15:22 +00:00
|
|
|
////@end wxEVT_COMMAND_BUTTON_CLICKED event handler for wxID_CANCEL in
|
|
|
|
// WinEDA_GraphicItemsOptionsDialog.
|
|
|
|
}
|