|
KiCad PCB EDA Suite
|
#include <dialog_template_selector.h>
Public Member Functions | |
| TEMPLATE_WIDGET (wxWindow *aParent, DIALOG_TEMPLATE_SELECTOR *aDialog) | |
| void | SetTemplate (PROJECT_TEMPLATE *aTemplate) |
| Set the project template for this widget, which will determine the icon and title associated with this project template widget. | |
| PROJECT_TEMPLATE * | GetTemplate () |
| void | Select () |
| void | Unselect () |
| void | SetIsUserTemplate (bool aIsUser) |
| Set whether this template widget represents a user template. | |
| bool | IsUserTemplate () const |
Protected Member Functions | |
| void | OnKillFocus (wxFocusEvent &event) |
| void | OnMouse (wxMouseEvent &event) |
| void | OnDoubleClick (wxMouseEvent &event) |
| void | onRightClick (wxMouseEvent &event) |
| void | onEditTemplate (wxCommandEvent &event) |
| void | onDuplicateTemplate (wxCommandEvent &event) |
Protected Attributes | |
| DIALOG_TEMPLATE_SELECTOR * | m_dialog |
| wxWindow * | m_parent |
| wxPanel * | m_panel |
| bool | m_selected |
| bool | m_isUserTemplate |
| PROJECT_TEMPLATE * | m_currTemplate |
| wxStaticBitmap * | m_bitmapIcon |
| wxStaticText * | m_staticTitle |
Private Member Functions | |
| bool | IsSelected () |
Definition at line 38 of file dialog_template_selector.h.
| TEMPLATE_WIDGET::TEMPLATE_WIDGET | ( | wxWindow * | aParent, |
| DIALOG_TEMPLATE_SELECTOR * | aDialog ) |
Definition at line 113 of file dialog_template_selector.cpp.
References TEMPLATE_WIDGET_BASE::m_bitmapIcon, m_currTemplate, m_dialog, m_isUserTemplate, m_parent, TEMPLATE_WIDGET_BASE::m_staticTitle, OnDoubleClick(), OnMouse(), onRightClick(), TEMPLATE_WIDGET_BASE::TEMPLATE_WIDGET_BASE(), and Unselect().
|
inline |
Definition at line 49 of file dialog_template_selector.h.
References m_currTemplate.
Referenced by DIALOG_TEMPLATE_SELECTOR::SetWidget(), and TEMPLATE_SELECTION_PANEL::SortAlphabetically().
|
inlineprivate |
Definition at line 70 of file dialog_template_selector.h.
References m_selected.
|
inline |
Definition at line 59 of file dialog_template_selector.h.
References m_isUserTemplate.
|
protected |
Definition at line 211 of file dialog_template_selector.cpp.
References m_dialog, and Select().
Referenced by TEMPLATE_WIDGET().
|
protected |
Definition at line 286 of file dialog_template_selector.cpp.
References _, DisplayErrorMessage(), DisplayInfoMessage(), PROJECT_TREE_TRAVERSER::GetErrors(), m_currTemplate, and m_dialog.
Referenced by onRightClick().
|
protected |
Definition at line 246 of file dialog_template_selector.cpp.
References _, DisplayErrorMessage(), m_currTemplate, and m_dialog.
Referenced by onRightClick().
|
protected |
|
protected |
Definition at line 203 of file dialog_template_selector.cpp.
References Select().
Referenced by TEMPLATE_WIDGET().
|
protected |
Definition at line 220 of file dialog_template_selector.cpp.
References _, m_currTemplate, m_isUserTemplate, onDuplicateTemplate(), and onEditTemplate().
Referenced by TEMPLATE_WIDGET().
| void TEMPLATE_WIDGET::Select | ( | ) |
Definition at line 152 of file dialog_template_selector.cpp.
References m_dialog, m_selected, TEMPLATE_WIDGET_BASE::m_staticTitle, and Refresh().
Referenced by OnDoubleClick(), and OnMouse().
|
inline |
Set whether this template widget represents a user template.
| aIsUser | true if this is a user template (can be edited/duplicated) |
Definition at line 58 of file dialog_template_selector.h.
References m_isUserTemplate.
Referenced by DIALOG_TEMPLATE_SELECTOR::AddTemplate().
| void TEMPLATE_WIDGET::SetTemplate | ( | PROJECT_TEMPLATE * | aTemplate | ) |
Set the project template for this widget, which will determine the icon and title associated with this project template widget.
Definition at line 171 of file dialog_template_selector.cpp.
References PROJECT_TEMPLATE::GetIcon(), KIUI::GetInfoFont(), PROJECT_TEMPLATE::GetTitle(), icon_kicad, image, KiBitmap(), TEMPLATE_WIDGET_BASE::m_bitmapIcon, m_currTemplate, TEMPLATE_WIDGET_BASE::m_staticTitle, and scale.
Referenced by DIALOG_TEMPLATE_SELECTOR::AddTemplate().
| void TEMPLATE_WIDGET::Unselect | ( | ) |
Definition at line 162 of file dialog_template_selector.cpp.
References m_selected, TEMPLATE_WIDGET_BASE::m_staticTitle, and Refresh().
Referenced by TEMPLATE_WIDGET().
|
protectedinherited |
Definition at line 98 of file dialog_template_selector_base.h.
Referenced by TEMPLATE_WIDGET::SetTemplate(), TEMPLATE_WIDGET::TEMPLATE_WIDGET(), and TEMPLATE_WIDGET_BASE().
|
protected |
Definition at line 79 of file dialog_template_selector.h.
Referenced by GetTemplate(), onDuplicateTemplate(), onEditTemplate(), onRightClick(), SetTemplate(), and TEMPLATE_WIDGET().
|
protected |
Definition at line 73 of file dialog_template_selector.h.
Referenced by OnDoubleClick(), onDuplicateTemplate(), onEditTemplate(), Select(), and TEMPLATE_WIDGET().
|
protected |
Definition at line 77 of file dialog_template_selector.h.
Referenced by IsUserTemplate(), onRightClick(), SetIsUserTemplate(), and TEMPLATE_WIDGET().
|
protected |
Definition at line 75 of file dialog_template_selector.h.
|
protected |
Definition at line 74 of file dialog_template_selector.h.
Referenced by TEMPLATE_WIDGET().
|
protected |
Definition at line 76 of file dialog_template_selector.h.
Referenced by IsSelected(), Select(), and Unselect().
|
protectedinherited |
Definition at line 99 of file dialog_template_selector_base.h.
Referenced by TEMPLATE_WIDGET::Select(), TEMPLATE_WIDGET::SetTemplate(), TEMPLATE_WIDGET::TEMPLATE_WIDGET(), TEMPLATE_WIDGET_BASE(), and TEMPLATE_WIDGET::Unselect().