KiCad PCB EDA Suite
Loading...
Searching...
No Matches
dialog_constraint_list_base.cpp
Go to the documentation of this file.
1
2// C++ code generated with wxFormBuilder (version 4.2.1-0-g80c4cb6a)
3// http://www.wxformbuilder.org/
4//
5// PLEASE DO *NOT* EDIT THIS FILE!
7
9
11
12DIALOG_CONSTRAINT_LIST_BASE::DIALOG_CONSTRAINT_LIST_BASE( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : DIALOG_SHIM( parent, id, title, pos, size, style )
13{
14 this->SetSizeHints( wxSize( -1,-1 ), wxDefaultSize );
15
16 wxBoxSizer* bMainSizer;
17 bMainSizer = new wxBoxSizer( wxVERTICAL );
18
19 m_list = new wxListCtrl( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxLC_REPORT|wxLC_SINGLE_SEL );
20 m_list->SetMinSize( wxSize( 480,200 ) );
21
22 bMainSizer->Add( m_list, 1, wxEXPAND|wxALL, 5 );
23
24 wxBoxSizer* bButtonSizer;
25 bButtonSizer = new wxBoxSizer( wxHORIZONTAL );
26
27 m_deleteButton = new wxButton( this, wxID_DELETE, _("Delete"), wxDefaultPosition, wxDefaultSize, 0 );
28 bButtonSizer->Add( m_deleteButton, 0, wxALL, 5 );
29
30
31 bButtonSizer->Add( 0, 0, 1, wxRIGHT|wxLEFT, 5 );
32
33 m_closeButton = new wxButton( this, wxID_CANCEL, _("Close"), wxDefaultPosition, wxDefaultSize, 0 );
34 bButtonSizer->Add( m_closeButton, 0, wxALL, 5 );
35
36
37 bMainSizer->Add( bButtonSizer, 0, wxEXPAND, 0 );
38
39
40 this->SetSizer( bMainSizer );
41 this->Layout();
42
43 this->Centre( wxBOTH );
44
45 // Connect Events
46 m_list->Connect( wxEVT_COMMAND_LIST_ITEM_ACTIVATED, wxListEventHandler( DIALOG_CONSTRAINT_LIST_BASE::onRowActivated ), NULL, this );
47 m_deleteButton->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_CONSTRAINT_LIST_BASE::onDelete ), NULL, this );
48}
49
51{
52 // Disconnect Events
53 m_list->Disconnect( wxEVT_COMMAND_LIST_ITEM_ACTIVATED, wxListEventHandler( DIALOG_CONSTRAINT_LIST_BASE::onRowActivated ), NULL, this );
54 m_deleteButton->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( DIALOG_CONSTRAINT_LIST_BASE::onDelete ), NULL, this );
55
56}
virtual void onDelete(wxCommandEvent &event)
DIALOG_CONSTRAINT_LIST_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Geometric Constraints"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(560, 360), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
virtual void onRowActivated(wxListEvent &event)
DIALOG_SHIM(wxWindow *aParent, wxWindowID id, const wxString &title, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxDEFAULT_FRAME_STYLE|wxRESIZE_BORDER, const wxString &name=wxDialogNameStr)
#define _(s)