]> git.saurik.com Git - wxWidgets.git/blame_incremental - src/cocoa/statline2.mm
warning fixes
[wxWidgets.git] / src / cocoa / statline2.mm
... / ...
CommitLineData
1/////////////////////////////////////////////////////////////////////////////
2// Name: cocoa/statline.mm
3// Purpose: wxStaticLine
4// Author: David Elliott
5// Modified by:
6// Created: 2003/02/15
7// RCS-ID: $Id:
8// Copyright: (c) 2003 David Elliott
9// Licence: wxWindows license
10/////////////////////////////////////////////////////////////////////////////
11
12#include "wx/wxprec.h"
13#ifndef WX_PRECOMP
14 #include "wx/app.h"
15#endif //WX_PRECOMP
16#include "wx/statline.h"
17
18#import <AppKit/NSBox.h>
19
20IMPLEMENT_DYNAMIC_CLASS(wxStaticLine, wxControl)
21BEGIN_EVENT_TABLE(wxStaticLine, wxStaticLineBase)
22END_EVENT_TABLE()
23// WX_IMPLEMENT_COCOA_OWNER(wxStaticLine,NSTextField,NSControl,NSView)
24
25bool wxStaticLine::Create(wxWindow *parent, wxWindowID winid,
26 const wxPoint& pos,
27 const wxSize& size,
28 long style,
29 const wxString& name)
30{
31 if(!CreateControl(parent,winid,pos,size,style,wxDefaultValidator,name))
32 return false;
33 SetNSView([[NSBox alloc] initWithFrame: MakeDefaultNSRect(size)]);
34 [m_cocoaNSView release];
35 [(NSBox*)m_cocoaNSView setBoxType: NSBoxSeparator];
36 if(m_parent)
37 m_parent->CocoaAddChild(this);
38 SetInitialFrameRect(pos,size);
39
40 return true;
41}
42
43wxStaticLine::~wxStaticLine()
44{
45}
46