statline.h 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. /////////////////////////////////////////////////////////////////////////////
  2. // Name: wx/osx/statline.h
  3. // Purpose: a generic wxStaticLine class used for mac before adaptation
  4. // Author: Vadim Zeitlin
  5. // Created: 28.06.99
  6. // Copyright: (c) 1998 Vadim Zeitlin
  7. // Licence: wxWindows licence
  8. /////////////////////////////////////////////////////////////////////////////
  9. #ifndef _WX_GENERIC_STATLINE_H_
  10. #define _WX_GENERIC_STATLINE_H_
  11. class wxStaticBox;
  12. // ----------------------------------------------------------------------------
  13. // wxStaticLine
  14. // ----------------------------------------------------------------------------
  15. class WXDLLIMPEXP_CORE wxStaticLine : public wxStaticLineBase
  16. {
  17. public:
  18. // constructors and pseudo-constructors
  19. wxStaticLine() : m_statbox(NULL) { }
  20. wxStaticLine( wxWindow *parent,
  21. wxWindowID id = wxID_ANY,
  22. const wxPoint &pos = wxDefaultPosition,
  23. const wxSize &size = wxDefaultSize,
  24. long style = wxLI_HORIZONTAL,
  25. const wxString &name = wxStaticLineNameStr )
  26. : m_statbox(NULL)
  27. {
  28. Create(parent, id, pos, size, style, name);
  29. }
  30. bool Create( wxWindow *parent,
  31. wxWindowID id = wxID_ANY,
  32. const wxPoint &pos = wxDefaultPosition,
  33. const wxSize &size = wxDefaultSize,
  34. long style = wxLI_HORIZONTAL,
  35. const wxString &name = wxStaticLineNameStr );
  36. // it's necessary to override this wxWindow function because we
  37. // will want to return the main widget for m_statbox
  38. //
  39. WXWidget GetMainWidget() const;
  40. protected:
  41. // we implement the static line using a static box
  42. wxStaticBox *m_statbox;
  43. DECLARE_DYNAMIC_CLASS(wxStaticLine)
  44. };
  45. #endif // _WX_GENERIC_STATLINE_H_