/[pcsx2_0.9.7]/branch/r3113_0.9.7_beta/3rdparty/wxWidgets/src/generic/statline.cpp
ViewVC logotype

Contents of /branch/r3113_0.9.7_beta/3rdparty/wxWidgets/src/generic/statline.cpp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 32 - (show annotations) (download)
Tue Sep 7 03:29:01 2010 UTC (9 years, 11 months ago) by william
File size: 2517 byte(s)
branching from upstream revision (http://pcsx2.googlecode.com/svn/trunk
): r3113 to
https://svn.netsolutions.dnsalias.com/websvn/ps2/pcsx2/pcsx2_0.9.7/branch/r3113_0.9.7_beta
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: src/generic/statline.cpp
3 // Purpose: a generic wxStaticLine class
4 // Author: Vadim Zeitlin
5 // Created: 28.06.99
6 // Version: $Id: statline.cpp 39487 2006-05-31 18:27:51Z ABX $
7 // Copyright: (c) 1998 Vadim Zeitlin
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
10
11 // ============================================================================
12 // declarations
13 // ============================================================================
14
15 // ----------------------------------------------------------------------------
16 // headers
17 // ----------------------------------------------------------------------------
18
19 #include "wx/wxprec.h"
20
21 // For compilers that support precompilation, includes "wx.h".
22
23 #ifdef __BORLANDC__
24 #pragma hdrstop
25 #endif
26
27 #if wxUSE_STATLINE
28
29 #include "wx/statline.h"
30
31 #ifndef WX_PRECOMP
32 #include "wx/statbox.h"
33 #endif
34
35 // ============================================================================
36 // implementation
37 // ============================================================================
38
39 IMPLEMENT_DYNAMIC_CLASS(wxStaticLine, wxControl)
40
41 // ----------------------------------------------------------------------------
42 // wxStaticLine
43 // ----------------------------------------------------------------------------
44
45 bool wxStaticLine::Create( wxWindow *parent,
46 wxWindowID id,
47 const wxPoint &pos,
48 const wxSize &size,
49 long style,
50 const wxString &name)
51 {
52 m_statbox = NULL;
53
54 if ( !CreateBase(parent, id, pos, size, style, wxDefaultValidator, name) )
55 return false;
56
57 // ok, this is ugly but it's better than nothing: use a thin static box to
58 // emulate static line
59
60 wxSize sizeReal = AdjustSize(size);
61
62 m_statbox = new wxStaticBox(parent, id, wxEmptyString, pos, sizeReal, style, name);
63
64 return true;
65 }
66
67 wxStaticLine::~wxStaticLine()
68 {
69 delete m_statbox;
70 }
71
72 WXWidget wxStaticLine::GetMainWidget() const
73 {
74 return m_statbox->GetMainWidget();
75 }
76
77 void wxStaticLine::DoSetSize(int x, int y, int width, int height, int sizeFlags)
78 {
79 m_statbox->SetSize(x, y, width, height, sizeFlags);
80 }
81
82 void wxStaticLine::DoMoveWindow(int x, int y, int width, int height)
83 {
84 m_statbox->SetSize(x, y, width, height);
85 }
86
87 #endif
88 // wxUSE_STATLINE

  ViewVC Help
Powered by ViewVC 1.1.22