2010-12-17 20:34:29 +00:00
|
|
|
// 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
|
2010-12-18 08:59:04 +00:00
|
|
|
#define EVT_SELECT_DCODE EVT_COMBOBOX
|
2010-12-17 20:34:29 +00:00
|
|
|
|
2010-12-18 08:59:04 +00:00
|
|
|
class DCODE_SELECTION_BOX : public wxComboBox
|
2010-12-17 20:34:29 +00:00
|
|
|
{
|
|
|
|
private:
|
|
|
|
const wxArrayString* m_dcodeList;
|
|
|
|
|
2011-12-16 13:32:23 +00:00
|
|
|
public: DCODE_SELECTION_BOX( wxAuiToolBar* aParent, wxWindowID aId,
|
2010-12-17 20:34:29 +00:00
|
|
|
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
|