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
|
|
|
|
// Copyright: (c) 2003 David Elliott
|
2006-10-17 10:44:52 -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
|
|
|
|
// ========================================================================
|
2008-03-26 11:06:00 -04:00
|
|
|
class WXDLLIMPEXP_CORE wxStaticText : public wxStaticTextBase, protected wxCocoaNSTextField
|
2003-03-21 14:51:47 -05:00
|
|
|
{
|
|
|
|
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:
|
2007-03-13 19:45:47 -04:00
|
|
|
virtual void SetLabel(const wxString& label);
|
|
|
|
virtual wxString GetLabel() const;
|
2003-03-21 14:51:47 -05:00
|
|
|
};
|
|
|
|
|
2007-03-13 19:45:47 -04:00
|
|
|
#endif // __WX_COCOA_STATTEXT_H__
|