• Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/amule/wxWidgets-2.8.12/include/wx/mac/classic/
1/////////////////////////////////////////////////////////////////////////////
2// Name:        mac/statline.h
3// Purpose:     a generic wxStaticLine class used for mac before adaptation
4// Author:      Vadim Zeitlin
5// Created:     28.06.99
6// Version:     $Id: statline.h 43874 2006-12-09 14:52:59Z VZ $
7// Copyright:   (c) 1998 Vadim Zeitlin
8// Licence:     wxWindows licence
9/////////////////////////////////////////////////////////////////////////////
10
11#ifndef _WX_GENERIC_STATLINE_H_
12#define _WX_GENERIC_STATLINE_H_
13
14class wxStaticBox;
15
16// ----------------------------------------------------------------------------
17// wxStaticLine
18// ----------------------------------------------------------------------------
19
20class WXDLLEXPORT wxStaticLine : public wxStaticLineBase
21{
22public:
23    // constructors and pseudo-constructors
24    wxStaticLine() : m_statbox(NULL) { }
25
26    wxStaticLine( wxWindow *parent,
27                  wxWindowID id = wxID_ANY,
28                  const wxPoint &pos = wxDefaultPosition,
29                  const wxSize &size = wxDefaultSize,
30                  long style = wxLI_HORIZONTAL,
31                  const wxString &name = wxStaticLineNameStr )
32        : m_statbox(NULL)
33    {
34        Create(parent, id, pos, size, style, name);
35    }
36
37    bool Create( wxWindow *parent,
38                 wxWindowID id = wxID_ANY,
39                 const wxPoint &pos = wxDefaultPosition,
40                 const wxSize &size = wxDefaultSize,
41                 long style = wxLI_HORIZONTAL,
42                 const wxString &name = wxStaticLineNameStr );
43
44    // it's necessary to override this wxWindow function because we
45    // will want to return the main widget for m_statbox
46    //
47    WXWidget GetMainWidget() const;
48
49protected:
50    // we implement the static line using a static box
51    wxStaticBox *m_statbox;
52
53    DECLARE_DYNAMIC_CLASS(wxStaticLine)
54};
55
56#endif // _WX_GENERIC_STATLINE_H_
57
58