Work-around non-functional row-major radio button groups on Mac.
This commit is contained in:
parent
e3b8de9a78
commit
d1765c3855
|
@ -43,6 +43,7 @@
|
||||||
#include <kiplatform/ui.h>
|
#include <kiplatform/ui.h>
|
||||||
#include <widgets/grid_text_button_helpers.h>
|
#include <widgets/grid_text_button_helpers.h>
|
||||||
#include <widgets/bitmap_button.h>
|
#include <widgets/bitmap_button.h>
|
||||||
|
#include <widgets/std_bitmap_button.h>
|
||||||
#include <widgets/wx_grid.h>
|
#include <widgets/wx_grid.h>
|
||||||
#include <wx/debug.h>
|
#include <wx/debug.h>
|
||||||
#include <wx/ffile.h>
|
#include <wx/ffile.h>
|
||||||
|
@ -52,12 +53,12 @@
|
||||||
#include <dialogs/eda_view_switcher.h>
|
#include <dialogs/eda_view_switcher.h>
|
||||||
#include "dialog_symbol_fields_table.h"
|
#include "dialog_symbol_fields_table.h"
|
||||||
#include <fields_data_model.h>
|
#include <fields_data_model.h>
|
||||||
#include "eda_list_dialog.h"
|
#include <eda_list_dialog.h>
|
||||||
|
|
||||||
wxDEFINE_EVENT( EDA_EVT_CLOSE_DIALOG_SYMBOL_FIELDS_TABLE, wxCommandEvent );
|
wxDEFINE_EVENT( EDA_EVT_CLOSE_DIALOG_SYMBOL_FIELDS_TABLE, wxCommandEvent );
|
||||||
|
|
||||||
#ifdef __WXMAC__
|
#ifdef __WXMAC__
|
||||||
#define COLUMN_MARGIN 5
|
#define COLUMN_MARGIN 3
|
||||||
#else
|
#else
|
||||||
#define COLUMN_MARGIN 15
|
#define COLUMN_MARGIN 15
|
||||||
#endif
|
#endif
|
||||||
|
@ -165,8 +166,6 @@ DIALOG_SYMBOL_FIELDS_TABLE::DIALOG_SYMBOL_FIELDS_TABLE( SCH_EDIT_FRAME* parent )
|
||||||
m_lastSelectedBomPreset( nullptr ), m_parent( parent ),
|
m_lastSelectedBomPreset( nullptr ), m_parent( parent ),
|
||||||
m_schSettings( parent->Schematic().Settings() )
|
m_schSettings( parent->Schematic().Settings() )
|
||||||
{
|
{
|
||||||
int nameColWidthMargin = 44;
|
|
||||||
|
|
||||||
// Get all symbols from the list of schematic sheets
|
// Get all symbols from the list of schematic sheets
|
||||||
m_parent->Schematic().GetSheets().GetSymbols( m_symbolsList, false );
|
m_parent->Schematic().GetSheets().GetSymbols( m_symbolsList, false );
|
||||||
|
|
||||||
|
@ -183,6 +182,9 @@ DIALOG_SYMBOL_FIELDS_TABLE::DIALOG_SYMBOL_FIELDS_TABLE( SCH_EDIT_FRAME* parent )
|
||||||
m_removeFieldButton->Enable( false );
|
m_removeFieldButton->Enable( false );
|
||||||
m_renameFieldButton->Enable( false );
|
m_renameFieldButton->Enable( false );
|
||||||
|
|
||||||
|
m_bomPresetsLabel->SetFont( KIUI::GetStatusFont( this ) );
|
||||||
|
m_separator11->SetIsSeparator();
|
||||||
|
|
||||||
m_fieldsCtrl->AppendTextColumn( _( "Field" ), wxDATAVIEW_CELL_INERT, 0, wxALIGN_LEFT, 0 );
|
m_fieldsCtrl->AppendTextColumn( _( "Field" ), wxDATAVIEW_CELL_INERT, 0, wxALIGN_LEFT, 0 );
|
||||||
m_fieldsCtrl->AppendTextColumn( _( "Label" ), wxDATAVIEW_CELL_EDITABLE, 0, wxALIGN_LEFT, 0 );
|
m_fieldsCtrl->AppendTextColumn( _( "Label" ), wxDATAVIEW_CELL_EDITABLE, 0, wxALIGN_LEFT, 0 );
|
||||||
m_fieldsCtrl->AppendToggleColumn( _( "Show" ), wxDATAVIEW_CELL_ACTIVATABLE, 0,
|
m_fieldsCtrl->AppendToggleColumn( _( "Show" ), wxDATAVIEW_CELL_ACTIVATABLE, 0,
|
||||||
|
@ -232,9 +234,6 @@ DIALOG_SYMBOL_FIELDS_TABLE::DIALOG_SYMBOL_FIELDS_TABLE( SCH_EDIT_FRAME* parent )
|
||||||
m_labelColWidth = std::max( m_labelColWidth, KIUI::GetTextSize( label, m_fieldsCtrl ).x );
|
m_labelColWidth = std::max( m_labelColWidth, KIUI::GetTextSize( label, m_fieldsCtrl ).x );
|
||||||
}
|
}
|
||||||
|
|
||||||
m_fieldNameColWidth += nameColWidthMargin;
|
|
||||||
m_labelColWidth += nameColWidthMargin;
|
|
||||||
|
|
||||||
int fieldsMinWidth = m_fieldNameColWidth + m_labelColWidth + m_groupByColWidth + m_showColWidth;
|
int fieldsMinWidth = m_fieldNameColWidth + m_labelColWidth + m_groupByColWidth + m_showColWidth;
|
||||||
|
|
||||||
m_fieldsCtrl->GetColumn( DISPLAY_NAME_COLUMN )->SetWidth( m_fieldNameColWidth );
|
m_fieldsCtrl->GetColumn( DISPLAY_NAME_COLUMN )->SetWidth( m_fieldNameColWidth );
|
||||||
|
|
|
@ -6,6 +6,7 @@
|
||||||
///////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
#include "widgets/bitmap_button.h"
|
#include "widgets/bitmap_button.h"
|
||||||
|
#include "widgets/std_bitmap_button.h"
|
||||||
#include "widgets/wx_grid.h"
|
#include "widgets/wx_grid.h"
|
||||||
|
|
||||||
#include "dialog_symbol_fields_table_base.h"
|
#include "dialog_symbol_fields_table_base.h"
|
||||||
|
@ -31,41 +32,47 @@ DIALOG_SYMBOL_FIELDS_TABLE_BASE::DIALOG_SYMBOL_FIELDS_TABLE_BASE( wxWindow* pare
|
||||||
wxBoxSizer* bLeftSizer;
|
wxBoxSizer* bLeftSizer;
|
||||||
bLeftSizer = new wxBoxSizer( wxVERTICAL );
|
bLeftSizer = new wxBoxSizer( wxVERTICAL );
|
||||||
|
|
||||||
|
m_fieldsCtrl = new wxDataViewListCtrl( m_leftPanel, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
|
m_fieldsCtrl->SetMinSize( wxSize( -1,320 ) );
|
||||||
|
|
||||||
|
bLeftSizer->Add( m_fieldsCtrl, 1, wxEXPAND|wxTOP|wxBOTTOM|wxLEFT, 5 );
|
||||||
|
|
||||||
|
wxBoxSizer* bFieldsButtons;
|
||||||
|
bFieldsButtons = new wxBoxSizer( wxHORIZONTAL );
|
||||||
|
|
||||||
|
m_addFieldButton = new STD_BITMAP_BUTTON( m_leftPanel, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW|0 );
|
||||||
|
bFieldsButtons->Add( m_addFieldButton, 0, wxBOTTOM|wxLEFT, 5 );
|
||||||
|
|
||||||
|
m_renameFieldButton = new STD_BITMAP_BUTTON( m_leftPanel, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW|0 );
|
||||||
|
bFieldsButtons->Add( m_renameFieldButton, 0, wxBOTTOM|wxLEFT, 5 );
|
||||||
|
|
||||||
|
|
||||||
|
bFieldsButtons->Add( 15, 0, 0, wxEXPAND, 5 );
|
||||||
|
|
||||||
|
m_removeFieldButton = new STD_BITMAP_BUTTON( m_leftPanel, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW|0 );
|
||||||
|
bFieldsButtons->Add( m_removeFieldButton, 0, wxBOTTOM|wxLEFT, 5 );
|
||||||
|
|
||||||
|
|
||||||
|
bLeftSizer->Add( bFieldsButtons, 0, wxEXPAND, 5 );
|
||||||
|
|
||||||
wxBoxSizer* bPresets;
|
wxBoxSizer* bPresets;
|
||||||
bPresets = new wxBoxSizer( wxVERTICAL );
|
bPresets = new wxBoxSizer( wxVERTICAL );
|
||||||
|
|
||||||
|
m_staticline1 = new wxStaticLine( m_leftPanel, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLI_HORIZONTAL );
|
||||||
|
bPresets->Add( m_staticline1, 0, wxEXPAND|wxBOTTOM, 5 );
|
||||||
|
|
||||||
m_bomPresetsLabel = new wxStaticText( m_leftPanel, wxID_ANY, _("View Preset:"), wxDefaultPosition, wxDefaultSize, 0 );
|
m_bomPresetsLabel = new wxStaticText( m_leftPanel, wxID_ANY, _("View Preset:"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
m_bomPresetsLabel->Wrap( -1 );
|
m_bomPresetsLabel->Wrap( -1 );
|
||||||
bPresets->Add( m_bomPresetsLabel, 0, wxLEFT|wxRIGHT, 2 );
|
bPresets->Add( m_bomPresetsLabel, 0, wxTOP|wxRIGHT|wxLEFT, 5 );
|
||||||
|
|
||||||
wxString m_cbBomPresetsChoices[] = { _("Default"), _("(unsaved)") };
|
wxString m_cbBomPresetsChoices[] = { _("Default"), _("(unsaved)") };
|
||||||
int m_cbBomPresetsNChoices = sizeof( m_cbBomPresetsChoices ) / sizeof( wxString );
|
int m_cbBomPresetsNChoices = sizeof( m_cbBomPresetsChoices ) / sizeof( wxString );
|
||||||
m_cbBomPresets = new wxChoice( m_leftPanel, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_cbBomPresetsNChoices, m_cbBomPresetsChoices, 0 );
|
m_cbBomPresets = new wxChoice( m_leftPanel, wxID_ANY, wxDefaultPosition, wxDefaultSize, m_cbBomPresetsNChoices, m_cbBomPresetsChoices, 0 );
|
||||||
m_cbBomPresets->SetSelection( 1 );
|
m_cbBomPresets->SetSelection( 1 );
|
||||||
bPresets->Add( m_cbBomPresets, 0, wxALL|wxEXPAND, 5 );
|
bPresets->Add( m_cbBomPresets, 0, wxEXPAND|wxTOP|wxLEFT, 5 );
|
||||||
|
|
||||||
|
|
||||||
bLeftSizer->Add( bPresets, 0, wxEXPAND|wxLEFT|wxRIGHT, 5 );
|
bLeftSizer->Add( bPresets, 0, wxEXPAND|wxTOP, 5 );
|
||||||
|
|
||||||
m_fieldsCtrl = new wxDataViewListCtrl( m_leftPanel, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
|
|
||||||
m_fieldsCtrl->SetMinSize( wxSize( -1,320 ) );
|
|
||||||
|
|
||||||
bLeftSizer->Add( m_fieldsCtrl, 1, wxBOTTOM|wxEXPAND|wxLEFT|wxRIGHT|wxTOP, 5 );
|
|
||||||
|
|
||||||
wxBoxSizer* bFieldsButtons;
|
|
||||||
bFieldsButtons = new wxBoxSizer( wxHORIZONTAL );
|
|
||||||
|
|
||||||
m_addFieldButton = new wxBitmapButton( m_leftPanel, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW|0 );
|
|
||||||
bFieldsButtons->Add( m_addFieldButton, 0, wxALL, 5 );
|
|
||||||
|
|
||||||
m_removeFieldButton = new wxBitmapButton( m_leftPanel, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW|0 );
|
|
||||||
bFieldsButtons->Add( m_removeFieldButton, 0, wxALL, 5 );
|
|
||||||
|
|
||||||
m_renameFieldButton = new wxBitmapButton( m_leftPanel, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW|0 );
|
|
||||||
bFieldsButtons->Add( m_renameFieldButton, 0, wxALL, 5 );
|
|
||||||
|
|
||||||
|
|
||||||
bLeftSizer->Add( bFieldsButtons, 0, wxEXPAND, 5 );
|
|
||||||
|
|
||||||
|
|
||||||
m_leftPanel->SetSizer( bLeftSizer );
|
m_leftPanel->SetSizer( bLeftSizer );
|
||||||
|
@ -117,7 +124,7 @@ DIALOG_SYMBOL_FIELDS_TABLE_BASE::DIALOG_SYMBOL_FIELDS_TABLE_BASE( wxWindow* pare
|
||||||
bControls->Add( m_bRefresh, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
|
bControls->Add( m_bRefresh, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
|
||||||
|
|
||||||
|
|
||||||
bRightSizer->Add( bControls, 0, wxEXPAND|wxLEFT, 5 );
|
bRightSizer->Add( bControls, 0, wxEXPAND, 5 );
|
||||||
|
|
||||||
m_grid = new WX_GRID( m_rightPanel, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
|
m_grid = new WX_GRID( m_rightPanel, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
|
|
||||||
|
@ -145,53 +152,54 @@ DIALOG_SYMBOL_FIELDS_TABLE_BASE::DIALOG_SYMBOL_FIELDS_TABLE_BASE( wxWindow* pare
|
||||||
m_grid->SetDefaultCellAlignment( wxALIGN_LEFT, wxALIGN_TOP );
|
m_grid->SetDefaultCellAlignment( wxALIGN_LEFT, wxALIGN_TOP );
|
||||||
m_grid->SetMinSize( wxSize( 600,240 ) );
|
m_grid->SetMinSize( wxSize( 600,240 ) );
|
||||||
|
|
||||||
bRightSizer->Add( m_grid, 1, wxEXPAND|wxBOTTOM|wxRIGHT|wxLEFT, 5 );
|
bRightSizer->Add( m_grid, 1, wxEXPAND|wxRIGHT, 5 );
|
||||||
|
|
||||||
|
|
||||||
|
bRightSizer->Add( 0, 4, 0, wxEXPAND, 5 );
|
||||||
|
|
||||||
wxBoxSizer* bSizer12;
|
wxBoxSizer* bSizer12;
|
||||||
bSizer12 = new wxBoxSizer( wxHORIZONTAL );
|
bSizer12 = new wxBoxSizer( wxHORIZONTAL );
|
||||||
|
|
||||||
wxStaticBoxSizer* sbSizer2;
|
m_scopeLabel = new wxStaticText( m_rightPanel, wxID_ANY, _("Scope:"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
sbSizer2 = new wxStaticBoxSizer( new wxStaticBox( m_rightPanel, wxID_ANY, _("Scope") ), wxHORIZONTAL );
|
m_scopeLabel->Wrap( -1 );
|
||||||
|
bSizer12->Add( m_scopeLabel, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 10 );
|
||||||
|
|
||||||
m_radioProject = new wxRadioButton( sbSizer2->GetStaticBox(), wxID_ANY, _("Entire project"), wxDefaultPosition, wxDefaultSize, wxRB_GROUP );
|
m_radioProject = new wxRadioButton( m_rightPanel, wxID_ANY, _("Entire project"), wxDefaultPosition, wxDefaultSize, wxRB_GROUP );
|
||||||
sbSizer2->Add( m_radioProject, 0, 0, 6 );
|
bSizer12->Add( m_radioProject, 0, wxALIGN_CENTER_VERTICAL, 6 );
|
||||||
|
|
||||||
m_radioCurrentSheet = new wxRadioButton( sbSizer2->GetStaticBox(), wxID_ANY, _("Current sheet only"), wxDefaultPosition, wxDefaultSize, 0 );
|
m_radioCurrentSheet = new wxRadioButton( m_rightPanel, wxID_ANY, _("Current sheet only"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
sbSizer2->Add( m_radioCurrentSheet, 0, wxRIGHT|wxLEFT, 12 );
|
bSizer12->Add( m_radioCurrentSheet, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 12 );
|
||||||
|
|
||||||
m_radioRecursive = new wxRadioButton( sbSizer2->GetStaticBox(), wxID_ANY, _("Recursive"), wxDefaultPosition, wxDefaultSize, 0 );
|
m_radioRecursive = new wxRadioButton( m_rightPanel, wxID_ANY, _("Recursive"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
sbSizer2->Add( m_radioRecursive, 0, 0, 6 );
|
bSizer12->Add( m_radioRecursive, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT, 5 );
|
||||||
|
|
||||||
|
m_separator11 = new BITMAP_BUTTON( m_rightPanel, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxSize( 21,21 ), wxBU_AUTODRAW|wxBORDER_NONE );
|
||||||
|
m_separator11->Enable( false );
|
||||||
|
|
||||||
|
bSizer12->Add( m_separator11, 0, wxLEFT, 5 );
|
||||||
|
|
||||||
|
m_crossProbeLabel = new wxStaticText( m_rightPanel, wxID_ANY, _("Cross-probe action:"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
|
m_crossProbeLabel->Wrap( -1 );
|
||||||
|
bSizer12->Add( m_crossProbeLabel, 0, wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT, 10 );
|
||||||
|
|
||||||
|
m_radioHighlight = new wxRadioButton( m_rightPanel, wxID_ANY, _("Highlight"), wxDefaultPosition, wxDefaultSize, wxRB_GROUP );
|
||||||
|
bSizer12->Add( m_radioHighlight, 0, wxALIGN_CENTER_VERTICAL, 8 );
|
||||||
|
|
||||||
|
m_radioSelect = new wxRadioButton( m_rightPanel, wxID_ANY, _("Select"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
|
bSizer12->Add( m_radioSelect, 0, wxRIGHT|wxLEFT|wxALIGN_CENTER_VERTICAL, 12 );
|
||||||
|
|
||||||
|
m_radioOff = new wxRadioButton( m_rightPanel, wxID_ANY, _("None"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||||
|
bSizer12->Add( m_radioOff, 0, wxALIGN_CENTER_VERTICAL, 8 );
|
||||||
|
|
||||||
|
|
||||||
bSizer12->Add( sbSizer2, 0, wxEXPAND, 5 );
|
bRightSizer->Add( bSizer12, 0, wxEXPAND|wxRIGHT, 5 );
|
||||||
|
|
||||||
|
|
||||||
bSizer12->Add( 12, 0, 1, wxEXPAND, 5 );
|
|
||||||
|
|
||||||
wxStaticBoxSizer* sbSizer1;
|
|
||||||
sbSizer1 = new wxStaticBoxSizer( new wxStaticBox( m_rightPanel, wxID_ANY, _("Cross Probe Action") ), wxHORIZONTAL );
|
|
||||||
|
|
||||||
m_radioHighlight = new wxRadioButton( sbSizer1->GetStaticBox(), wxID_ANY, _("Highlight"), wxDefaultPosition, wxDefaultSize, wxRB_GROUP );
|
|
||||||
sbSizer1->Add( m_radioHighlight, 0, 0, 8 );
|
|
||||||
|
|
||||||
m_radioSelect = new wxRadioButton( sbSizer1->GetStaticBox(), wxID_ANY, _("Select"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
||||||
sbSizer1->Add( m_radioSelect, 0, wxRIGHT|wxLEFT, 12 );
|
|
||||||
|
|
||||||
m_radioOff = new wxRadioButton( sbSizer1->GetStaticBox(), wxID_ANY, _("Off"), wxDefaultPosition, wxDefaultSize, 0 );
|
|
||||||
sbSizer1->Add( m_radioOff, 0, 0, 8 );
|
|
||||||
|
|
||||||
|
|
||||||
bSizer12->Add( sbSizer1, 0, wxEXPAND, 5 );
|
|
||||||
|
|
||||||
|
|
||||||
bRightSizer->Add( bSizer12, 0, wxEXPAND|wxTOP, 5 );
|
|
||||||
|
|
||||||
|
|
||||||
m_rightPanel->SetSizer( bRightSizer );
|
m_rightPanel->SetSizer( bRightSizer );
|
||||||
m_rightPanel->Layout();
|
m_rightPanel->Layout();
|
||||||
bRightSizer->Fit( m_rightPanel );
|
bRightSizer->Fit( m_rightPanel );
|
||||||
m_splitterMainWindow->SplitVertically( m_leftPanel, m_rightPanel, -1 );
|
m_splitterMainWindow->SplitVertically( m_leftPanel, m_rightPanel, -1 );
|
||||||
bEditSizer->Add( m_splitterMainWindow, 1, wxALL|wxEXPAND, 5 );
|
bEditSizer->Add( m_splitterMainWindow, 1, wxEXPAND|wxTOP|wxBOTTOM, 5 );
|
||||||
|
|
||||||
|
|
||||||
m_panelEdit->SetSizer( bEditSizer );
|
m_panelEdit->SetSizer( bEditSizer );
|
||||||
|
@ -356,8 +364,8 @@ DIALOG_SYMBOL_FIELDS_TABLE_BASE::DIALOG_SYMBOL_FIELDS_TABLE_BASE( wxWindow* pare
|
||||||
m_fieldsCtrl->Connect( wxEVT_COMMAND_DATAVIEW_SELECTION_CHANGED, wxDataViewEventHandler( DIALOG_SYMBOL_FIELDS_TABLE_BASE::OnFieldsCtrlSelectionChanged ), NULL, this );
|
m_fieldsCtrl->Connect( wxEVT_COMMAND_DATAVIEW_SELECTION_CHANGED, wxDataViewEventHandler( DIALOG_SYMBOL_FIELDS_TABLE_BASE::OnFieldsCtrlSelectionChanged ), NULL, this );
|
||||||
m_fieldsCtrl->Connect( wxEVT_SIZE, wxSizeEventHandler( DIALOG_SYMBOL_FIELDS_TABLE_BASE::OnSizeFieldList ), NULL, this );
|
m_fieldsCtrl->Connect( wxEVT_SIZE, wxSizeEventHandler( DIALOG_SYMBOL_FIELDS_TABLE_BASE::OnSizeFieldList ), NULL, this );
|
||||||
m_addFieldButton->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_SYMBOL_FIELDS_TABLE_BASE::OnAddField ), NULL, this );
|
m_addFieldButton->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_SYMBOL_FIELDS_TABLE_BASE::OnAddField ), NULL, this );
|
||||||
m_removeFieldButton->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_SYMBOL_FIELDS_TABLE_BASE::OnRemoveField ), NULL, this );
|
|
||||||
m_renameFieldButton->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_SYMBOL_FIELDS_TABLE_BASE::OnRenameField ), NULL, this );
|
m_renameFieldButton->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_SYMBOL_FIELDS_TABLE_BASE::OnRenameField ), NULL, this );
|
||||||
|
m_removeFieldButton->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_SYMBOL_FIELDS_TABLE_BASE::OnRemoveField ), NULL, this );
|
||||||
m_filter->Connect( wxEVT_MOTION, wxMouseEventHandler( DIALOG_SYMBOL_FIELDS_TABLE_BASE::OnFilterMouseMoved ), NULL, this );
|
m_filter->Connect( wxEVT_MOTION, wxMouseEventHandler( DIALOG_SYMBOL_FIELDS_TABLE_BASE::OnFilterMouseMoved ), NULL, this );
|
||||||
m_filter->Connect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( DIALOG_SYMBOL_FIELDS_TABLE_BASE::OnFilterText ), NULL, this );
|
m_filter->Connect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( DIALOG_SYMBOL_FIELDS_TABLE_BASE::OnFilterText ), NULL, this );
|
||||||
m_checkExcludeDNP->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_SYMBOL_FIELDS_TABLE_BASE::OnExcludeDNPToggled ), NULL, this );
|
m_checkExcludeDNP->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_SYMBOL_FIELDS_TABLE_BASE::OnExcludeDNPToggled ), NULL, this );
|
||||||
|
@ -393,8 +401,8 @@ DIALOG_SYMBOL_FIELDS_TABLE_BASE::~DIALOG_SYMBOL_FIELDS_TABLE_BASE()
|
||||||
m_fieldsCtrl->Disconnect( wxEVT_COMMAND_DATAVIEW_SELECTION_CHANGED, wxDataViewEventHandler( DIALOG_SYMBOL_FIELDS_TABLE_BASE::OnFieldsCtrlSelectionChanged ), NULL, this );
|
m_fieldsCtrl->Disconnect( wxEVT_COMMAND_DATAVIEW_SELECTION_CHANGED, wxDataViewEventHandler( DIALOG_SYMBOL_FIELDS_TABLE_BASE::OnFieldsCtrlSelectionChanged ), NULL, this );
|
||||||
m_fieldsCtrl->Disconnect( wxEVT_SIZE, wxSizeEventHandler( DIALOG_SYMBOL_FIELDS_TABLE_BASE::OnSizeFieldList ), NULL, this );
|
m_fieldsCtrl->Disconnect( wxEVT_SIZE, wxSizeEventHandler( DIALOG_SYMBOL_FIELDS_TABLE_BASE::OnSizeFieldList ), NULL, this );
|
||||||
m_addFieldButton->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_SYMBOL_FIELDS_TABLE_BASE::OnAddField ), NULL, this );
|
m_addFieldButton->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_SYMBOL_FIELDS_TABLE_BASE::OnAddField ), NULL, this );
|
||||||
m_removeFieldButton->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_SYMBOL_FIELDS_TABLE_BASE::OnRemoveField ), NULL, this );
|
|
||||||
m_renameFieldButton->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_SYMBOL_FIELDS_TABLE_BASE::OnRenameField ), NULL, this );
|
m_renameFieldButton->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_SYMBOL_FIELDS_TABLE_BASE::OnRenameField ), NULL, this );
|
||||||
|
m_removeFieldButton->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_SYMBOL_FIELDS_TABLE_BASE::OnRemoveField ), NULL, this );
|
||||||
m_filter->Disconnect( wxEVT_MOTION, wxMouseEventHandler( DIALOG_SYMBOL_FIELDS_TABLE_BASE::OnFilterMouseMoved ), NULL, this );
|
m_filter->Disconnect( wxEVT_MOTION, wxMouseEventHandler( DIALOG_SYMBOL_FIELDS_TABLE_BASE::OnFilterMouseMoved ), NULL, this );
|
||||||
m_filter->Disconnect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( DIALOG_SYMBOL_FIELDS_TABLE_BASE::OnFilterText ), NULL, this );
|
m_filter->Disconnect( wxEVT_COMMAND_TEXT_UPDATED, wxCommandEventHandler( DIALOG_SYMBOL_FIELDS_TABLE_BASE::OnFilterText ), NULL, this );
|
||||||
m_checkExcludeDNP->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_SYMBOL_FIELDS_TABLE_BASE::OnExcludeDNPToggled ), NULL, this );
|
m_checkExcludeDNP->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( DIALOG_SYMBOL_FIELDS_TABLE_BASE::OnExcludeDNPToggled ), NULL, this );
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -11,29 +11,30 @@
|
||||||
#include <wx/xrc/xmlres.h>
|
#include <wx/xrc/xmlres.h>
|
||||||
#include <wx/intl.h>
|
#include <wx/intl.h>
|
||||||
class BITMAP_BUTTON;
|
class BITMAP_BUTTON;
|
||||||
|
class STD_BITMAP_BUTTON;
|
||||||
class WX_GRID;
|
class WX_GRID;
|
||||||
|
|
||||||
#include "dialog_shim.h"
|
#include "dialog_shim.h"
|
||||||
#include <wx/string.h>
|
#include <wx/dataview.h>
|
||||||
#include <wx/stattext.h>
|
|
||||||
#include <wx/gdicmn.h>
|
#include <wx/gdicmn.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/choice.h>
|
#include <wx/string.h>
|
||||||
#include <wx/sizer.h>
|
|
||||||
#include <wx/dataview.h>
|
|
||||||
#include <wx/bmpbuttn.h>
|
#include <wx/bmpbuttn.h>
|
||||||
#include <wx/bitmap.h>
|
#include <wx/bitmap.h>
|
||||||
#include <wx/image.h>
|
#include <wx/image.h>
|
||||||
#include <wx/icon.h>
|
#include <wx/icon.h>
|
||||||
#include <wx/button.h>
|
#include <wx/button.h>
|
||||||
|
#include <wx/sizer.h>
|
||||||
|
#include <wx/statline.h>
|
||||||
|
#include <wx/stattext.h>
|
||||||
|
#include <wx/choice.h>
|
||||||
#include <wx/panel.h>
|
#include <wx/panel.h>
|
||||||
#include <wx/srchctrl.h>
|
#include <wx/srchctrl.h>
|
||||||
#include <wx/checkbox.h>
|
#include <wx/checkbox.h>
|
||||||
#include <wx/grid.h>
|
#include <wx/grid.h>
|
||||||
#include <wx/radiobut.h>
|
#include <wx/radiobut.h>
|
||||||
#include <wx/statbox.h>
|
|
||||||
#include <wx/splitter.h>
|
#include <wx/splitter.h>
|
||||||
#include <wx/textctrl.h>
|
#include <wx/textctrl.h>
|
||||||
#include <wx/gbsizer.h>
|
#include <wx/gbsizer.h>
|
||||||
|
@ -56,12 +57,13 @@ class DIALOG_SYMBOL_FIELDS_TABLE_BASE : public DIALOG_SHIM
|
||||||
wxPanel* m_panelEdit;
|
wxPanel* m_panelEdit;
|
||||||
wxSplitterWindow* m_splitterMainWindow;
|
wxSplitterWindow* m_splitterMainWindow;
|
||||||
wxPanel* m_leftPanel;
|
wxPanel* m_leftPanel;
|
||||||
|
wxDataViewListCtrl* m_fieldsCtrl;
|
||||||
|
STD_BITMAP_BUTTON* m_addFieldButton;
|
||||||
|
STD_BITMAP_BUTTON* m_renameFieldButton;
|
||||||
|
STD_BITMAP_BUTTON* m_removeFieldButton;
|
||||||
|
wxStaticLine* m_staticline1;
|
||||||
wxStaticText* m_bomPresetsLabel;
|
wxStaticText* m_bomPresetsLabel;
|
||||||
wxChoice* m_cbBomPresets;
|
wxChoice* m_cbBomPresets;
|
||||||
wxDataViewListCtrl* m_fieldsCtrl;
|
|
||||||
wxBitmapButton* m_addFieldButton;
|
|
||||||
wxBitmapButton* m_removeFieldButton;
|
|
||||||
wxBitmapButton* m_renameFieldButton;
|
|
||||||
wxPanel* m_rightPanel;
|
wxPanel* m_rightPanel;
|
||||||
wxSearchCtrl* m_filter;
|
wxSearchCtrl* m_filter;
|
||||||
BITMAP_BUTTON* m_separator1;
|
BITMAP_BUTTON* m_separator1;
|
||||||
|
@ -71,9 +73,12 @@ class DIALOG_SYMBOL_FIELDS_TABLE_BASE : public DIALOG_SHIM
|
||||||
BITMAP_BUTTON* m_separator3;
|
BITMAP_BUTTON* m_separator3;
|
||||||
wxBitmapButton* m_bRefresh;
|
wxBitmapButton* m_bRefresh;
|
||||||
WX_GRID* m_grid;
|
WX_GRID* m_grid;
|
||||||
|
wxStaticText* m_scopeLabel;
|
||||||
wxRadioButton* m_radioProject;
|
wxRadioButton* m_radioProject;
|
||||||
wxRadioButton* m_radioCurrentSheet;
|
wxRadioButton* m_radioCurrentSheet;
|
||||||
wxRadioButton* m_radioRecursive;
|
wxRadioButton* m_radioRecursive;
|
||||||
|
BITMAP_BUTTON* m_separator11;
|
||||||
|
wxStaticText* m_crossProbeLabel;
|
||||||
wxRadioButton* m_radioHighlight;
|
wxRadioButton* m_radioHighlight;
|
||||||
wxRadioButton* m_radioSelect;
|
wxRadioButton* m_radioSelect;
|
||||||
wxRadioButton* m_radioOff;
|
wxRadioButton* m_radioOff;
|
||||||
|
@ -111,8 +116,8 @@ class DIALOG_SYMBOL_FIELDS_TABLE_BASE : public DIALOG_SHIM
|
||||||
virtual void OnFieldsCtrlSelectionChanged( wxDataViewEvent& event ) { event.Skip(); }
|
virtual void OnFieldsCtrlSelectionChanged( wxDataViewEvent& event ) { event.Skip(); }
|
||||||
virtual void OnSizeFieldList( wxSizeEvent& event ) { event.Skip(); }
|
virtual void OnSizeFieldList( wxSizeEvent& event ) { event.Skip(); }
|
||||||
virtual void OnAddField( wxCommandEvent& event ) { event.Skip(); }
|
virtual void OnAddField( wxCommandEvent& event ) { event.Skip(); }
|
||||||
virtual void OnRemoveField( wxCommandEvent& event ) { event.Skip(); }
|
|
||||||
virtual void OnRenameField( wxCommandEvent& event ) { event.Skip(); }
|
virtual void OnRenameField( wxCommandEvent& event ) { event.Skip(); }
|
||||||
|
virtual void OnRemoveField( wxCommandEvent& event ) { event.Skip(); }
|
||||||
virtual void OnFilterMouseMoved( wxMouseEvent& event ) { event.Skip(); }
|
virtual void OnFilterMouseMoved( wxMouseEvent& event ) { event.Skip(); }
|
||||||
virtual void OnFilterText( wxCommandEvent& event ) { event.Skip(); }
|
virtual void OnFilterText( wxCommandEvent& event ) { event.Skip(); }
|
||||||
virtual void OnExcludeDNPToggled( wxCommandEvent& event ) { event.Skip(); }
|
virtual void OnExcludeDNPToggled( wxCommandEvent& event ) { event.Skip(); }
|
||||||
|
|
Loading…
Reference in New Issue