statline.h 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. /////////////////////////////////////////////////////////////////////////////
  2. // Name: wx/cocoa/statline.h
  3. // Purpose: wxStaticLine class
  4. // Author: David Elliott
  5. // Modified by:
  6. // Created: 2003/03/18
  7. // Copyright: (c) 2003 David Elliott
  8. // Licence: wxWindows licence
  9. /////////////////////////////////////////////////////////////////////////////
  10. #ifndef __WX_COCOA_STATLINE_H__
  11. #define __WX_COCOA_STATLINE_H__
  12. // #include "wx/cocoa/NSButton.h"
  13. // ========================================================================
  14. // wxStaticLine
  15. // ========================================================================
  16. class WXDLLIMPEXP_CORE wxStaticLine: public wxStaticLineBase// , protected wxCocoaNSButton
  17. {
  18. DECLARE_DYNAMIC_CLASS(wxStaticLine)
  19. DECLARE_EVENT_TABLE()
  20. // WX_DECLARE_COCOA_OWNER(NSButton,NSControl,NSView)
  21. // ------------------------------------------------------------------------
  22. // initialization
  23. // ------------------------------------------------------------------------
  24. public:
  25. wxStaticLine() { }
  26. wxStaticLine(wxWindow *parent, wxWindowID winid = wxID_ANY,
  27. const wxPoint& pos = wxDefaultPosition,
  28. const wxSize& size = wxDefaultSize,
  29. long style = 0, const wxString& name = wxStaticLineNameStr)
  30. {
  31. Create(parent, winid, pos, size, style, name);
  32. }
  33. bool Create(wxWindow *parent, wxWindowID winid = wxID_ANY,
  34. const wxPoint& pos = wxDefaultPosition,
  35. const wxSize& size = wxDefaultSize,
  36. long style = 0, const wxString& name = wxStaticLineNameStr);
  37. virtual ~wxStaticLine();
  38. // ------------------------------------------------------------------------
  39. // Cocoa callbacks
  40. // ------------------------------------------------------------------------
  41. protected:
  42. // Static lines cannot be enabled/disabled
  43. virtual void CocoaSetEnabled(bool WXUNUSED(enable)) { }
  44. // ------------------------------------------------------------------------
  45. // Implementation
  46. // ------------------------------------------------------------------------
  47. public:
  48. };
  49. #endif // __WX_COCOA_STATLINE_H__