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
76 lines
2.2 KiB
C++
76 lines
2.2 KiB
C++
///////////////////////////////////////////////////////////////////////////////
|
|
// Name: wx/generic/statbmpg.h
|
|
// Purpose: wxGenericStaticBitmap header
|
|
// Author: Marcin Wojdyr, Stefan Csomor
|
|
// Created: 2008-06-16
|
|
// Copyright: wxWidgets developers
|
|
// Licence: wxWindows licence
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
#ifndef _WX_GENERIC_STATBMP_H_
|
|
#define _WX_GENERIC_STATBMP_H_
|
|
|
|
#include "wx/statbmp.h"
|
|
|
|
class WXDLLIMPEXP_CORE wxGenericStaticBitmap : public wxStaticBitmapBase
|
|
{
|
|
public:
|
|
wxGenericStaticBitmap() {}
|
|
wxGenericStaticBitmap(wxWindow *parent,
|
|
wxWindowID id,
|
|
const wxBitmap& bitmap,
|
|
const wxPoint& pos = wxDefaultPosition,
|
|
const wxSize& size = wxDefaultSize,
|
|
long style = 0,
|
|
const wxString& name = wxStaticBitmapNameStr)
|
|
{
|
|
Create(parent, id, bitmap, pos, size, style, name);
|
|
}
|
|
|
|
bool Create(wxWindow *parent,
|
|
wxWindowID id,
|
|
const wxBitmap& bitmap,
|
|
const wxPoint& pos = wxDefaultPosition,
|
|
const wxSize& size = wxDefaultSize,
|
|
long style = 0,
|
|
const wxString& name = wxStaticBitmapNameStr);
|
|
|
|
virtual void SetBitmap(const wxBitmap& bitmap)
|
|
{
|
|
m_bitmap = bitmap;
|
|
SetInitialSize(GetBitmapSize());
|
|
Refresh();
|
|
}
|
|
|
|
virtual wxBitmap GetBitmap() const { return m_bitmap; }
|
|
|
|
virtual void SetIcon(const wxIcon& icon)
|
|
{
|
|
m_bitmap.CopyFromIcon(icon);
|
|
SetInitialSize(GetBitmapSize());
|
|
Refresh();
|
|
}
|
|
|
|
#if defined(__WXGTK20__) || defined(__WXMAC__)
|
|
// icons and bitmaps are really the same thing in wxGTK and wxMac
|
|
wxIcon GetIcon() const { return (const wxIcon &)m_bitmap; }
|
|
#endif
|
|
|
|
|
|
private:
|
|
wxSize GetBitmapSize()
|
|
{
|
|
return m_bitmap.IsOk() ? wxSize(m_bitmap.GetWidth(), m_bitmap.GetHeight())
|
|
: wxSize(16, 16); // this is completely arbitrary
|
|
}
|
|
|
|
void OnPaint(wxPaintEvent& event);
|
|
|
|
wxBitmap m_bitmap;
|
|
|
|
DECLARE_DYNAMIC_CLASS(wxGenericStaticBitmap)
|
|
};
|
|
|
|
|
|
#endif //_WX_GENERIC_STATBMP_H_
|