Fix formatting keywords and predefined constants in documentation

This commit is contained in:
Artur Wieczorek
2019-04-22 11:01:30 +02:00
parent 84dc4707d7
commit c96495d3be

View File

@@ -43,7 +43,7 @@ struct wxPGPaintData
However, some of these constants are redefined to use cached strings which However, some of these constants are redefined to use cached strings which
may reduce your binary size by some amount. may reduce your binary size by some amount.
If @c wxPG_EX_WRITEONLY_BUILTIN_ATTRIBUTES style is applied to If ::wxPG_EX_WRITEONLY_BUILTIN_ATTRIBUTES style is applied to
wxPropertyGrid, attributes denoted as built-in are not stored into wxPropertyGrid, attributes denoted as built-in are not stored into
property's attribute storage (thus they are write-only) . property's attribute storage (thus they are write-only) .
@@ -54,15 +54,15 @@ struct wxPGPaintData
*/ */
#define wxPG_ATTR_DEFAULT_VALUE wxS("DefaultValue") #define wxPG_ATTR_DEFAULT_VALUE wxS("DefaultValue")
/** Universal, int or double. Minimum value for numeric properties. /** Universal, @c int or @c double. Minimum value for numeric properties.
*/ */
#define wxPG_ATTR_MIN wxS("Min") #define wxPG_ATTR_MIN wxS("Min")
/** Universal, int or double. Maximum value for numeric properties. /** Universal, @c int or @c double. Maximum value for numeric properties.
*/ */
#define wxPG_ATTR_MAX wxS("Max") #define wxPG_ATTR_MAX wxS("Max")
/** Universal, string. When set, will be shown as text after the displayed /** Universal, wxString. When set, will be shown as text after the displayed
text value. Alternatively, if third column is enabled, text will be shown text value. Alternatively, if third column is enabled, text will be shown
there (for any type of property). there (for any type of property).
*/ */
@@ -105,33 +105,33 @@ struct wxPGPaintData
#define wxPG_FLOAT_PRECISION wxS("Precision") #define wxPG_FLOAT_PRECISION wxS("Precision")
/** Built-in attribute of type @c bool. Default value is @false, /** Built-in attribute of type @c bool. Default value is @false,
When set tu @true, the text will be echoed as asterisks (wxTE_PASSWORD When set tu @true, the text will be echoed as asterisks (::wxTE_PASSWORD
will be passed to textctrl etc.). will be passed to textctrl etc.).
*/ */
#define wxPG_STRING_PASSWORD wxS("Password") #define wxPG_STRING_PASSWORD wxS("Password")
/** Built-in attribute to define base used by a wxUIntProperty. Valid constants /** Built-in attribute to define base used by a wxUIntProperty. Valid constants
are @c wxPG_BASE_OCT, @c wxPG_BASE_DEC, @c wxPG_BASE_HEX and are ::wxPG_BASE_OCT, ::wxPG_BASE_DEC, ::wxPG_BASE_HEX and
@c wxPG_BASE_HEXL (lowercase characters). ::wxPG_BASE_HEXL (lowercase characters).
*/ */
#define wxPG_UINT_BASE wxS("Base") #define wxPG_UINT_BASE wxS("Base")
/** Built-in attribute to define prefix rendered to wxUIntProperty. Accepted /** Built-in attribute to define prefix rendered to wxUIntProperty. Accepted
constants @c wxPG_PREFIX_NONE, @c wxPG_PREFIX_0x constants ::wxPG_PREFIX_NONE, ::wxPG_PREFIX_0x
and @c wxPG_PREFIX_DOLLAR_SIGN. and ::wxPG_PREFIX_DOLLAR_SIGN.
@remarks @remarks
Only @c wxPG_PREFIX_NONE works with decimal and octal numbers. Only ::wxPG_PREFIX_NONE works with decimal and octal numbers.
*/ */
#define wxPG_UINT_PREFIX wxS("Prefix") #define wxPG_UINT_PREFIX wxS("Prefix")
/** wxFileProperty/wxImageFileProperty specific, wxChar*, default is detected/varies. /** wxFileProperty/wxImageFileProperty specific, @c wxChar*, default is detected/varies.
Sets the wildcard used in the triggered wxFileDialog. Format is the Sets the wildcard used in the triggered wxFileDialog. Format is the
same. same.
*/ */
#define wxPG_FILE_WILDCARD wxS("Wildcard") #define wxPG_FILE_WILDCARD wxS("Wildcard")
/** wxFileProperty/wxImageFileProperty specific, int, default 1. /** wxFileProperty and wxImageFileProperty specific, @c int, default 1.
When 0, only the file name is shown (i.e. drive and directory are hidden). When 0, only the file name is shown (i.e. drive and directory are hidden).
*/ */
#define wxPG_FILE_SHOW_FULL_PATH wxS("ShowFullPath") #define wxPG_FILE_SHOW_FULL_PATH wxS("ShowFullPath")
@@ -151,7 +151,7 @@ struct wxPGPaintData
*/ */
#define wxPG_FILE_DIALOG_TITLE wxS("DialogTitle") #define wxPG_FILE_DIALOG_TITLE wxS("DialogTitle")
/** Specific to wxFileProperty and derivatives, long, default is 0. /** Specific to wxFileProperty and derivatives, @c long, default is 0.
Sets a specific wxFileDialog style for the file dialog, e.g. ::wxFD_SAVE. Sets a specific wxFileDialog style for the file dialog, e.g. ::wxFD_SAVE.
@since 2.9.4 @since 2.9.4
@@ -177,39 +177,40 @@ struct wxPGPaintData
#define wxPG_DATE_FORMAT wxS("DateFormat") #define wxPG_DATE_FORMAT wxS("DateFormat")
/** Built-in attribute to set wxDatePickerCtrl window style used with /** Built-in attribute to set wxDatePickerCtrl window style used with
wxDateProperty. Default is @c wxDP_DEFAULT | @c wxDP_SHOWCENTURY. Using wxDateProperty. Default is ::wxDP_DEFAULT | ::wxDP_SHOWCENTURY. Using
@c wxDP_ALLOWNONE will enable better unspecified value support ::wxDP_ALLOWNONE will enable better unspecified value support
in the editor. in the editor.
*/ */
#define wxPG_DATE_PICKER_STYLE wxS("PickerStyle") #define wxPG_DATE_PICKER_STYLE wxS("PickerStyle")
/** SpinCtrl editor, int or double. How much number changes when button is /** SpinCtrl editor, @c int or @c double. How much number changes when button
pressed (or up/down on keyboard). is pressed (or up/down on keyboard).
*/ */
#define wxPG_ATTR_SPINCTRL_STEP wxS("Step") #define wxPG_ATTR_SPINCTRL_STEP wxS("Step")
/** SpinCtrl editor, bool. If @true, value wraps at Min/Max. /** SpinCtrl editor, @c bool. If @true, value wraps at Min/Max.
*/ */
#define wxPG_ATTR_SPINCTRL_WRAP wxS("Wrap") #define wxPG_ATTR_SPINCTRL_WRAP wxS("Wrap")
/** SpinCtrl editor, bool. If @true, value can also by changed by moving /** SpinCtrl editor, @c bool. If @true, value can also by changed by moving
mouse when left mouse button is being pressed. mouse when left mouse button is being pressed.
*/ */
#define wxPG_ATTR_SPINCTRL_MOTION wxS("MotionSpin") #define wxPG_ATTR_SPINCTRL_MOTION wxS("MotionSpin")
/** wxMultiChoiceProperty, int. If 0, no user strings allowed. If 1, user strings /** wxMultiChoiceProperty, @c int. If 0, no user strings allowed. If 1, user
appear before list strings. If 2, user strings appear after list string. strings appear before list strings. If 2, user strings appear after list
string.
*/ */
#define wxPG_ATTR_MULTICHOICE_USERSTRINGMODE wxS("UserStringMode") #define wxPG_ATTR_MULTICHOICE_USERSTRINGMODE wxS("UserStringMode")
/** Built-in attribute of wxColourProperty and its kind, type of @int, /** Built-in attribute of wxColourProperty and its kind, type of @c int,
default value is 1. Setting this attribute to 0 hides custom colour default value is 1. Setting this attribute to 0 hides custom colour
from property's list of choices. from property's list of choices.
*/ */
#define wxPG_COLOUR_ALLOW_CUSTOM wxS("AllowCustom") #define wxPG_COLOUR_ALLOW_CUSTOM wxS("AllowCustom")
/** /**
Built-in attribute of wxColourProperty and its kind, @bool type. Default Built-in attribute of wxColourProperty and its kind, @c bool type. Default
value is @false. Set this attribute to @true in order to support editing value is @false. Set this attribute to @true in order to support editing
alpha colour component. alpha colour component.
*/ */
@@ -442,9 +443,9 @@ wxPG_PROP_CLASS_SPECIFIC_3 = 0x00400000
Simple string property. Simple string property.
Supported special attributes: Supported special attributes:
- @c wxPG_STRING_PASSWORD: Set to @true in order to echo value as asterisks and - ::wxPG_STRING_PASSWORD: Set to @true in order to echo value as asterisks and
to use @c wxTE_PASSWORD on the editor (wxTextCtrl). to use ::wxTE_PASSWORD on the editor (wxTextCtrl).
- @c wxPG_ATTR_AUTOCOMPLETE: Set to @true to enable auto-completion - ::wxPG_ATTR_AUTOCOMPLETE: Set to @true to enable auto-completion
(use a wxArrayString value), and is also supported by any property that (use a wxArrayString value), and is also supported by any property that
happens to use a wxTextCtrl-based editor. happens to use a wxTextCtrl-based editor.
@see @ref propgrid_property_attributes @see @ref propgrid_property_attributes
@@ -492,26 +493,26 @@ wxPG_PROP_CLASS_SPECIFIC_3 = 0x00400000
@endcode @endcode
Supported special attributes: Supported special attributes:
- @c wxPG_ATTR_MIN, @c wxPG_ATTR_MAX to specify acceptable value range. - ::wxPG_ATTR_MIN, ::wxPG_ATTR_MAX to specify acceptable value range.
@subsection wxUIntProperty @subsection wxUIntProperty
Like wxIntProperty, but displays value as unsigned int. To set Like wxIntProperty, but displays value as unsigned int. To set
the prefix used globally, manipulate @c wxPG_UINT_PREFIX string attribute. the prefix used globally, manipulate ::wxPG_UINT_PREFIX string attribute.
To set the globally used base, manipulate @c wxPG_UINT_BASE int To set the globally used base, manipulate ::wxPG_UINT_BASE int
attribute. Regardless of current prefix, understands (hex) values starting attribute. Regardless of current prefix, understands (hex) values starting
with both "0x" and "$" (apart from edit mode). with both "0x" and "$" (apart from edit mode).
Like wxIntProperty, wxUIntProperty seamlessly supports 64-bit unsigned Like wxIntProperty, wxUIntProperty seamlessly supports 64-bit unsigned
integers (i.e. wxULongLong). Same wxVariant safety rules apply. integers (i.e. wxULongLong). Same wxVariant safety rules apply.
Supported special attributes: Supported special attributes:
- @c wxPG_ATTR_MIN, @c wxPG_ATTR_MAX: Specifies acceptable value range. - ::wxPG_ATTR_MIN, ::wxPG_ATTR_MAX: Specifies acceptable value range.
- @c wxPG_UINT_BASE: Defines base. Valid constants are @c wxPG_BASE_OCT, - ::wxPG_UINT_BASE: Defines base. Valid constants are ::wxPG_BASE_OCT,
@c wxPG_BASE_DEC, @c wxPG_BASE_HEX and @c wxPG_BASE_HEXL (lowercase characters). ::wxPG_BASE_DEC, ::wxPG_BASE_HEX and ::wxPG_BASE_HEXL (lowercase characters).
Arbitrary bases are <b>not</b> supported. Arbitrary bases are <b>not</b> supported.
- @c wxPG_UINT_PREFIX: Defines displayed prefix. Possible values are - ::wxPG_UINT_PREFIX: Defines displayed prefix. Possible values are
@c wxPG_PREFIX_NONE, @c wxPG_PREFIX_0x and @c wxPG_PREFIX_DOLLAR_SIGN. ::wxPG_PREFIX_NONE, ::wxPG_PREFIX_0x and ::wxPG_PREFIX_DOLLAR_SIGN.
Only @c wxPG_PREFIX_NONE works with decimal and octal numbers. Only ::wxPG_PREFIX_NONE works with decimal and octal numbers.
@see @ref propgrid_property_attributes @see @ref propgrid_property_attributes
@remarks @remarks
@@ -522,7 +523,7 @@ wxPG_PROP_CLASS_SPECIFIC_3 = 0x00400000
Like wxStringProperty, but converts text to a double-precision floating point. Like wxStringProperty, but converts text to a double-precision floating point.
Default float-to-text precision is 6 decimals, but this can be changed Default float-to-text precision is 6 decimals, but this can be changed
by modifying @c wxPG_FLOAT_PRECISION attribute. by modifying ::wxPG_FLOAT_PRECISION attribute.
Note that when displaying the value, sign is omitted if the resulting Note that when displaying the value, sign is omitted if the resulting
textual representation is effectively zero (for example, -0.0001 with textual representation is effectively zero (for example, -0.0001 with
@@ -531,8 +532,8 @@ wxPG_PROP_CLASS_SPECIFIC_3 = 0x00400000
experience in almost all cases. experience in almost all cases.
Supported special attributes: Supported special attributes:
- @c wxPG_ATTR_MIN, @c wxPG_ATTR_MAX: Specifies acceptable value range. - ::wxPG_ATTR_MIN, ::wxPG_ATTR_MAX: Specifies acceptable value range.
- @c wxPG_FLOAT_PRECISION: Sets the (max) precision used when floating point - ::wxPG_FLOAT_PRECISION: Sets the (max) precision used when floating point
value is rendered as text. The default -1 means shortest floating-point value is rendered as text. The default -1 means shortest floating-point
6-digit representation. 6-digit representation.
@see @ref propgrid_property_attributes @see @ref propgrid_property_attributes
@@ -540,13 +541,13 @@ wxPG_PROP_CLASS_SPECIFIC_3 = 0x00400000
@subsection wxBoolProperty @subsection wxBoolProperty
Represents a boolean value. wxChoice is used as editor control, by the Represents a boolean value. wxChoice is used as editor control, by the
default. @c wxPG_BOOL_USE_CHECKBOX attribute can be set to @true in order to default. ::wxPG_BOOL_USE_CHECKBOX attribute can be set to @true in order to
use check box instead. use check box instead.
Supported special attributes: Supported special attributes:
- @c wxPG_BOOL_USE_CHECKBOX: If set to @true uses check box editor instead - ::wxPG_BOOL_USE_CHECKBOX: If set to @true uses check box editor instead
of combo box. of combo box.
- @c wxPG_BOOL_USE_DOUBLE_CLICK_CYCLING: If set to @true cycles combo box - ::wxPG_BOOL_USE_DOUBLE_CLICK_CYCLING: If set to @true cycles combo box
instead showing the list. instead showing the list.
@see @ref propgrid_property_attributes @see @ref propgrid_property_attributes
@@ -598,24 +599,24 @@ wxPG_PROP_CLASS_SPECIFIC_3 = 0x00400000
Like wxLongStringProperty, but the button triggers dir selector instead. Like wxLongStringProperty, but the button triggers dir selector instead.
Supported special attributes: Supported special attributes:
- @c wxPG_DIR_DIALOG_MESSAGE: Sets specific message in the dir selector. - ::wxPG_DIR_DIALOG_MESSAGE: Sets specific message in the dir selector.
@see @ref propgrid_property_attributes @see @ref propgrid_property_attributes
@subsection wxFileProperty @subsection wxFileProperty
Like wxLongStringProperty, but the button triggers file selector instead. Like wxLongStringProperty, but the button triggers file selector instead.
Default wildcard is "All files..." but this can be changed by setting Default wildcard is "All files..." but this can be changed by setting
@c wxPG_FILE_WILDCARD attribute. ::wxPG_FILE_WILDCARD attribute.
Supported special attributes: Supported special attributes:
- @c wxPG_FILE_WILDCARD: Sets wildcard (see wxFileDialog for format details), "All - ::wxPG_FILE_WILDCARD: Sets wildcard (see wxFileDialog for format details), "All
files..." is default. files..." is default.
- @c wxPG_FILE_SHOW_FULL_PATH: Default @true. When @false, only the file name is shown - ::wxPG_FILE_SHOW_FULL_PATH: Default @true. When @false, only the file name is shown
(i.e. drive and directory are hidden). (i.e. drive and directory are hidden).
- @c wxPG_FILE_SHOW_RELATIVE_PATH: If set, then the filename is shown relative to the - ::wxPG_FILE_SHOW_RELATIVE_PATH: If set, then the filename is shown relative to the
given path string. given path string.
- @c wxPG_FILE_INITIAL_PATH: Sets the initial path of where to look for files. - ::wxPG_FILE_INITIAL_PATH: Sets the initial path of where to look for files.
- @c wxPG_FILE_DIALOG_TITLE: Sets a specific title for the dir dialog. - ::wxPG_FILE_DIALOG_TITLE: Sets a specific title for the dir dialog.
@see @ref propgrid_property_attributes @see @ref propgrid_property_attributes
@subsection wxEnumProperty @subsection wxEnumProperty
@@ -642,7 +643,7 @@ wxPG_PROP_CLASS_SPECIFIC_3 = 0x00400000
of strings in wxTextCtrl and in a separate dialog. of strings in wxTextCtrl and in a separate dialog.
Supported special attributes: Supported special attributes:
- @c wxPG_ARRAY_DELIMITER: Sets string delimiter character. - ::wxPG_ARRAY_DELIMITER: Sets string delimiter character.
Default is comma (','). Default is comma (',').
@see @ref propgrid_property_attributes @see @ref propgrid_property_attributes
@@ -652,10 +653,10 @@ wxPG_PROP_CLASS_SPECIFIC_3 = 0x00400000
although TextCtrl should work as well. although TextCtrl should work as well.
Supported special attributes: Supported special attributes:
- @c wxPG_DATE_FORMAT: Determines displayed date format (with wxDateTime::Format). - ::wxPG_DATE_FORMAT: Determines displayed date format (with wxDateTime::Format).
Default is recommended as it is locale-dependent. Default is recommended as it is locale-dependent.
- @c wxPG_DATE_PICKER_STYLE: Determines window style used with wxDatePickerCtrl. - ::wxPG_DATE_PICKER_STYLE: Determines window style used with wxDatePickerCtrl.
Default is @c wxDP_DEFAULT | @c wxDP_SHOWCENTURY. Using @c wxDP_ALLOWNONE Default is ::wxDP_DEFAULT | ::wxDP_SHOWCENTURY. Using ::wxDP_ALLOWNONE
enables additional support for unspecified property value. enables additional support for unspecified property value.
@see @ref propgrid_property_attributes @see @ref propgrid_property_attributes
@@ -675,7 +676,7 @@ wxPG_PROP_CLASS_SPECIFIC_3 = 0x00400000
It uses wxArrayString value. It uses wxArrayString value.
Supported special attributes: Supported special attributes:
- @c wxPG_ATTR_MULTICHOICE_USERSTRINGMODE: If > 0, allows user to manually - ::wxPG_ATTR_MULTICHOICE_USERSTRINGMODE: If > 0, allows user to manually
enter strings that are not in the list of choices. If this value is 1, 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 user strings are preferably placed in front of valid choices. If value
is 2, then those strings will placed behind valid choices. is 2, then those strings will placed behind valid choices.
@@ -696,7 +697,7 @@ wxPG_PROP_CLASS_SPECIFIC_3 = 0x00400000
below in wxSystemColourProperty section for details. below in wxSystemColourProperty section for details.
Supported special attributes: Supported special attributes:
- @c wxPG_COLOUR_HAS_ALPHA: If set to @true allows user to edit the alpha - ::wxPG_COLOUR_HAS_ALPHA: If set to @true allows user to edit the alpha
colour component. colour component.
@see @ref propgrid_property_attributes @see @ref propgrid_property_attributes