KiCad PCB EDA Suite
events_called_functions.cpp File Reference

Go to the source code of this file.

Functions

 EVT_MENU_RANGE (ID_GERBVIEW_DRILL_FILE1, ID_GERBVIEW_DRILL_FILEMAX, GERBVIEW_FRAME::OnDrlFileHistory) EVT_MENU_RANGE(ID_GERBVIEW_ZIP_FILE1
 
GERBVIEW_FRAME::OnZipFileHistory EVT_MENU_RANGE (ID_GERBVIEW_JOB_FILE1, ID_GERBVIEW_JOB_FILEMAX, GERBVIEW_FRAME::OnJobFileHistory) EVT_TOOL_RANGE(ID_TB_OPTIONS_SHOW_GBR_MODE_0
 
GERBVIEW_FRAME::OnZipFileHistory GERBVIEW_FRAME::OnSelectDisplayMode EVT_CHOICE (ID_GBR_AUX_TOOLBAR_PCB_APERATTRIBUTES_CHOICE, GERBVIEW_FRAME::OnSelectHighlightChoice) EVT_UPDATE_UI(ID_TOOLBARH_GERBVIEW_SELECT_ACTIVE_LAYER
 
GERBVIEW_FRAME::OnZipFileHistory GERBVIEW_FRAME::OnSelectDisplayMode GERBVIEW_FRAME::OnUpdateLayerSelectBox EVT_UPDATE_UI_RANGE (ID_TB_OPTIONS_SHOW_GBR_MODE_0, ID_TB_OPTIONS_SHOW_GBR_MODE_2, GERBVIEW_FRAME::OnUpdateDrawMode) void GERBVIEW_FRAME
 

Variables

 ID_GERBVIEW_ZIP_FILEMAX
 
GERBVIEW_FRAME::OnZipFileHistory ID_TB_OPTIONS_SHOW_GBR_MODE_2
 

Function Documentation

◆ EVT_CHOICE()

◆ EVT_MENU_RANGE() [1/2]

◆ EVT_MENU_RANGE() [2/2]

◆ EVT_UPDATE_UI_RANGE()

Definition at line 84 of file events_called_functions.cpp.

91 {
92  auto settings = static_cast<KIGFX::GERBVIEW_PAINTER*>( GetCanvas()->GetView()->GetPainter() )->GetSettings();
93 
94  switch( event.GetId() )
95  {
97  settings->m_componentHighlightString = m_SelComponentBox->GetStringSelection();
98  break;
99 
101  settings->m_netHighlightString = m_SelNetnameBox->GetStringSelection();
102  break;
103 
105  settings->m_attributeHighlightString = m_SelAperAttributesBox->GetStringSelection();
106  break;
107 
108  }
109 
110  GetCanvas()->GetView()->UpdateAllItems( KIGFX::COLOR );
111  GetCanvas()->Refresh();
112 }
Color has changed.
Definition: view_item.h:53

References KIGFX::COLOR, ID_GBR_AUX_TOOLBAR_PCB_APERATTRIBUTES_CHOICE, ID_GBR_AUX_TOOLBAR_PCB_CMP_CHOICE, and ID_GBR_AUX_TOOLBAR_PCB_NET_CHOICE.

Variable Documentation

◆ ID_GERBVIEW_ZIP_FILEMAX

ID_GERBVIEW_ZIP_FILEMAX

Definition at line 54 of file events_called_functions.cpp.

◆ ID_TB_OPTIONS_SHOW_GBR_MODE_2