You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

54 lines
1.5 KiB

  1. #ifndef CLASS_PCB_PCB_LAYER_BOX_SELECTOR_H
  2. #define CLASS_PCB_PCB_LAYER_BOX_SELECTOR_H 1
  3. #include <class_layer_box_selector.h>
  4. /* class to display a layer list in Pcbnew.
  5. *
  6. */
  7. /* class to display a layer list.
  8. *
  9. */
  10. class PCB_LAYER_BOX_SELECTOR : public LAYER_BOX_SELECTOR
  11. {
  12. public:
  13. // Hotkey Info
  14. struct EDA_HOTKEY_CONFIG* m_hotkeys;
  15. public:
  16. PCB_LAYER_BOX_SELECTOR( wxAuiToolBar* parent, wxWindowID id,
  17. const wxPoint& pos = wxDefaultPosition,
  18. const wxSize& size = wxDefaultSize,
  19. int n = 0, const wxString choices[] = NULL )
  20. :LAYER_BOX_SELECTOR( parent, id, pos, size, n, choices )
  21. {
  22. }
  23. PCB_LAYER_BOX_SELECTOR( wxAuiToolBar* parent, wxWindowID id,
  24. const wxPoint& pos, const wxSize& size,
  25. const wxArrayString& choices )
  26. :LAYER_BOX_SELECTOR( parent, id, pos, size, choices )
  27. {
  28. }
  29. // Reload the Layers names and bitmaps
  30. // Virtual function
  31. void Resync();
  32. // Returns a color index from the layer id
  33. // Virtual function
  34. EDA_COLOR_T GetLayerColor( LAYER_NUM aLayer ) const;
  35. // Returns true if the layer id is enabled (i.e. is it should be displayed)
  36. // Virtual function
  37. bool IsLayerEnabled( LAYER_NUM aLayer ) const;
  38. // Returns the name of the layer id
  39. // Virtual function
  40. wxString GetLayerName( LAYER_NUM aLayer ) const;
  41. };
  42. #endif //CLASS_PCB_PCB_LAYER_BOX_SELECTOR_H