forked from mia/Aegisub
assdraw: remove pointless out of date inline copy of libpropgrid
Originally committed to SVN as r6850.
This commit is contained in:
parent
c4367f083c
commit
40a2bae771
19 changed files with 3 additions and 37577 deletions
|
@ -1 +1 @@
|
|||
SUBDIRS = libpropgrid src
|
||||
SUBDIRS = src
|
||||
|
|
|
@ -68,7 +68,6 @@ fi
|
|||
|
||||
AC_OUTPUT([
|
||||
Makefile
|
||||
libpropgrid/Makefile
|
||||
src/wxAGG/Makefile
|
||||
src/xpm/Makefile
|
||||
src/Makefile
|
||||
|
|
|
@ -1,23 +0,0 @@
|
|||
noinst_LIBRARIES = libpropgrid.a
|
||||
|
||||
AM_CPPFLAGS = -Iinclude @WX_CPPFLAGS@
|
||||
|
||||
libpropgrid_a_SOURCES = \
|
||||
advprops.cpp \
|
||||
extras.cpp \
|
||||
manager.cpp \
|
||||
odcombo.cpp \
|
||||
propgrid.cpp \
|
||||
props.cpp
|
||||
|
||||
libpropgrid_a_SOURCES += \
|
||||
include/wx/propgrid/advprops.h \
|
||||
include/wx/propgrid/Doxyfile \
|
||||
include/wx/propgrid/extras.h \
|
||||
include/wx/propgrid/manager.h \
|
||||
include/wx/propgrid/odcombo.h \
|
||||
include/wx/propgrid/pg_dox_mainpage.h \
|
||||
include/wx/propgrid/propdev.h \
|
||||
include/wx/propgrid/propgrid.h
|
||||
|
||||
|
File diff suppressed because it is too large
Load diff
|
@ -1,23 +0,0 @@
|
|||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: extras.cpp
|
||||
// Purpose: wxPropertyGrid Extras
|
||||
// Author: Jaakko Salli
|
||||
// Modified by:
|
||||
// Created: Mar-05-2006
|
||||
// RCS-ID: $Id:
|
||||
// Copyright: (c) Jaakko Salli
|
||||
// Licence: wxWindows license
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
//
|
||||
// In wxPython version this file will have additional property and
|
||||
// editor control source code.
|
||||
//
|
||||
|
||||
// For compilers that support precompilation, includes "wx/wx.h".
|
||||
#include "wx/wxprec.h"
|
||||
|
||||
#ifdef __BORLANDC__
|
||||
#pragma hdrstop
|
||||
#endif
|
||||
|
|
@ -1,210 +0,0 @@
|
|||
# Doxyfile 1.3.6
|
||||
|
||||
#---------------------------------------------------------------------------
|
||||
# Project related configuration options
|
||||
#---------------------------------------------------------------------------
|
||||
PROJECT_NAME = wxPropertyGrid
|
||||
PROJECT_NUMBER =
|
||||
OUTPUT_DIRECTORY =
|
||||
OUTPUT_LANGUAGE = English
|
||||
USE_WINDOWS_ENCODING = YES
|
||||
BRIEF_MEMBER_DESC = NO
|
||||
REPEAT_BRIEF = YES
|
||||
ABBREVIATE_BRIEF =
|
||||
ALWAYS_DETAILED_SEC = NO
|
||||
INLINE_INHERITED_MEMB = YES
|
||||
FULL_PATH_NAMES = NO
|
||||
STRIP_FROM_PATH =
|
||||
SHORT_NAMES = NO
|
||||
JAVADOC_AUTOBRIEF = YES
|
||||
MULTILINE_CPP_IS_BRIEF = NO
|
||||
DETAILS_AT_TOP = NO
|
||||
INHERIT_DOCS = YES
|
||||
DISTRIBUTE_GROUP_DOC = NO
|
||||
TAB_SIZE = 8
|
||||
ALIASES =
|
||||
OPTIMIZE_OUTPUT_FOR_C = NO
|
||||
OPTIMIZE_OUTPUT_JAVA = NO
|
||||
SUBGROUPING = YES
|
||||
#---------------------------------------------------------------------------
|
||||
# Build related configuration options
|
||||
#---------------------------------------------------------------------------
|
||||
EXTRACT_ALL = NO
|
||||
EXTRACT_PRIVATE = NO
|
||||
EXTRACT_STATIC = NO
|
||||
EXTRACT_LOCAL_CLASSES = YES
|
||||
HIDE_UNDOC_MEMBERS = NO
|
||||
HIDE_UNDOC_CLASSES = NO
|
||||
HIDE_FRIEND_COMPOUNDS = YES
|
||||
HIDE_IN_BODY_DOCS = NO
|
||||
INTERNAL_DOCS = NO
|
||||
CASE_SENSE_NAMES = YES
|
||||
HIDE_SCOPE_NAMES = NO
|
||||
SHOW_INCLUDE_FILES = YES
|
||||
INLINE_INFO = YES
|
||||
SORT_MEMBER_DOCS = YES
|
||||
SORT_BRIEF_DOCS = YES
|
||||
SORT_BY_SCOPE_NAME = YES
|
||||
GENERATE_TODOLIST = YES
|
||||
GENERATE_TESTLIST = YES
|
||||
GENERATE_BUGLIST = YES
|
||||
GENERATE_DEPRECATEDLIST= YES
|
||||
ENABLED_SECTIONS =
|
||||
MAX_INITIALIZER_LINES = 30
|
||||
SHOW_USED_FILES = YES
|
||||
#---------------------------------------------------------------------------
|
||||
# configuration options related to warning and progress messages
|
||||
#---------------------------------------------------------------------------
|
||||
QUIET = YES
|
||||
WARNINGS = YES
|
||||
WARN_IF_UNDOCUMENTED = NO
|
||||
WARN_IF_DOC_ERROR = YES
|
||||
WARN_FORMAT = "$file:$line: $text"
|
||||
WARN_LOGFILE = doxygen.log
|
||||
#---------------------------------------------------------------------------
|
||||
# configuration options related to the input files
|
||||
#---------------------------------------------------------------------------
|
||||
#INPUT = ../../include/wx/propgrid/
|
||||
INPUT =
|
||||
FILE_PATTERNS =
|
||||
RECURSIVE = NO
|
||||
EXCLUDE =
|
||||
EXCLUDE_SYMLINKS = NO
|
||||
EXCLUDE_PATTERNS =
|
||||
EXAMPLE_PATH =
|
||||
EXAMPLE_PATTERNS =
|
||||
EXAMPLE_RECURSIVE = NO
|
||||
IMAGE_PATH =
|
||||
INPUT_FILTER =
|
||||
FILTER_SOURCE_FILES = NO
|
||||
#---------------------------------------------------------------------------
|
||||
# configuration options related to source browsing
|
||||
#---------------------------------------------------------------------------
|
||||
SOURCE_BROWSER = NO
|
||||
INLINE_SOURCES = NO
|
||||
STRIP_CODE_COMMENTS = YES
|
||||
REFERENCED_BY_RELATION = YES
|
||||
REFERENCES_RELATION = YES
|
||||
VERBATIM_HEADERS = NO
|
||||
#---------------------------------------------------------------------------
|
||||
# configuration options related to the alphabetical class index
|
||||
#---------------------------------------------------------------------------
|
||||
ALPHABETICAL_INDEX = YES
|
||||
COLS_IN_ALPHA_INDEX = 5
|
||||
IGNORE_PREFIX =
|
||||
#---------------------------------------------------------------------------
|
||||
# configuration options related to the HTML output
|
||||
#---------------------------------------------------------------------------
|
||||
GENERATE_HTML = YES
|
||||
HTML_OUTPUT = ../../../docs/html/propgrid
|
||||
HTML_FILE_EXTENSION = .htm
|
||||
HTML_HEADER =
|
||||
HTML_FOOTER =
|
||||
HTML_STYLESHEET =
|
||||
HTML_ALIGN_MEMBERS = YES
|
||||
GENERATE_HTMLHELP = NO
|
||||
CHM_FILE = propgrid.chm
|
||||
HHC_LOCATION =
|
||||
GENERATE_CHI = NO
|
||||
BINARY_TOC = NO
|
||||
TOC_EXPAND = NO
|
||||
DISABLE_INDEX = NO
|
||||
ENUM_VALUES_PER_LINE = 4
|
||||
GENERATE_TREEVIEW = NO
|
||||
TREEVIEW_WIDTH = 250
|
||||
#---------------------------------------------------------------------------
|
||||
# configuration options related to the LaTeX output
|
||||
#---------------------------------------------------------------------------
|
||||
GENERATE_LATEX = NO
|
||||
LATEX_OUTPUT = latex
|
||||
LATEX_CMD_NAME = latex
|
||||
MAKEINDEX_CMD_NAME = makeindex
|
||||
COMPACT_LATEX = NO
|
||||
PAPER_TYPE = a4wide
|
||||
EXTRA_PACKAGES =
|
||||
LATEX_HEADER =
|
||||
PDF_HYPERLINKS = NO
|
||||
USE_PDFLATEX = NO
|
||||
LATEX_BATCHMODE = NO
|
||||
LATEX_HIDE_INDICES = NO
|
||||
#---------------------------------------------------------------------------
|
||||
# configuration options related to the RTF output
|
||||
#---------------------------------------------------------------------------
|
||||
GENERATE_RTF = NO
|
||||
RTF_OUTPUT = rtf
|
||||
COMPACT_RTF = NO
|
||||
RTF_HYPERLINKS = NO
|
||||
RTF_STYLESHEET_FILE =
|
||||
RTF_EXTENSIONS_FILE =
|
||||
#---------------------------------------------------------------------------
|
||||
# configuration options related to the man page output
|
||||
#---------------------------------------------------------------------------
|
||||
GENERATE_MAN = NO
|
||||
MAN_OUTPUT = man
|
||||
MAN_EXTENSION = .3
|
||||
MAN_LINKS = NO
|
||||
#---------------------------------------------------------------------------
|
||||
# configuration options related to the XML output
|
||||
#---------------------------------------------------------------------------
|
||||
GENERATE_XML = NO
|
||||
XML_OUTPUT = xml
|
||||
XML_SCHEMA =
|
||||
XML_DTD =
|
||||
XML_PROGRAMLISTING = YES
|
||||
#---------------------------------------------------------------------------
|
||||
# configuration options for the AutoGen Definitions output
|
||||
#---------------------------------------------------------------------------
|
||||
GENERATE_AUTOGEN_DEF = NO
|
||||
#---------------------------------------------------------------------------
|
||||
# configuration options related to the Perl module output
|
||||
#---------------------------------------------------------------------------
|
||||
GENERATE_PERLMOD = NO
|
||||
PERLMOD_LATEX = NO
|
||||
PERLMOD_PRETTY = YES
|
||||
PERLMOD_MAKEVAR_PREFIX =
|
||||
#---------------------------------------------------------------------------
|
||||
# Configuration options related to the preprocessor
|
||||
#---------------------------------------------------------------------------
|
||||
ENABLE_PREPROCESSING = YES
|
||||
MACRO_EXPANSION = YES
|
||||
EXPAND_ONLY_PREDEF = NO
|
||||
SEARCH_INCLUDES = YES
|
||||
INCLUDE_PATH = ../../../include
|
||||
INCLUDE_FILE_PATTERNS =
|
||||
PREDEFINED =
|
||||
EXPAND_AS_DEFINED =
|
||||
SKIP_FUNCTION_MACROS = YES
|
||||
#---------------------------------------------------------------------------
|
||||
# Configuration::additions related to external references
|
||||
#---------------------------------------------------------------------------
|
||||
TAGFILES =
|
||||
GENERATE_TAGFILE =
|
||||
ALLEXTERNALS = NO
|
||||
EXTERNAL_GROUPS = YES
|
||||
PERL_PATH = /usr/bin/perl
|
||||
#---------------------------------------------------------------------------
|
||||
# Configuration options related to the dot tool
|
||||
#---------------------------------------------------------------------------
|
||||
CLASS_DIAGRAMS = YES
|
||||
HIDE_UNDOC_RELATIONS = YES
|
||||
HAVE_DOT = NO
|
||||
CLASS_GRAPH = YES
|
||||
COLLABORATION_GRAPH = YES
|
||||
UML_LOOK = NO
|
||||
TEMPLATE_RELATIONS = NO
|
||||
INCLUDE_GRAPH = YES
|
||||
INCLUDED_BY_GRAPH = YES
|
||||
CALL_GRAPH = NO
|
||||
GRAPHICAL_HIERARCHY = YES
|
||||
DOT_IMAGE_FORMAT = png
|
||||
DOT_PATH =
|
||||
DOTFILE_DIRS =
|
||||
MAX_DOT_GRAPH_WIDTH = 1024
|
||||
MAX_DOT_GRAPH_HEIGHT = 1024
|
||||
MAX_DOT_GRAPH_DEPTH = 0
|
||||
GENERATE_LEGEND = YES
|
||||
DOT_CLEANUP = YES
|
||||
#---------------------------------------------------------------------------
|
||||
# Configuration::additions related to the search engine
|
||||
#---------------------------------------------------------------------------
|
||||
SEARCHENGINE = YES
|
|
@ -1,432 +0,0 @@
|
|||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: advprops.h
|
||||
// Purpose: wxPropertyGrid Advanced Properties (font, colour, etc.)
|
||||
// Author: Jaakko Salli
|
||||
// Modified by:
|
||||
// Created: Sep-25-2004
|
||||
// RCS-ID: $Id:
|
||||
// Copyright: (c) Jaakko Salli
|
||||
// Licence: wxWindows license
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef _WX_PROPGRID_ADVPROPS_H_
|
||||
#define _WX_PROPGRID_ADVPROPS_H_
|
||||
|
||||
#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
|
||||
#pragma interface "advprops.cpp"
|
||||
#endif
|
||||
|
||||
// -----------------------------------------------------------------------
|
||||
|
||||
|
||||
//
|
||||
// Additional Value Type Handlers
|
||||
//
|
||||
#ifndef SWIG
|
||||
|
||||
WX_PG_DECLARE_VALUE_TYPE_WITH_DECL(wxFont,WXDLLIMPEXP_PG)
|
||||
|
||||
WX_PG_DECLARE_VALUE_TYPE_WITH_DECL(wxColour,WXDLLIMPEXP_PG)
|
||||
|
||||
WX_PG_DECLARE_VALUE_TYPE_VOIDP_WITH_DECL(wxArrayInt,WXDLLIMPEXP_PG)
|
||||
|
||||
|
||||
#if wxUSE_DATETIME
|
||||
#include <wx/datetime.h>
|
||||
WX_PG_DECLARE_VALUE_TYPE_BUILTIN_WITH_DECL(wxDateTime,WXDLLIMPEXP_PG)
|
||||
#endif
|
||||
|
||||
bool WXDLLIMPEXP_PG operator == (const wxFont&, const wxFont&);
|
||||
|
||||
bool WXDLLIMPEXP_PG operator == (const wxArrayInt& array1, const wxArrayInt& array2);
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
//
|
||||
// Additional Property Editors
|
||||
//
|
||||
#if wxUSE_SPINBTN
|
||||
WX_PG_DECLARE_EDITOR_WITH_DECL(SpinCtrl,WXDLLIMPEXP_PG)
|
||||
#endif
|
||||
|
||||
#if wxUSE_DATEPICKCTRL && defined(wxPG_ALLOW_WXADV)
|
||||
WX_PG_DECLARE_EDITOR_WITH_DECL(DatePickerCtrl,WXDLLIMPEXP_PG)
|
||||
#endif
|
||||
|
||||
// -----------------------------------------------------------------------
|
||||
|
||||
|
||||
// Web colour is currently unsupported
|
||||
#define wxPG_COLOUR_WEB_BASE 0x10000
|
||||
//#define wxPG_TO_WEB_COLOUR(A) ((wxUint32)(A+wxPG_COLOUR_WEB_BASE))
|
||||
|
||||
|
||||
#define wxPG_COLOUR_CUSTOM 0xFFFFFF
|
||||
|
||||
/** \class wxColourPropertyValue
|
||||
\ingroup classes
|
||||
\brief Because text, background and other colours tend to differ between
|
||||
platforms, wxSystemColourProperty must be able to select between system
|
||||
colour and, when necessary, to pick a custom one. wxSystemColourProperty
|
||||
value makes this possible.
|
||||
*/
|
||||
class WXDLLIMPEXP_PG wxColourPropertyValue : public wxObject
|
||||
{
|
||||
public:
|
||||
/** An integer value relating to the colour, and which exact
|
||||
meaning depends on the property with which it is used.
|
||||
|
||||
For wxSystemColourProperty:
|
||||
|
||||
Any of wxSYS_COLOUR_XXX, or any web-colour ( use wxPG_TO_WEB_COLOUR
|
||||
macro - (currently unsupported) ), or wxPG_COLOUR_CUSTOM.
|
||||
|
||||
For custom colour properties without values array specified:
|
||||
|
||||
index or wxPG_COLOUR_CUSTOM
|
||||
|
||||
For custom colour properties <b>with</b> values array specified:
|
||||
|
||||
m_arrValues[index] or wxPG_COLOUR_CUSTOM
|
||||
*/
|
||||
wxUint32 m_type;
|
||||
|
||||
/** Resulting colour. Should be correct regardless of type. */
|
||||
wxColour m_colour;
|
||||
|
||||
wxColourPropertyValue() { }
|
||||
|
||||
inline void Init( wxUint32 type, const wxColour& colour )
|
||||
{
|
||||
m_type = type;
|
||||
m_colour = colour;
|
||||
}
|
||||
|
||||
inline wxColourPropertyValue( const wxColour& colour )
|
||||
{
|
||||
m_type = wxPG_COLOUR_CUSTOM;
|
||||
m_colour = colour;
|
||||
}
|
||||
|
||||
inline wxColourPropertyValue( wxUint32 type )
|
||||
{
|
||||
m_type = type;
|
||||
}
|
||||
|
||||
inline wxColourPropertyValue( wxUint32 type, const wxColour& colour )
|
||||
{
|
||||
Init( type, colour );
|
||||
}
|
||||
|
||||
#ifndef SWIG
|
||||
private:
|
||||
DECLARE_DYNAMIC_CLASS(wxColourPropertyValue)
|
||||
#endif
|
||||
};
|
||||
|
||||
#ifndef SWIG
|
||||
bool WXDLLIMPEXP_PG operator == (const wxColourPropertyValue&, const wxColourPropertyValue&);
|
||||
|
||||
WX_PG_DECLARE_VALUE_TYPE_WITH_DECL(wxColourPropertyValue,WXDLLIMPEXP_PG)
|
||||
#endif
|
||||
|
||||
#ifndef SWIG
|
||||
#define wxPG_EMPTY_CPV (*((wxColourPropertyValue*)NULL))
|
||||
#define wxPG_NORMAL_FONT (*wxNORMAL_FONT)
|
||||
#else
|
||||
#define wxPG_EMPTY_CPV wxCPV_wxPG_EMPTY
|
||||
#define wxPG_NORMAL_FONT wxFONT_wxPG_NORMAL_FONT
|
||||
#endif
|
||||
|
||||
|
||||
// -----------------------------------------------------------------------
|
||||
// Declare part of custom colour property macro pairs.
|
||||
|
||||
#define WX_PG_DECLARE_CUSTOM_COLOUR_PROPERTY_WITH_DECL(NAME,DECL) \
|
||||
extern DECL wxPGProperty* wxPG_CONSTFUNC(NAME)( const wxString& label, const wxString& name = wxPG_LABEL, const wxColourPropertyValue& value = wxPG_EMPTY_CPV ); \
|
||||
extern DECL wxPGPropertyClassInfo NAME##ClassInfo;
|
||||
|
||||
#define WX_PG_DECLARE_CUSTOM_COLOUR_PROPERTY(NAME) \
|
||||
extern wxPGProperty* wxPG_CONSTFUNC(NAME)( const wxString& label, const wxString& name = wxPG_LABEL, const wxColourPropertyValue& value = wxPG_EMPTY_CPV ); \
|
||||
extern wxPGPropertyClassInfo NAME##ClassInfo;
|
||||
|
||||
#define WX_PG_DECLARE_CUSTOM_COLOUR_PROPERTY_USES_WXCOLOUR_WITH_DECL(NAME,DECL) \
|
||||
extern DECL wxPGProperty* wxPG_CONSTFUNC(NAME)( const wxString& label, const wxString& name = wxPG_LABEL, const wxColour& value = wxPG_COLOUR_BLACK ); \
|
||||
extern DECL wxPGPropertyClassInfo NAME##ClassInfo;
|
||||
|
||||
#define WX_PG_DECLARE_CUSTOM_COLOUR_PROPERTY_USES_WXCOLOUR(NAME) \
|
||||
extern wxPGProperty* wxPG_CONSTFUNC(NAME)( const wxString& label, const wxString& name = wxPG_LABEL, const wxColour& value = wxPG_COLOUR_BLACK ); \
|
||||
extern wxPGPropertyClassInfo NAME##ClassInfo;
|
||||
|
||||
// Declare advanced properties.
|
||||
WX_PG_DECLARE_PROPERTY_WITH_DECL(wxFontProperty,const wxFont&,wxPG_NORMAL_FONT,WXDLLIMPEXP_PG)
|
||||
WX_PG_DECLARE_PROPERTY_WITH_DECL(wxSystemColourProperty,const wxColourPropertyValue&,wxPG_EMPTY_CPV,WXDLLIMPEXP_PG)
|
||||
WX_PG_DECLARE_PROPERTY_WITH_DECL(wxCursorProperty,int,wxCURSOR_NONE,WXDLLIMPEXP_PG)
|
||||
WX_PG_DECLARE_PROPERTY_WITH_DECL(wxDateProperty,const wxDateTime&,wxDateTime(),WXDLLIMPEXP_PG)
|
||||
|
||||
#if wxUSE_IMAGE || defined(SWIG)
|
||||
#include <wx/image.h>
|
||||
WX_PG_DECLARE_PROPERTY_WITH_DECL(wxImageFileProperty,const wxString&,wxEmptyString,WXDLLIMPEXP_PG)
|
||||
#endif
|
||||
|
||||
WX_PG_DECLARE_CUSTOM_COLOUR_PROPERTY_USES_WXCOLOUR_WITH_DECL(wxColourProperty,WXDLLIMPEXP_PG)
|
||||
|
||||
// MultiChoice is trickier.
|
||||
|
||||
#ifndef __WXPYTHON__
|
||||
|
||||
extern WXDLLIMPEXP_PG wxPGProperty* wxMultiChoiceProperty(const wxString& label,
|
||||
const wxString& name,
|
||||
const wxArrayString& choices = wxArrayString(),
|
||||
const wxArrayInt& value = wxPG_EMPTY_ARRAYINT);
|
||||
|
||||
extern WXDLLIMPEXP_PG wxPGProperty* wxMultiChoiceProperty(const wxString& label,
|
||||
const wxString& name,
|
||||
const wxPGChoices& choices,
|
||||
const wxArrayInt& value = wxPG_EMPTY_ARRAYINT);
|
||||
|
||||
extern WXDLLIMPEXP_PG wxPGProperty* wxMultiChoiceProperty(const wxString& label,
|
||||
const wxString& name,
|
||||
const wxArrayInt& value);
|
||||
|
||||
#else
|
||||
|
||||
extern WXDLLIMPEXP_PG wxPGProperty* wxMultiChoiceProperty(const wxString& label,
|
||||
const wxString& name = wxPG_LABEL,
|
||||
const wxArrayString& choices = wxArrayString(),
|
||||
// This crazyness is needed for Python 2.3 (which uses
|
||||
// VC6) compatibility.
|
||||
#ifndef SWIG
|
||||
const wxArrayInt& value = (*((wxArrayInt*)NULL)));
|
||||
#else
|
||||
const wxArrayInt& value = wxArrayInt());
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
// -----------------------------------------------------------------------
|
||||
|
||||
//
|
||||
// Define property classes *only* if propdev.h was included
|
||||
//
|
||||
#if defined(_WX_PROPGRID_PROPDEV_H_)
|
||||
|
||||
//#ifndef SWIG
|
||||
|
||||
// -----------------------------------------------------------------------
|
||||
|
||||
class WXDLLIMPEXP_PG wxFontPropertyClass : public wxPGPropertyWithChildren
|
||||
{
|
||||
WX_PG_DECLARE_PROPERTY_CLASS()
|
||||
public:
|
||||
|
||||
wxFontPropertyClass( const wxString& label, const wxString& name, const wxFont& value );
|
||||
virtual ~wxFontPropertyClass();
|
||||
|
||||
WX_PG_DECLARE_PARENTAL_TYPE_METHODS()
|
||||
virtual wxString GetValueAsString( int argFlags = 0 ) const;
|
||||
|
||||
WX_PG_DECLARE_EVENT_METHODS()
|
||||
WX_PG_DECLARE_PARENTAL_METHODS()
|
||||
//WX_PG_DECLARE_CUSTOM_PAINT_METHODS()
|
||||
|
||||
protected:
|
||||
wxFont m_value_wxFont;
|
||||
};
|
||||
|
||||
// -----------------------------------------------------------------------
|
||||
|
||||
|
||||
/** If set, then match from list is searched for a custom colour. */
|
||||
#define wxPG_PROP_TRANSLATE_CUSTOM wxPG_PROP_CLASS_SPECIFIC_1
|
||||
|
||||
|
||||
class WXDLLIMPEXP_PG wxSystemColourPropertyClass : public wxEnumPropertyClass
|
||||
{
|
||||
WX_PG_DECLARE_PROPERTY_CLASS()
|
||||
public:
|
||||
|
||||
wxSystemColourPropertyClass( const wxString& label, const wxString& name,
|
||||
const wxColourPropertyValue& value );
|
||||
~wxSystemColourPropertyClass();
|
||||
|
||||
WX_PG_DECLARE_BASIC_TYPE_METHODS()
|
||||
WX_PG_DECLARE_EVENT_METHODS()
|
||||
WX_PG_DECLARE_CUSTOM_PAINT_METHODS()
|
||||
WX_PG_DECLARE_ATTRIBUTE_METHODS()
|
||||
|
||||
// Helper function to show the colour dialog
|
||||
bool QueryColourFromUser( wxPropertyGrid* propgrid, wxWindow* primary );
|
||||
|
||||
// Default is to use wxSystemSettings::GetColour(index). Override to use
|
||||
// custom colour tables etc.
|
||||
virtual long GetColour( int index );
|
||||
|
||||
protected:
|
||||
|
||||
// Special constructors to be used by derived classes.
|
||||
wxSystemColourPropertyClass( const wxString& label, const wxString& name,
|
||||
const wxChar** labels, const long* values, wxPGChoices* choicesCache,
|
||||
const wxColourPropertyValue& value );
|
||||
wxSystemColourPropertyClass( const wxString& label, const wxString& name,
|
||||
const wxChar** labels, const long* values, wxPGChoices* choicesCache,
|
||||
const wxColour& value );
|
||||
|
||||
void Init ( int type, const wxColour& colour );
|
||||
|
||||
// Translates colour to a int value, return wxNOT_FOUND if no match.
|
||||
int ColToInd ( const wxColour& colour );
|
||||
|
||||
wxColourPropertyValue m_value;
|
||||
};
|
||||
|
||||
// -----------------------------------------------------------------------
|
||||
|
||||
#ifndef SWIG
|
||||
|
||||
class WXDLLIMPEXP_PG wxCursorPropertyClass : public wxEnumPropertyClass
|
||||
{
|
||||
WX_PG_DECLARE_DERIVED_PROPERTY_CLASS()
|
||||
public:
|
||||
|
||||
wxCursorPropertyClass( const wxString& label, const wxString& name, int value );
|
||||
virtual ~wxCursorPropertyClass();
|
||||
|
||||
WX_PG_DECLARE_CUSTOM_PAINT_METHODS()
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
// -----------------------------------------------------------------------
|
||||
|
||||
#if wxUSE_IMAGE || defined(SWIG)
|
||||
|
||||
WXDLLIMPEXP_PG const wxString& wxPGGetDefaultImageWildcard();
|
||||
|
||||
class WXDLLIMPEXP_PG wxImageFilePropertyClass : public wxFilePropertyClass
|
||||
{
|
||||
WX_PG_DECLARE_DERIVED_PROPERTY_CLASS()
|
||||
public:
|
||||
|
||||
wxImageFilePropertyClass( const wxString& label, const wxString& name, const wxString& value );
|
||||
virtual ~wxImageFilePropertyClass ();
|
||||
|
||||
virtual void DoSetValue ( wxPGVariant value );
|
||||
WX_PG_DECLARE_CUSTOM_PAINT_METHODS()
|
||||
|
||||
protected:
|
||||
wxBitmap* m_pBitmap; // final thumbnail area
|
||||
wxImage* m_pImage; // intermediate thumbnail area
|
||||
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
#if wxUSE_CHOICEDLG && !defined(SWIG) //|| defined(SWIG)
|
||||
|
||||
class WXDLLIMPEXP_PG wxMultiChoicePropertyClass : public wxPGProperty
|
||||
{
|
||||
WX_PG_DECLARE_PROPERTY_CLASS()
|
||||
public:
|
||||
|
||||
wxMultiChoicePropertyClass( const wxString& label,
|
||||
const wxString& name,
|
||||
const wxArrayString& strings,
|
||||
const wxArrayInt& value );
|
||||
wxMultiChoicePropertyClass( const wxString& label,
|
||||
const wxString& name = wxPG_LABEL,
|
||||
const wxArrayInt& value = wxArrayInt() );
|
||||
wxMultiChoicePropertyClass( const wxString& label,
|
||||
const wxString& name,
|
||||
const wxPGChoices& choices,
|
||||
const wxArrayInt& value = wxArrayInt() );
|
||||
virtual ~wxMultiChoicePropertyClass();
|
||||
|
||||
virtual void DoSetValue( wxPGVariant value );
|
||||
virtual wxPGVariant DoGetValue() const;
|
||||
virtual wxString GetValueAsString( int flags = 0 ) const;
|
||||
virtual bool SetValueFromString( const wxString& text, int flags );
|
||||
WX_PG_DECLARE_EVENT_METHODS()
|
||||
|
||||
virtual int GetChoiceInfo( wxPGChoiceInfo* choiceinfo );
|
||||
|
||||
protected:
|
||||
|
||||
void SetValueI( const wxArrayInt& arr ); // I stands for internal
|
||||
void GenerateValueAsString();
|
||||
|
||||
// Returns translation of values into string indices.
|
||||
wxArrayInt GetValueAsIndices() const;
|
||||
|
||||
wxPGChoices m_choices; // Holds strings (any values given are ignored).
|
||||
wxArrayInt m_value_wxArrayInt; // Actual value.
|
||||
|
||||
wxString m_display; // Cache displayed text since generating it is relatively complicated.
|
||||
};
|
||||
|
||||
#endif // wxUSE_CHOICEDLG
|
||||
|
||||
// -----------------------------------------------------------------------
|
||||
|
||||
#if wxUSE_DATETIME && !defined(SWIG)
|
||||
|
||||
class WXDLLIMPEXP_PG wxDatePropertyClass : public wxPGProperty
|
||||
{
|
||||
WX_PG_DECLARE_PROPERTY_CLASS()
|
||||
public:
|
||||
|
||||
wxDatePropertyClass( const wxString& label, const wxString& name, const wxDateTime& value );
|
||||
virtual ~wxDatePropertyClass();
|
||||
|
||||
virtual void DoSetValue( wxPGVariant value );
|
||||
virtual wxPGVariant DoGetValue() const;
|
||||
virtual wxString GetValueAsString( int flags = 0 ) const;
|
||||
virtual bool SetValueFromString( const wxString& text, int flags );
|
||||
|
||||
//WX_PG_DECLARE_EVENT_METHODS()
|
||||
WX_PG_DECLARE_ATTRIBUTE_METHODS()
|
||||
|
||||
inline void SetFormat( const wxString& format )
|
||||
{
|
||||
m_format = format;
|
||||
}
|
||||
|
||||
inline const wxString& GetFormat() const
|
||||
{
|
||||
return m_format;
|
||||
}
|
||||
|
||||
inline void SetDateValue( const wxDateTime& dt )
|
||||
{
|
||||
m_valueDateTime = dt;
|
||||
}
|
||||
|
||||
inline const wxDateTime& GetDateValue() const
|
||||
{
|
||||
return m_valueDateTime;
|
||||
}
|
||||
|
||||
inline long GetDatePickerStyle() const
|
||||
{
|
||||
return m_dpStyle;
|
||||
}
|
||||
|
||||
protected:
|
||||
wxDateTime m_valueDateTime;
|
||||
wxString m_format;
|
||||
long m_dpStyle; // DatePicker style
|
||||
|
||||
static wxString ms_defaultDateFormat;
|
||||
static wxString DetermineDefaultDateFormat( bool showCentury );
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
// -----------------------------------------------------------------------
|
||||
|
||||
//#endif // #ifndef SWIG
|
||||
|
||||
#endif // _WX_PROPGRID_PROPDEV_H_
|
||||
|
||||
#endif // _WX_PROPGRID_ADVPROPS_H_
|
|
@ -1,20 +0,0 @@
|
|||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Name: extras.h
|
||||
// Purpose: wxPropertyGrid Extras Header
|
||||
// Author: Jaakko Salli
|
||||
// Modified by:
|
||||
// Created: Mar-05-2006
|
||||
// RCS-ID: $Id:
|
||||
// Copyright: (c) Jaakko Salli
|
||||
// Licence: wxWindows license
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef WX_PROPGRID_EXTRAS_H
|
||||
#define WX_PROPGRID_EXTRAS_H
|
||||
|
||||
//
|
||||
// In wxPython version this file will have additional property and
|
||||
// editor control headers.
|
||||
//
|
||||
|
||||
#endif // WX_PROPGRID_EXTRAS_H
|
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
|
@ -1 +0,0 @@
|
|||
# THIS FILE IS NO LONGER USED (use Doxyfile instead)
|
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
|
@ -2,11 +2,11 @@ SUFFIXES = .cpp
|
|||
|
||||
SUBDIRS = wxAGG xpm
|
||||
|
||||
AM_CXXFLAGS = @WX_CPPFLAGS@ @LIBAGG_CFLAGS@ -I../libpropgrid/include
|
||||
AM_CXXFLAGS = @WX_CPPFLAGS@ @LIBAGG_CFLAGS@
|
||||
|
||||
bin_PROGRAMS = assdraw
|
||||
#assdraw_CPPFLAGS =
|
||||
assdraw_LDFLAGS = -L../libpropgrid -lpropgrid @WX_LIBS@ @LIBAGG_LIBS@
|
||||
assdraw_LDFLAGS = @WX_LIBS@ @LIBAGG_LIBS@
|
||||
assdraw_LDADD = wxAGG/libaggwindow.a xpm/libres.a
|
||||
|
||||
assdraw_SOURCES = \
|
||||
|
|
Loading…
Reference in a new issue