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.

38 lines
1.2 KiB

  1. #ifndef CLASS_GBR_LAYER_BOX_SELECTOR_H
  2. #define CLASS_GBR_LAYER_BOX_SELECTOR_H 1
  3. #include <class_layer_box_selector.h>
  4. // class to display a layer list in GerbView.
  5. class GBR_LAYER_BOX_SELECTOR : public LAYER_BOX_SELECTOR
  6. {
  7. public:
  8. GBR_LAYER_BOX_SELECTOR( wxWindow* parent, wxWindowID id,
  9. const wxPoint& pos = wxDefaultPosition,
  10. const wxSize& size = wxDefaultSize,
  11. int n = 0, const wxString choices[] = NULL )
  12. :LAYER_BOX_SELECTOR( parent, id, pos, size, n, choices )
  13. {
  14. m_layerhotkeys = false;
  15. m_layerorder = false;
  16. }
  17. // Reload the Layers names and bitmaps
  18. // Virtual function
  19. void Resync();
  20. // Returns a color index from the layer id
  21. // Virtual function
  22. EDA_COLOR_T GetLayerColor( LAYER_NUM aLayer ) const;
  23. // Returns true if the layer id is enabled (i.e. is it should be displayed)
  24. // Virtual function
  25. bool IsLayerEnabled( LAYER_NUM aLayer ) const { return true; };
  26. // Returns the name of the layer id
  27. // Virtual function
  28. wxString GetLayerName( LAYER_NUM aLayer ) const;
  29. };
  30. #endif //CLASS_GBR_LAYER_BOX_SELECTOR_H