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/button.h>
26#include <wx/bitmap.h>
27#include <wx/image.h>
28#include <wx/icon.h>
29#include <wx/splitter.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 wxButton* m_browseButton;
53 wxStaticText* m_browsedPathLabel;
54 wxScrolledWindow* m_scrolledTemplates;
58 wxBoxSizer* m_sizerButtons;
59 wxButton* m_btnBack;
60 wxStdDialogButtonSizer* m_sdbSizer;
61 wxButton* m_sdbSizerOK;
63
64 // Virtual event handlers, override them in your derived class
65 virtual void OnSearchCtrlCancel( wxCommandEvent& event ) { event.Skip(); }
66 virtual void OnSearchCtrl( wxCommandEvent& event ) { event.Skip(); }
67 virtual void OnFilterChanged( wxCommandEvent& event ) { event.Skip(); }
68 virtual void onBrowseClicked( wxCommandEvent& event ) { event.Skip(); }
69 virtual void onClearBrowsedClicked( wxCommandEvent& event ) { event.Skip(); }
70 virtual void OnBackClicked( wxCommandEvent& event ) { event.Skip(); }
71
72
73 public:
74
75 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 );
76
78
79 void m_splitterOnIdle( wxIdleEvent& )
80 {
81 m_splitter->SetSashPosition( 300 );
82 m_splitter->Disconnect( wxEVT_IDLE, wxIdleEventHandler( DIALOG_TEMPLATE_SELECTOR_BASE::m_splitterOnIdle ), NULL, this );
83 }
84
85};
86
90class TEMPLATE_SELECTION_PANEL_BASE : public wxPanel
91{
92 private:
93
94 protected:
95
96 public:
97 wxBoxSizer* m_SizerBase;
98 wxScrolledWindow* m_scrolledWindow;
99 wxBoxSizer* m_SizerChoice;
100
101 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 );
102
104
105};
106
110class TEMPLATE_WIDGET_BASE : public wxPanel
111{
112 private:
113
114 protected:
115 wxStaticBitmap* m_bitmapIcon;
116 wxStaticText* m_titleLabel;
117 wxStaticText* m_descLabel;
118
119 public:
120
121 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 );
122
124
125};
126
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 onBrowseClicked(wxCommandEvent &event)
virtual void onClearBrowsedClicked(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)