KiCad PCB EDA Suite
Loading...
Searching...
No Matches
dialog_template_selector_base.h
Go to the documentation of this file.
1
2// C++ code generated with wxFormBuilder (version 4.2.1-0-g80c4cb6)
3// http://www.wxformbuilder.org/
4//
5// PLEASE DO *NOT* EDIT THIS FILE!
7
8#pragma once
9
10#include <wx/artprov.h>
11#include <wx/xrc/xmlres.h>
12#include <wx/intl.h>
13#include "dialog_shim.h"
14#include <wx/string.h>
15#include <wx/stattext.h>
16#include <wx/gdicmn.h>
17#include <wx/font.h>
18#include <wx/colour.h>
19#include <wx/settings.h>
20#include <wx/sizer.h>
21#include <wx/scrolwin.h>
22#include <wx/panel.h>
23#include <wx/srchctrl.h>
24#include <wx/choice.h>
25#include <wx/splitter.h>
26#include <wx/button.h>
27#include <wx/bitmap.h>
28#include <wx/image.h>
29#include <wx/icon.h>
30#include <wx/dialog.h>
31#include <wx/statbmp.h>
32
34
39{
40 private:
41
42 protected:
43 wxPanel* m_panelMRU;
45 wxScrolledWindow* m_scrolledMRU;
46 wxBoxSizer* m_sizerMRU;
47 wxSplitterWindow* m_splitter;
49 wxSearchCtrl* m_searchCtrl;
50 wxChoice* m_filterChoice;
51 wxScrolledWindow* m_scrolledTemplates;
55 wxBoxSizer* m_sizerButtons;
56 wxButton* m_btnBack;
57 wxStdDialogButtonSizer* m_sdbSizer;
58 wxButton* m_sdbSizerOK;
60
61 // Virtual event handlers, override them in your derived class
62 virtual void OnSearchCtrlCancel( wxCommandEvent& event ) { event.Skip(); }
63 virtual void OnSearchCtrl( wxCommandEvent& event ) { event.Skip(); }
64 virtual void OnFilterChanged( wxCommandEvent& event ) { event.Skip(); }
65 virtual void OnBackClicked( wxCommandEvent& event ) { event.Skip(); }
66
67
68 public:
69
70 DIALOG_TEMPLATE_SELECTOR_BASE( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = _("Project Template Selector"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( 900,600 ), long style = wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER );
71
73
74 void m_splitterOnIdle( wxIdleEvent& )
75 {
76 m_splitter->SetSashPosition( 300 );
77 m_splitter->Disconnect( wxEVT_IDLE, wxIdleEventHandler( DIALOG_TEMPLATE_SELECTOR_BASE::m_splitterOnIdle ), NULL, this );
78 }
79
80};
81
85class TEMPLATE_SELECTION_PANEL_BASE : public wxPanel
86{
87 private:
88
89 protected:
90
91 public:
92 wxBoxSizer* m_SizerBase;
93 wxScrolledWindow* m_scrolledWindow;
94 wxBoxSizer* m_SizerChoice;
95
96 TEMPLATE_SELECTION_PANEL_BASE( wxWindow* parent, wxWindowID id = wxID_ANY, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( -1,-1 ), long style = wxTAB_TRAVERSAL|wxBORDER_NONE, const wxString& name = wxEmptyString );
97
99
100};
101
105class TEMPLATE_WIDGET_BASE : public wxPanel
106{
107 private:
108
109 protected:
110 wxStaticBitmap* m_bitmapIcon;
111 wxStaticText* m_titleLabel;
112 wxStaticText* m_descLabel;
113
114 public:
115
116 TEMPLATE_WIDGET_BASE( wxWindow* parent, wxWindowID id = wxID_ANY, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( -1,-1 ), long style = wxBORDER_THEME|wxTAB_TRAVERSAL, const wxString& name = wxEmptyString );
117
119
120};
121
const char * name
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)
virtual void OnSearchCtrlCancel(wxCommandEvent &event)
DIALOG_TEMPLATE_SELECTOR_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Project Template Selector"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(900, 600), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
virtual void OnSearchCtrl(wxCommandEvent &event)
virtual void OnFilterChanged(wxCommandEvent &event)
virtual void OnBackClicked(wxCommandEvent &event)
TEMPLATE_SELECTION_PANEL_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxTAB_TRAVERSAL|wxBORDER_NONE, const wxString &name=wxEmptyString)
TEMPLATE_WIDGET_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxBORDER_THEME|wxTAB_TRAVERSAL, const wxString &name=wxEmptyString)
#define _(s)