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
89 lines
2.6 KiB
C++
89 lines
2.6 KiB
C++
/////////////////////////////////////////////////////////////////////////////
|
|
// Name: wx/os2/bmpbuttn.h
|
|
// Purpose: wxBitmapButton class
|
|
// Author: David Webster
|
|
// Modified by:
|
|
// Created: 10/13/99
|
|
// Copyright: (c) David Webster
|
|
// Licence: wxWindows licence
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
#ifndef _WX_BMPBUTTN_H_
|
|
#define _WX_BMPBUTTN_H_
|
|
|
|
#include "wx/button.h"
|
|
#include "wx/dcclient.h"
|
|
|
|
WXDLLIMPEXP_DATA_CORE(extern const char) wxButtonNameStr[];
|
|
|
|
#define wxDEFAULT_BUTTON_MARGIN 4
|
|
|
|
class WXDLLIMPEXP_CORE wxBitmapButton: public wxBitmapButtonBase
|
|
{
|
|
public:
|
|
inline wxBitmapButton()
|
|
{
|
|
m_marginX = wxDEFAULT_BUTTON_MARGIN;
|
|
m_marginY = wxDEFAULT_BUTTON_MARGIN;
|
|
}
|
|
inline wxBitmapButton( wxWindow* pParent
|
|
,wxWindowID vId
|
|
,const wxBitmap& rBitmap
|
|
,const wxPoint& rPos = wxDefaultPosition
|
|
,const wxSize& rSize = wxDefaultSize
|
|
,long lStyle = wxBU_AUTODRAW
|
|
,const wxValidator& rValidator = wxDefaultValidator
|
|
,const wxString& rsName = wxButtonNameStr
|
|
)
|
|
{
|
|
Create( pParent
|
|
,vId
|
|
,rBitmap
|
|
,rPos
|
|
,rSize
|
|
,lStyle
|
|
,rValidator
|
|
,rsName
|
|
);
|
|
}
|
|
|
|
bool Create( wxWindow* pParent
|
|
,wxWindowID vId
|
|
,const wxBitmap& rBitmap
|
|
,const wxPoint& rPos = wxDefaultPosition
|
|
,const wxSize& rSize = wxDefaultSize
|
|
,long lStyle = wxBU_AUTODRAW
|
|
,const wxValidator& rValidator = wxDefaultValidator
|
|
,const wxString& rsName = wxButtonNameStr
|
|
);
|
|
|
|
virtual void SetLabel(const wxBitmap& rBitmap)
|
|
{
|
|
SetBitmapLabel(rBitmap);
|
|
}
|
|
|
|
//
|
|
// Implementation
|
|
//
|
|
virtual bool OS2OnDraw(WXDRAWITEMSTRUCT* pItem);
|
|
|
|
private:
|
|
|
|
virtual void DrawFace( wxClientDC& rDC
|
|
,bool bSel
|
|
);
|
|
virtual void DrawButtonFocus(wxClientDC& rDC);
|
|
virtual void DrawButtonDisable( wxClientDC& rDC
|
|
,wxBitmap& rBmp
|
|
);
|
|
DECLARE_DYNAMIC_CLASS(wxBitmapButton)
|
|
|
|
virtual void SetLabel(const wxString& rsString)
|
|
{
|
|
wxButton::SetLabel(rsString);
|
|
}
|
|
}; // end of CLASS wxBitmapButton
|
|
|
|
#endif // _WX_BMPBUTTN_H_
|
|
|