Added zillions of #if wxUSE_XXX
[wxWidgets.git] / src / gtk1 / statline.cpp
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: statline.cpp
3 // Purpose:
4 // Author: Robert Roebling
5 // Id: $Id$
6 // Copyright: (c) 1998 Robert Roebling
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
9
10 #ifdef __GNUG__
11 #pragma implementation "statline.h"
12 #endif
13
14 #include "wx/statline.h"
15
16 #if wxUSE_STATLINE
17
18 #include "gdk/gdk.h"
19 #include "gtk/gtk.h"
20
21 //-----------------------------------------------------------------------------
22 // wxStaticLine
23 //-----------------------------------------------------------------------------
24
25 IMPLEMENT_DYNAMIC_CLASS(wxStaticLine,wxControl)
26
27 wxStaticLine::wxStaticLine(void)
28 {
29 }
30
31 wxStaticLine::wxStaticLine( wxWindow *parent, wxWindowID id,
32 const wxPoint &pos, const wxSize &size,
33 long style, const wxString &name )
34 {
35 Create( parent, id, pos, size, style, name );
36 }
37
38 bool wxStaticLine::Create( wxWindow *parent, wxWindowID id,
39 const wxPoint &pos, const wxSize &size,
40 long style, const wxString &name )
41 {
42 m_needParent = TRUE;
43
44 PreCreation( parent, id, pos, size, style, name );
45
46 if (style & wxVERTICAL)
47 m_widget = gtk_vseparator_new();
48 else
49 m_widget = gtk_hseparator_new();
50
51 m_parent->DoAddChild( this );
52
53 PostCreation();
54
55 Show( TRUE );
56
57 return TRUE;
58 }
59
60 #endif