KiCad PCB EDA Suite
|
Manage a list of layers with the notion of a "current" layer, and layer specific visibility control. More...
#include <layer_widget.h>
Classes | |
struct | ROW |
Provide all the data needed to add a row to a LAYER_WIDGET. More... | |
Public Member Functions | |
LAYER_WIDGET (wxWindow *aParent, wxWindow *aFocusOwner, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxTAB_TRAVERSAL) | |
virtual | ~LAYER_WIDGET () |
void | SetSmallestLayerString (const wxString &aString) |
Set the string that is used for determining the smallest string displayed in the layer's tab. | |
wxSize | GetBestSize () const |
Return the preferred minimum size, taking into consideration the dynamic content. | |
int | GetLayerRowCount () const |
Return the number of rows in the layer tab. | |
int | GetRenderRowCount () const |
Return the number of rows in the render tab. | |
void | AppendLayerRow (const ROW &aRow) |
Append a new row in the layer portion of the widget. | |
void | AppendLayerRows (const ROW *aRowsArray, int aRowCount) |
Append new rows in the layer portion of the widget. | |
void | ClearLayerRows () |
Empty out the layer rows. | |
void | AppendRenderRow (const ROW &aRow) |
Append a new row in the render portion of the widget. | |
void | AppendRenderRows (const ROW *aRowsArray, int aRowCount) |
Append new rows in the render portion of the widget. | |
void | ClearRenderRows () |
Empty out the render rows. | |
void | SelectLayerRow (int aRow) |
Change the row selection in the layer list to the given row. | |
void | SelectLayer (int aLayer) |
Change the row selection in the layer list to aLayer provided. | |
int | GetSelectedLayer () |
Return the selected layer or -1 if none. | |
void | SetLayerVisible (int aLayer, bool isVisible) |
Set aLayer visible or not. | |
bool | IsLayerVisible (int aLayer) |
Return the visible state of the layer ROW associated with aLayer id. | |
void | SetLayerColor (int aLayer, const COLOR4D &aColor) |
Change the color of aLayer. | |
COLOR4D | GetLayerColor (int aLayer) const |
Return the color of the layer ROW associated with aLayer id. | |
COLOR4D | GetRenderColor (int aRow) const |
Return the color of the Render ROW in position aRow. | |
void | SetRenderState (int aId, bool isSet) |
Set the state of the checkbox associated with aId within the Render tab group of the widget. | |
bool | GetRenderState (int aId) |
Return the state of the checkbox associated with aId. | |
void | UpdateLayouts () |
void | UpdateLayerIcons () |
Update all layer manager icons (layers only). | |
virtual void | OnLayerColorChange (int aLayer, const COLOR4D &aColor)=0 |
Notify client code about a layer color change. | |
virtual bool | OnLayerSelect (int aLayer)=0 |
Notify client code whenever the user selects a different layer. | |
virtual void | OnLayerVisible (int aLayer, bool isVisible, bool isFinal=true)=0 |
Notify client code about a layer visibility change. | |
virtual void | OnLayerRightClick (wxMenu &aMenu)=0 |
Notify client code about a layer being right-clicked. | |
virtual void | OnRenderColorChange (int aId, const COLOR4D &aColor)=0 |
Notify client code whenever the user changes a rendering color. | |
virtual void | OnRenderEnable (int aId, bool isEnabled)=0 |
Notify client code whenever the user changes an rendering enable in one of the rendering checkboxes. | |
Static Public Attributes | |
static const wxEventType | EVT_LAYER_COLOR_CHANGE = wxNewEventType() |
Protected Types | |
enum | POPUP_ID { ID_CHANGE_LAYER_COLOR = wxID_HIGHEST , ID_CHANGE_RENDER_COLOR , ID_LAST_VALUE } |
Protected Member Functions | |
virtual bool | useAlternateBitmap (int aRow) |
virtual COLOR4D | getBackgroundLayerColor () |
Subclasses can override this to provide accurate representation of transparent color swatches. | |
void | OnLeftDownLayers (wxMouseEvent &event) |
void | OnRightDownLayer (wxMouseEvent &event, COLOR_SWATCH *aColorSwatch, const wxString &aLayerName) |
Called when user right-clicks a layer. | |
void | OnLayerSwatchChanged (wxCommandEvent &aEvent) |
Called when a user changes a swatch color. | |
void | OnLayerCheckBox (wxCommandEvent &event) |
Handle the "is layer visible" checkbox and propagates the event to the client's notification function. | |
void | OnRightDownRender (wxMouseEvent &aEvent, COLOR_SWATCH *aColorSwatch, const wxString &aRenderName) |
Notify when user right-clicks a render option. | |
void | OnRenderSwatchChanged (wxCommandEvent &aEvent) |
Called when user has changed the swatch color of a render entry. | |
void | OnRenderCheckBox (wxCommandEvent &event) |
void | OnTabChange (wxNotebookEvent &event) |
wxWindow * | getLayerComp (int aRow, int aColumn) const |
Return the component within the m_LayersFlexGridSizer at aRow and aCol or NULL if these parameters are out of range. | |
wxWindow * | getRenderComp (int aRow, int aColumn) const |
int | findLayerRow (int aLayer) const |
Return the row index that aLayer resides in, or -1 if not found. | |
int | findRenderRow (int aId) const |
void | insertLayerRow (int aRow, const ROW &aSpec) |
Append or insert a new row in the layer portion of the widget. | |
void | insertRenderRow (int aRow, const ROW &aSpec) |
void | setLayerCheckbox (int aLayer, bool isVisible) |
void | updateLayerRow (int aRow, const wxString &aName) |
void | passOnFocus () |
Give away the keyboard focus up to the main parent window. | |
Static Protected Member Functions | |
static int | encodeId (int aColumn, int aId) |
Allow saving a layer index within a control as its wxControl id. | |
static int | getDecodedId (int aControlId) |
Decode aControlId to original un-encoded value. | |
Protected Attributes | |
wxNotebook * | m_notebook |
wxPanel * | m_LayerPanel |
wxScrolledWindow * | m_LayerScrolledWindow |
wxFlexGridSizer * | m_LayersFlexGridSizer |
wxPanel * | m_RenderingPanel |
wxScrolledWindow * | m_RenderScrolledWindow |
wxFlexGridSizer * | m_RenderFlexGridSizer |
wxWindow * | m_FocusOwner |
int | m_CurrentRow |
selected row of layer list | |
int | m_PointSize |
ROW_ICON_PROVIDER * | m_IconProvider |
wxString | m_smallestLayerString |
Manage a list of layers with the notion of a "current" layer, and layer specific visibility control.
You must derive from it to use it so you can implement the abstract functions which receive the events. Each layer is given its own color, and that color can be changed within the UI provided here. This widget knows nothing of the client code, meaning it has no knowledge of a BOARD or anything. To use it you must derive from this class and implement the abstract functions:
void OnLayerColorChange( int aLayer, int aColor );
bool OnLayerSelect( int aLayer );
void OnLayerVisible( int aLayer, bool isVisible );
void OnRenderColorChange( int id, int aColor );
void OnRenderEnable( int id, bool isEnabled );
Definition at line 77 of file layer_widget.h.
|
protected |
Enumerator | |
---|---|
ID_CHANGE_LAYER_COLOR | |
ID_CHANGE_RENDER_COLOR | |
ID_LAST_VALUE |
Definition at line 458 of file layer_widget.h.
LAYER_WIDGET::LAYER_WIDGET | ( | wxWindow * | aParent, |
wxWindow * | aFocusOwner, | ||
wxWindowID | id = wxID_ANY , |
||
const wxPoint & | pos = wxDefaultPosition , |
||
const wxSize & | size = wxDefaultSize , |
||
long | style = wxTAB_TRAVERSAL |
||
) |
aParent | is the parent window. |
aFocusOwner | is the window that should be sent the focus after. |
id | is the wxWindow id ( default = wxID_ANY). |
pos | is the window position. |
size | is the window size. |
style | is the window style. |
Definition at line 488 of file layer_widget.cpp.
References _, KIUI::c_IndicatorSizeDIP, LYR_COLUMN_COUNT, m_CurrentRow, m_FocusOwner, m_IconProvider, m_LayerPanel, m_LayerScrolledWindow, m_LayersFlexGridSizer, m_notebook, m_PointSize, m_RenderFlexGridSizer, m_RenderingPanel, m_RenderScrolledWindow, OnTabChange(), and RND_COLUMN_COUNT.
|
virtual |
Definition at line 576 of file layer_widget.cpp.
References m_IconProvider.
void LAYER_WIDGET::AppendLayerRow | ( | const ROW & | aRow | ) |
Append a new row in the layer portion of the widget.
The user must ensure that ROW::id is unique for all existing rows on Windows.
Definition at line 638 of file layer_widget.cpp.
References GetLayerRowCount(), and insertLayerRow().
Referenced by AppendLayerRows(), and GERBER_LAYER_WIDGET::ReFill().
|
inline |
Append new rows in the layer portion of the widget.
The user must ensure that ROW::id is unique for all existing rows on Windows.
Definition at line 175 of file layer_widget.h.
References AppendLayerRow(), and UpdateLayouts().
void LAYER_WIDGET::AppendRenderRow | ( | const ROW & | aRow | ) |
Append a new row in the render portion of the widget.
The user must ensure that ROW::id is unique for all existing rows on Windows.
Definition at line 651 of file layer_widget.cpp.
References GetRenderRowCount(), and insertRenderRow().
Referenced by AppendRenderRows().
|
inline |
Append new rows in the render portion of the widget.
The user must ensure that ROW::id is unique for all existing rows on Windows.
Definition at line 200 of file layer_widget.h.
References AppendRenderRow(), and UpdateLayouts().
Referenced by GERBER_LAYER_WIDGET::ReFillRender().
void LAYER_WIDGET::ClearLayerRows | ( | ) |
Empty out the layer rows.
Definition at line 645 of file layer_widget.cpp.
References m_LayersFlexGridSizer.
Referenced by GERBER_LAYER_WIDGET::ReFill().
void LAYER_WIDGET::ClearRenderRows | ( | ) |
Empty out the render rows.
Definition at line 658 of file layer_widget.cpp.
References m_RenderFlexGridSizer.
Referenced by GERBER_LAYER_WIDGET::ReFillRender().
|
staticprotected |
Allow saving a layer index within a control as its wxControl id.
To do so in a way that all child wxControl ids within a wxWindow are unique, since this is required by Windows.
Definition at line 63 of file layer_widget.cpp.
References LYR_COLUMN_COUNT.
Referenced by insertLayerRow(), and insertRenderRow().
|
protected |
Return the row index that aLayer resides in, or -1 if not found.
Definition at line 272 of file layer_widget.cpp.
References getDecodedId(), getLayerComp(), and GetLayerRowCount().
Referenced by GERBER_LAYER_WIDGET::CollectCurrentColorSettings(), GetLayerColor(), IsLayerVisible(), OnLeftDownLayers(), GERBER_LAYER_WIDGET::ReFill(), SelectLayer(), setLayerCheckbox(), and SetLayerColor().
|
protected |
Definition at line 301 of file layer_widget.cpp.
References getDecodedId(), getRenderComp(), and GetRenderRowCount().
Referenced by GERBER_LAYER_WIDGET::CollectCurrentColorSettings(), GetRenderState(), and SetRenderState().
|
inlineprotectedvirtual |
Subclasses can override this to provide accurate representation of transparent color swatches.
Definition at line 369 of file layer_widget.h.
Referenced by insertLayerRow(), and insertRenderRow().
wxSize LAYER_WIDGET::GetBestSize | ( | ) | const |
Return the preferred minimum size, taking into consideration the dynamic content.
Nothing in wxWidgets was reliable enough so this overrides one of their functions.
Definition at line 582 of file layer_widget.cpp.
References LYR_COLUMN_COUNT, m_LayerPanel, m_LayersFlexGridSizer, m_RenderFlexGridSizer, m_RenderingPanel, and RND_COLUMN_COUNT.
Referenced by GERBVIEW_FRAME::GERBVIEW_FRAME(), and GERBVIEW_FRAME::ReFillLayerWidget().
|
staticprotected |
Decode aControlId to original un-encoded value.
This holds if encodedId was called with a layer (this box is used for other things than layers, too).
Definition at line 70 of file layer_widget.cpp.
References LYR_COLUMN_COUNT.
Referenced by findLayerRow(), findRenderRow(), GetSelectedLayer(), OnLayerCheckBox(), OnLayerSwatchChanged(), OnLeftDownLayers(), GERBER_LAYER_WIDGET::onPopupSelection(), OnRenderCheckBox(), and OnRenderSwatchChanged().
COLOR4D LAYER_WIDGET::GetLayerColor | ( | int | aLayer | ) | const |
Return the color of the layer ROW associated with aLayer id.
Definition at line 753 of file layer_widget.cpp.
References findLayerRow(), and getLayerComp().
Referenced by GERBER_LAYER_WIDGET::CollectCurrentColorSettings().
|
protected |
Return the component within the m_LayersFlexGridSizer at aRow and aCol or NULL if these parameters are out of range.
aRow | is the row index |
aColumn | is the column |
Definition at line 261 of file layer_widget.cpp.
References LYR_COLUMN_COUNT, and m_LayersFlexGridSizer.
Referenced by findLayerRow(), GetLayerColor(), GetSelectedLayer(), IsLayerVisible(), OnLeftDownLayers(), GERBER_LAYER_WIDGET::onPopupSelection(), OnRenderSwatchChanged(), SelectLayerRow(), setLayerCheckbox(), SetLayerColor(), UpdateLayerIcons(), and updateLayerRow().
int LAYER_WIDGET::GetLayerRowCount | ( | ) | const |
Return the number of rows in the layer tab.
Definition at line 624 of file layer_widget.cpp.
References LYR_COLUMN_COUNT, and m_LayersFlexGridSizer.
Referenced by AppendLayerRow(), findLayerRow(), OnLeftDownLayers(), GERBER_LAYER_WIDGET::onPopupSelection(), OnRenderSwatchChanged(), and UpdateLayerIcons().
COLOR4D LAYER_WIDGET::GetRenderColor | ( | int | aRow | ) | const |
Return the color of the Render ROW in position aRow.
Definition at line 770 of file layer_widget.cpp.
References getRenderComp().
Referenced by GERBER_LAYER_WIDGET::CollectCurrentColorSettings().
|
protected |
Definition at line 290 of file layer_widget.cpp.
References m_RenderFlexGridSizer, and RND_COLUMN_COUNT.
Referenced by findRenderRow(), GetRenderColor(), GetRenderState(), OnRenderSwatchChanged(), and SetRenderState().
int LAYER_WIDGET::GetRenderRowCount | ( | ) | const |
Return the number of rows in the render tab.
Definition at line 631 of file layer_widget.cpp.
References m_RenderFlexGridSizer, and RND_COLUMN_COUNT.
Referenced by AppendRenderRow(), findRenderRow(), and OnRenderSwatchChanged().
bool LAYER_WIDGET::GetRenderState | ( | int | aId | ) |
Return the state of the checkbox associated with aId.
Definition at line 801 of file layer_widget.cpp.
References findRenderRow(), and getRenderComp().
int LAYER_WIDGET::GetSelectedLayer | ( | ) |
Return the selected layer or -1 if none.
Definition at line 692 of file layer_widget.cpp.
References getDecodedId(), getLayerComp(), m_CurrentRow, and UNDEFINED_LAYER.
|
protected |
Append or insert a new row in the layer portion of the widget.
Definition at line 319 of file layer_widget.cpp.
References _, LAYER_WIDGET::ROW::color, COLUMN_ALPHA_INDICATOR, COLUMN_COLOR_LYR_CB, COLUMN_COLOR_LYRNAME, COLUMN_COLORBM, COLUMN_ICON_ACTIVE, LAYER_WIDGET::ROW::defaultColor, encodeId(), getBackgroundLayerColor(), LAYER_WIDGET::ROW::id, LYR_COLUMN_COUNT, m_IconProvider, m_LayerScrolledWindow, m_LayersFlexGridSizer, m_PointSize, m_smallestLayerString, ROW_ICON_PROVIDER::OFF, OnLayerCheckBox(), OnLayerSwatchChanged(), OnLeftDownLayers(), OnRightDownLayer(), LAYER_WIDGET::ROW::rowName, WX_ELLIPSIZED_STATIC_TEXT::SetMinimumStringLength(), shrinkFont(), LAYER_WIDGET::ROW::state, SWATCH_SMALL, and LAYER_WIDGET::ROW::tooltip.
Referenced by AppendLayerRow().
|
protected |
Definition at line 414 of file layer_widget.cpp.
References _, LAYER_WIDGET::ROW::changeable, LAYER_WIDGET::ROW::color, LAYER_WIDGET::ROW::defaultColor, encodeId(), getBackgroundLayerColor(), LAYER_WIDGET::ROW::id, m_PointSize, m_RenderFlexGridSizer, m_RenderScrolledWindow, OnRenderCheckBox(), OnRenderSwatchChanged(), OnRightDownRender(), RND_COLUMN_COUNT, LAYER_WIDGET::ROW::rowName, shrinkFont(), LAYER_WIDGET::ROW::spacer, LAYER_WIDGET::ROW::state, SWATCH_SMALL, and LAYER_WIDGET::ROW::tooltip.
Referenced by AppendRenderRow().
bool LAYER_WIDGET::IsLayerVisible | ( | int | aLayer | ) |
Return the visible state of the layer ROW associated with aLayer id.
Definition at line 723 of file layer_widget.cpp.
References COLUMN_COLOR_LYR_CB, findLayerRow(), and getLayerComp().
Referenced by GERBVIEW_FRAME::IsLayerVisible().
|
protected |
Handle the "is layer visible" checkbox and propagates the event to the client's notification function.
Definition at line 171 of file layer_widget.cpp.
References getDecodedId(), OnLayerVisible(), and passOnFocus().
Referenced by insertLayerRow().
|
pure virtual |
Notify client code about a layer color change.
Derived objects will handle this accordingly.
aLayer | is the board layer to change. |
aColor | is the new color. |
Implemented in GERBER_LAYER_WIDGET.
Referenced by OnLayerSwatchChanged().
|
pure virtual |
Notify client code about a layer being right-clicked.
aMenu | is the right-click menu containing layer-scoped options. |
Implemented in GERBER_LAYER_WIDGET.
Referenced by OnRightDownLayer().
|
pure virtual |
Notify client code whenever the user selects a different layer.
Derived classes will handle this accordingly, and can deny the change by returning false.
aLayer | is the board layer to select. |
Implemented in GERBER_LAYER_WIDGET.
Referenced by OnLeftDownLayers().
|
protected |
Called when a user changes a swatch color.
Definition at line 154 of file layer_widget.cpp.
References EVT_LAYER_COLOR_CHANGE, getDecodedId(), COLOR_SWATCH::GetSwatchColor(), OnLayerColorChange(), and passOnFocus().
Referenced by insertLayerRow().
|
pure virtual |
Notify client code about a layer visibility change.
aLayer | is the board layer to select. |
isVisible | is the new visible state. |
isFinal | is true when this is the last of potentially several such calls, and can be used to decide when to update the screen only one time instead of several times in the midst of a multiple layer change. |
Implemented in GERBER_LAYER_WIDGET.
Referenced by OnLayerCheckBox(), and SetLayerVisible().
|
protected |
Definition at line 77 of file layer_widget.cpp.
References findLayerRow(), getDecodedId(), getLayerComp(), GetLayerRowCount(), m_LayerScrolledWindow, m_LayersFlexGridSizer, OnLayerSelect(), passOnFocus(), and SelectLayerRow().
Referenced by insertLayerRow().
|
protected |
Definition at line 241 of file layer_widget.cpp.
References getDecodedId(), OnRenderEnable(), and passOnFocus().
Referenced by insertRenderRow().
|
pure virtual |
Notify client code whenever the user changes a rendering color.
aId | is the same id that was established in a Rendering row via the AddRenderRow() function. |
aColor | is the new color. |
Implemented in GERBER_LAYER_WIDGET.
Referenced by OnRenderSwatchChanged().
|
pure virtual |
Notify client code whenever the user changes an rendering enable in one of the rendering checkboxes.
aId | is the same id that was established in a Rendering row via the AddRenderRow() function. |
isEnabled | is the state of the checkbox, true if checked. |
Implemented in GERBER_LAYER_WIDGET.
Referenced by OnRenderCheckBox().
|
protected |
Called when user has changed the swatch color of a render entry.
Definition at line 204 of file layer_widget.cpp.
References getDecodedId(), getLayerComp(), GetLayerRowCount(), getRenderComp(), GetRenderRowCount(), COLOR_SWATCH::GetSwatchColor(), LAYER_PCB_BACKGROUND, OnRenderColorChange(), passOnFocus(), and COLOR_SWATCH::SetSwatchBackground().
Referenced by insertRenderRow().
|
protected |
Called when user right-clicks a layer.
Definition at line 125 of file layer_widget.cpp.
References _, KIUI::AddMenuItem(), ID_CHANGE_LAYER_COLOR, KiBitmap(), OnLayerRightClick(), and passOnFocus().
Referenced by insertLayerRow().
|
protected |
Notify when user right-clicks a render option.
Definition at line 181 of file layer_widget.cpp.
References _, KIUI::AddMenuItem(), COLOR_SWATCH::GetNewSwatchColor(), ID_CHANGE_RENDER_COLOR, KiBitmap(), and passOnFocus().
Referenced by insertRenderRow().
|
protected |
Definition at line 251 of file layer_widget.cpp.
References passOnFocus().
Referenced by LAYER_WIDGET().
|
protected |
Give away the keyboard focus up to the main parent window.
Definition at line 482 of file layer_widget.cpp.
References m_FocusOwner.
Referenced by OnLayerCheckBox(), OnLayerSwatchChanged(), OnLeftDownLayers(), OnRenderCheckBox(), OnRenderSwatchChanged(), OnRightDownLayer(), GERBER_LAYER_WIDGET::onRightDownLayers(), OnRightDownRender(), OnTabChange(), and SelectLayerRow().
void LAYER_WIDGET::SelectLayer | ( | int | aLayer | ) |
Change the row selection in the layer list to aLayer provided.
Definition at line 685 of file layer_widget.cpp.
References findLayerRow(), and SelectLayerRow().
Referenced by GERBVIEW_FRAME::SetActiveLayer(), and GERBVIEW_FRAME::syncLayerWidget().
void LAYER_WIDGET::SelectLayerRow | ( | int | aRow | ) |
Change the row selection in the layer list to the given row.
Definition at line 664 of file layer_widget.cpp.
References getLayerComp(), m_CurrentRow, ROW_ICON_PROVIDER::OFF, ROW_ICON_PROVIDER::ON, passOnFocus(), and INDICATOR_ICON::SetIndicatorState().
Referenced by OnLeftDownLayers(), and SelectLayer().
|
protected |
Definition at line 710 of file layer_widget.cpp.
References COLUMN_COLOR_LYR_CB, findLayerRow(), and getLayerComp().
Referenced by SetLayerVisible().
void LAYER_WIDGET::SetLayerColor | ( | int | aLayer, |
const COLOR4D & | aColor | ||
) |
Change the color of aLayer.
Definition at line 738 of file layer_widget.cpp.
References findLayerRow(), and getLayerComp().
void LAYER_WIDGET::SetLayerVisible | ( | int | aLayer, |
bool | isVisible | ||
) |
Set aLayer visible or not.
This does not invoke OnLayerVisible().
Definition at line 703 of file layer_widget.cpp.
References OnLayerVisible(), and setLayerCheckbox().
Referenced by GERBER_LAYER_WIDGET::ReFill().
void LAYER_WIDGET::SetRenderState | ( | int | aId, |
bool | isSet | ||
) |
Set the state of the checkbox associated with aId within the Render tab group of the widget.
This does not fire an event, i.e. does not invoke OnRenderEnable().
aId | is the same unique id used when adding a ROW to the Render tab. |
isSet | is the new checkbox state. |
Definition at line 787 of file layer_widget.cpp.
References findRenderRow(), and getRenderComp().
Referenced by GERBVIEW_FRAME::SetElementVisibility(), and GERBVIEW_FRAME::SetGridVisibility().
|
inline |
Set the string that is used for determining the smallest string displayed in the layer's tab.
Definition at line 141 of file layer_widget.h.
References m_smallestLayerString.
Referenced by GERBVIEW_FRAME::GERBVIEW_FRAME().
void LAYER_WIDGET::UpdateLayerIcons | ( | ) |
Update all layer manager icons (layers only).
Useful when loading a file or clearing a layer because they change, and the indicator arrow icon needs to be updated
Definition at line 827 of file layer_widget.cpp.
References COLUMN_ICON_ACTIVE, getLayerComp(), GetLayerRowCount(), m_CurrentRow, ROW_ICON_PROVIDER::OFF, ROW_ICON_PROVIDER::ON, and INDICATOR_ICON::SetIndicatorState().
Referenced by GERBVIEW_FRAME::LoadListOfGerberAndDrillFiles(), and GERBVIEW_FRAME::LoadZipArchiveFile().
|
protected |
Definition at line 395 of file layer_widget.cpp.
References COLUMN_COLOR_LYRNAME, getLayerComp(), m_CurrentRow, ROW_ICON_PROVIDER::OFF, ROW_ICON_PROVIDER::ON, and INDICATOR_ICON::SetIndicatorState().
Referenced by GERBER_LAYER_WIDGET::ReFill().
void LAYER_WIDGET::UpdateLayouts | ( | ) |
Definition at line 817 of file layer_widget.cpp.
References m_LayerPanel, m_LayersFlexGridSizer, m_RenderFlexGridSizer, and m_RenderingPanel.
Referenced by AppendLayerRows(), AppendRenderRows(), and GERBER_LAYER_WIDGET::ReFill().
|
inlineprotectedvirtual |
Definition at line 363 of file layer_widget.h.
|
static |
Definition at line 120 of file layer_widget.h.
Referenced by OnLayerSwatchChanged().
|
protected |
selected row of layer list
Definition at line 474 of file layer_widget.h.
Referenced by GetSelectedLayer(), LAYER_WIDGET(), SelectLayerRow(), UpdateLayerIcons(), and updateLayerRow().
|
protected |
Definition at line 473 of file layer_widget.h.
Referenced by LAYER_WIDGET(), and passOnFocus().
|
protected |
Definition at line 477 of file layer_widget.h.
Referenced by insertLayerRow(), LAYER_WIDGET(), and ~LAYER_WIDGET().
|
protected |
Definition at line 466 of file layer_widget.h.
Referenced by GetBestSize(), LAYER_WIDGET(), and UpdateLayouts().
|
protected |
Definition at line 467 of file layer_widget.h.
Referenced by GERBER_LAYER_WIDGET::GERBER_LAYER_WIDGET(), insertLayerRow(), LAYER_WIDGET(), and OnLeftDownLayers().
|
protected |
Definition at line 468 of file layer_widget.h.
Referenced by ClearLayerRows(), GetBestSize(), getLayerComp(), GetLayerRowCount(), insertLayerRow(), LAYER_WIDGET(), OnLeftDownLayers(), and UpdateLayouts().
|
protected |
Definition at line 465 of file layer_widget.h.
Referenced by LAYER_WIDGET(), and GERBER_LAYER_WIDGET::SetLayersManagerTabsText().
|
protected |
Definition at line 475 of file layer_widget.h.
Referenced by insertLayerRow(), insertRenderRow(), and LAYER_WIDGET().
|
protected |
Definition at line 471 of file layer_widget.h.
Referenced by ClearRenderRows(), GetBestSize(), getRenderComp(), GetRenderRowCount(), insertRenderRow(), LAYER_WIDGET(), and UpdateLayouts().
|
protected |
Definition at line 469 of file layer_widget.h.
Referenced by GetBestSize(), LAYER_WIDGET(), and UpdateLayouts().
|
protected |
Definition at line 470 of file layer_widget.h.
Referenced by insertRenderRow(), and LAYER_WIDGET().
|
protected |
Definition at line 479 of file layer_widget.h.
Referenced by insertLayerRow(), and SetSmallestLayerString().