2003-03-21 14:51:47 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: wx/cocoa/stattext.h
|
|
|
|
// Purpose: wxStaticText class
|
|
|
|
// Author: David Elliott
|
|
|
|
// Modified by:
|
|
|
|
// Created: 2003/02/15
|
|
|
|
// RCS-ID: $Id:
|
|
|
|
// Copyright: (c) 2003 David Elliott
|
2004-05-23 16:53:33 -04:00
|
|
|
// Licence: wxWindows licence
|
2003-03-21 14:51:47 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef __WX_COCOA_STATTEXT_H__
|
|
|
|
#define __WX_COCOA_STATTEXT_H__
|
|
|
|
|
|
|
|
#include "wx/cocoa/NSTextField.h"
|
|
|
|
|
|
|
|
// ========================================================================
|
|
|
|
// wxStaticText
|
|
|
|
// ========================================================================
|
|
|
|
class WXDLLEXPORT wxStaticText : public wxStaticTextBase, protected wxCocoaNSTextField
|
|
|
|
{
|
|
|
|
DECLARE_DYNAMIC_CLASS(wxStaticText)
|
|
|
|
DECLARE_EVENT_TABLE()
|
|
|
|
WX_DECLARE_COCOA_OWNER(NSTextField,NSControl,NSView)
|
|
|
|
// ------------------------------------------------------------------------
|
|
|
|
// initialization
|
|
|
|
// ------------------------------------------------------------------------
|
|
|
|
public:
|
|
|
|
wxStaticText() {}
|
|
|
|
wxStaticText(wxWindow *parent, wxWindowID winid,
|
|
|
|
const wxString& label,
|
|
|
|
const wxPoint& pos = wxDefaultPosition,
|
|
|
|
const wxSize& size = wxDefaultSize, long style = 0,
|
|
|
|
const wxString& name = wxStaticTextNameStr)
|
|
|
|
{
|
|
|
|
Create(parent, winid, label, pos, size, style, name);
|
|
|
|
}
|
|
|
|
|
|
|
|
bool Create(wxWindow *parent, wxWindowID winid,
|
|
|
|
const wxString& label,
|
|
|
|
const wxPoint& pos = wxDefaultPosition,
|
|
|
|
const wxSize& size = wxDefaultSize, long style = 0,
|
|
|
|
const wxString& name = wxStaticTextNameStr);
|
|
|
|
virtual ~wxStaticText();
|
|
|
|
|
|
|
|
// ------------------------------------------------------------------------
|
|
|
|
// Cocoa specifics
|
|
|
|
// ------------------------------------------------------------------------
|
|
|
|
protected:
|
|
|
|
virtual void Cocoa_didChangeText(void);
|
|
|
|
// ------------------------------------------------------------------------
|
|
|
|
// Implementation
|
|
|
|
// ------------------------------------------------------------------------
|
|
|
|
public:
|
|
|
|
void SetLabel(const wxString& label);
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // __WX_COCOA_STATTEXT_H__
|