ab7ce33c56
GNU compiler included with Mac OS X 10.2 (Jaguar) as well as August Developer Tools update contain a bug concerning #pragma interface handling that can only be worked around by not using them (and they are not necessary anyways) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@17039 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
140 lines
3.2 KiB
C++
140 lines
3.2 KiB
C++
/////////////////////////////////////////////////////////////////////////////
|
|
// Purpose: XML resources editor
|
|
// Author: Vaclav Slavik
|
|
// Created: 2000/05/05
|
|
// RCS-ID: $Id$
|
|
// Copyright: (c) 2000 Vaclav Slavik
|
|
// Licence: wxWindows licence
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
#if defined(__GNUG__) && !defined(__APPLE__)
|
|
#pragma interface "pe_basic.h"
|
|
#endif
|
|
|
|
#ifndef _PE_BASIC_H_
|
|
#define _PE_BASIC_H_
|
|
|
|
#include "propedit.h"
|
|
|
|
class WXDLLEXPORT wxChoice;
|
|
|
|
|
|
|
|
class PropEditCtrlNull : public PropEditCtrl
|
|
{
|
|
public:
|
|
PropEditCtrlNull(PropertiesFrame *propFrame)
|
|
: PropEditCtrl(propFrame) {}
|
|
|
|
virtual void BeginEdit(const wxRect& rect, wxTreeItemId ti) {}
|
|
virtual void EndEdit() {}
|
|
|
|
virtual wxWindow* CreateEditCtrl() {return NULL;}
|
|
|
|
virtual void ReadValue() {}
|
|
virtual void WriteValue() {}
|
|
};
|
|
|
|
|
|
|
|
class PropEditCtrlTxt : public PropEditCtrl
|
|
{
|
|
public:
|
|
PropEditCtrlTxt(PropertiesFrame *propFrame)
|
|
: PropEditCtrl(propFrame) {}
|
|
|
|
virtual wxWindow* CreateEditCtrl();
|
|
|
|
virtual void ReadValue();
|
|
virtual void WriteValue();
|
|
|
|
protected:
|
|
wxTextCtrl *m_TextCtrl;
|
|
|
|
private:
|
|
DECLARE_EVENT_TABLE()
|
|
void OnText(wxCommandEvent& event);
|
|
};
|
|
|
|
|
|
|
|
class PropEditCtrlInt : public PropEditCtrlTxt
|
|
{
|
|
public:
|
|
PropEditCtrlInt(PropertiesFrame *propFrame)
|
|
: PropEditCtrlTxt(propFrame) {}
|
|
|
|
virtual wxWindow* CreateEditCtrl();
|
|
};
|
|
|
|
|
|
|
|
class PropEditCtrlBool : public PropEditCtrl
|
|
{
|
|
public:
|
|
PropEditCtrlBool(PropertiesFrame *propFrame)
|
|
: PropEditCtrl(propFrame) {}
|
|
|
|
virtual wxWindow* CreateEditCtrl();
|
|
|
|
virtual void ReadValue();
|
|
virtual void WriteValue();
|
|
virtual wxString GetValueAsText(wxTreeItemId ti);
|
|
|
|
protected:
|
|
wxChoice *m_Choice;
|
|
|
|
DECLARE_EVENT_TABLE()
|
|
void OnChoice(wxCommandEvent& event);
|
|
};
|
|
|
|
|
|
class PropEditCtrlCoord : public PropEditCtrlTxt
|
|
{
|
|
public:
|
|
PropEditCtrlCoord(PropertiesFrame *propFrame);
|
|
~PropEditCtrlCoord();
|
|
|
|
virtual wxTreeItemId CreateTreeEntry(wxTreeItemId parent, const PropertyInfo& pinfo);
|
|
|
|
private:
|
|
PropEditCtrl *m_CtrlX, *m_CtrlY, *m_CtrlDlg;
|
|
};
|
|
|
|
|
|
class PropEditCtrlDim : public PropEditCtrlTxt
|
|
{
|
|
public:
|
|
PropEditCtrlDim(PropertiesFrame *propFrame);
|
|
~PropEditCtrlDim();
|
|
|
|
virtual wxTreeItemId CreateTreeEntry(wxTreeItemId parent, const PropertyInfo& pinfo);
|
|
|
|
private:
|
|
PropEditCtrl *m_CtrlX, *m_CtrlDlg;
|
|
};
|
|
|
|
|
|
|
|
class PropEditCtrlXRCID : public PropEditCtrlTxt
|
|
{
|
|
public:
|
|
PropEditCtrlXRCID(PropertiesFrame *propFrame)
|
|
: PropEditCtrlTxt(propFrame) {}
|
|
|
|
virtual void ReadValue();
|
|
virtual void WriteValue();
|
|
virtual void Clear();
|
|
virtual bool HasDetails() { return TRUE; }
|
|
virtual void OnDetails();
|
|
virtual wxString GetValueAsText(wxTreeItemId ti);
|
|
virtual bool IsPresent(const PropertyInfo& pinfo);
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|