KiCad PCB EDA Suite
Loading...
Searching...
No Matches
panel_package_base.cpp
Go to the documentation of this file.
1
2// C++ code generated with wxFormBuilder (version 3.10.1-0-g8feb16b)
3// http://www.wxformbuilder.org/
4//
5// PLEASE DO *NOT* EDIT THIS FILE!
7
9
11
12PANEL_PACKAGE_BASE::PANEL_PACKAGE_BASE( wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style, const wxString& name ) : wxPanel( parent, id, pos, size, style, name )
13{
14 this->SetMinSize( wxSize( -1,84 ) );
15
16 wxBoxSizer* bSizer1;
17 bSizer1 = new wxBoxSizer( wxHORIZONTAL );
18
19 wxBoxSizer* bSizer5;
20 bSizer5 = new wxBoxSizer( wxVERTICAL );
21
22 bSizer5->SetMinSize( wxSize( 70,-1 ) );
23
24 bSizer5->Add( 0, 0, 1, wxEXPAND, 5 );
25
26 wxBoxSizer* bSizer6;
27 bSizer6 = new wxBoxSizer( wxHORIZONTAL );
28
29
30 bSizer6->Add( 0, 0, 1, wxEXPAND, 5 );
31
32 m_bitmap = new wxStaticBitmap( this, wxID_ANY, wxNullBitmap, wxDefaultPosition, wxDefaultSize, 0 );
33 bSizer6->Add( m_bitmap, 0, wxALL, 5 );
34
35
36 bSizer6->Add( 0, 0, 1, wxEXPAND, 5 );
37
38
39 bSizer5->Add( bSizer6, 1, wxEXPAND, 5 );
40
41
42 bSizer5->Add( 0, 0, 1, wxEXPAND, 5 );
43
44
45 bSizer1->Add( bSizer5, 0, wxEXPAND, 5 );
46
47 wxBoxSizer* bSizer2;
48 bSizer2 = new wxBoxSizer( wxVERTICAL );
49
50 m_name = new wxStaticText( this, wxID_ANY, _("Name"), wxDefaultPosition, wxDefaultSize, wxST_ELLIPSIZE_END );
51 m_name->Wrap( -1 );
52 bSizer2->Add( m_name, 0, wxEXPAND|wxLEFT|wxRIGHT|wxTOP, 5 );
53
54 wxBoxSizer* bSizer3;
55 bSizer3 = new wxBoxSizer( wxHORIZONTAL );
56
57 m_descSizer = new wxBoxSizer( wxVERTICAL );
58
59 m_desc = new wxStaticText( this, wxID_ANY, _("Description"), wxDefaultPosition, wxDefaultSize, wxST_NO_AUTORESIZE );
60 m_desc->Wrap( -1 );
61 m_descSizer->Add( m_desc, 1, wxEXPAND|wxTOP|wxBOTTOM|wxLEFT, 5 );
62
63
64 bSizer3->Add( m_descSizer, 1, wxEXPAND, 5 );
65
66 wxBoxSizer* bSizer4;
67 bSizer4 = new wxBoxSizer( wxVERTICAL );
68
69
70 bSizer4->Add( 0, 0, 1, wxEXPAND, 5 );
71
72 m_button = new wxButton( this, wxID_ANY, _("Install"), wxDefaultPosition, wxDefaultSize, 0 );
73 bSizer4->Add( m_button, 0, wxTOP|wxBOTTOM|wxRIGHT, 5 );
74
75 m_splitButton = new SPLIT_BUTTON( this, wxID_ANY, _( "Update" ) );
76 bSizer4->Add( m_splitButton, 0, wxBOTTOM|wxRIGHT|wxTOP, 5 );
77
78
79 bSizer3->Add( bSizer4, 0, wxEXPAND, 5 );
80
81
82 bSizer2->Add( bSizer3, 1, wxEXPAND, 5 );
83
84
85 bSizer1->Add( bSizer2, 1, wxEXPAND, 5 );
86
87
88 this->SetSizer( bSizer1 );
89 this->Layout();
90 bSizer1->Fit( this );
91
92 // Connect Events
93 this->Connect( wxEVT_LEFT_DOWN, wxMouseEventHandler( PANEL_PACKAGE_BASE::OnClick ) );
94 this->Connect( wxEVT_PAINT, wxPaintEventHandler( PANEL_PACKAGE_BASE::OnPaint ) );
95 this->Connect( wxEVT_SIZE, wxSizeEventHandler( PANEL_PACKAGE_BASE::OnSize ) );
96 m_button->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_PACKAGE_BASE::OnButtonClicked ), NULL, this );
97}
98
100{
101 // Disconnect Events
102 this->Disconnect( wxEVT_LEFT_DOWN, wxMouseEventHandler( PANEL_PACKAGE_BASE::OnClick ) );
103 this->Disconnect( wxEVT_PAINT, wxPaintEventHandler( PANEL_PACKAGE_BASE::OnPaint ) );
104 this->Disconnect( wxEVT_SIZE, wxSizeEventHandler( PANEL_PACKAGE_BASE::OnSize ) );
105 m_button->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( PANEL_PACKAGE_BASE::OnButtonClicked ), NULL, this );
106
107}
const char * name
Definition: DXF_plotter.cpp:57
wxStaticText * m_name
virtual void OnPaint(wxPaintEvent &event)
wxStaticBitmap * m_bitmap
PANEL_PACKAGE_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxBORDER_NONE|wxTAB_TRAVERSAL, const wxString &name=wxEmptyString)
virtual void OnSize(wxSizeEvent &event)
wxStaticText * m_desc
SPLIT_BUTTON * m_splitButton
virtual void OnClick(wxMouseEvent &event)
wxBoxSizer * m_descSizer
virtual void OnButtonClicked(wxCommandEvent &event)
#define _(s)