dolphin/Externals/wxWidgets3/src/generic/statline.cpp
Soren Jorvang d14efe561b Import r67258 of the wxWidgets trunk, which I expect will before
long become wxWidgets 2.9.2, which in turn is expected to be the
last 2.9 release before the 3.0 stable release.

Since the full wxWidgets distribution is rather large, I have
imported only the parts that we use, on a subdirectory basis:

art
include/wx/*.*
include/wx/aui
include/wx/cocoa
include/wx/generic
include/wx/gtk
include/wx/meta
include/wx/msw
include/wx/osx
include/wx/persist
include/wx/private
include/wx/protocol
include/wx/unix
src/aui
src/common
src/generic
src/gtk
src/msw
src/osx
src/unix


git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7380 8ced0084-cf51-0410-be5f-012b33b47a6e
2011-03-20 18:05:19 +00:00

87 lines
2.4 KiB
C++

/////////////////////////////////////////////////////////////////////////////
// Name: src/generic/statline.cpp
// Purpose: a generic wxStaticLine class
// Author: Vadim Zeitlin
// Created: 28.06.99
// Version: $Id: statline.cpp 66555 2011-01-04 08:31:53Z SC $
// Copyright: (c) 1998 Vadim Zeitlin
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
// ============================================================================
// declarations
// ============================================================================
// ----------------------------------------------------------------------------
// headers
// ----------------------------------------------------------------------------
#include "wx/wxprec.h"
// For compilers that support precompilation, includes "wx.h".
#ifdef __BORLANDC__
#pragma hdrstop
#endif
#if wxUSE_STATLINE
#include "wx/statline.h"
#ifndef WX_PRECOMP
#include "wx/statbox.h"
#endif
// ============================================================================
// implementation
// ============================================================================
// ----------------------------------------------------------------------------
// wxStaticLine
// ----------------------------------------------------------------------------
bool wxStaticLine::Create( wxWindow *parent,
wxWindowID id,
const wxPoint &pos,
const wxSize &size,
long style,
const wxString &name)
{
m_statbox = NULL;
if ( !CreateBase(parent, id, pos, size, style, wxDefaultValidator, name) )
return false;
// ok, this is ugly but it's better than nothing: use a thin static box to
// emulate static line
wxSize sizeReal = AdjustSize(size);
m_statbox = new wxStaticBox(parent, id, wxEmptyString, pos, sizeReal, style, name);
return true;
}
wxStaticLine::~wxStaticLine()
{
delete m_statbox;
}
WXWidget wxStaticLine::GetMainWidget() const
{
return m_statbox->GetMainWidget();
}
void wxStaticLine::DoSetSize(int x, int y, int width, int height, int sizeFlags)
{
m_statbox->SetSize(x, y, width, height, sizeFlags);
}
void wxStaticLine::DoMoveWindow(int x, int y, int width, int height)
{
m_statbox->SetSize(x, y, width, height);
}
#endif
// wxUSE_STATLINE