]> git.saurik.com Git - wxWidgets.git/blame - include/wx/os2/statline.h
Use wxGetTranslation() instead of _() in the public headers.
[wxWidgets.git] / include / wx / os2 / statline.h
CommitLineData
0e320a79 1/////////////////////////////////////////////////////////////////////////////
80fdcdb9 2// Name: wx/os2/statline.h
0e320a79
DW
3// Purpose: MSW version of wxStaticLine class
4// Author: Vadim Zeitlin
5// Created: 28.06.99
0e320a79 6// Copyright: (c) 1998 Vadim Zeitlin
65571936 7// Licence: wxWindows licence
0e320a79
DW
8/////////////////////////////////////////////////////////////////////////////
9
e6ebb514
DW
10#ifndef _WX_OS2_STATLINE_H_
11#define _WX_OS2_STATLINE_H_
0e320a79 12
0e320a79
DW
13// ----------------------------------------------------------------------------
14// wxStaticLine
15// ----------------------------------------------------------------------------
16
53a2db12 17class WXDLLIMPEXP_CORE wxStaticLine : public wxStaticLineBase
0e320a79 18{
0e320a79
DW
19
20public:
21 // constructors and pseudo-constructors
22 wxStaticLine() { }
3c299c3a 23 wxStaticLine( wxWindow* pParent
1de1196a 24 ,wxWindowID vId = wxID_ANY
3c299c3a
DW
25 ,const wxPoint& rPos = wxDefaultPosition
26 ,const wxSize& rSize = wxDefaultSize
27 ,long lStyle = wxLI_HORIZONTAL
73b30256 28 ,const wxString& rsName = wxStaticLineNameStr
3c299c3a
DW
29 )
30 {
31 Create(pParent, vId, rPos, rSize, lStyle, rsName);
32 }
33
34 bool Create( wxWindow* pParent
1de1196a 35 ,wxWindowID vId = wxID_ANY
3c299c3a
DW
36 ,const wxPoint& rPos = wxDefaultPosition
37 ,const wxSize& rSize = wxDefaultSize
38 ,long lStyle = wxLI_HORIZONTAL
73b30256 39 ,const wxString& rsName = wxStaticLineNameStr
3c299c3a
DW
40 );
41
42 inline bool IsVertical(void) const { return((GetWindowStyleFlag() & wxLI_VERTICAL) != 0); }
43 inline static int GetDefaultSize(void) { return 2; }
0e320a79 44
3c299c3a 45 //
4c51a665 46 // Overridden base class virtuals
3c299c3a
DW
47 //
48 inline virtual bool AcceptsFocus(void) const {return FALSE;}
49
50protected:
51 inline wxSize AdjustSize(const wxSize& rSize) const
0e320a79 52 {
3c299c3a
DW
53 wxSize vSizeReal( rSize.x
54 ,rSize.y
55 );
56
57 if (IsVertical())
58 {
59 if (rSize.x == -1 )
60 vSizeReal.x = GetDefaultSize();
61 }
62 else
63 {
64 if (rSize.y == -1)
65 vSizeReal.y = GetDefaultSize();
66 }
67 return vSizeReal;
0e320a79
DW
68 }
69
3c299c3a
DW
70 inline wxSize DoGetBestSize(void) const { return (AdjustSize(wxDefaultSize)); }
71
b9b1d6c8
DW
72 //
73 // Usually overridden base class virtuals
74 //
75 virtual WXDWORD OS2GetStyle( long lStyle
76 ,WXDWORD* pdwExstyle
77 ) const;
78
3c299c3a
DW
79private:
80 DECLARE_DYNAMIC_CLASS(wxStaticLine)
81}; // end of CLASS wxStaticLine
0e320a79 82
e6ebb514 83#endif // _WX_OS2_STATLINE_H_
0e320a79
DW
84
85