2000-11-04 18:34:33 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Purpose: XML resources editor
|
|
|
|
// Author: Vaclav Slavik
|
|
|
|
// Created: 2000/05/05
|
|
|
|
// RCS-ID: $Id$
|
|
|
|
// Copyright: (c) 2000 Vaclav Slavik
|
|
|
|
// Licence: wxWindows licence
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
2002-09-07 08:28:46 -04:00
|
|
|
#if defined(__GNUG__) && !defined(__APPLE__)
|
2000-11-04 18:34:33 -05:00
|
|
|
#pragma interface "pe_adv.h"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef _PE_ADV_H_
|
|
|
|
#define _PE_ADV_H_
|
|
|
|
|
|
|
|
#include "propedit.h"
|
|
|
|
#include "pe_basic.h"
|
|
|
|
|
|
|
|
class WXDLLEXPORT wxChoice;
|
|
|
|
|
|
|
|
|
|
|
|
class PropEditCtrlFont : public PropEditCtrlTxt
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
PropEditCtrlFont(PropertiesFrame *propFrame)
|
|
|
|
: PropEditCtrlTxt(propFrame) {}
|
2004-06-11 09:14:23 -04:00
|
|
|
|
2000-11-04 18:34:33 -05:00
|
|
|
virtual wxWindow* CreateEditCtrl();
|
|
|
|
virtual wxTreeItemId CreateTreeEntry(wxTreeItemId parent, const PropertyInfo& pinfo);
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class PropEditCtrlChoice : public PropEditCtrl
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
PropEditCtrlChoice(PropertiesFrame *propFrame)
|
|
|
|
: PropEditCtrl(propFrame) {}
|
2004-06-11 09:14:23 -04:00
|
|
|
|
2000-11-04 18:34:33 -05:00
|
|
|
virtual wxWindow* CreateEditCtrl();
|
2004-06-11 09:14:23 -04:00
|
|
|
|
2000-11-04 18:34:33 -05:00
|
|
|
virtual void ReadValue();
|
|
|
|
virtual void WriteValue();
|
2004-06-11 09:14:23 -04:00
|
|
|
|
2000-11-04 18:34:33 -05:00
|
|
|
protected:
|
|
|
|
wxChoice *m_Choice;
|
|
|
|
|
|
|
|
DECLARE_EVENT_TABLE()
|
|
|
|
void OnChoice(wxCommandEvent& event);
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
class PropEditCtrlColor : public PropEditCtrlTxt
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
PropEditCtrlColor(PropertiesFrame *propFrame)
|
|
|
|
: PropEditCtrlTxt(propFrame) {}
|
|
|
|
|
2004-06-11 09:14:23 -04:00
|
|
|
virtual bool HasDetails() { return true; }
|
2000-11-04 18:34:33 -05:00
|
|
|
virtual void OnDetails();
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2000-11-05 17:50:58 -05:00
|
|
|
class PropEditCtrlFlags : public PropEditCtrlTxt
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
PropEditCtrlFlags(PropertiesFrame *propFrame)
|
|
|
|
: PropEditCtrlTxt(propFrame) {}
|
|
|
|
|
2004-06-11 09:14:23 -04:00
|
|
|
virtual bool HasDetails() { return true; }
|
2000-11-05 17:50:58 -05:00
|
|
|
virtual void OnDetails();
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
2000-11-24 12:19:48 -05:00
|
|
|
class PropEditCtrlFile : public PropEditCtrlTxt
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
PropEditCtrlFile(PropertiesFrame *propFrame)
|
|
|
|
: PropEditCtrlTxt(propFrame) {}
|
2000-11-05 17:50:58 -05:00
|
|
|
|
2004-06-11 09:14:23 -04:00
|
|
|
virtual bool HasDetails() { return true; }
|
2000-11-24 12:19:48 -05:00
|
|
|
virtual void OnDetails();
|
2004-06-11 09:14:23 -04:00
|
|
|
|
2000-11-24 12:19:48 -05:00
|
|
|
virtual wxString GetFileTypes();
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
class PropEditCtrlImageFile : public PropEditCtrlFile
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
PropEditCtrlImageFile(PropertiesFrame *propFrame)
|
|
|
|
: PropEditCtrlFile(propFrame) {}
|
|
|
|
|
|
|
|
virtual wxString GetFileTypes();
|
|
|
|
};
|
2000-11-04 18:34:33 -05:00
|
|
|
|
|
|
|
#endif
|