Sheet synchronization dialog layout improvements.
This commit is contained in:
parent
fe349be48b
commit
9a9d6f2afb
|
@ -9,55 +9,46 @@
|
|||
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
|
||||
DIALOG_SYNC_SHEET_PINS_BASE::DIALOG_SYNC_SHEET_PINS_BASE( wxWindow* parent, wxWindowID id,
|
||||
const wxString& title, const wxPoint& pos,
|
||||
const wxSize& size, long style ) :
|
||||
DIALOG_SHIM( parent, id, title, pos, size, style )
|
||||
DIALOG_SYNC_SHEET_PINS_BASE::DIALOG_SYNC_SHEET_PINS_BASE( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : DIALOG_SHIM( parent, id, title, pos, size, style )
|
||||
{
|
||||
this->SetSizeHints( wxSize( -1, -1 ), wxDefaultSize );
|
||||
this->SetSizeHints( wxSize( -1,-1 ), wxDefaultSize );
|
||||
|
||||
m_sizerMain = new wxBoxSizer( wxVERTICAL );
|
||||
m_sizerMain = new wxBoxSizer( wxVERTICAL );
|
||||
|
||||
m_notebook = new wxNotebook( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
|
||||
m_notebook = new wxNotebook( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
|
||||
|
||||
m_sizerMain->Add( m_notebook, 1, wxEXPAND | wxALL, 5 );
|
||||
m_sizerMain->Add( m_notebook, 1, wxEXPAND | wxALL, 5 );
|
||||
|
||||
wxBoxSizer* bSizer8;
|
||||
bSizer8 = new wxBoxSizer( wxHORIZONTAL );
|
||||
wxBoxSizer* bSizer8;
|
||||
bSizer8 = new wxBoxSizer( wxHORIZONTAL );
|
||||
|
||||
|
||||
bSizer8->Add( 0, 0, 1, wxEXPAND, 5 );
|
||||
bSizer8->Add( 0, 0, 1, wxEXPAND, 5 );
|
||||
|
||||
m_labelTip = new wxStaticText( this, wxID_ANY,
|
||||
_( "Changes made in this dialog occur immediately, use Undo in "
|
||||
"each affected document to undo them" ),
|
||||
wxDefaultPosition, wxDefaultSize, 0 );
|
||||
m_labelTip->Wrap( -1 );
|
||||
bSizer8->Add( m_labelTip, 0, wxALL, 5 );
|
||||
m_labelTip = new wxStaticText( this, wxID_ANY, _("Changes made in this dialog occur immediately, use Undo in each affected document to undo them"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||
m_labelTip->Wrap( -1 );
|
||||
bSizer8->Add( m_labelTip, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
|
||||
|
||||
m_btnClose = new wxButton( this, wxID_ANY, _( "Close" ), wxDefaultPosition, wxDefaultSize, 0 );
|
||||
bSizer8->Add( m_btnClose, 0, wxALL, 5 );
|
||||
m_btnClose = new wxButton( this, wxID_ANY, _("Close"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||
bSizer8->Add( m_btnClose, 0, wxALL, 5 );
|
||||
|
||||
|
||||
m_sizerMain->Add( bSizer8, 0, wxEXPAND, 5 );
|
||||
m_sizerMain->Add( bSizer8, 0, wxEXPAND, 5 );
|
||||
|
||||
|
||||
this->SetSizer( m_sizerMain );
|
||||
this->Layout();
|
||||
m_sizerMain->Fit( this );
|
||||
this->SetSizer( m_sizerMain );
|
||||
this->Layout();
|
||||
m_sizerMain->Fit( this );
|
||||
|
||||
this->Centre( wxBOTH );
|
||||
this->Centre( wxBOTH );
|
||||
|
||||
// Connect Events
|
||||
m_btnClose->Connect( wxEVT_COMMAND_BUTTON_CLICKED,
|
||||
wxCommandEventHandler( DIALOG_SYNC_SHEET_PINS_BASE::OnCloseBtnClick ),
|
||||
NULL, this );
|
||||
// Connect Events
|
||||
m_btnClose->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_SYNC_SHEET_PINS_BASE::OnCloseBtnClick ), NULL, this );
|
||||
}
|
||||
|
||||
DIALOG_SYNC_SHEET_PINS_BASE::~DIALOG_SYNC_SHEET_PINS_BASE()
|
||||
{
|
||||
// Disconnect Events
|
||||
m_btnClose->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED,
|
||||
wxCommandEventHandler( DIALOG_SYNC_SHEET_PINS_BASE::OnCloseBtnClick ),
|
||||
NULL, this );
|
||||
// Disconnect Events
|
||||
m_btnClose->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_SYNC_SHEET_PINS_BASE::OnCloseBtnClick ), NULL, this );
|
||||
|
||||
}
|
||||
|
|
|
@ -143,7 +143,7 @@
|
|||
</object>
|
||||
<object class="sizeritem" expanded="true">
|
||||
<property name="border">5</property>
|
||||
<property name="flag">wxALL</property>
|
||||
<property name="flag">wxALIGN_CENTER_VERTICAL|wxALL</property>
|
||||
<property name="proportion">0</property>
|
||||
<object class="wxStaticText" expanded="true">
|
||||
<property name="BottomDockable">1</property>
|
||||
|
|
|
@ -33,23 +33,23 @@
|
|||
///////////////////////////////////////////////////////////////////////////////
|
||||
class DIALOG_SYNC_SHEET_PINS_BASE : public DIALOG_SHIM
|
||||
{
|
||||
private:
|
||||
protected:
|
||||
wxBoxSizer* m_sizerMain;
|
||||
wxNotebook* m_notebook;
|
||||
wxStaticText* m_labelTip;
|
||||
wxButton* m_btnClose;
|
||||
private:
|
||||
|
||||
// Virtual event handlers, override them in your derived class
|
||||
virtual void OnCloseBtnClick( wxCommandEvent& event ) { event.Skip(); }
|
||||
protected:
|
||||
wxBoxSizer* m_sizerMain;
|
||||
wxNotebook* m_notebook;
|
||||
wxStaticText* m_labelTip;
|
||||
wxButton* m_btnClose;
|
||||
|
||||
// Virtual event handlers, override them in your derived class
|
||||
virtual void OnCloseBtnClick( wxCommandEvent& event ) { event.Skip(); }
|
||||
|
||||
|
||||
public:
|
||||
DIALOG_SYNC_SHEET_PINS_BASE(
|
||||
wxWindow* parent, wxWindowID id = wxID_ANY,
|
||||
const wxString& title = _( "Synchronize sheet pins and hierarchical labels" ),
|
||||
const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( -1, -1 ),
|
||||
long style = wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER );
|
||||
public:
|
||||
|
||||
DIALOG_SYNC_SHEET_PINS_BASE( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = _("Synchronize sheet pins and hierarchical labels"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( -1,-1 ), long style = wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER );
|
||||
|
||||
~DIALOG_SYNC_SHEET_PINS_BASE();
|
||||
|
||||
~DIALOG_SYNC_SHEET_PINS_BASE();
|
||||
};
|
||||
|
||||
|
|
|
@ -9,242 +9,170 @@
|
|||
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
|
||||
PANEL_SYNC_SHEET_PINS_BASE::PANEL_SYNC_SHEET_PINS_BASE( wxWindow* parent, wxWindowID id,
|
||||
const wxPoint& pos, const wxSize& size,
|
||||
long style, const wxString& name ) :
|
||||
wxPanel( parent, id, pos, size, style, name )
|
||||
PANEL_SYNC_SHEET_PINS_BASE::PANEL_SYNC_SHEET_PINS_BASE( wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style, const wxString& name ) : wxPanel( parent, id, pos, size, style, name )
|
||||
{
|
||||
wxBoxSizer* bSizer3;
|
||||
bSizer3 = new wxBoxSizer( wxHORIZONTAL );
|
||||
wxBoxSizer* bSizer3;
|
||||
bSizer3 = new wxBoxSizer( wxHORIZONTAL );
|
||||
|
||||
m_panel11 = new wxPanel( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
|
||||
wxBoxSizer* bSizer41;
|
||||
bSizer41 = new wxBoxSizer( wxVERTICAL );
|
||||
m_panel11 = new wxPanel( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
|
||||
wxBoxSizer* bSizer41;
|
||||
bSizer41 = new wxBoxSizer( wxVERTICAL );
|
||||
|
||||
wxBoxSizer* bSizer61;
|
||||
bSizer61 = new wxBoxSizer( wxVERTICAL );
|
||||
wxBoxSizer* bSizer61;
|
||||
bSizer61 = new wxBoxSizer( wxVERTICAL );
|
||||
|
||||
m_labelSymName = new wxStaticText( m_panel11, wxID_ANY, _( "Symbol name" ), wxDefaultPosition,
|
||||
wxDefaultSize, wxALIGN_CENTER_HORIZONTAL | wxBORDER_THEME );
|
||||
m_labelSymName->Wrap( -1 );
|
||||
bSizer61->Add( m_labelSymName, 0, wxALL | wxEXPAND, 0 );
|
||||
m_labelSymName = new wxStaticText( m_panel11, wxID_ANY, _("Symbol name"), wxDefaultPosition, wxDefaultSize, wxALIGN_CENTER_HORIZONTAL|wxBORDER_THEME );
|
||||
m_labelSymName->Wrap( -1 );
|
||||
bSizer61->Add( m_labelSymName, 0, wxALL|wxEXPAND, 0 );
|
||||
|
||||
m_viewSheetPins = new wxDataViewCtrl( m_panel11, wxID_ANY, wxDefaultPosition, wxDefaultSize,
|
||||
wxDV_HORIZ_RULES | wxDV_MULTIPLE | wxDV_ROW_LINES
|
||||
| wxDV_VERT_RULES );
|
||||
bSizer61->Add( m_viewSheetPins, 1, wxALL | wxEXPAND, 0 );
|
||||
m_viewSheetPins = new wxDataViewCtrl( m_panel11, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxDV_HORIZ_RULES|wxDV_MULTIPLE|wxDV_ROW_LINES|wxDV_VERT_RULES );
|
||||
bSizer61->Add( m_viewSheetPins, 1, wxALL|wxEXPAND, 0 );
|
||||
|
||||
wxBoxSizer* bSizer51;
|
||||
bSizer51 = new wxBoxSizer( wxVERTICAL );
|
||||
wxBoxSizer* bSizer51;
|
||||
bSizer51 = new wxBoxSizer( wxVERTICAL );
|
||||
|
||||
m_btnAddLabels = new wxButton( m_panel11, wxID_ANY, _( "Add Hierarchical Labels" ),
|
||||
wxDefaultPosition, wxDefaultSize, 0 );
|
||||
bSizer51->Add( m_btnAddLabels, 0, wxBOTTOM | wxEXPAND | wxTOP, 5 );
|
||||
m_btnAddLabels = new wxButton( m_panel11, wxID_ANY, _("Add Hierarchical Labels"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||
bSizer51->Add( m_btnAddLabels, 0, wxBOTTOM|wxEXPAND|wxTOP, 5 );
|
||||
|
||||
m_btnRmPins = new wxButton( m_panel11, wxID_ANY, _( "Delete Sheet Pins" ), wxDefaultPosition,
|
||||
wxDefaultSize, 0 );
|
||||
bSizer51->Add( m_btnRmPins, 0, wxBOTTOM | wxEXPAND | wxTOP, 5 );
|
||||
m_btnRmPins = new wxButton( m_panel11, wxID_ANY, _("Delete Sheet Pins"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||
bSizer51->Add( m_btnRmPins, 0, wxBOTTOM|wxEXPAND|wxTOP, 5 );
|
||||
|
||||
|
||||
bSizer61->Add( bSizer51, 0, wxEXPAND, 5 );
|
||||
bSizer61->Add( bSizer51, 0, wxEXPAND, 5 );
|
||||
|
||||
|
||||
bSizer41->Add( bSizer61, 1, wxEXPAND, 5 );
|
||||
bSizer41->Add( bSizer61, 1, wxEXPAND, 5 );
|
||||
|
||||
|
||||
m_panel11->SetSizer( bSizer41 );
|
||||
m_panel11->Layout();
|
||||
bSizer41->Fit( m_panel11 );
|
||||
bSizer3->Add( m_panel11, 1, wxEXPAND | wxALL, 5 );
|
||||
m_panel11->SetSizer( bSizer41 );
|
||||
m_panel11->Layout();
|
||||
bSizer41->Fit( m_panel11 );
|
||||
bSizer3->Add( m_panel11, 1, wxEXPAND | wxALL, 5 );
|
||||
|
||||
m_panel1 = new wxPanel( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
|
||||
wxBoxSizer* bSizer4;
|
||||
bSizer4 = new wxBoxSizer( wxVERTICAL );
|
||||
m_panel1 = new wxPanel( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
|
||||
wxBoxSizer* bSizer4;
|
||||
bSizer4 = new wxBoxSizer( wxVERTICAL );
|
||||
|
||||
wxBoxSizer* bSizer6;
|
||||
bSizer6 = new wxBoxSizer( wxVERTICAL );
|
||||
wxBoxSizer* bSizer6;
|
||||
bSizer6 = new wxBoxSizer( wxVERTICAL );
|
||||
|
||||
m_labelSheetName =
|
||||
new wxStaticText( m_panel1, wxID_ANY, _( "Sheet name" ), wxDefaultPosition,
|
||||
wxDefaultSize, wxALIGN_CENTER_HORIZONTAL | wxBORDER_THEME );
|
||||
m_labelSheetName->Wrap( -1 );
|
||||
bSizer6->Add( m_labelSheetName, 0, wxALL | wxEXPAND, 0 );
|
||||
m_labelSheetName = new wxStaticText( m_panel1, wxID_ANY, _("Sheet name"), wxDefaultPosition, wxDefaultSize, wxALIGN_CENTER_HORIZONTAL|wxBORDER_THEME );
|
||||
m_labelSheetName->Wrap( -1 );
|
||||
bSizer6->Add( m_labelSheetName, 0, wxALL|wxEXPAND, 0 );
|
||||
|
||||
m_viewSheetLabels = new wxDataViewCtrl( m_panel1, wxID_ANY, wxDefaultPosition, wxDefaultSize,
|
||||
wxDV_HORIZ_RULES | wxDV_MULTIPLE | wxDV_ROW_LINES
|
||||
| wxDV_VERT_RULES );
|
||||
bSizer6->Add( m_viewSheetLabels, 1, wxALL | wxEXPAND, 0 );
|
||||
m_viewSheetLabels = new wxDataViewCtrl( m_panel1, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxDV_HORIZ_RULES|wxDV_MULTIPLE|wxDV_ROW_LINES|wxDV_VERT_RULES );
|
||||
bSizer6->Add( m_viewSheetLabels, 1, wxALL|wxEXPAND, 0 );
|
||||
|
||||
wxBoxSizer* bSizer5;
|
||||
bSizer5 = new wxBoxSizer( wxVERTICAL );
|
||||
wxBoxSizer* bSizer5;
|
||||
bSizer5 = new wxBoxSizer( wxVERTICAL );
|
||||
|
||||
m_btnAddSheetPins = new wxButton( m_panel1, wxID_ANY, _( "Add Sheet Pins" ), wxDefaultPosition,
|
||||
wxDefaultSize, 0 );
|
||||
bSizer5->Add( m_btnAddSheetPins, 0, wxBOTTOM | wxEXPAND | wxTOP, 5 );
|
||||
m_btnAddSheetPins = new wxButton( m_panel1, wxID_ANY, _("Add Sheet Pins"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||
bSizer5->Add( m_btnAddSheetPins, 0, wxBOTTOM|wxEXPAND|wxTOP, 5 );
|
||||
|
||||
m_btnRmLabels = new wxButton( m_panel1, wxID_ANY, _( "Delete Hierarchical Labels" ),
|
||||
wxDefaultPosition, wxDefaultSize, 0 );
|
||||
bSizer5->Add( m_btnRmLabels, 0, wxBOTTOM | wxEXPAND | wxTOP, 5 );
|
||||
m_btnRmLabels = new wxButton( m_panel1, wxID_ANY, _("Delete Hierarchical Labels"), wxDefaultPosition, wxDefaultSize, 0 );
|
||||
bSizer5->Add( m_btnRmLabels, 0, wxBOTTOM|wxEXPAND|wxTOP, 5 );
|
||||
|
||||
|
||||
bSizer6->Add( bSizer5, 0, wxEXPAND, 5 );
|
||||
bSizer6->Add( bSizer5, 0, wxEXPAND, 5 );
|
||||
|
||||
|
||||
bSizer4->Add( bSizer6, 1, wxEXPAND, 5 );
|
||||
bSizer4->Add( bSizer6, 1, wxEXPAND, 5 );
|
||||
|
||||
|
||||
m_panel1->SetSizer( bSizer4 );
|
||||
m_panel1->Layout();
|
||||
bSizer4->Fit( m_panel1 );
|
||||
bSizer3->Add( m_panel1, 1, wxEXPAND | wxALL, 5 );
|
||||
m_panel1->SetSizer( bSizer4 );
|
||||
m_panel1->Layout();
|
||||
bSizer4->Fit( m_panel1 );
|
||||
bSizer3->Add( m_panel1, 1, wxEXPAND | wxALL, 5 );
|
||||
|
||||
m_panel3 = new wxPanel( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
|
||||
wxBoxSizer* bSizer13;
|
||||
bSizer13 = new wxBoxSizer( wxVERTICAL );
|
||||
m_panel3 = new wxPanel( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
|
||||
wxBoxSizer* bSizer13;
|
||||
bSizer13 = new wxBoxSizer( wxVERTICAL );
|
||||
|
||||
|
||||
bSizer13->Add( 0, 0, 1, wxEXPAND, 5 );
|
||||
bSizer13->Add( 0, 0, 1, wxEXPAND, 5 );
|
||||
|
||||
m_panel8 = new wxPanel( m_panel3, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
|
||||
wxBoxSizer* bSizer14;
|
||||
bSizer14 = new wxBoxSizer( wxVERTICAL );
|
||||
m_panel8 = new wxPanel( m_panel3, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
|
||||
wxBoxSizer* bSizer14;
|
||||
bSizer14 = new wxBoxSizer( wxVERTICAL );
|
||||
|
||||
m_btnUseLabelAsTemplate = new wxBitmapButton(
|
||||
m_panel8, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW | 0 );
|
||||
m_btnUseLabelAsTemplate->SetToolTip( _( "Change sheet pin to hierarchical label" ) );
|
||||
m_btnUseLabelAsTemplate = new wxBitmapButton( m_panel8, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW|0 );
|
||||
m_btnUseLabelAsTemplate->SetToolTip( _("Change sheet pin to hierarchical label") );
|
||||
|
||||
bSizer14->Add( m_btnUseLabelAsTemplate, 0, wxBOTTOM | wxEXPAND | wxLEFT | wxRIGHT, 5 );
|
||||
bSizer14->Add( m_btnUseLabelAsTemplate, 0, wxBOTTOM|wxEXPAND|wxLEFT|wxRIGHT, 5 );
|
||||
|
||||
m_btnUsePinAsTemplate = new wxBitmapButton( m_panel8, wxID_ANY, wxNullBitmap, wxDefaultPosition,
|
||||
wxDefaultSize, wxBU_AUTODRAW | 0 );
|
||||
m_btnUsePinAsTemplate->SetToolTip( _( "Change hierarchical label to sheet pin" ) );
|
||||
m_btnUsePinAsTemplate = new wxBitmapButton( m_panel8, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW|0 );
|
||||
m_btnUsePinAsTemplate->SetToolTip( _("Change hierarchical label to sheet pin") );
|
||||
|
||||
bSizer14->Add( m_btnUsePinAsTemplate, 0, wxALL | wxEXPAND, 5 );
|
||||
bSizer14->Add( m_btnUsePinAsTemplate, 0, wxALL|wxEXPAND, 5 );
|
||||
|
||||
m_btnUndo = new wxBitmapButton( m_panel8, wxID_ANY, wxNullBitmap, wxDefaultPosition,
|
||||
wxDefaultSize, wxBU_AUTODRAW | 0 );
|
||||
m_btnUndo->SetToolTip( _( "Break sheet pin and hierarchical label association(s)" ) );
|
||||
m_btnUndo = new wxBitmapButton( m_panel8, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW|0 );
|
||||
m_btnUndo->SetToolTip( _("Break sheet pin and hierarchical label association(s)") );
|
||||
|
||||
bSizer14->Add( m_btnUndo, 0, wxALL | wxBOTTOM | wxLEFT | wxRIGHT, 5 );
|
||||
bSizer14->Add( m_btnUndo, 0, wxALL|wxBOTTOM|wxLEFT|wxRIGHT, 5 );
|
||||
|
||||
|
||||
m_panel8->SetSizer( bSizer14 );
|
||||
m_panel8->Layout();
|
||||
bSizer14->Fit( m_panel8 );
|
||||
bSizer13->Add( m_panel8, 0, wxEXPAND | wxALL, 0 );
|
||||
m_panel8->SetSizer( bSizer14 );
|
||||
m_panel8->Layout();
|
||||
bSizer14->Fit( m_panel8 );
|
||||
bSizer13->Add( m_panel8, 0, wxEXPAND | wxALL, 0 );
|
||||
|
||||
|
||||
bSizer13->Add( 0, 0, 2, wxEXPAND, 5 );
|
||||
bSizer13->Add( 0, 0, 2, wxEXPAND, 5 );
|
||||
|
||||
|
||||
m_panel3->SetSizer( bSizer13 );
|
||||
m_panel3->Layout();
|
||||
bSizer13->Fit( m_panel3 );
|
||||
bSizer3->Add( m_panel3, 0, wxEXPAND | wxALL, 0 );
|
||||
m_panel3->SetSizer( bSizer13 );
|
||||
m_panel3->Layout();
|
||||
bSizer13->Fit( m_panel3 );
|
||||
bSizer3->Add( m_panel3, 0, wxEXPAND | wxALL, 0 );
|
||||
|
||||
m_panel4 = new wxPanel( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
|
||||
wxBoxSizer* bSizer15;
|
||||
bSizer15 = new wxBoxSizer( wxVERTICAL );
|
||||
m_panel4 = new wxPanel( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
|
||||
wxBoxSizer* bSizer15;
|
||||
bSizer15 = new wxBoxSizer( wxVERTICAL );
|
||||
|
||||
wxBoxSizer* bSizer16;
|
||||
bSizer16 = new wxBoxSizer( wxVERTICAL );
|
||||
wxBoxSizer* bSizer16;
|
||||
bSizer16 = new wxBoxSizer( wxVERTICAL );
|
||||
|
||||
m_viewAssociated = new wxDataViewCtrl( m_panel4, wxID_ANY, wxDefaultPosition, wxDefaultSize,
|
||||
wxDV_HORIZ_RULES | wxDV_MULTIPLE | wxDV_ROW_LINES
|
||||
| wxDV_VERT_RULES );
|
||||
bSizer16->Add( m_viewAssociated, 1, wxALL | wxEXPAND, 5 );
|
||||
m_viewAssociated = new wxDataViewCtrl( m_panel4, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxDV_HORIZ_RULES|wxDV_MULTIPLE|wxDV_ROW_LINES|wxDV_VERT_RULES );
|
||||
bSizer16->Add( m_viewAssociated, 1, wxBOTTOM|wxEXPAND|wxTOP, 5 );
|
||||
|
||||
|
||||
bSizer15->Add( bSizer16, 1, wxEXPAND, 5 );
|
||||
bSizer15->Add( bSizer16, 1, wxEXPAND, 5 );
|
||||
|
||||
|
||||
m_panel4->SetSizer( bSizer15 );
|
||||
m_panel4->Layout();
|
||||
bSizer15->Fit( m_panel4 );
|
||||
bSizer3->Add( m_panel4, 1, wxEXPAND | wxALL, 5 );
|
||||
m_panel4->SetSizer( bSizer15 );
|
||||
m_panel4->Layout();
|
||||
bSizer15->Fit( m_panel4 );
|
||||
bSizer3->Add( m_panel4, 1, wxEXPAND | wxALL, 5 );
|
||||
|
||||
|
||||
this->SetSizer( bSizer3 );
|
||||
this->Layout();
|
||||
this->SetSizer( bSizer3 );
|
||||
this->Layout();
|
||||
|
||||
// Connect Events
|
||||
m_viewSheetPins->Connect(
|
||||
wxEVT_COMMAND_DATAVIEW_SELECTION_CHANGED,
|
||||
wxDataViewEventHandler( PANEL_SYNC_SHEET_PINS_BASE::OnViewSheetPinCellClicked ), NULL,
|
||||
this );
|
||||
m_btnAddLabels->Connect(
|
||||
wxEVT_COMMAND_BUTTON_CLICKED,
|
||||
wxCommandEventHandler( PANEL_SYNC_SHEET_PINS_BASE::OnBtnAddLabelsClicked ), NULL,
|
||||
this );
|
||||
m_btnRmPins->Connect( wxEVT_COMMAND_BUTTON_CLICKED,
|
||||
wxCommandEventHandler( PANEL_SYNC_SHEET_PINS_BASE::OnBtnRmPinsClicked ),
|
||||
NULL, this );
|
||||
m_viewSheetLabels->Connect(
|
||||
wxEVT_COMMAND_DATAVIEW_SELECTION_CHANGED,
|
||||
wxDataViewEventHandler( PANEL_SYNC_SHEET_PINS_BASE::OnViewSheetLabelCellClicked ), NULL,
|
||||
this );
|
||||
m_btnAddSheetPins->Connect(
|
||||
wxEVT_COMMAND_BUTTON_CLICKED,
|
||||
wxCommandEventHandler( PANEL_SYNC_SHEET_PINS_BASE::OnBtnAddSheetPinsClicked ), NULL,
|
||||
this );
|
||||
m_btnRmLabels->Connect(
|
||||
wxEVT_COMMAND_BUTTON_CLICKED,
|
||||
wxCommandEventHandler( PANEL_SYNC_SHEET_PINS_BASE::OnBtnRmLabelsClicked ), NULL, this );
|
||||
m_btnUseLabelAsTemplate->Connect(
|
||||
wxEVT_COMMAND_BUTTON_CLICKED,
|
||||
wxCommandEventHandler( PANEL_SYNC_SHEET_PINS_BASE::OnBtnUseLabelAsTemplateClicked ),
|
||||
NULL, this );
|
||||
m_btnUsePinAsTemplate->Connect(
|
||||
wxEVT_COMMAND_BUTTON_CLICKED,
|
||||
wxCommandEventHandler( PANEL_SYNC_SHEET_PINS_BASE::OnBtnUsePinAsTemplateClicked ), NULL,
|
||||
this );
|
||||
m_btnUndo->Connect( wxEVT_COMMAND_BUTTON_CLICKED,
|
||||
wxCommandEventHandler( PANEL_SYNC_SHEET_PINS_BASE::OnBtnUndoClicked ), NULL,
|
||||
this );
|
||||
m_viewAssociated->Connect(
|
||||
wxEVT_COMMAND_DATAVIEW_SELECTION_CHANGED,
|
||||
wxDataViewEventHandler( PANEL_SYNC_SHEET_PINS_BASE::OnViewMatchedCellClicked ), NULL,
|
||||
this );
|
||||
// Connect Events
|
||||
m_viewSheetPins->Connect( wxEVT_COMMAND_DATAVIEW_SELECTION_CHANGED, wxDataViewEventHandler( PANEL_SYNC_SHEET_PINS_BASE::OnViewSheetPinCellClicked ), NULL, this );
|
||||
m_btnAddLabels->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_SYNC_SHEET_PINS_BASE::OnBtnAddLabelsClicked ), NULL, this );
|
||||
m_btnRmPins->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_SYNC_SHEET_PINS_BASE::OnBtnRmPinsClicked ), NULL, this );
|
||||
m_viewSheetLabels->Connect( wxEVT_COMMAND_DATAVIEW_SELECTION_CHANGED, wxDataViewEventHandler( PANEL_SYNC_SHEET_PINS_BASE::OnViewSheetLabelCellClicked ), NULL, this );
|
||||
m_btnAddSheetPins->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_SYNC_SHEET_PINS_BASE::OnBtnAddSheetPinsClicked ), NULL, this );
|
||||
m_btnRmLabels->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_SYNC_SHEET_PINS_BASE::OnBtnRmLabelsClicked ), NULL, this );
|
||||
m_btnUseLabelAsTemplate->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_SYNC_SHEET_PINS_BASE::OnBtnUseLabelAsTemplateClicked ), NULL, this );
|
||||
m_btnUsePinAsTemplate->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_SYNC_SHEET_PINS_BASE::OnBtnUsePinAsTemplateClicked ), NULL, this );
|
||||
m_btnUndo->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_SYNC_SHEET_PINS_BASE::OnBtnUndoClicked ), NULL, this );
|
||||
m_viewAssociated->Connect( wxEVT_COMMAND_DATAVIEW_SELECTION_CHANGED, wxDataViewEventHandler( PANEL_SYNC_SHEET_PINS_BASE::OnViewMatchedCellClicked ), NULL, this );
|
||||
}
|
||||
|
||||
PANEL_SYNC_SHEET_PINS_BASE::~PANEL_SYNC_SHEET_PINS_BASE()
|
||||
{
|
||||
// Disconnect Events
|
||||
m_viewSheetPins->Disconnect(
|
||||
wxEVT_COMMAND_DATAVIEW_SELECTION_CHANGED,
|
||||
wxDataViewEventHandler( PANEL_SYNC_SHEET_PINS_BASE::OnViewSheetPinCellClicked ), NULL,
|
||||
this );
|
||||
m_btnAddLabels->Disconnect(
|
||||
wxEVT_COMMAND_BUTTON_CLICKED,
|
||||
wxCommandEventHandler( PANEL_SYNC_SHEET_PINS_BASE::OnBtnAddLabelsClicked ), NULL,
|
||||
this );
|
||||
m_btnRmPins->Disconnect(
|
||||
wxEVT_COMMAND_BUTTON_CLICKED,
|
||||
wxCommandEventHandler( PANEL_SYNC_SHEET_PINS_BASE::OnBtnRmPinsClicked ), NULL, this );
|
||||
m_viewSheetLabels->Disconnect(
|
||||
wxEVT_COMMAND_DATAVIEW_SELECTION_CHANGED,
|
||||
wxDataViewEventHandler( PANEL_SYNC_SHEET_PINS_BASE::OnViewSheetLabelCellClicked ), NULL,
|
||||
this );
|
||||
m_btnAddSheetPins->Disconnect(
|
||||
wxEVT_COMMAND_BUTTON_CLICKED,
|
||||
wxCommandEventHandler( PANEL_SYNC_SHEET_PINS_BASE::OnBtnAddSheetPinsClicked ), NULL,
|
||||
this );
|
||||
m_btnRmLabels->Disconnect(
|
||||
wxEVT_COMMAND_BUTTON_CLICKED,
|
||||
wxCommandEventHandler( PANEL_SYNC_SHEET_PINS_BASE::OnBtnRmLabelsClicked ), NULL, this );
|
||||
m_btnUseLabelAsTemplate->Disconnect(
|
||||
wxEVT_COMMAND_BUTTON_CLICKED,
|
||||
wxCommandEventHandler( PANEL_SYNC_SHEET_PINS_BASE::OnBtnUseLabelAsTemplateClicked ),
|
||||
NULL, this );
|
||||
m_btnUsePinAsTemplate->Disconnect(
|
||||
wxEVT_COMMAND_BUTTON_CLICKED,
|
||||
wxCommandEventHandler( PANEL_SYNC_SHEET_PINS_BASE::OnBtnUsePinAsTemplateClicked ), NULL,
|
||||
this );
|
||||
m_btnUndo->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED,
|
||||
wxCommandEventHandler( PANEL_SYNC_SHEET_PINS_BASE::OnBtnUndoClicked ),
|
||||
NULL, this );
|
||||
m_viewAssociated->Disconnect(
|
||||
wxEVT_COMMAND_DATAVIEW_SELECTION_CHANGED,
|
||||
wxDataViewEventHandler( PANEL_SYNC_SHEET_PINS_BASE::OnViewMatchedCellClicked ), NULL,
|
||||
this );
|
||||
// Disconnect Events
|
||||
m_viewSheetPins->Disconnect( wxEVT_COMMAND_DATAVIEW_SELECTION_CHANGED, wxDataViewEventHandler( PANEL_SYNC_SHEET_PINS_BASE::OnViewSheetPinCellClicked ), NULL, this );
|
||||
m_btnAddLabels->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_SYNC_SHEET_PINS_BASE::OnBtnAddLabelsClicked ), NULL, this );
|
||||
m_btnRmPins->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_SYNC_SHEET_PINS_BASE::OnBtnRmPinsClicked ), NULL, this );
|
||||
m_viewSheetLabels->Disconnect( wxEVT_COMMAND_DATAVIEW_SELECTION_CHANGED, wxDataViewEventHandler( PANEL_SYNC_SHEET_PINS_BASE::OnViewSheetLabelCellClicked ), NULL, this );
|
||||
m_btnAddSheetPins->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_SYNC_SHEET_PINS_BASE::OnBtnAddSheetPinsClicked ), NULL, this );
|
||||
m_btnRmLabels->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_SYNC_SHEET_PINS_BASE::OnBtnRmLabelsClicked ), NULL, this );
|
||||
m_btnUseLabelAsTemplate->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_SYNC_SHEET_PINS_BASE::OnBtnUseLabelAsTemplateClicked ), NULL, this );
|
||||
m_btnUsePinAsTemplate->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_SYNC_SHEET_PINS_BASE::OnBtnUsePinAsTemplateClicked ), NULL, this );
|
||||
m_btnUndo->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_SYNC_SHEET_PINS_BASE::OnBtnUndoClicked ), NULL, this );
|
||||
m_viewAssociated->Disconnect( wxEVT_COMMAND_DATAVIEW_SELECTION_CHANGED, wxDataViewEventHandler( PANEL_SYNC_SHEET_PINS_BASE::OnViewMatchedCellClicked ), NULL, this );
|
||||
|
||||
}
|
||||
|
|
|
@ -1157,7 +1157,7 @@
|
|||
<property name="permission">none</property>
|
||||
<object class="sizeritem" expanded="false">
|
||||
<property name="border">5</property>
|
||||
<property name="flag">wxALL|wxEXPAND</property>
|
||||
<property name="flag">wxBOTTOM|wxEXPAND|wxTOP</property>
|
||||
<property name="proportion">1</property>
|
||||
<object class="wxDataViewCtrl" expanded="false">
|
||||
<property name="bg"></property>
|
||||
|
|
|
@ -33,45 +33,45 @@
|
|||
///////////////////////////////////////////////////////////////////////////////
|
||||
class PANEL_SYNC_SHEET_PINS_BASE : public wxPanel
|
||||
{
|
||||
private:
|
||||
protected:
|
||||
wxPanel* m_panel11;
|
||||
wxStaticText* m_labelSymName;
|
||||
wxDataViewCtrl* m_viewSheetPins;
|
||||
wxButton* m_btnAddLabels;
|
||||
wxButton* m_btnRmPins;
|
||||
wxPanel* m_panel1;
|
||||
wxStaticText* m_labelSheetName;
|
||||
wxDataViewCtrl* m_viewSheetLabels;
|
||||
wxButton* m_btnAddSheetPins;
|
||||
wxButton* m_btnRmLabels;
|
||||
wxPanel* m_panel3;
|
||||
wxPanel* m_panel8;
|
||||
wxBitmapButton* m_btnUseLabelAsTemplate;
|
||||
wxBitmapButton* m_btnUsePinAsTemplate;
|
||||
wxBitmapButton* m_btnUndo;
|
||||
wxPanel* m_panel4;
|
||||
wxDataViewCtrl* m_viewAssociated;
|
||||
private:
|
||||
|
||||
// Virtual event handlers, override them in your derived class
|
||||
virtual void OnViewSheetPinCellClicked( wxDataViewEvent& event ) { event.Skip(); }
|
||||
virtual void OnBtnAddLabelsClicked( wxCommandEvent& event ) { event.Skip(); }
|
||||
virtual void OnBtnRmPinsClicked( wxCommandEvent& event ) { event.Skip(); }
|
||||
virtual void OnViewSheetLabelCellClicked( wxDataViewEvent& event ) { event.Skip(); }
|
||||
virtual void OnBtnAddSheetPinsClicked( wxCommandEvent& event ) { event.Skip(); }
|
||||
virtual void OnBtnRmLabelsClicked( wxCommandEvent& event ) { event.Skip(); }
|
||||
virtual void OnBtnUseLabelAsTemplateClicked( wxCommandEvent& event ) { event.Skip(); }
|
||||
virtual void OnBtnUsePinAsTemplateClicked( wxCommandEvent& event ) { event.Skip(); }
|
||||
virtual void OnBtnUndoClicked( wxCommandEvent& event ) { event.Skip(); }
|
||||
virtual void OnViewMatchedCellClicked( wxDataViewEvent& event ) { event.Skip(); }
|
||||
protected:
|
||||
wxPanel* m_panel11;
|
||||
wxStaticText* m_labelSymName;
|
||||
wxDataViewCtrl* m_viewSheetPins;
|
||||
wxButton* m_btnAddLabels;
|
||||
wxButton* m_btnRmPins;
|
||||
wxPanel* m_panel1;
|
||||
wxStaticText* m_labelSheetName;
|
||||
wxDataViewCtrl* m_viewSheetLabels;
|
||||
wxButton* m_btnAddSheetPins;
|
||||
wxButton* m_btnRmLabels;
|
||||
wxPanel* m_panel3;
|
||||
wxPanel* m_panel8;
|
||||
wxBitmapButton* m_btnUseLabelAsTemplate;
|
||||
wxBitmapButton* m_btnUsePinAsTemplate;
|
||||
wxBitmapButton* m_btnUndo;
|
||||
wxPanel* m_panel4;
|
||||
wxDataViewCtrl* m_viewAssociated;
|
||||
|
||||
// Virtual event handlers, override them in your derived class
|
||||
virtual void OnViewSheetPinCellClicked( wxDataViewEvent& event ) { event.Skip(); }
|
||||
virtual void OnBtnAddLabelsClicked( wxCommandEvent& event ) { event.Skip(); }
|
||||
virtual void OnBtnRmPinsClicked( wxCommandEvent& event ) { event.Skip(); }
|
||||
virtual void OnViewSheetLabelCellClicked( wxDataViewEvent& event ) { event.Skip(); }
|
||||
virtual void OnBtnAddSheetPinsClicked( wxCommandEvent& event ) { event.Skip(); }
|
||||
virtual void OnBtnRmLabelsClicked( wxCommandEvent& event ) { event.Skip(); }
|
||||
virtual void OnBtnUseLabelAsTemplateClicked( wxCommandEvent& event ) { event.Skip(); }
|
||||
virtual void OnBtnUsePinAsTemplateClicked( wxCommandEvent& event ) { event.Skip(); }
|
||||
virtual void OnBtnUndoClicked( wxCommandEvent& event ) { event.Skip(); }
|
||||
virtual void OnViewMatchedCellClicked( wxDataViewEvent& event ) { event.Skip(); }
|
||||
|
||||
|
||||
public:
|
||||
PANEL_SYNC_SHEET_PINS_BASE( wxWindow* parent, wxWindowID id = wxID_ANY,
|
||||
const wxPoint& pos = wxDefaultPosition,
|
||||
const wxSize& size = wxSize( 666, 414 ),
|
||||
long style = wxTAB_TRAVERSAL,
|
||||
const wxString& name = wxEmptyString );
|
||||
public:
|
||||
|
||||
PANEL_SYNC_SHEET_PINS_BASE( wxWindow* parent, wxWindowID id = wxID_ANY, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 666,414 ), long style = wxTAB_TRAVERSAL, const wxString& name = wxEmptyString );
|
||||
|
||||
~PANEL_SYNC_SHEET_PINS_BASE();
|
||||
|
||||
~PANEL_SYNC_SHEET_PINS_BASE();
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue