Replace wxPG_FILE_DIALOG_TITLE and wxPG_DIR_DIALOG_MESSAGE attributes with wxPG_DIALOG_TITLE
Current wxPG_FILE_DIALOG_TITLE and wxPG_DIR_DIALOG_MESSAGE attributes can be used to customize editor dialog titles only for wxFileProperty and wxDirProperty, respectively. New wxPG_DIALOG_TITLE property is applicable to all properties derived from wxEditorDialogProperty so not only editor dialog titles for wxFileProperty and wxDirProperty can be set but also for wxFontProperty, wxLongStringProperty, etc. wxPG_FILE_DIALOG_TITLE and wxPG_DIR_DIALOG_MESSAGE attributes are marked obsolete.
This commit is contained in:
@@ -65,6 +65,9 @@ public:
|
||||
/** @class wxFontProperty
|
||||
@ingroup classes
|
||||
Property representing wxFont.
|
||||
|
||||
<b>Supported special attributes:</b>
|
||||
- ::wxPG_DIALOG_TITLE: Sets a specific title for the font dialog (since 3.1.3).
|
||||
*/
|
||||
class wxFontProperty : public wxEditorDialogProperty
|
||||
{
|
||||
@@ -219,6 +222,17 @@ const wxString& wxPGGetDefaultImageWildcard();
|
||||
/** @class wxImageFileProperty
|
||||
@ingroup classes
|
||||
Property representing image file(name).
|
||||
|
||||
<b>Supported special attributes:</b>
|
||||
- ::wxPG_DIALOG_TITLE: Sets a specific title for the file dialog (since 3.1.3).
|
||||
- ::wxPG_FILE_DIALOG_STYLE: Sets a specific wxFileDialog style for the file dialog.
|
||||
- ::wxPG_FILE_WILDCARD: Sets wildcard (see wxFileDialog for format details), "All
|
||||
files..." is default.
|
||||
- ::wxPG_FILE_SHOW_FULL_PATH: Default @true. When @false, only the file name is shown
|
||||
(i.e. drive and directory are hidden).
|
||||
- ::wxPG_FILE_SHOW_RELATIVE_PATH: If set, then the filename is shown relative to the
|
||||
given path string.
|
||||
- ::wxPG_FILE_INITIAL_PATH: Sets the initial path of where to look for files.
|
||||
*/
|
||||
class wxImageFileProperty : public wxFileProperty
|
||||
{
|
||||
@@ -253,6 +267,7 @@ protected:
|
||||
enter strings that are not in the list of choices. If this value is 1,
|
||||
user strings are preferably placed in front of valid choices. If value is
|
||||
2, then those strings will placed behind valid choices.
|
||||
- ::wxPG_DIALOG_TITLE: Sets a specific title for the editor dialog (since 3.1.3).
|
||||
*/
|
||||
class wxMultiChoiceProperty : public wxEditorDialogProperty
|
||||
{
|
||||
|
@@ -129,6 +129,13 @@ struct wxPGPaintData
|
||||
*/
|
||||
#define wxPG_UINT_PREFIX wxS("Prefix")
|
||||
|
||||
/** Built-in attribute specific to wxEditorDialogProperty and derivatives,
|
||||
wxString, default is empty. Sets a specific title for the editor dialog.
|
||||
|
||||
@since 3.1.3
|
||||
*/
|
||||
#define wxPG_DIALOG_TITLE wxS("DialogTitle")
|
||||
|
||||
/** wxFileProperty and wxImageFileProperty specific built-in attribute,
|
||||
@c wxChar*, default is detected/varies. Sets the wildcard used in
|
||||
the triggered wxFileDialog. Format is the same.
|
||||
@@ -152,11 +159,6 @@ struct wxPGPaintData
|
||||
*/
|
||||
#define wxPG_FILE_INITIAL_PATH wxS("InitialPath")
|
||||
|
||||
/** Built-in attribute specific to wxFileProperty and derivatives, wxString,
|
||||
default is empty. Sets a specific title for the dir dialog.
|
||||
*/
|
||||
#define wxPG_FILE_DIALOG_TITLE wxS("DialogTitle")
|
||||
|
||||
/** Built-in attribute specific to wxFileProperty and derivatives, @c long,
|
||||
default is 0. Sets a specific wxFileDialog style for the file dialog,
|
||||
e.g. ::wxFD_SAVE.
|
||||
@@ -165,11 +167,6 @@ struct wxPGPaintData
|
||||
*/
|
||||
#define wxPG_FILE_DIALOG_STYLE wxS("DialogStyle")
|
||||
|
||||
/** Built-in attribute specific to wxDirProperty, wxString, default is empty.
|
||||
Sets a specific message for the dir dialog.
|
||||
*/
|
||||
#define wxPG_DIR_DIALOG_MESSAGE wxS("DialogMessage")
|
||||
|
||||
/**
|
||||
Built-in attribute to set wxArrayStringProperty's string delimiter
|
||||
character. If this is a quotation mark or hyphen, then strings
|
||||
@@ -615,12 +612,15 @@ wxPG_PROP_CLASS_SPECIFIC_3 = 0x00400000
|
||||
m_flags |= wxPG_PROP_NO_ESCAPE;
|
||||
@endcode
|
||||
|
||||
Supported special attributes:
|
||||
- ::wxPG_DIALOG_TITLE: Sets a specific title for the text editor dialog.
|
||||
|
||||
@subsection wxDirProperty
|
||||
|
||||
Like wxLongStringProperty, but the button triggers dir selector instead.
|
||||
|
||||
Supported special attributes:
|
||||
- ::wxPG_DIR_DIALOG_MESSAGE: Sets specific message in the dir selector.
|
||||
- ::wxPG_DIALOG_TITLE: Sets specific title for the dir selector.
|
||||
@see @ref propgrid_property_attributes
|
||||
|
||||
@subsection wxFileProperty
|
||||
@@ -630,6 +630,8 @@ wxPG_PROP_CLASS_SPECIFIC_3 = 0x00400000
|
||||
::wxPG_FILE_WILDCARD attribute.
|
||||
|
||||
Supported special attributes:
|
||||
- ::wxPG_DIALOG_TITLE: Sets a specific title for the file dialog.
|
||||
- ::wxPG_FILE_DIALOG_STYLE: Sets a specific wxFileDialog style for the file dialog.
|
||||
- ::wxPG_FILE_WILDCARD: Sets wildcard (see wxFileDialog for format details), "All
|
||||
files..." is default.
|
||||
- ::wxPG_FILE_SHOW_FULL_PATH: Default @true. When @false, only the file name is shown
|
||||
@@ -637,8 +639,6 @@ wxPG_PROP_CLASS_SPECIFIC_3 = 0x00400000
|
||||
- ::wxPG_FILE_SHOW_RELATIVE_PATH: If set, then the filename is shown relative to the
|
||||
given path string.
|
||||
- ::wxPG_FILE_INITIAL_PATH: Sets the initial path of where to look for files.
|
||||
- ::wxPG_FILE_DIALOG_TITLE: Sets a specific title for the dir dialog.
|
||||
- ::wxPG_FILE_DIALOG_STYLE: Sets a specific wxFileDialog style for the file dialog.
|
||||
@see @ref propgrid_property_attributes
|
||||
|
||||
@subsection wxEnumProperty
|
||||
@@ -666,6 +666,7 @@ wxPG_PROP_CLASS_SPECIFIC_3 = 0x00400000
|
||||
|
||||
Supported special attributes:
|
||||
- ::wxPG_ARRAY_DELIMITER: Sets string delimiter character.
|
||||
- ::wxPG_DIALOG_TITLE: Sets a specific title for the editor dialog.
|
||||
Default is comma (',').
|
||||
@see @ref propgrid_property_attributes
|
||||
|
||||
@@ -702,6 +703,7 @@ wxPG_PROP_CLASS_SPECIFIC_3 = 0x00400000
|
||||
enter strings that are not in the list of choices. If this value is 1,
|
||||
user strings are preferably placed in front of valid choices. If value
|
||||
is 2, then those strings will placed behind valid choices.
|
||||
- ::wxPG_DIALOG_TITLE: Sets a specific title for the editor dialog.
|
||||
@see @ref propgrid_property_attributes
|
||||
|
||||
@subsection wxImageFileProperty
|
||||
@@ -710,6 +712,18 @@ wxPG_PROP_CLASS_SPECIFIC_3 = 0x00400000
|
||||
but has thumbnail of the image in front of the filename
|
||||
and autogenerates wildcard from available image handlers.
|
||||
|
||||
Supported special attributes:
|
||||
- ::wxPG_DIALOG_TITLE: Sets a specific title for the file dialog.
|
||||
- ::wxPG_FILE_DIALOG_STYLE: Sets a specific wxFileDialog style for the file dialog.
|
||||
- ::wxPG_FILE_WILDCARD: Sets wildcard (see wxFileDialog for format details), "All
|
||||
files..." is default.
|
||||
- ::wxPG_FILE_SHOW_FULL_PATH: Default @true. When @false, only the file name is shown
|
||||
(i.e. drive and directory are hidden).
|
||||
- ::wxPG_FILE_SHOW_RELATIVE_PATH: If set, then the filename is shown relative to the
|
||||
given path string.
|
||||
- ::wxPG_FILE_INITIAL_PATH: Sets the initial path of where to look for files.
|
||||
@see @ref propgrid_property_attributes
|
||||
|
||||
@subsection wxColourProperty
|
||||
|
||||
<b>Useful alternate editor:</b> Choice.
|
||||
@@ -728,6 +742,9 @@ wxPG_PROP_CLASS_SPECIFIC_3 = 0x00400000
|
||||
Represents wxFont. Various sub-properties are used to edit individual
|
||||
subvalues.
|
||||
|
||||
Supported special attributes:
|
||||
- ::wxPG_DIALOG_TITLE: Sets a specific title for the font dialog.
|
||||
|
||||
@subsection wxSystemColourProperty
|
||||
|
||||
Represents wxColour and a system colour index. wxChoice is used to edit
|
||||
|
@@ -553,6 +553,9 @@ protected:
|
||||
having a button triggering an editor dialog, like e.g. wxLongStringProperty,
|
||||
wxDirProperty, wxFileProperty.
|
||||
|
||||
<b>Supported special attributes:</b>
|
||||
- ::wxPG_DIALOG_TITLE: Sets a specific title for the editor dialog.
|
||||
|
||||
@since 3.1.3
|
||||
*/
|
||||
class wxEditorDialogProperty : public wxPGProperty
|
||||
@@ -561,6 +564,7 @@ public:
|
||||
virtual ~wxEditorDialogProperty();
|
||||
|
||||
virtual wxPGEditorDialogAdapter* GetEditorDialog() const;
|
||||
virtual bool DoSetAttribute( const wxString& name, wxVariant& value );
|
||||
|
||||
protected:
|
||||
/**
|
||||
@@ -599,6 +603,9 @@ protected:
|
||||
Like wxLongStringProperty, but the button triggers file selector instead.
|
||||
|
||||
<b>Supported special attributes:</b>
|
||||
- ::wxPG_DIALOG_TITLE: Sets a specific title for the file dialog (since 3.1.3).
|
||||
- ::wxPG_FILE_DIALOG_STYLE: Sets a specific wxFileDialog style for the file
|
||||
dialog (since 2.9.4).
|
||||
- ::wxPG_FILE_WILDCARD: Sets wildcard (see wxFileDialog for format details),
|
||||
"All files..." is default.
|
||||
- ::wxPG_FILE_SHOW_FULL_PATH: Default @true. When @false, only the file name is
|
||||
@@ -606,9 +613,6 @@ protected:
|
||||
- ::wxPG_FILE_SHOW_RELATIVE_PATH: If set, then the filename is shown relative
|
||||
to the given path string.
|
||||
- ::wxPG_FILE_INITIAL_PATH: Sets the initial path of where to look for files.
|
||||
- ::wxPG_FILE_DIALOG_TITLE: Sets a specific title for the dir dialog.
|
||||
- ::wxPG_FILE_DIALOG_STYLE: Sets a specific wxFileDialog style for the file
|
||||
dialog (since 2.9.4).
|
||||
*/
|
||||
class wxFileProperty : public wxEditorDialogProperty
|
||||
{
|
||||
@@ -650,6 +654,9 @@ protected:
|
||||
@ingroup classes
|
||||
Like wxStringProperty, but has a button that triggers a small text
|
||||
editor dialog.
|
||||
|
||||
<b>Supported special attributes:</b>
|
||||
- ::wxPG_DIALOG_TITLE: Sets a specific title for the text editor dialog (since 3.1.3).
|
||||
*/
|
||||
class wxLongStringProperty : public wxEditorDialogProperty
|
||||
{
|
||||
@@ -676,7 +683,7 @@ protected:
|
||||
instead.
|
||||
|
||||
<b>Supported special attributes:</b>
|
||||
- ::wxPG_DIR_DIALOG_MESSAGE: Sets specific message in the dir selector.
|
||||
- ::wxPG_DIALOG_TITLE: Sets a specific title for the file dialog (since 3.1.3).
|
||||
*/
|
||||
class wxDirProperty : public wxEditorDialogProperty
|
||||
{
|
||||
@@ -689,7 +696,6 @@ public:
|
||||
virtual wxString ValueToString(wxVariant& value, int argFlags = 0) const;
|
||||
virtual bool StringToValue(wxVariant& variant, const wxString& text,
|
||||
int argFlags = 0) const;
|
||||
virtual bool DoSetAttribute( const wxString& name, wxVariant& value );
|
||||
virtual wxValidator* DoGetValidator() const;
|
||||
|
||||
protected:
|
||||
@@ -707,6 +713,10 @@ protected:
|
||||
/** @class wxArrayStringProperty
|
||||
@ingroup classes
|
||||
Property that manages a list of strings.
|
||||
|
||||
<b>Supported special attributes:</b>
|
||||
- ::wxPG_ARRAY_DELIMITER: Sets string delimiter character.
|
||||
- ::wxPG_DIALOG_TITLE: Sets a specific title for the editor dialog (since 3.1.3).
|
||||
*/
|
||||
class wxArrayStringProperty : public wxEditorDialogProperty
|
||||
{
|
||||
|
Reference in New Issue
Block a user