X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7c78e7c70271608b076b1dbed201b1204e6898d4..7b9da2077d0975db6c965a85c91d5aca671ab5e3:/src/qt/statbmp.cpp diff --git a/src/qt/statbmp.cpp b/src/qt/statbmp.cpp index e4c3e6476b..a67c558465 100644 --- a/src/qt/statbmp.cpp +++ b/src/qt/statbmp.cpp @@ -1,10 +1,11 @@ ///////////////////////////////////////////////////////////////////////////// // Name: statbmp.cpp -// Purpose: -// Author: Robert Roebling -// Created: 01/02/97 -// Id: -// Copyright: (c) 1998 Robert Roebling, Julian Smart and Markus Holzem +// Purpose: wxStaticBitmap +// Author: AUTHOR +// Modified by: +// Created: ??/??/98 +// RCS-ID: $Id$ +// Copyright: (c) AUTHOR // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// @@ -14,31 +15,45 @@ #include "wx/statbmp.h" -//----------------------------------------------------------------------------- -// wxStaticBitmap -//----------------------------------------------------------------------------- +#if !USE_SHARED_LIBRARY +IMPLEMENT_DYNAMIC_CLASS(wxStaticBitmap, wxControl) +#endif -IMPLEMENT_DYNAMIC_CLASS(wxStaticBitmap,wxControl) +/* + * wxStaticBitmap + */ -wxStaticBitmap::wxStaticBitmap(void) +bool wxStaticBitmap::Create(wxWindow *parent, wxWindowID id, + const wxBitmap& bitmap, + const wxPoint& pos, + const wxSize& size, + long style, + const wxString& name) { -}; + m_messageBitmap = bitmap; + SetName(name); + if (parent) parent->AddChild(this); -wxStaticBitmap::wxStaticBitmap( wxWindow *parent, wxWindowID id, const wxBitmap &bitmap, - const wxPoint &pos, const wxSize &size, - long style, const wxString &name ) -{ - Create( parent, id, bitmap, pos, size, style, name ); -}; + if ( id == -1 ) + m_windowId = (int)NewControlId(); + else + m_windowId = id; + + m_windowStyle = style; -bool wxStaticBitmap::Create( wxWindow *parent, wxWindowID id, const wxBitmap &bitmap, - const wxPoint &pos, const wxSize &size, - long style, const wxString &name ) + // TODO: create static bitmap control + return FALSE; +} + +void wxStaticBitmap::SetSize(int x, int y, int width, int height, int sizeFlags) { - return TRUE; -}; + // TODO +} -void wxStaticBitmap::SetBitmap( const wxBitmap &bitmap ) +void wxStaticBitmap::SetBitmap(const wxBitmap& bitmap) { -}; + m_messageBitmap = bitmap; + + // TODO: redraw bitmap +}