Make semantic wxICON_XXX styles the canonical ones

Make wxICON_WARNING and wxICON_ERROR the primary constants for their
purpose and define their visual Windows-based synonyms wxICON_HAND and
wxICON_EXCLAMATION in terms of the semantic ones, instead of the other
way around.
This commit is contained in:
Václav Slavík
2015-03-01 11:18:08 +01:00
parent 1b61975fba
commit 94fc40b7ea
2 changed files with 11 additions and 9 deletions

View File

@@ -50,12 +50,10 @@ const char wxMessageBoxCaptionStr[] = "Message";
used to prevent the dialog from using the default icon based on @c
wxYES_NO presence as explained in @c wxICON_QUESTION and @c
wxICON_INFORMATION documentation below.
@style{wxICON_EXCLAMATION}
Displays an exclamation, or warning, icon in the dialog.
@style{wxICON_ERROR}
Displays an error icon in the dialog.
@style{wxICON_HAND}
Displays an error symbol, this is a MSW-inspired synonym for @c wxICON_ERROR.
@style{wxICON_WARNING}
Displays a warning icon in the dialog.
@style{wxICON_QUESTION}
Displays a question mark symbol. This icon is automatically used
with @c wxYES_NO so it's usually unnecessary to specify it explicitly.
@@ -68,6 +66,10 @@ const char wxMessageBoxCaptionStr[] = "Message";
Displays an information symbol. This icon is used by default if
@c wxYES_NO is not given so it is usually unnecessary to specify it
explicitly.
@style{wxICON_EXCLAMATION}
Alias for @c wxICON_WARNING.
@style{wxICON_HAND}
Alias for @c wxICON_ERROR.
@style{wxICON_AUTH_NEEDED}
Displays an authentication needed symbol. This style is only supported
for message dialogs under wxMSW when a task dialog is used to implement