3f66f6a5b3
This keyword is not expanded by Git which means it's not replaced with the correct revision value in the releases made using git-based scripts and it's confusing to have lines with unexpanded "$Id$" in the released files. As expanding them with Git is not that simple (it could be done with git archive and export-subst attribute) and there are not many benefits in having them in the first place, just remove all these lines. If nothing else, this will make an eventual transition to Git simpler. Closes #14487. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74602 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
86 lines
2.6 KiB
C++
86 lines
2.6 KiB
C++
/////////////////////////////////////////////////////////////////////////////
|
|
// Name: wx/os2/statline.h
|
|
// Purpose: MSW version of wxStaticLine class
|
|
// Author: Vadim Zeitlin
|
|
// Created: 28.06.99
|
|
// Copyright: (c) 1998 Vadim Zeitlin
|
|
// Licence: wxWindows licence
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
#ifndef _WX_OS2_STATLINE_H_
|
|
#define _WX_OS2_STATLINE_H_
|
|
|
|
// ----------------------------------------------------------------------------
|
|
// wxStaticLine
|
|
// ----------------------------------------------------------------------------
|
|
|
|
class WXDLLIMPEXP_CORE wxStaticLine : public wxStaticLineBase
|
|
{
|
|
|
|
public:
|
|
// constructors and pseudo-constructors
|
|
wxStaticLine() { }
|
|
wxStaticLine( wxWindow* pParent
|
|
,wxWindowID vId = wxID_ANY
|
|
,const wxPoint& rPos = wxDefaultPosition
|
|
,const wxSize& rSize = wxDefaultSize
|
|
,long lStyle = wxLI_HORIZONTAL
|
|
,const wxString& rsName = wxStaticLineNameStr
|
|
)
|
|
{
|
|
Create(pParent, vId, rPos, rSize, lStyle, rsName);
|
|
}
|
|
|
|
bool Create( wxWindow* pParent
|
|
,wxWindowID vId = wxID_ANY
|
|
,const wxPoint& rPos = wxDefaultPosition
|
|
,const wxSize& rSize = wxDefaultSize
|
|
,long lStyle = wxLI_HORIZONTAL
|
|
,const wxString& rsName = wxStaticLineNameStr
|
|
);
|
|
|
|
inline bool IsVertical(void) const { return((GetWindowStyleFlag() & wxLI_VERTICAL) != 0); }
|
|
inline static int GetDefaultSize(void) { return 2; }
|
|
|
|
//
|
|
// Overridden base class virtuals
|
|
//
|
|
inline virtual bool AcceptsFocus(void) const {return FALSE;}
|
|
|
|
protected:
|
|
inline wxSize AdjustSize(const wxSize& rSize) const
|
|
{
|
|
wxSize vSizeReal( rSize.x
|
|
,rSize.y
|
|
);
|
|
|
|
if (IsVertical())
|
|
{
|
|
if (rSize.x == -1 )
|
|
vSizeReal.x = GetDefaultSize();
|
|
}
|
|
else
|
|
{
|
|
if (rSize.y == -1)
|
|
vSizeReal.y = GetDefaultSize();
|
|
}
|
|
return vSizeReal;
|
|
}
|
|
|
|
inline wxSize DoGetBestSize(void) const { return (AdjustSize(wxDefaultSize)); }
|
|
|
|
//
|
|
// Usually overridden base class virtuals
|
|
//
|
|
virtual WXDWORD OS2GetStyle( long lStyle
|
|
,WXDWORD* pdwExstyle
|
|
) const;
|
|
|
|
private:
|
|
DECLARE_DYNAMIC_CLASS(wxStaticLine)
|
|
}; // end of CLASS wxStaticLine
|
|
|
|
#endif // _WX_OS2_STATLINE_H_
|
|
|
|
|