mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-14 10:13:19 +02:00
* EDA_DRAW_FRAME completely encapsulated except for DrawFrame member. * Moved members specific to Pcbnew from EDA_DRAW_FRAME to PCB_BASE_FRAME or PCB_EDIT_FRAME as appropriate. * Replace EDA_TOOLBAR with wxAuiToolBar as EDA_TOOL bar provided no additional functionality and made code less readable. * Remove EDA_TOOLBAR class definition from wxstruct.h and delete file wineda_toolbar.cpp. * Rename tool bar members to something more descriptive since the horizontal and vertical references wont mean anything once the tool bars are movable. * Lots of dead code removal.
35 lines
942 B
C++
35 lines
942 B
C++
// file class_DCodeSelectionbox.h
|
|
|
|
#ifndef CLASS_DCODESELECTIONBOX_H
|
|
#define CLASS_DCODESELECTIONBOX_H
|
|
|
|
/* helper class to display a DCode list and select a DCode id.
|
|
*/
|
|
|
|
// Define event type for DCODE_SELECTION_BOX
|
|
#define EVT_SELECT_DCODE EVT_COMBOBOX
|
|
|
|
class DCODE_SELECTION_BOX : public wxComboBox
|
|
{
|
|
private:
|
|
const wxArrayString* m_dcodeList;
|
|
|
|
public: DCODE_SELECTION_BOX( wxAuiToolBar* aParent, wxWindowID aId,
|
|
const wxPoint& aLocation, const wxSize& aSize,
|
|
const wxArrayString& aChoices);
|
|
~DCODE_SELECTION_BOX();
|
|
|
|
/**
|
|
* Function GetSelectedDCodeId
|
|
* @return the current selected DCode Id or -1 if no dcode
|
|
*/
|
|
int GetSelectedDCodeId();
|
|
/**
|
|
* Function SetDCodeSelection
|
|
* @param aDCodeId = the DCode Id to select or -1 to select "no dcode"
|
|
*/
|
|
void SetDCodeSelection( int aDCodeId );
|
|
};
|
|
|
|
#endif //CLASS_DCODESELECTIONBOX_H
|