Pcbnew: Rework on dialog global deletions.
This commit is contained in:
parent
330b253018
commit
dba0494b02
|
@ -94,134 +94,146 @@ void DIALOG_GLOBAL_DELETION::AcceptPcbDelete()
|
||||||
|
|
||||||
m_Parent->SetCurItem( NULL );
|
m_Parent->SetCurItem( NULL );
|
||||||
|
|
||||||
|
bool delAll = false;
|
||||||
|
|
||||||
if( m_DelAlls->GetValue() )
|
if( m_DelAlls->GetValue() )
|
||||||
{
|
{
|
||||||
m_Parent->Clear_Pcb( true );
|
if( !IsOK( this, _( "Are you sure you want to delete the entire board?" ) ) )
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
if( !IsOK( this, _( "Are you sure you want to delete the selected items?" ) ) )
|
|
||||||
return;
|
return;
|
||||||
|
|
||||||
BOARD* pcb = m_Parent->GetBoard();
|
delAll = true;
|
||||||
PICKED_ITEMS_LIST pickersList;
|
}
|
||||||
ITEM_PICKER itemPicker( NULL, UR_DELETED );
|
else if( !IsOK( this, _( "Are you sure you want to delete the selected items?" ) ) )
|
||||||
BOARD_ITEM* item;
|
return;
|
||||||
BOARD_ITEM* nextitem;
|
|
||||||
RN_DATA* ratsnest = pcb->GetRatsnest();
|
|
||||||
|
|
||||||
LSET layers_filter = LSET().set();
|
BOARD* pcb = m_Parent->GetBoard();
|
||||||
|
PICKED_ITEMS_LIST pickersList;
|
||||||
|
ITEM_PICKER itemPicker( NULL, UR_DELETED );
|
||||||
|
BOARD_ITEM* item;
|
||||||
|
BOARD_ITEM* nextitem;
|
||||||
|
RN_DATA* ratsnest = pcb->GetRatsnest();
|
||||||
|
|
||||||
if( m_rbLayersOption->GetSelection() != 0 ) // Use current layer only
|
LSET layers_filter = LSET().set();
|
||||||
layers_filter = LSET( ToLAYER_ID( m_currentLayer ) );
|
|
||||||
|
|
||||||
if( m_DelZones->GetValue() )
|
if( m_rbLayersOption->GetSelection() != 0 ) // Use current layer only
|
||||||
|
layers_filter = LSET( ToLAYER_ID( m_currentLayer ) );
|
||||||
|
|
||||||
|
if( delAll || m_DelZones->GetValue() )
|
||||||
|
{
|
||||||
|
int area_index = 0;
|
||||||
|
item = pcb->GetArea( area_index );
|
||||||
|
|
||||||
|
while( item )
|
||||||
{
|
{
|
||||||
int area_index = 0;
|
if( delAll || layers_filter[item->GetLayer()] )
|
||||||
|
{
|
||||||
|
itemPicker.SetItem( item );
|
||||||
|
pickersList.PushItem( itemPicker );
|
||||||
|
pcb->Remove( item );
|
||||||
|
item->ViewRelease();
|
||||||
|
ratsnest->Remove( item );
|
||||||
|
gen_rastnest = true;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
area_index++;
|
||||||
|
}
|
||||||
|
|
||||||
item = pcb->GetArea( area_index );
|
item = pcb->GetArea( area_index );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
while( item )
|
if( delAll || m_DelDrawings->GetValue() || m_DelBoardEdges->GetValue() )
|
||||||
|
{
|
||||||
|
LSET masque_layer;
|
||||||
|
|
||||||
|
if( m_DelDrawings->GetValue() )
|
||||||
|
masque_layer = LSET::AllNonCuMask().set( Edge_Cuts, false );
|
||||||
|
|
||||||
|
if( m_DelBoardEdges->GetValue() )
|
||||||
|
masque_layer.set( Edge_Cuts );
|
||||||
|
|
||||||
|
masque_layer &= layers_filter;
|
||||||
|
|
||||||
|
for( item = pcb->m_Drawings; item; item = nextitem )
|
||||||
|
{
|
||||||
|
nextitem = item->Next();
|
||||||
|
|
||||||
|
if( delAll ||
|
||||||
|
( item->Type() == PCB_LINE_T && masque_layer[item->GetLayer()] ) )
|
||||||
{
|
{
|
||||||
if( layers_filter[item->GetLayer()] )
|
itemPicker.SetItem( item );
|
||||||
{
|
pickersList.PushItem( itemPicker );
|
||||||
itemPicker.SetItem( item );
|
item->ViewRelease();
|
||||||
pickersList.PushItem( itemPicker );
|
item->UnLink();
|
||||||
pcb->Remove( item );
|
|
||||||
item->ViewRelease();
|
|
||||||
ratsnest->Remove( item );
|
|
||||||
gen_rastnest = true;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
area_index++;
|
|
||||||
}
|
|
||||||
|
|
||||||
item = pcb->GetArea( area_index );
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if( m_DelDrawings->GetValue() || m_DelBoardEdges->GetValue() )
|
if( delAll || m_DelTexts->GetValue() )
|
||||||
|
{
|
||||||
|
LSET del_text_layers = layers_filter;
|
||||||
|
|
||||||
|
for( item = pcb->m_Drawings; item; item = nextitem )
|
||||||
{
|
{
|
||||||
LSET masque_layer;
|
nextitem = item->Next();
|
||||||
|
|
||||||
if( m_DelDrawings->GetValue() )
|
if( delAll ||
|
||||||
masque_layer = LSET::AllNonCuMask().set( Edge_Cuts, false );
|
( item->Type() == PCB_TEXT_T && del_text_layers[item->GetLayer()] ) )
|
||||||
|
|
||||||
if( m_DelBoardEdges->GetValue() )
|
|
||||||
masque_layer.set( Edge_Cuts );
|
|
||||||
|
|
||||||
masque_layer &= layers_filter;
|
|
||||||
|
|
||||||
for( item = pcb->m_Drawings; item; item = nextitem )
|
|
||||||
{
|
{
|
||||||
nextitem = item->Next();
|
itemPicker.SetItem( item );
|
||||||
|
pickersList.PushItem( itemPicker );
|
||||||
if( item->Type() == PCB_LINE_T && masque_layer[item->GetLayer()] )
|
item->ViewRelease();
|
||||||
{
|
item->UnLink();
|
||||||
itemPicker.SetItem( item );
|
|
||||||
pickersList.PushItem( itemPicker );
|
|
||||||
item->ViewRelease();
|
|
||||||
item->UnLink();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if( m_DelTexts->GetValue() )
|
if( delAll || m_DelModules->GetValue() )
|
||||||
|
{
|
||||||
|
for( item = pcb->m_Modules; item; item = nextitem )
|
||||||
{
|
{
|
||||||
LSET del_text_layers = layers_filter;
|
nextitem = item->Next();
|
||||||
|
|
||||||
for( item = pcb->m_Drawings; item; item = nextitem )
|
bool del_fp = delAll;
|
||||||
|
|
||||||
|
if( layers_filter[item->GetLayer()] &&
|
||||||
|
( ( m_ModuleFilterNormal->GetValue() && !item->IsLocked() ) ||
|
||||||
|
( m_ModuleFilterLocked->GetValue() && item->IsLocked() ) ) )
|
||||||
|
del_fp = true;
|
||||||
|
|
||||||
|
if( del_fp )
|
||||||
{
|
{
|
||||||
nextitem = item->Next();
|
itemPicker.SetItem( item );
|
||||||
|
pickersList.PushItem( itemPicker );
|
||||||
if( item->Type() == PCB_TEXT_T && del_text_layers[item->GetLayer()] )
|
static_cast<MODULE*>( item )->RunOnChildren(
|
||||||
{
|
boost::bind( &KIGFX::VIEW_ITEM::ViewRelease, _1 ) );
|
||||||
itemPicker.SetItem( item );
|
ratsnest->Remove( item );
|
||||||
pickersList.PushItem( itemPicker );
|
item->ViewRelease();
|
||||||
item->ViewRelease();
|
item->UnLink();
|
||||||
item->UnLink();
|
gen_rastnest = true;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if( m_DelModules->GetValue() )
|
if( delAll || m_DelTracks->GetValue() )
|
||||||
|
{
|
||||||
|
STATUS_FLAGS track_mask_filter = 0;
|
||||||
|
|
||||||
|
if( !m_TrackFilterLocked->GetValue() )
|
||||||
|
track_mask_filter |= TRACK_LOCKED;
|
||||||
|
|
||||||
|
if( !m_TrackFilterAR->GetValue() )
|
||||||
|
track_mask_filter |= TRACK_AR;
|
||||||
|
|
||||||
|
TRACK* nexttrack;
|
||||||
|
|
||||||
|
for( TRACK *track = pcb->m_Track; track; track = nexttrack )
|
||||||
{
|
{
|
||||||
for( item = pcb->m_Modules; item; item = nextitem )
|
nexttrack = track->Next();
|
||||||
|
|
||||||
|
if( !delAll )
|
||||||
{
|
{
|
||||||
nextitem = item->Next();
|
|
||||||
|
|
||||||
if( layers_filter[item->GetLayer()] &&
|
|
||||||
( ( m_ModuleFilterNormal->GetValue() && !item->IsLocked() ) ||
|
|
||||||
( m_ModuleFilterLocked->GetValue() && item->IsLocked() ) ) )
|
|
||||||
{
|
|
||||||
itemPicker.SetItem( item );
|
|
||||||
pickersList.PushItem( itemPicker );
|
|
||||||
static_cast<MODULE*>( item )->RunOnChildren(
|
|
||||||
boost::bind( &KIGFX::VIEW_ITEM::ViewRelease, _1 ) );
|
|
||||||
ratsnest->Remove( item );
|
|
||||||
item->ViewRelease();
|
|
||||||
item->UnLink();
|
|
||||||
gen_rastnest = true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if( m_DelTracks->GetValue() )
|
|
||||||
{
|
|
||||||
STATUS_FLAGS track_mask_filter = 0;
|
|
||||||
|
|
||||||
if( !m_TrackFilterLocked->GetValue() )
|
|
||||||
track_mask_filter |= TRACK_LOCKED;
|
|
||||||
|
|
||||||
if( !m_TrackFilterAR->GetValue() )
|
|
||||||
track_mask_filter |= TRACK_AR;
|
|
||||||
|
|
||||||
TRACK* nexttrack;
|
|
||||||
|
|
||||||
for( TRACK *track = pcb->m_Track; track; track = nexttrack )
|
|
||||||
{
|
|
||||||
nexttrack = track->Next();
|
|
||||||
|
|
||||||
if( ( track->GetState( TRACK_LOCKED | TRACK_AR ) & track_mask_filter ) != 0 )
|
if( ( track->GetState( TRACK_LOCKED | TRACK_AR ) & track_mask_filter ) != 0 )
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
@ -234,30 +246,29 @@ void DIALOG_GLOBAL_DELETION::AcceptPcbDelete()
|
||||||
|
|
||||||
if( ( track->GetLayerSet() & layers_filter ) == 0 )
|
if( ( track->GetLayerSet() & layers_filter ) == 0 )
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
itemPicker.SetItem( track );
|
|
||||||
pickersList.PushItem( itemPicker );
|
|
||||||
track->ViewRelease();
|
|
||||||
ratsnest->Remove( track );
|
|
||||||
track->UnLink();
|
|
||||||
gen_rastnest = true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
itemPicker.SetItem( track );
|
||||||
|
pickersList.PushItem( itemPicker );
|
||||||
|
track->ViewRelease();
|
||||||
|
ratsnest->Remove( track );
|
||||||
|
track->UnLink();
|
||||||
|
gen_rastnest = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if( pickersList.GetCount() )
|
|
||||||
m_Parent->SaveCopyInUndoList( pickersList, UR_DELETED );
|
|
||||||
|
|
||||||
if( m_DelMarkers->GetValue() )
|
|
||||||
pcb->DeleteMARKERs();
|
|
||||||
|
|
||||||
if( gen_rastnest )
|
|
||||||
m_Parent->Compile_Ratsnest( NULL, true );
|
|
||||||
|
|
||||||
if( m_Parent->IsGalCanvasActive() )
|
|
||||||
pcb->GetRatsnest()->Recalculate();
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if( pickersList.GetCount() )
|
||||||
|
m_Parent->SaveCopyInUndoList( pickersList, UR_DELETED );
|
||||||
|
|
||||||
|
if( m_DelMarkers->GetValue() )
|
||||||
|
pcb->DeleteMARKERs();
|
||||||
|
|
||||||
|
if( gen_rastnest )
|
||||||
|
m_Parent->Compile_Ratsnest( NULL, true );
|
||||||
|
|
||||||
|
if( m_Parent->IsGalCanvasActive() )
|
||||||
|
pcb->GetRatsnest()->Recalculate();
|
||||||
|
|
||||||
m_Parent->GetCanvas()->Refresh();
|
m_Parent->GetCanvas()->Refresh();
|
||||||
m_Parent->OnModify();
|
m_Parent->OnModify();
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
///////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////
|
||||||
// C++ code generated with wxFormBuilder (version Mar 9 2015)
|
// C++ code generated with wxFormBuilder (version Jun 17 2015)
|
||||||
// http://www.wxformbuilder.org/
|
// http://www.wxformbuilder.org/
|
||||||
//
|
//
|
||||||
// PLEASE DO "NOT" EDIT THIS FILE!
|
// PLEASE DO "NOT" EDIT THIS FILE!
|
||||||
|
@ -22,28 +22,28 @@ DIALOG_GLOBAL_DELETION_BASE::DIALOG_GLOBAL_DELETION_BASE( wxWindow* parent, wxWi
|
||||||
wxStaticBoxSizer* sbSizerLeft;
|
wxStaticBoxSizer* sbSizerLeft;
|
||||||
sbSizerLeft = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Items to Delete") ), wxVERTICAL );
|
sbSizerLeft = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Items to Delete") ), wxVERTICAL );
|
||||||
|
|
||||||
m_DelZones = new wxCheckBox( this, wxID_ANY, _("Zones"), wxDefaultPosition, wxDefaultSize, 0 );
|
m_DelZones = new wxCheckBox( sbSizerLeft->GetStaticBox(), wxID_ANY, _("Zones"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
sbSizerLeft->Add( m_DelZones, 0, wxALL, 5 );
|
sbSizerLeft->Add( m_DelZones, 0, wxALL, 5 );
|
||||||
|
|
||||||
m_DelTexts = new wxCheckBox( this, wxID_ANY, _("Text"), wxDefaultPosition, wxDefaultSize, 0 );
|
m_DelTexts = new wxCheckBox( sbSizerLeft->GetStaticBox(), wxID_ANY, _("Text"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
sbSizerLeft->Add( m_DelTexts, 0, wxALL, 5 );
|
sbSizerLeft->Add( m_DelTexts, 0, wxALL, 5 );
|
||||||
|
|
||||||
m_DelBoardEdges = new wxCheckBox( this, wxID_ANY, _("Board outlines"), wxDefaultPosition, wxDefaultSize, 0 );
|
m_DelBoardEdges = new wxCheckBox( sbSizerLeft->GetStaticBox(), wxID_ANY, _("Board outlines"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
sbSizerLeft->Add( m_DelBoardEdges, 0, wxALL, 5 );
|
sbSizerLeft->Add( m_DelBoardEdges, 0, wxALL, 5 );
|
||||||
|
|
||||||
m_DelDrawings = new wxCheckBox( this, wxID_ANY, _("Drawings"), wxDefaultPosition, wxDefaultSize, 0 );
|
m_DelDrawings = new wxCheckBox( sbSizerLeft->GetStaticBox(), wxID_ANY, _("Drawings"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
sbSizerLeft->Add( m_DelDrawings, 0, wxALL, 5 );
|
sbSizerLeft->Add( m_DelDrawings, 0, wxALL, 5 );
|
||||||
|
|
||||||
m_DelModules = new wxCheckBox( this, wxID_ANY, _("Footprints"), wxDefaultPosition, wxDefaultSize, 0 );
|
m_DelModules = new wxCheckBox( sbSizerLeft->GetStaticBox(), wxID_ANY, _("Footprints"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
sbSizerLeft->Add( m_DelModules, 0, wxALL, 5 );
|
sbSizerLeft->Add( m_DelModules, 0, wxALL, 5 );
|
||||||
|
|
||||||
m_DelTracks = new wxCheckBox( this, wxID_ANY, _("Tracks"), wxDefaultPosition, wxDefaultSize, 0 );
|
m_DelTracks = new wxCheckBox( sbSizerLeft->GetStaticBox(), wxID_ANY, _("Tracks"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
sbSizerLeft->Add( m_DelTracks, 0, wxALL, 5 );
|
sbSizerLeft->Add( m_DelTracks, 0, wxALL, 5 );
|
||||||
|
|
||||||
m_DelMarkers = new wxCheckBox( this, wxID_ANY, _("Markers"), wxDefaultPosition, wxDefaultSize, 0 );
|
m_DelMarkers = new wxCheckBox( sbSizerLeft->GetStaticBox(), wxID_ANY, _("Markers"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
sbSizerLeft->Add( m_DelMarkers, 0, wxALL, 5 );
|
sbSizerLeft->Add( m_DelMarkers, 0, wxALL, 5 );
|
||||||
|
|
||||||
m_DelAlls = new wxCheckBox( this, wxID_ANY, _("Clear Board"), wxDefaultPosition, wxDefaultSize, 0 );
|
m_DelAlls = new wxCheckBox( sbSizerLeft->GetStaticBox(), wxID_ANY, _("Clear Board"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
sbSizerLeft->Add( m_DelAlls, 0, wxALL, 5 );
|
sbSizerLeft->Add( m_DelAlls, 0, wxALL, 5 );
|
||||||
|
|
||||||
|
|
||||||
|
@ -54,25 +54,25 @@ DIALOG_GLOBAL_DELETION_BASE::DIALOG_GLOBAL_DELETION_BASE( wxWindow* parent, wxWi
|
||||||
|
|
||||||
sbFilter = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Filter Settings") ), wxVERTICAL );
|
sbFilter = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Filter Settings") ), wxVERTICAL );
|
||||||
|
|
||||||
m_TrackFilterAR = new wxCheckBox( this, wxID_ANY, _("Automatically routed tracks"), wxDefaultPosition, wxDefaultSize, 0 );
|
m_TrackFilterAR = new wxCheckBox( sbFilter->GetStaticBox(), wxID_ANY, _("Automatically routed tracks"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
m_TrackFilterAR->SetValue(true);
|
m_TrackFilterAR->SetValue(true);
|
||||||
sbFilter->Add( m_TrackFilterAR, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
|
sbFilter->Add( m_TrackFilterAR, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
|
||||||
|
|
||||||
m_TrackFilterLocked = new wxCheckBox( this, wxID_ANY, _("Locked tracks"), wxDefaultPosition, wxDefaultSize, 0 );
|
m_TrackFilterLocked = new wxCheckBox( sbFilter->GetStaticBox(), wxID_ANY, _("Locked tracks"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
sbFilter->Add( m_TrackFilterLocked, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
|
sbFilter->Add( m_TrackFilterLocked, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
|
||||||
|
|
||||||
m_TrackFilterNormal = new wxCheckBox( this, wxID_ANY, _("Unlocked tracks"), wxDefaultPosition, wxDefaultSize, 0 );
|
m_TrackFilterNormal = new wxCheckBox( sbFilter->GetStaticBox(), wxID_ANY, _("Unlocked tracks"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
m_TrackFilterNormal->SetValue(true);
|
m_TrackFilterNormal->SetValue(true);
|
||||||
sbFilter->Add( m_TrackFilterNormal, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
|
sbFilter->Add( m_TrackFilterNormal, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
|
||||||
|
|
||||||
m_TrackFilterVias = new wxCheckBox( this, wxID_ANY, _("Vias"), wxDefaultPosition, wxDefaultSize, 0 );
|
m_TrackFilterVias = new wxCheckBox( sbFilter->GetStaticBox(), wxID_ANY, _("Vias"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
m_TrackFilterVias->SetValue(true);
|
m_TrackFilterVias->SetValue(true);
|
||||||
sbFilter->Add( m_TrackFilterVias, 0, wxALL, 5 );
|
sbFilter->Add( m_TrackFilterVias, 0, wxALL, 5 );
|
||||||
|
|
||||||
m_ModuleFilterLocked = new wxCheckBox( this, wxID_ANY, _("Locked footprints"), wxDefaultPosition, wxDefaultSize, 0 );
|
m_ModuleFilterLocked = new wxCheckBox( sbFilter->GetStaticBox(), wxID_ANY, _("Locked footprints"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
sbFilter->Add( m_ModuleFilterLocked, 0, wxALL, 5 );
|
sbFilter->Add( m_ModuleFilterLocked, 0, wxALL, 5 );
|
||||||
|
|
||||||
m_ModuleFilterNormal = new wxCheckBox( this, wxID_ANY, _("Unlocked footprints"), wxDefaultPosition, wxDefaultSize, 0 );
|
m_ModuleFilterNormal = new wxCheckBox( sbFilter->GetStaticBox(), wxID_ANY, _("Unlocked footprints"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
m_ModuleFilterNormal->SetValue(true);
|
m_ModuleFilterNormal->SetValue(true);
|
||||||
sbFilter->Add( m_ModuleFilterNormal, 0, wxALL, 5 );
|
sbFilter->Add( m_ModuleFilterNormal, 0, wxALL, 5 );
|
||||||
|
|
||||||
|
@ -85,22 +85,31 @@ DIALOG_GLOBAL_DELETION_BASE::DIALOG_GLOBAL_DELETION_BASE( wxWindow* parent, wxWi
|
||||||
m_rbLayersOption->SetSelection( 0 );
|
m_rbLayersOption->SetSelection( 0 );
|
||||||
bSizerRight->Add( m_rbLayersOption, 0, wxALL|wxEXPAND, 5 );
|
bSizerRight->Add( m_rbLayersOption, 0, wxALL|wxEXPAND, 5 );
|
||||||
|
|
||||||
m_staticText1 = new wxStaticText( this, wxID_ANY, _("Current layer:"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
||||||
m_staticText1->Wrap( -1 );
|
|
||||||
bSizerRight->Add( m_staticText1, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
|
|
||||||
|
|
||||||
m_textCtrlCurrLayer = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_READONLY );
|
|
||||||
m_textCtrlCurrLayer->SetMaxLength( 0 );
|
|
||||||
bSizerRight->Add( m_textCtrlCurrLayer, 0, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
|
|
||||||
|
|
||||||
|
|
||||||
bSizerUpper->Add( bSizerRight, 3, wxALL|wxEXPAND, 5 );
|
bSizerUpper->Add( bSizerRight, 3, wxALL|wxEXPAND, 5 );
|
||||||
|
|
||||||
|
|
||||||
bSizerMain->Add( bSizerUpper, 1, wxALL|wxEXPAND, 5 );
|
bSizerMain->Add( bSizerUpper, 1, wxALL|wxEXPAND, 5 );
|
||||||
|
|
||||||
|
wxFlexGridSizer* fgSizer1;
|
||||||
|
fgSizer1 = new wxFlexGridSizer( 0, 2, 0, 0 );
|
||||||
|
fgSizer1->AddGrowableCol( 1 );
|
||||||
|
fgSizer1->SetFlexibleDirection( wxBOTH );
|
||||||
|
fgSizer1->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
|
||||||
|
|
||||||
|
m_staticText1 = new wxStaticText( this, wxID_ANY, _("Current layer:"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
|
m_staticText1->Wrap( -1 );
|
||||||
|
fgSizer1->Add( m_staticText1, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
|
||||||
|
|
||||||
|
m_textCtrlCurrLayer = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_READONLY );
|
||||||
|
m_textCtrlCurrLayer->SetMaxLength( 0 );
|
||||||
|
fgSizer1->Add( m_textCtrlCurrLayer, 0, wxEXPAND|wxALL|wxALIGN_CENTER_VERTICAL, 5 );
|
||||||
|
|
||||||
|
|
||||||
|
bSizerMain->Add( fgSizer1, 0, wxEXPAND, 5 );
|
||||||
|
|
||||||
m_staticline1 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
|
m_staticline1 = new wxStaticLine( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
|
||||||
bSizerMain->Add( m_staticline1, 0, wxEXPAND|wxLEFT|wxRIGHT, 5 );
|
bSizerMain->Add( m_staticline1, 0, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 5 );
|
||||||
|
|
||||||
m_sdbSizer1 = new wxStdDialogButtonSizer();
|
m_sdbSizer1 = new wxStdDialogButtonSizer();
|
||||||
m_sdbSizer1OK = new wxButton( this, wxID_OK );
|
m_sdbSizer1OK = new wxButton( this, wxID_OK );
|
||||||
|
@ -114,7 +123,6 @@ DIALOG_GLOBAL_DELETION_BASE::DIALOG_GLOBAL_DELETION_BASE( wxWindow* parent, wxWi
|
||||||
|
|
||||||
this->SetSizer( bSizerMain );
|
this->SetSizer( bSizerMain );
|
||||||
this->Layout();
|
this->Layout();
|
||||||
bSizerMain->Fit( this );
|
|
||||||
|
|
||||||
this->Centre( wxBOTH );
|
this->Centre( wxBOTH );
|
||||||
|
|
||||||
|
|
|
@ -44,7 +44,7 @@
|
||||||
<property name="minimum_size"></property>
|
<property name="minimum_size"></property>
|
||||||
<property name="name">DIALOG_GLOBAL_DELETION_BASE</property>
|
<property name="name">DIALOG_GLOBAL_DELETION_BASE</property>
|
||||||
<property name="pos"></property>
|
<property name="pos"></property>
|
||||||
<property name="size">-1,-1</property>
|
<property name="size">339,365</property>
|
||||||
<property name="style">wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER</property>
|
<property name="style">wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER</property>
|
||||||
<property name="subclass">DIALOG_SHIM; dialog_shim.h</property>
|
<property name="subclass">DIALOG_SHIM; dialog_shim.h</property>
|
||||||
<property name="title">Delete Items</property>
|
<property name="title">Delete Items</property>
|
||||||
|
@ -1461,187 +1461,205 @@
|
||||||
<event name="OnUpdateUI"></event>
|
<event name="OnUpdateUI"></event>
|
||||||
</object>
|
</object>
|
||||||
</object>
|
</object>
|
||||||
<object class="sizeritem" expanded="1">
|
|
||||||
<property name="border">5</property>
|
|
||||||
<property name="flag">wxTOP|wxRIGHT|wxLEFT</property>
|
|
||||||
<property name="proportion">0</property>
|
|
||||||
<object class="wxStaticText" expanded="1">
|
|
||||||
<property name="BottomDockable">1</property>
|
|
||||||
<property name="LeftDockable">1</property>
|
|
||||||
<property name="RightDockable">1</property>
|
|
||||||
<property name="TopDockable">1</property>
|
|
||||||
<property name="aui_layer"></property>
|
|
||||||
<property name="aui_name"></property>
|
|
||||||
<property name="aui_position"></property>
|
|
||||||
<property name="aui_row"></property>
|
|
||||||
<property name="best_size"></property>
|
|
||||||
<property name="bg"></property>
|
|
||||||
<property name="caption"></property>
|
|
||||||
<property name="caption_visible">1</property>
|
|
||||||
<property name="center_pane">0</property>
|
|
||||||
<property name="close_button">1</property>
|
|
||||||
<property name="context_help"></property>
|
|
||||||
<property name="context_menu">1</property>
|
|
||||||
<property name="default_pane">0</property>
|
|
||||||
<property name="dock">Dock</property>
|
|
||||||
<property name="dock_fixed">0</property>
|
|
||||||
<property name="docking">Left</property>
|
|
||||||
<property name="enabled">1</property>
|
|
||||||
<property name="fg"></property>
|
|
||||||
<property name="floatable">1</property>
|
|
||||||
<property name="font"></property>
|
|
||||||
<property name="gripper">0</property>
|
|
||||||
<property name="hidden">0</property>
|
|
||||||
<property name="id">wxID_ANY</property>
|
|
||||||
<property name="label">Current layer:</property>
|
|
||||||
<property name="max_size"></property>
|
|
||||||
<property name="maximize_button">0</property>
|
|
||||||
<property name="maximum_size"></property>
|
|
||||||
<property name="min_size"></property>
|
|
||||||
<property name="minimize_button">0</property>
|
|
||||||
<property name="minimum_size"></property>
|
|
||||||
<property name="moveable">1</property>
|
|
||||||
<property name="name">m_staticText1</property>
|
|
||||||
<property name="pane_border">1</property>
|
|
||||||
<property name="pane_position"></property>
|
|
||||||
<property name="pane_size"></property>
|
|
||||||
<property name="permission">protected</property>
|
|
||||||
<property name="pin_button">1</property>
|
|
||||||
<property name="pos"></property>
|
|
||||||
<property name="resize">Resizable</property>
|
|
||||||
<property name="show">1</property>
|
|
||||||
<property name="size"></property>
|
|
||||||
<property name="style"></property>
|
|
||||||
<property name="subclass"></property>
|
|
||||||
<property name="toolbar_pane">0</property>
|
|
||||||
<property name="tooltip"></property>
|
|
||||||
<property name="window_extra_style"></property>
|
|
||||||
<property name="window_name"></property>
|
|
||||||
<property name="window_style"></property>
|
|
||||||
<property name="wrap">-1</property>
|
|
||||||
<event name="OnChar"></event>
|
|
||||||
<event name="OnEnterWindow"></event>
|
|
||||||
<event name="OnEraseBackground"></event>
|
|
||||||
<event name="OnKeyDown"></event>
|
|
||||||
<event name="OnKeyUp"></event>
|
|
||||||
<event name="OnKillFocus"></event>
|
|
||||||
<event name="OnLeaveWindow"></event>
|
|
||||||
<event name="OnLeftDClick"></event>
|
|
||||||
<event name="OnLeftDown"></event>
|
|
||||||
<event name="OnLeftUp"></event>
|
|
||||||
<event name="OnMiddleDClick"></event>
|
|
||||||
<event name="OnMiddleDown"></event>
|
|
||||||
<event name="OnMiddleUp"></event>
|
|
||||||
<event name="OnMotion"></event>
|
|
||||||
<event name="OnMouseEvents"></event>
|
|
||||||
<event name="OnMouseWheel"></event>
|
|
||||||
<event name="OnPaint"></event>
|
|
||||||
<event name="OnRightDClick"></event>
|
|
||||||
<event name="OnRightDown"></event>
|
|
||||||
<event name="OnRightUp"></event>
|
|
||||||
<event name="OnSetFocus"></event>
|
|
||||||
<event name="OnSize"></event>
|
|
||||||
<event name="OnUpdateUI"></event>
|
|
||||||
</object>
|
|
||||||
</object>
|
|
||||||
<object class="sizeritem" expanded="1">
|
|
||||||
<property name="border">5</property>
|
|
||||||
<property name="flag">wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT</property>
|
|
||||||
<property name="proportion">0</property>
|
|
||||||
<object class="wxTextCtrl" expanded="1">
|
|
||||||
<property name="BottomDockable">1</property>
|
|
||||||
<property name="LeftDockable">1</property>
|
|
||||||
<property name="RightDockable">1</property>
|
|
||||||
<property name="TopDockable">1</property>
|
|
||||||
<property name="aui_layer"></property>
|
|
||||||
<property name="aui_name"></property>
|
|
||||||
<property name="aui_position"></property>
|
|
||||||
<property name="aui_row"></property>
|
|
||||||
<property name="best_size"></property>
|
|
||||||
<property name="bg"></property>
|
|
||||||
<property name="caption"></property>
|
|
||||||
<property name="caption_visible">1</property>
|
|
||||||
<property name="center_pane">0</property>
|
|
||||||
<property name="close_button">1</property>
|
|
||||||
<property name="context_help"></property>
|
|
||||||
<property name="context_menu">1</property>
|
|
||||||
<property name="default_pane">0</property>
|
|
||||||
<property name="dock">Dock</property>
|
|
||||||
<property name="dock_fixed">0</property>
|
|
||||||
<property name="docking">Left</property>
|
|
||||||
<property name="enabled">1</property>
|
|
||||||
<property name="fg"></property>
|
|
||||||
<property name="floatable">1</property>
|
|
||||||
<property name="font"></property>
|
|
||||||
<property name="gripper">0</property>
|
|
||||||
<property name="hidden">0</property>
|
|
||||||
<property name="id">wxID_ANY</property>
|
|
||||||
<property name="max_size"></property>
|
|
||||||
<property name="maximize_button">0</property>
|
|
||||||
<property name="maximum_size"></property>
|
|
||||||
<property name="maxlength">0</property>
|
|
||||||
<property name="min_size"></property>
|
|
||||||
<property name="minimize_button">0</property>
|
|
||||||
<property name="minimum_size"></property>
|
|
||||||
<property name="moveable">1</property>
|
|
||||||
<property name="name">m_textCtrlCurrLayer</property>
|
|
||||||
<property name="pane_border">1</property>
|
|
||||||
<property name="pane_position"></property>
|
|
||||||
<property name="pane_size"></property>
|
|
||||||
<property name="permission">protected</property>
|
|
||||||
<property name="pin_button">1</property>
|
|
||||||
<property name="pos"></property>
|
|
||||||
<property name="resize">Resizable</property>
|
|
||||||
<property name="show">1</property>
|
|
||||||
<property name="size"></property>
|
|
||||||
<property name="style">wxTE_READONLY</property>
|
|
||||||
<property name="subclass"></property>
|
|
||||||
<property name="toolbar_pane">0</property>
|
|
||||||
<property name="tooltip"></property>
|
|
||||||
<property name="validator_data_type"></property>
|
|
||||||
<property name="validator_style">wxFILTER_NONE</property>
|
|
||||||
<property name="validator_type">wxDefaultValidator</property>
|
|
||||||
<property name="validator_variable"></property>
|
|
||||||
<property name="value"></property>
|
|
||||||
<property name="window_extra_style"></property>
|
|
||||||
<property name="window_name"></property>
|
|
||||||
<property name="window_style"></property>
|
|
||||||
<event name="OnChar"></event>
|
|
||||||
<event name="OnEnterWindow"></event>
|
|
||||||
<event name="OnEraseBackground"></event>
|
|
||||||
<event name="OnKeyDown"></event>
|
|
||||||
<event name="OnKeyUp"></event>
|
|
||||||
<event name="OnKillFocus"></event>
|
|
||||||
<event name="OnLeaveWindow"></event>
|
|
||||||
<event name="OnLeftDClick"></event>
|
|
||||||
<event name="OnLeftDown"></event>
|
|
||||||
<event name="OnLeftUp"></event>
|
|
||||||
<event name="OnMiddleDClick"></event>
|
|
||||||
<event name="OnMiddleDown"></event>
|
|
||||||
<event name="OnMiddleUp"></event>
|
|
||||||
<event name="OnMotion"></event>
|
|
||||||
<event name="OnMouseEvents"></event>
|
|
||||||
<event name="OnMouseWheel"></event>
|
|
||||||
<event name="OnPaint"></event>
|
|
||||||
<event name="OnRightDClick"></event>
|
|
||||||
<event name="OnRightDown"></event>
|
|
||||||
<event name="OnRightUp"></event>
|
|
||||||
<event name="OnSetFocus"></event>
|
|
||||||
<event name="OnSize"></event>
|
|
||||||
<event name="OnText"></event>
|
|
||||||
<event name="OnTextEnter"></event>
|
|
||||||
<event name="OnTextMaxLen"></event>
|
|
||||||
<event name="OnTextURL"></event>
|
|
||||||
<event name="OnUpdateUI"></event>
|
|
||||||
</object>
|
|
||||||
</object>
|
|
||||||
</object>
|
</object>
|
||||||
</object>
|
</object>
|
||||||
</object>
|
</object>
|
||||||
</object>
|
</object>
|
||||||
<object class="sizeritem" expanded="1">
|
<object class="sizeritem" expanded="1">
|
||||||
<property name="border">5</property>
|
<property name="border">5</property>
|
||||||
<property name="flag">wxEXPAND|wxLEFT|wxRIGHT</property>
|
<property name="flag">wxEXPAND</property>
|
||||||
|
<property name="proportion">0</property>
|
||||||
|
<object class="wxFlexGridSizer" expanded="1">
|
||||||
|
<property name="cols">2</property>
|
||||||
|
<property name="flexible_direction">wxBOTH</property>
|
||||||
|
<property name="growablecols">1</property>
|
||||||
|
<property name="growablerows"></property>
|
||||||
|
<property name="hgap">0</property>
|
||||||
|
<property name="minimum_size"></property>
|
||||||
|
<property name="name">fgSizer1</property>
|
||||||
|
<property name="non_flexible_grow_mode">wxFLEX_GROWMODE_SPECIFIED</property>
|
||||||
|
<property name="permission">none</property>
|
||||||
|
<property name="rows">0</property>
|
||||||
|
<property name="vgap">0</property>
|
||||||
|
<object class="sizeritem" expanded="1">
|
||||||
|
<property name="border">5</property>
|
||||||
|
<property name="flag">wxALL|wxALIGN_CENTER_VERTICAL</property>
|
||||||
|
<property name="proportion">0</property>
|
||||||
|
<object class="wxStaticText" expanded="1">
|
||||||
|
<property name="BottomDockable">1</property>
|
||||||
|
<property name="LeftDockable">1</property>
|
||||||
|
<property name="RightDockable">1</property>
|
||||||
|
<property name="TopDockable">1</property>
|
||||||
|
<property name="aui_layer"></property>
|
||||||
|
<property name="aui_name"></property>
|
||||||
|
<property name="aui_position"></property>
|
||||||
|
<property name="aui_row"></property>
|
||||||
|
<property name="best_size"></property>
|
||||||
|
<property name="bg"></property>
|
||||||
|
<property name="caption"></property>
|
||||||
|
<property name="caption_visible">1</property>
|
||||||
|
<property name="center_pane">0</property>
|
||||||
|
<property name="close_button">1</property>
|
||||||
|
<property name="context_help"></property>
|
||||||
|
<property name="context_menu">1</property>
|
||||||
|
<property name="default_pane">0</property>
|
||||||
|
<property name="dock">Dock</property>
|
||||||
|
<property name="dock_fixed">0</property>
|
||||||
|
<property name="docking">Left</property>
|
||||||
|
<property name="enabled">1</property>
|
||||||
|
<property name="fg"></property>
|
||||||
|
<property name="floatable">1</property>
|
||||||
|
<property name="font"></property>
|
||||||
|
<property name="gripper">0</property>
|
||||||
|
<property name="hidden">0</property>
|
||||||
|
<property name="id">wxID_ANY</property>
|
||||||
|
<property name="label">Current layer:</property>
|
||||||
|
<property name="max_size"></property>
|
||||||
|
<property name="maximize_button">0</property>
|
||||||
|
<property name="maximum_size"></property>
|
||||||
|
<property name="min_size"></property>
|
||||||
|
<property name="minimize_button">0</property>
|
||||||
|
<property name="minimum_size"></property>
|
||||||
|
<property name="moveable">1</property>
|
||||||
|
<property name="name">m_staticText1</property>
|
||||||
|
<property name="pane_border">1</property>
|
||||||
|
<property name="pane_position"></property>
|
||||||
|
<property name="pane_size"></property>
|
||||||
|
<property name="permission">protected</property>
|
||||||
|
<property name="pin_button">1</property>
|
||||||
|
<property name="pos"></property>
|
||||||
|
<property name="resize">Resizable</property>
|
||||||
|
<property name="show">1</property>
|
||||||
|
<property name="size"></property>
|
||||||
|
<property name="style"></property>
|
||||||
|
<property name="subclass"></property>
|
||||||
|
<property name="toolbar_pane">0</property>
|
||||||
|
<property name="tooltip"></property>
|
||||||
|
<property name="window_extra_style"></property>
|
||||||
|
<property name="window_name"></property>
|
||||||
|
<property name="window_style"></property>
|
||||||
|
<property name="wrap">-1</property>
|
||||||
|
<event name="OnChar"></event>
|
||||||
|
<event name="OnEnterWindow"></event>
|
||||||
|
<event name="OnEraseBackground"></event>
|
||||||
|
<event name="OnKeyDown"></event>
|
||||||
|
<event name="OnKeyUp"></event>
|
||||||
|
<event name="OnKillFocus"></event>
|
||||||
|
<event name="OnLeaveWindow"></event>
|
||||||
|
<event name="OnLeftDClick"></event>
|
||||||
|
<event name="OnLeftDown"></event>
|
||||||
|
<event name="OnLeftUp"></event>
|
||||||
|
<event name="OnMiddleDClick"></event>
|
||||||
|
<event name="OnMiddleDown"></event>
|
||||||
|
<event name="OnMiddleUp"></event>
|
||||||
|
<event name="OnMotion"></event>
|
||||||
|
<event name="OnMouseEvents"></event>
|
||||||
|
<event name="OnMouseWheel"></event>
|
||||||
|
<event name="OnPaint"></event>
|
||||||
|
<event name="OnRightDClick"></event>
|
||||||
|
<event name="OnRightDown"></event>
|
||||||
|
<event name="OnRightUp"></event>
|
||||||
|
<event name="OnSetFocus"></event>
|
||||||
|
<event name="OnSize"></event>
|
||||||
|
<event name="OnUpdateUI"></event>
|
||||||
|
</object>
|
||||||
|
</object>
|
||||||
|
<object class="sizeritem" expanded="1">
|
||||||
|
<property name="border">5</property>
|
||||||
|
<property name="flag">wxEXPAND|wxALL|wxALIGN_CENTER_VERTICAL</property>
|
||||||
|
<property name="proportion">0</property>
|
||||||
|
<object class="wxTextCtrl" expanded="1">
|
||||||
|
<property name="BottomDockable">1</property>
|
||||||
|
<property name="LeftDockable">1</property>
|
||||||
|
<property name="RightDockable">1</property>
|
||||||
|
<property name="TopDockable">1</property>
|
||||||
|
<property name="aui_layer"></property>
|
||||||
|
<property name="aui_name"></property>
|
||||||
|
<property name="aui_position"></property>
|
||||||
|
<property name="aui_row"></property>
|
||||||
|
<property name="best_size"></property>
|
||||||
|
<property name="bg"></property>
|
||||||
|
<property name="caption"></property>
|
||||||
|
<property name="caption_visible">1</property>
|
||||||
|
<property name="center_pane">0</property>
|
||||||
|
<property name="close_button">1</property>
|
||||||
|
<property name="context_help"></property>
|
||||||
|
<property name="context_menu">1</property>
|
||||||
|
<property name="default_pane">0</property>
|
||||||
|
<property name="dock">Dock</property>
|
||||||
|
<property name="dock_fixed">0</property>
|
||||||
|
<property name="docking">Left</property>
|
||||||
|
<property name="enabled">1</property>
|
||||||
|
<property name="fg"></property>
|
||||||
|
<property name="floatable">1</property>
|
||||||
|
<property name="font"></property>
|
||||||
|
<property name="gripper">0</property>
|
||||||
|
<property name="hidden">0</property>
|
||||||
|
<property name="id">wxID_ANY</property>
|
||||||
|
<property name="max_size"></property>
|
||||||
|
<property name="maximize_button">0</property>
|
||||||
|
<property name="maximum_size"></property>
|
||||||
|
<property name="maxlength">0</property>
|
||||||
|
<property name="min_size"></property>
|
||||||
|
<property name="minimize_button">0</property>
|
||||||
|
<property name="minimum_size"></property>
|
||||||
|
<property name="moveable">1</property>
|
||||||
|
<property name="name">m_textCtrlCurrLayer</property>
|
||||||
|
<property name="pane_border">1</property>
|
||||||
|
<property name="pane_position"></property>
|
||||||
|
<property name="pane_size"></property>
|
||||||
|
<property name="permission">protected</property>
|
||||||
|
<property name="pin_button">1</property>
|
||||||
|
<property name="pos"></property>
|
||||||
|
<property name="resize">Resizable</property>
|
||||||
|
<property name="show">1</property>
|
||||||
|
<property name="size"></property>
|
||||||
|
<property name="style">wxTE_READONLY</property>
|
||||||
|
<property name="subclass"></property>
|
||||||
|
<property name="toolbar_pane">0</property>
|
||||||
|
<property name="tooltip"></property>
|
||||||
|
<property name="validator_data_type"></property>
|
||||||
|
<property name="validator_style">wxFILTER_NONE</property>
|
||||||
|
<property name="validator_type">wxDefaultValidator</property>
|
||||||
|
<property name="validator_variable"></property>
|
||||||
|
<property name="value"></property>
|
||||||
|
<property name="window_extra_style"></property>
|
||||||
|
<property name="window_name"></property>
|
||||||
|
<property name="window_style"></property>
|
||||||
|
<event name="OnChar"></event>
|
||||||
|
<event name="OnEnterWindow"></event>
|
||||||
|
<event name="OnEraseBackground"></event>
|
||||||
|
<event name="OnKeyDown"></event>
|
||||||
|
<event name="OnKeyUp"></event>
|
||||||
|
<event name="OnKillFocus"></event>
|
||||||
|
<event name="OnLeaveWindow"></event>
|
||||||
|
<event name="OnLeftDClick"></event>
|
||||||
|
<event name="OnLeftDown"></event>
|
||||||
|
<event name="OnLeftUp"></event>
|
||||||
|
<event name="OnMiddleDClick"></event>
|
||||||
|
<event name="OnMiddleDown"></event>
|
||||||
|
<event name="OnMiddleUp"></event>
|
||||||
|
<event name="OnMotion"></event>
|
||||||
|
<event name="OnMouseEvents"></event>
|
||||||
|
<event name="OnMouseWheel"></event>
|
||||||
|
<event name="OnPaint"></event>
|
||||||
|
<event name="OnRightDClick"></event>
|
||||||
|
<event name="OnRightDown"></event>
|
||||||
|
<event name="OnRightUp"></event>
|
||||||
|
<event name="OnSetFocus"></event>
|
||||||
|
<event name="OnSize"></event>
|
||||||
|
<event name="OnText"></event>
|
||||||
|
<event name="OnTextEnter"></event>
|
||||||
|
<event name="OnTextMaxLen"></event>
|
||||||
|
<event name="OnTextURL"></event>
|
||||||
|
<event name="OnUpdateUI"></event>
|
||||||
|
</object>
|
||||||
|
</object>
|
||||||
|
</object>
|
||||||
|
</object>
|
||||||
|
<object class="sizeritem" expanded="1">
|
||||||
|
<property name="border">5</property>
|
||||||
|
<property name="flag">wxEXPAND|wxTOP|wxRIGHT|wxLEFT</property>
|
||||||
<property name="proportion">0</property>
|
<property name="proportion">0</property>
|
||||||
<object class="wxStaticLine" expanded="1">
|
<object class="wxStaticLine" expanded="1">
|
||||||
<property name="BottomDockable">1</property>
|
<property name="BottomDockable">1</property>
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
///////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////
|
||||||
// C++ code generated with wxFormBuilder (version Mar 9 2015)
|
// C++ code generated with wxFormBuilder (version Jun 17 2015)
|
||||||
// http://www.wxformbuilder.org/
|
// http://www.wxformbuilder.org/
|
||||||
//
|
//
|
||||||
// PLEASE DO "NOT" EDIT THIS FILE!
|
// PLEASE DO "NOT" EDIT THIS FILE!
|
||||||
|
@ -72,7 +72,7 @@ class DIALOG_GLOBAL_DELETION_BASE : public DIALOG_SHIM
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
DIALOG_GLOBAL_DELETION_BASE( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = _("Delete Items"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( -1,-1 ), long style = wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER );
|
DIALOG_GLOBAL_DELETION_BASE( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = _("Delete Items"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 339,365 ), long style = wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER );
|
||||||
~DIALOG_GLOBAL_DELETION_BASE();
|
~DIALOG_GLOBAL_DELETION_BASE();
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
|
@ -66,7 +66,11 @@ void PCB_EDIT_FRAME::InstallNetlistFrame( wxDC* DC )
|
||||||
{
|
{
|
||||||
fn = GetBoard()->GetFileName();
|
fn = GetBoard()->GetFileName();
|
||||||
fn.SetExt( NetlistFileExtension );
|
fn.SetExt( NetlistFileExtension );
|
||||||
netlistName = fn.GetFullPath();
|
|
||||||
|
if( fn.GetName().IsEmpty() )
|
||||||
|
netlistName.Clear();
|
||||||
|
else
|
||||||
|
netlistName = fn.GetFullPath();
|
||||||
}
|
}
|
||||||
|
|
||||||
DIALOG_NETLIST dlg( this, DC, netlistName );
|
DIALOG_NETLIST dlg( this, DC, netlistName );
|
||||||
|
@ -152,8 +156,20 @@ void DIALOG_NETLIST::OnOpenNetlistClick( wxCommandEvent& event )
|
||||||
|
|
||||||
void DIALOG_NETLIST::OnReadNetlistFileClick( wxCommandEvent& event )
|
void DIALOG_NETLIST::OnReadNetlistFileClick( wxCommandEvent& event )
|
||||||
{
|
{
|
||||||
wxString msg;
|
|
||||||
wxString netlistFileName = m_NetlistFilenameCtrl->GetValue();
|
wxString netlistFileName = m_NetlistFilenameCtrl->GetValue();
|
||||||
|
wxFileName fn = netlistFileName;
|
||||||
|
|
||||||
|
if( !fn.IsOk() )
|
||||||
|
{
|
||||||
|
wxMessageBox( _("Please, choose a valid netlist file") );
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if( !fn.FileExists() )
|
||||||
|
{
|
||||||
|
wxMessageBox( _("The netlist file does not exist") );
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// Give the user a chance to bail out when making changes from a netlist.
|
// Give the user a chance to bail out when making changes from a netlist.
|
||||||
if( !m_checkDryRun->GetValue() && !m_silentMode
|
if( !m_checkDryRun->GetValue() && !m_silentMode
|
||||||
|
@ -167,6 +183,7 @@ void DIALOG_NETLIST::OnReadNetlistFileClick( wxCommandEvent& event )
|
||||||
|
|
||||||
wxBusyCursor busy;
|
wxBusyCursor busy;
|
||||||
|
|
||||||
|
wxString msg;
|
||||||
msg.Printf( _( "Reading netlist file \"%s\".\n" ), GetChars( netlistFileName ) );
|
msg.Printf( _( "Reading netlist file \"%s\".\n" ), GetChars( netlistFileName ) );
|
||||||
reporter.Report( msg, REPORTER::RPT_INFO );
|
reporter.Report( msg, REPORTER::RPT_INFO );
|
||||||
|
|
||||||
|
|
|
@ -41,7 +41,7 @@ bool PCB_EDIT_FRAME::Clear_Pcb( bool aQuery )
|
||||||
if( GetBoard() == NULL )
|
if( GetBoard() == NULL )
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
if( aQuery && GetScreen()->IsModify() && !GetBoard()->IsEmpty() )
|
if( aQuery && !GetBoard()->IsEmpty() )
|
||||||
{
|
{
|
||||||
if( !IsOK( this,
|
if( !IsOK( this,
|
||||||
_( "Current Board will be lost and this operation cannot be undone. Continue ?" ) ) )
|
_( "Current Board will be lost and this operation cannot be undone. Continue ?" ) ) )
|
||||||
|
@ -83,6 +83,7 @@ bool PCB_EDIT_FRAME::Clear_Pcb( bool aQuery )
|
||||||
ReCreateLayerBox();
|
ReCreateLayerBox();
|
||||||
ReCreateAuxiliaryToolbar();
|
ReCreateAuxiliaryToolbar();
|
||||||
ReFillLayerWidget();
|
ReFillLayerWidget();
|
||||||
|
UpdateTitle();
|
||||||
|
|
||||||
Zoom_Automatique( false );
|
Zoom_Automatique( false );
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue