removed @NULL,@true,@false tags from the function prototypes; fixed * and & displacing in the prototypes; changed @param as discussed on wx-dev; use @see instead of @sa; better indentation for @returns,@remarks,@see paragraphs; other misc fixes

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52407 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Francesco Montorsi
2008-03-09 12:33:59 +00:00
parent 0aaf0255e4
commit 4cc4bfafe5
256 changed files with 8880 additions and 10701 deletions

View File

@@ -44,52 +44,54 @@ class wxAboutDialogInfo
public:
/**
Default constructor leaves all fields are initially uninitialized, in general
you should call at least SetVersion(), SetCopyright() and SetDescription().
you should call at least SetVersion(),
SetCopyright() and
SetDescription().
*/
wxAboutDialogInfo();
/**
Adds an artist name to be shown in the program credits.
@sa SetArtists()
@see SetArtists()
*/
void AddArtist(const wxString& artist);
/**
Adds a developer name to be shown in the program credits.
@sa SetDevelopers()
@see SetDevelopers()
*/
void AddDeveloper(const wxString& developer);
/**
Adds a documentation writer name to be shown in the program credits.
@sa SetDocWriters()
@see SetDocWriters()
*/
void AddDocWriter(const wxString& docwriter);
/**
Adds a translator name to be shown in the program credits. Notice that if no
translator names are specified explicitely, wxAboutBox will try to use the
translation of the string @c translator-credits from the currently used message
catalog -- this can be used to show just the name of the translator of the
program in the current language.
translator names are specified explicitely, wxAboutBox
will try to use the translation of the string @c translator-credits from
the currently used message catalog -- this can be used to show just the name of
the translator of the program in the current language.
@sa SetTranslators()
@see SetTranslators()
*/
void AddTranslator(const wxString& translator);
/**
Sets the the list of artists to be shown in the program credits.
@sa AddArtist()
@see AddArtist()
*/
void SetArtists(const wxArrayString& artists);
/**
Set the short string containing the program copyright information. Notice
that any occurrences of @c "(C)" in @e copyright will be replaced by the
Set the short string containing the program copyright information. Notice that
any occurrences of @c "(C)" in @a copyright will be replaced by the
copyright symbol (circled C) automatically, which means that you can avoid
using this symbol in the program source code which can be problematic,
*/
@@ -103,14 +105,14 @@ public:
/**
Set the list of developers of the program.
@sa AddDeveloper()
@see AddDeveloper()
*/
void SetDevelopers(const wxArrayString& developers);
/**
Set the list of documentation writers.
@sa AddDocWriter()
@see AddDocWriter()
*/
void SetDocWriters(const wxArrayString& docwriters);
@@ -125,7 +127,6 @@ public:
/**
Set the long, multiline string containing the text of the program licence.
Only GTK+ version supports showing the licence text in the native about dialog
currently so the generic version will be used under all the other platforms if
this method is called. To preserve the native look and feel it is advised that
@@ -146,21 +147,22 @@ public:
void SetName(const wxString& name);
/**
Set the list of translators. Please see AddTranslator() for additional
Set the list of translators. Please see
AddTranslator() for additional
discussion.
*/
void SetTranslators(const wxArrayString& translators);
/**
Set the version of the program. The version is in free format, i.e. not
necessarily in the @c x.y.z form but it shouldn't contain the "version" word.
necessarily in the @c x.y.z form but it shouldn't contain the "version"
word.
*/
void SetVersion(const wxString& version);
/**
Set the web site for the program and its description (which defaults to URL
itself if empty).
Please notice that only GTK+ version currently supports showing the link in the
native about dialog so if this method is called, the generic version will be
used under all the other platforms.
@@ -180,7 +182,6 @@ public:
which is capable of showing all the fields in @e info, the native dialog is
used, otherwise the function falls back to the generic wxWidgets version of the
dialog, i.e. does the same thing as wxGenericAboutBox.
Here is an example of how this function may be used:
@code
@@ -208,11 +209,11 @@ void wxAboutBox(const wxAboutDialogInfo& info);
native one. This is mainly useful if you need to customize the dialog by e.g.
adding custom controls to it (customizing the native dialog is not currently
supported).
See the @ref overview_sampledialogs "dialogs sample" for an example of about
dialog customization.
dialog
customization.
@sa wxAboutDialogInfo
@see wxAboutDialogInfo
*/
void wxGenericAboutBox(const wxAboutDialogInfo& info);

View File

@@ -27,12 +27,11 @@ public:
Constructor.
@param flags
One of wxACCEL_ALT, wxACCEL_SHIFT, wxACCEL_CTRL and wxACCEL_NORMAL. Indicates
One of wxACCEL_ALT, wxACCEL_SHIFT, wxACCEL_CTRL and wxACCEL_NORMAL.
Indicates
which modifier key is held down.
@param keyCode
The keycode to be detected. See Keycodes for a full list of keycodes.
@param cmd
The menu or control command identifier.
*/
@@ -59,16 +58,15 @@ public:
Sets the accelerator entry parameters.
@param flags
One of wxACCEL_ALT, wxACCEL_SHIFT, wxACCEL_CTRL and wxACCEL_NORMAL. Indicates
One of wxACCEL_ALT, wxACCEL_SHIFT, wxACCEL_CTRL and wxACCEL_NORMAL.
Indicates
which modifier key is held down.
@param keyCode
The keycode to be detected. See Keycodes for a full list of keycodes.
@param cmd
The menu or control command identifier.
*/
#define void Set(int flags, int keyCode, int cmd) /* implementation is private */
void Set(int flags, int keyCode, int cmd);
};
@@ -105,10 +103,8 @@ public:
@param n
Number of accelerator entries.
@param entries
The array of entries.
@param resource
Name of a Windows accelerator.
*/
@@ -128,7 +124,7 @@ public:
/**
Returns @true if the accelerator table is valid.
*/
#define bool IsOk() /* implementation is private */
bool IsOk();
/**
Assignment operator, using @ref overview_trefcount "reference counting".

View File

@@ -50,7 +50,7 @@ public:
Constructor, taking an optional window. The object can be associated with
a window later.
*/
wxAccessible(wxWindow* win = @NULL);
wxAccessible(wxWindow* win = NULL);
/**
Destructor.
@@ -58,7 +58,7 @@ public:
~wxAccessible();
/**
Performs the default action for the object. @e childId is 0 (the action for
Performs the default action for the object. @a childId is 0 (the action for
this object)
or greater than 0 (the action for a child). Return wxACC_NOT_SUPPORTED if there
is no default action for this window (e.g. an edit control).
@@ -66,7 +66,7 @@ public:
virtual wxAccStatus DoDefaultAction(int childId);
/**
Gets the specified child (starting from 1). If @e child is @NULL and the return
Gets the specified child (starting from 1). If @a child is @NULL and the return
value is wxACC_OK,
this means that the child is a simple element and not an accessible object.
*/
@@ -79,7 +79,7 @@ public:
/**
Gets the default action for this object (0) or a child (greater than 0).
Return wxACC_OK even if there is no action. @e actionName is the action, or the
Return wxACC_OK even if there is no action. @a actionName is the action, or the
empty
string if there is no action. The retrieved string describes the action that is
performed on an object,
@@ -119,7 +119,7 @@ public:
/**
Returns the rectangle for this object (id is 0) or a child element (id is
greater than 0).
@e rect is in screen coordinates.
@a rect is in screen coordinates.
*/
virtual wxAccStatus GetLocation(wxRect& rect, int elementId);
@@ -142,9 +142,7 @@ public:
/**
Gets a variant representing the selected children
of this object.
Acceptable values are:
a null variant (IsNull() returns TRUE)
a list variant (GetType() == wxT("list"))
an integer representing the selected child element,
@@ -175,14 +173,13 @@ public:
this or
a child object. Can return either a child object, or an integer
representing the child element, starting from 1.
@e pt is in screen coordinates.
@a pt is in screen coordinates.
*/
virtual wxAccStatus HitTest(const wxPoint& pt, int* childId,
wxAccessible** childObject);
/**
Navigates from @e fromId to @e toId/@e toObject.
Navigates from @a fromId to @e toId/@e toObject.
*/
virtual wxAccStatus Navigate(wxNavDir navDir, int fromId,
int* toId,

View File

@@ -57,22 +57,16 @@ public:
@param parent
Parent window, must be non-@NULL.
@param id
The identifier for the control.
@param anim
The initial animation shown in the control.
@param pos
Initial position.
@param size
Initial size.
@param style
The window style, see wxAC_* flags.
@param name
Control name.
@@ -122,7 +116,6 @@ public:
/**
Sets the animation to play in this control.
If the previous animation is being played, it's @ref stop() Stopped.
Until Play() isn't called, a static image, the first
frame of the given animation or the background colour will be shown
(see SetInactiveBitmap() for more info).
@@ -137,12 +130,10 @@ public:
if there's no valid animation associated with the control (see
wxAnimationCtrl::SetAnimation),
then the background colour of the window is shown.
If the control is not playing the animation, the given bitmap will be
immediately
shown, otherwise it will be shown as soon as Stop()
is called.
Note that the inactive bitmap, if smaller than the control's size, will be
centered in
the control; if bigger, it will be stretched to fit it.
@@ -186,7 +177,6 @@ public:
@param name
The name of the file to load.
@param type
See LoadFile for more info.
*/
@@ -227,31 +217,49 @@ public:
/**
Returns @true if animation data is present.
*/
#define bool IsOk() /* implementation is private */
bool IsOk();
/**
Loads an animation from the given stream.
@param stream
The stream to use to load the animation.
@param type
One of the following values:
wxANIMATION_TYPE_GIF
Load an animated GIF file.
wxANIMATION_TYPE_ANI
Load an ANI file.
wxANIMATION_TYPE_ANY
Try to autodetect the filetype.
@returns @true if the operation succeeded, @false otherwise.
@@ -264,24 +272,42 @@ public:
@param name
A filename.
@param type
One of the following values:
wxANIMATION_TYPE_GIF
Load an animated GIF file.
wxANIMATION_TYPE_ANI
Load an ANI file.
wxANIMATION_TYPE_ANY
Try to autodetect the filetype.
@returns @true if the operation succeeded, @false otherwise.

View File

@@ -51,7 +51,7 @@ public:
Creates a wxLog class for the application to use for logging errors. The default
implementation returns a new wxLogGui class.
@sa wxLog
@see wxLog
*/
virtual wxLog* CreateLogTarget();
@@ -59,16 +59,15 @@ public:
Creates the wxAppTraits object when GetTraits()
needs it for the first time.
@sa wxAppTraits
@see wxAppTraits
*/
virtual wxAppTraits* CreateTraits();
/**
Dispatches the next event in the windowing system event queue.
This can be used for programming event loops, e.g.
@sa Pending()
@see Pending()
*/
virtual void Dispatch();
@@ -95,9 +94,7 @@ public:
is meant to be shown to the user and so should be used for the window titles,
page headers and so on while the other one should be only used internally, e.g.
for the file names or configuration file keys.
By default, returns the same string as GetAppName().
This function is new since wxWidgets version 2.9.0
*/
wxString GetAppDisplayName();
@@ -106,10 +103,9 @@ public:
Returns the application name.
@remarks wxWidgets sets this to a reasonable default before calling
OnInit(), but the application can reset it at
will.
OnInit(), but the application can reset it at will.
@sa GetAppDisplayName()
@see GetAppDisplayName()
*/
wxString GetAppName();
@@ -118,7 +114,7 @@ public:
platform specific
manner to refer to the application.
@sa SetClassName()
@see SetClassName()
*/
wxString GetClassName();
@@ -127,7 +123,7 @@ public:
@false
otherwise.
@sa SetExitOnFrameDelete(), @ref overview_wxappshutdownoverview "wxApp
@see SetExitOnFrameDelete(), @ref overview_wxappshutdownoverview "wxApp
shutdown overview"
*/
bool GetExitOnFrameDelete();
@@ -136,7 +132,7 @@ public:
Returns the one and only global application object.
Usually @c wxTheApp is usead instead.
@sa SetInstance()
@see SetInstance()
*/
static wxAppConsole* GetInstance();
@@ -147,7 +143,7 @@ public:
this function will find the first top-level window
(frame or dialog) and return that.
@sa SetTopWindow()
@see SetTopWindow()
*/
virtual wxWindow* GetTopWindow();
@@ -162,7 +158,7 @@ public:
Returns @true if the application will use the best visual on systems that support
different visuals, @false otherwise.
@sa SetUseBestVisual()
@see SetUseBestVisual()
*/
bool GetUseBestVisual();
@@ -172,9 +168,7 @@ public:
is meant to be shown to the user and so should be used for the window titles,
page headers and so on while the other one should be only used internally, e.g.
for the file names or configuration file keys.
By default, returns the same string as GetVendorName().
This function is new since wxWidgets version 2.9.0
*/
wxString GetVendorDisplayName();
@@ -185,8 +179,8 @@ public:
wxString GetVendorName();
/**
This function simply invokes the given method @e func of the specified
event handler @e handler with the @e event as parameter. It exists solely
This function simply invokes the given method @a func of the specified
event handler @a handler with the @a event as parameter. It exists solely
to allow to catch the C++ exceptions which could be thrown by all event
handlers in the application in one place: if you want to do this, override this
function in your wxApp-derived class and add try/catch clause(s) to it.
@@ -207,7 +201,6 @@ public:
/**
Returns @true if the main event loop is currently running, i.e. if the
application is inside OnRun().
This can be useful to test whether events can be dispatched. For example,
if this function returns @false, non-blocking sockets cannot be used because
the events from them would never be processed.
@@ -258,23 +251,18 @@ public:
specified in wxASSERT macro evaluated to @false.
It is only called in debug mode (when @c __WXDEBUG__ is defined) as
asserts are not left in the release code at all.
The base class version shows the default assert failure dialog box proposing to
the user to stop the program, continue or ignore all subsequent asserts.
@param file
the name of the source file where the assert occurred
@param line
the line number in this file where the assert occurred
@param func
the name of the function where the assert occurred, may be
empty if the compiler doesn't support C99 __FUNCTION__
@param cond
the condition of the failed assert in text form
@param msg
the message specified as argument to
wxASSERT_MSG or wxFAIL_MSG, will
@@ -290,22 +278,20 @@ public:
Called when command line parsing fails (i.e. an incorrect command line option
was specified by the user). The default behaviour is to show the program usage
text and abort the program.
Return @true to continue normal execution or @false to return
@false from OnInit() thus terminating the program.
@sa OnInitCmdLine()
@see OnInitCmdLine()
*/
bool OnCmdLineError(wxCmdLineParser& parser);
/**
Called when the help option (@c --help) was specified on the command line.
The default behaviour is to show the program usage text and abort the program.
Return @true to continue normal execution or @false to return
@false from OnInit() thus terminating the program.
@sa OnInitCmdLine()
@see OnInitCmdLine()
*/
bool OnCmdLineHelp(wxCmdLineParser& parser);
@@ -313,14 +299,12 @@ public:
Called after the command line had been successfully parsed. You may override
this method to test for the values of the various parameters which could be
set from the command line.
Don't forget to call the base class version unless you want to suppress
processing of the standard command line options.
Return @true to continue normal execution or @false to return
@false from OnInit() thus terminating the program.
@sa OnInitCmdLine()
@see OnInitCmdLine()
*/
bool OnCmdLineParsed(wxCmdLineParser& parser);
@@ -330,12 +314,10 @@ public:
continue running the loop or @false to exit the loop and terminate the
program. In the latter case it can also use C++ @c throw keyword to
rethrow the current exception.
The default behaviour of this function is the latter in all ports except under
Windows where a dialog is shown to the user which allows him to choose between
the different options. You may override this function in your class to do
something more appropriate.
Finally note that if the exception is rethrown from here, it can be caught in
OnUnhandledException().
*/
@@ -347,7 +329,6 @@ public:
destroying all application windows and controls, but before
wxWidgets cleanup. Note that it is not called at all if
OnInit() failed.
The return value of this function is currently ignored, return the same value
as returned by the base class method if you override it.
*/
@@ -358,12 +339,11 @@ public:
exception under Win32 or a a fatal signal under Unix, for example. However,
this will not happen by default: you have to explicitly call
wxHandleFatalExceptions to enable this.
Generally speaking, this function should only show a message to the user and
return. You may attempt to save unsaved data but this is not guaranteed to
work and, in fact, probably won't.
@sa wxHandleFatalExceptions
@see wxHandleFatalExceptions
*/
void OnFatalException();
@@ -373,11 +353,9 @@ public:
SetTopWindow(). You may use
OnExit() to clean up anything initialized here, provided
that the function returns @true.
Notice that if you want to to use the command line processing provided by
wxWidgets you have to call the base class version in the derived class
OnInit().
Return @true to continue processing, @false to exit the application
immediately.
*/
@@ -398,7 +376,6 @@ public:
the last frame has been deleted and
GetExitOnFrameDelete() flag is @true (this
is the default).
The return value of this function becomes the exit code of the program, so it
should return 0 in case of successful termination.
*/
@@ -411,7 +388,6 @@ public:
event loop has been terminated and the program will exit, if you want to
prevent this from happening (i.e. continue running after catching an exception)
you need to override OnExceptionInMainLoop().
The default implementation shows information about the exception in debug build
but does nothing in the release build.
*/
@@ -420,7 +396,7 @@ public:
/**
Returns @true if unprocessed events are in the window system event queue.
@sa Dispatch()
@see Dispatch()
*/
virtual bool Pending();
@@ -438,7 +414,6 @@ public:
/**
Sends idle events to a window and its children.
Please note that this function is internal to wxWidgets and shouldn't be used
by user code.
@@ -446,7 +421,7 @@ public:
for idle event processing. If @true is returned, more
OnIdle processing is requested by one or more window.
@sa wxIdleEvent
@see wxIdleEvent
*/
bool SendIdleEvents(wxWindow* win, wxIdleEvent& event);
@@ -462,10 +437,9 @@ public:
configuration file entries and other internal strings. For the user-visible
strings, such as the window titles, the application display name set by
SetAppDisplayName() is used instead.
By default the application name is set to the name of its executable file.
@sa GetAppName()
@see GetAppName()
*/
void SetAppName(const wxString& name);
@@ -473,7 +447,7 @@ public:
Sets the class name of the application. This may be used in a platform specific
manner to refer to the application.
@sa GetClassName()
@see GetClassName()
*/
void SetClassName(const wxString& name);
@@ -485,7 +459,7 @@ public:
If @true (the default), the application will exit when the top-level frame is
deleted. If @false, the application will continue to run.
@sa GetExitOnFrameDelete(), @ref overview_wxappshutdownoverview "wxApp
@see GetExitOnFrameDelete(), @ref overview_wxappshutdownoverview "wxApp
shutdown overview"
*/
void SetExitOnFrameDelete(bool flag);
@@ -497,14 +471,13 @@ public:
@param app
Replacement for the global application object.
@sa GetInstance()
@see GetInstance()
*/
static void SetInstance(wxAppConsole* app);
/**
Allows runtime switching of the UI environment theme. Currently implemented for
wxGTK2-only.
Return @true if theme was successfully changed.
@param theme
@@ -527,7 +500,7 @@ public:
@param window
The new top window.
@sa GetTopWindow(), OnInit()
@see GetTopWindow(), OnInit()
*/
void SetTopWindow(wxWindow* window);
@@ -539,19 +512,16 @@ public:
case under Solaris and IRIX, where the default visual is only 8-bit whereas
certain
applications are supposed to run in TrueColour mode.
If @e forceTrueColour is @true then the application will try to force
If @a forceTrueColour is @true then the application will try to force
using a TrueColour visual and abort the app if none is found.
Note that this function has to be called in the constructor of the @c wxApp
instance and won't have any effect when called later on.
This function currently only has effect under GTK.
@param flag
If @true, the app will use the best visual.
*/
void SetUseBestVisual(bool flag, bool forceTrueColour = @false);
void SetUseBestVisual(bool flag, bool forceTrueColour = false);
/**
Set the vendor name to be used in the user-visible places. See
@@ -565,7 +535,7 @@ public:
in registry access. A default name is set by
wxWidgets.
@sa GetVendorName()
@see GetVendorName()
*/
void SetVendorName(const wxString& name);
@@ -575,42 +545,36 @@ public:
time-consuming process writes to a text window. Without an occasional
yield, the text window will not be updated properly, and on systems with
cooperative multitasking, such as Windows 3.1 other processes will not respond.
Caution should be exercised, however, since yielding may allow the
user to perform actions which are not compatible with the current task.
Disabling menu items or whole menus during processing can avoid unwanted
reentrance of code: see ::wxSafeYield for a better
function.
Note that Yield() will not flush the message logs. This is intentional as
calling Yield() is usually done to quickly update the screen and popping up a
message box dialog may be undesirable. If you do wish to flush the log
messages immediately (otherwise it will be done during the next idle loop
iteration), call wxLog::FlushActive.
Calling Yield() recursively is normally an error and an assert failure is
raised in debug build if such situation is detected. However if the
@e onlyIfNeeded parameter is @true, the method will just silently
@a onlyIfNeeded parameter is @true, the method will just silently
return @false instead.
*/
bool Yield(bool onlyIfNeeded = @false);
bool Yield(bool onlyIfNeeded = false);
/**
int argc
Number of command line arguments (after environment-specific processing).
*/
/**
wxChar ** argv
Command line arguments (after environment-specific processing).
Under Windows and Linux/Unix, you should parse the command line
arguments and check for files to be opened when starting your
application. Under OS X, you need to override MacOpenFile()
since command line arguments are used differently there.
You may use the wxCmdLineParser to
parse command line arguments.
*/
@@ -646,8 +610,8 @@ void wxVLogVerbose(const char * formatString, va_list argPtr);
wxGetApp function implemented by
wxIMPLEMENT_APP. It creates the declaration
@c className wxGetApp(void).
Example:
@code
wxDECLARE_APP(MyApp)
@endcode
@@ -683,32 +647,32 @@ void wxVLogFatalError(const char * formatString,
//@}
/**
If @e doIt is @true, the fatal exceptions (also known as general protection
If @a doIt is @true, the fatal exceptions (also known as general protection
faults under Windows or segmentation violations in the Unix world) will be
caught and passed to wxApp::OnFatalException.
By default, i.e. before this function is called, they will be handled in the
normal way which usually just means that the application will be terminated.
Calling wxHandleFatalExceptions() with @e doIt equal to @false will restore
Calling wxHandleFatalExceptions() with @a doIt equal to @false will restore
this default behaviour.
Notice that this function is only available if
@c wxUSE_ON_FATAL_EXCEPTION is 1 and under Windows platform this
requires a compiler with support for SEH (structured exception handling) which
currently means only Microsoft Visual C++ or a recent Borland C++ version.
*/
bool wxHandleFatalExceptions(bool doIt = @true);
bool wxHandleFatalExceptions(bool doIt = true);
/**
This is used in the application class implementation file to make the
application class known to
wxWidgets for dynamic construction. You use this instead of
Old form:
@code
MyApp myApp;
@endcode
New form:
@code
IMPLEMENT_APP(MyApp)
@endcode
@@ -721,14 +685,14 @@ bool wxHandleFatalExceptions(bool doIt = @true);
Returns the error code from the last system call. This function uses
@c errno on Unix platforms and @c GetLastError under Win32.
@sa wxSysErrorMsg, wxLogSysError
@see wxSysErrorMsg, wxLogSysError
*/
unsigned long wxSysErrorCode();
/**
In a GUI application, this function posts @e event to the specified @e dest
In a GUI application, this function posts @a event to the specified @e dest
object using wxEvtHandler::AddPendingEvent.
Otherwise, it dispatches @e event immediately using
Otherwise, it dispatches @a event immediately using
wxEvtHandler::ProcessEvent.
See the respective documentation for details (and caveats).
*/
@@ -750,26 +714,22 @@ void wxVLogError(const char * formatString, va_list argPtr);
expand to nothing in the release one. The reason for making
it a separate function from it is that usually there are a lot of trace
messages, so it might make sense to separate them from other debug messages.
The trace messages also usually can be separated into different categories and
the second and third versions of this function only log the message if the
@e mask which it has is currently enabled in wxLog. This
@a mask which it has is currently enabled in wxLog. This
allows to selectively trace only some operations and not others by changing
the value of the trace mask (possible during the run-time).
For the second function (taking a string mask), the message is logged only if
the mask has been previously enabled by the call to
wxLog::AddTraceMask or by setting
@ref overview_envvars "@c WXTRACE environment variable".
The predefined string trace masks
used by wxWidgets are:
wxTRACE_MemAlloc: trace memory allocation (new/delete)
wxTRACE_Messages: trace window messages/X callbacks
wxTRACE_ResAlloc: trace GDI resource allocation
wxTRACE_RefCount: trace various ref counting operations
wxTRACE_OleCalls: trace OLE method calls (Win32 only)
@b Caveats: since both the mask and the format string are strings,
this might lead to function signature confusion in some cases:
if you intend to call the format string only version of wxLogTrace,
@@ -777,14 +737,12 @@ void wxVLogError(const char * formatString, va_list argPtr);
for that %s, the string mask version of wxLogTrace will erroneously get called instead, since you are supplying two string parameters to the function.
In this case you'll unfortunately have to avoid having two leading
string parameters, e.g. by adding a bogus integer (with its %d format string).
The third version of the function only logs the message if all the bits
corresponding to the @e mask are set in the wxLog trace mask which can be
corresponding to the @a mask are set in the wxLog trace mask which can be
set by wxLog::SetTraceMask. This version is less
flexible than the previous one because it doesn't allow defining the user
trace masks easily - this is why it is deprecated in favour of using string
trace masks.
wxTraceMemAlloc: trace memory allocation (new/delete)
wxTraceMessages: trace window messages/X callbacks
wxTraceResAlloc: trace GDI resource allocation
@@ -806,10 +764,10 @@ void wxVLogTrace(wxTraceMask mask, const char * formatString,
/**
Returns the error message corresponding to the given system error code. If
@e errCode is 0 (default), the last error code (as returned by
@a errCode is 0 (default), the last error code (as returned by
wxSysErrorCode) is used.
@sa wxSysErrorCode, wxLogSysError
@see wxSysErrorCode, wxLogSysError
*/
const wxChar* wxSysErrorMsg(unsigned long errCode = 0);
@@ -834,7 +792,6 @@ void wxVLogDebug(const char * formatString, va_list argPtr);
the IMPLEMENT_APP macro. Thus, before using it
anywhere but in the same module where this macro is used, you must make it
available using DECLARE_APP.
The advantage of using this function compared to directly using the global
wxTheApp pointer is that the latter is of type @c wxApp * and so wouldn't
allow you to access the functions specific to your application class but not
@@ -844,10 +801,9 @@ wxAppDerivedClass wxGetApp();
//@{
/**
Messages logged by these functions will appear in the statusbar of the @e frame
Messages logged by these functions will appear in the statusbar of the @a frame
or of the top level application window by default (i.e. when using
the second version of the functions).
If the target frame doesn't have a statusbar, the message will be lost.
*/
void wxLogStatus(wxFrame* frame, const char* formatString,
@@ -862,11 +818,9 @@ void wxVLogStatus(const char * formatString, va_list argPtr);
This function is used in wxBase only and only if you don't create
wxApp object at all. In this case you must call it from your
@c main() function before calling any other wxWidgets functions.
If the function returns @false the initialization could not be performed,
in this case the library cannot be used and
wxUninitialize shouldn't be called neither.
This function may be called several times but
wxUninitialize must be called for each successful
call to this function.
@@ -878,8 +832,8 @@ bool wxInitialize();
wxGetApp function implemented by
IMPLEMENT_APP. It creates the declaration
@c className wxGetApp(void).
Example:
@code
DECLARE_APP(MyApp)
@endcode
@@ -888,7 +842,6 @@ bool wxInitialize();
/**
Calls wxApp::Yield.
This function is kept only for backwards compatibility. Please use
the wxApp::Yield method instead in any new code.
*/
@@ -902,7 +855,7 @@ bool wxYield();
on the platform) and the corresponding error message. The second form
of this function takes the error code explicitly as the first argument.
@sa wxSysErrorCode, wxSysErrorMsg
@see wxSysErrorCode, wxSysErrorMsg
*/
void wxLogSysError(const char* formatString, ... );
void wxVLogSysError(const char* formatString,
@@ -915,23 +868,22 @@ void wxVLogSysError(const char * formatString,
using the default wxWidgets entry code (e.g. main or WinMain). For example, you
can initialize wxWidgets from an Microsoft Foundation Classes application using
this function.
The following overload of wxEntry is available under all platforms:
(notice that under Windows CE platform, and only there, the type of
@e pCmdLine is @c wchar_t *, otherwise it is @c char *, even in
@a pCmdLine is @c wchar_t *, otherwise it is @c char *, even in
Unicode build).
@remarks To clean up wxWidgets, call wxApp::OnExit followed by the static
function wxApp::CleanUp. For example, if exiting from
an MFC application that also uses wxWidgets:
@sa wxEntryStart
@see wxEntryStart
*/
int wxEntry(int& argc, wxChar** argv);
int wxEntry(HINSTANCE hInstance,
HINSTANCE hPrevInstance = @NULL,
char * pCmdLine = @NULL,
HINSTANCE hPrevInstance = NULL,
char* pCmdLine = NULL,
int nCmdShow = SW_SHOWNORMAL);
//@}

View File

@@ -62,7 +62,6 @@ public:
be @NULL
in which case the default renderer for the current platform is used);
this is used in GUI mode only and always returns @NULL in console.
NOTE: returned pointer will be deleted by the caller.
*/
virtual wxRendererNative* CreateRenderer();
@@ -89,15 +88,13 @@ public:
of the native toolkit currently used.
The version numbers returned are thus detected at run-time and not compile-time
(except when this is not possible e.g. wxMotif).
E.g. if your program is using wxGTK port this function will return wxPORT_GTK
and
put in given pointers the versions of the GTK library in use.
See wxPlatformInfo for more details.
*/
virtual wxPortId GetToolkitVersion(int * major = @NULL,
int * minor = @NULL);
virtual wxPortId GetToolkitVersion(int* major = NULL,
int* minor = NULL);
/**
Returns @true if @c fprintf(stderr) goes somewhere, @false otherwise.
@@ -113,7 +110,6 @@ public:
/**
Shows the assert dialog with the specified message in GUI mode or just prints
the string to stderr in console mode.
Returns @true to suppress subsequent asserts, @false to continue as before.
*/
virtual bool ShowAssertDialog(const wxString& msg);

View File

@@ -47,8 +47,7 @@ public:
/**
Closes the current entry if one is open, then opens the entry specified
by the wxArchiveEntry object.
@e entry must be from the same archive file that this
@a entry must be from the same archive file that this
wxArchiveInputStream is reading, and it must be reading it from a
seekable stream.
*/
@@ -103,13 +102,11 @@ public:
as a whole. For example in the case of zip there is a comment, which
is stored at the end of the zip file. CopyArchiveMetaData() can be used
to transfer such information when writing a modified copy of an archive.
Since the position of the meta-data can vary between the various archive
formats, it is best to call CopyArchiveMetaData() before transferring
the entries. The wxArchiveOutputStream
will then hold on to the meta-data and write it at the correct point in
the output file.
When the input archive is being read from a non-seekable stream, the
meta-data may not be available when CopyArchiveMetaData() is called,
in which case the two streams set up a link and transfer the data
@@ -118,16 +115,14 @@ public:
bool CopyArchiveMetaData(wxArchiveInputStream& stream);
/**
Takes ownership of @e entry and uses it to create a new entry in the
archive. @e entry is then opened in the input stream @e stream
Takes ownership of @a entry and uses it to create a new entry in the
archive. @a entry is then opened in the input stream @e stream
and its contents copied to this stream.
For archive types which compress entry data, CopyEntry() is likely to be
much more efficient than transferring the data using Read() and Write()
since it will copy them without decompressing and recompressing them.
@e entry must be from the same archive file that @e stream is
accessing. For non-seekable streams, @e entry must also be the last
@a entry must be from the same archive file that @a stream is
accessing. For non-seekable streams, @a entry must also be the last
thing read from @e stream.
*/
bool CopyEntry(wxArchiveEntry* entry,
@@ -135,11 +130,9 @@ public:
/**
)
Create a new directory entry
(see wxArchiveEntry::IsDir)
with the given name and timestamp.
PutNextEntry() can
also be used to create directory entries, by supplying a name with
a trailing path separator.
@@ -149,7 +142,6 @@ public:
//@{
/**
, @b off_t@e size = wxInvalidOffset)
Create a new entry with the given name, timestamp and size. The entry's
data can then be written by writing to this wxArchiveOutputStream.
*/
@@ -195,10 +187,8 @@ public:
/**
The entry's name, by default in the native format. The name can include
directory components, i.e. it can be a full path.
If this is a directory entry, (i.e. if IsDir()
is @true) then GetName() returns the name with a trailing path separator.
Similarly, setting a name with a trailing path separator sets IsDir().
*/
wxString GetName(wxPathFormat format = wxPATH_NATIVE);
@@ -224,11 +214,10 @@ public:
Returns the entry's filename in the internal format used within the
archive. The name can include directory components, i.e. it can be a
full path.
The names of directory entries are returned without any trailing path
separator. This gives a canonical name that can be used in comparisons.
@sa @ref overview_wxarcbyname "Looking up an archive entry by name"
@see @ref overview_wxarcbyname "Looking up an archive entry by name"
*/
wxString GetInternalName();
@@ -240,17 +229,15 @@ public:
//@{
/**
True if this is a directory entry.
Directory entries are entries with no data, which are used to store
the meta-data of directories. They also make it possible for completely
empty directories to be stored.
The names of entries within an archive can be complete paths, and
unarchivers typically create whatever directories are necessary as they
restore files, even if the archive contains no explicit directory entries.
*/
bool IsDir();
void SetIsDir(bool isDir = @true);
void SetIsDir(bool isDir = true);
//@}
//@{
@@ -258,7 +245,7 @@ public:
True if the entry is a read-only file.
*/
bool IsReadOnly();
void SetIsReadOnly(bool isReadOnly = @true);
void SetIsReadOnly(bool isReadOnly = true);
//@}
//@{
@@ -268,7 +255,6 @@ public:
this entry, it will then invoke the associated
notifier's wxArchiveNotifier::OnEntryUpdated
method.
Setting a notifier is not usually necessary. It is used to handle
certain cases when modifying an archive in a pipeline (i.e. between
non-seekable streams).
@@ -313,7 +299,6 @@ public:
/**
Returns @true if this factory can handle the given protocol, MIME type
or file extension.
When using wxSTREAM_FILEEXT for the second parameter, the first parameter
can be a complete filename rather than just an extension.
*/
@@ -324,7 +309,6 @@ public:
A static member that finds a factory that can handle a given protocol, MIME
type or file extension. Returns a pointer to the class factory if found, or
@NULL otherwise. It does not give away ownership of the factory.
When using wxSTREAM_FILEEXT for the second parameter, the first parameter
can be a complete filename rather than just an extension.
*/
@@ -344,8 +328,8 @@ public:
//@{
/**
GetFirst and GetNext can be used to enumerate the available factories.
For example, to list them:
GetFirst()/GetNext() return a pointer to a factory or @NULL if no more
are available. They do not give away ownership of the factory.
*/
@@ -371,7 +355,6 @@ public:
Returns the protocols, MIME types or file extensions supported by this
factory, as an array of null terminated strings. It does not give away
ownership of the array or strings.
For example, to list the file extensions a factory supports:
*/
const wxChar* const* GetProtocols(wxStreamProtocolType type = wxSTREAM_PROTOCOL);
@@ -385,7 +368,6 @@ public:
//@{
/**
Create a new input or output stream to read or write an archive.
If the parent stream is passed as a pointer then the new archive stream
takes ownership of it. If it is passed by reference then it does not.
*/
@@ -398,15 +380,12 @@ public:
/**
Adds this class factory to the list returned
by @ref getfirst() GetFirst()/GetNext.
It is not necessary to do this to use the archive streams. It is usually
used when implementing streams, typically the implementation will
add a static instance of its factory class.
It can also be used to change the order of a factory already in the list,
bringing it to the front. This isn't a thread safe operation
so can't be done when other threads are running that will be using the list.
The list does not take ownership of the factory.
*/
void PushFront();
@@ -414,10 +393,8 @@ public:
/**
Removes this class factory from the list returned
by @ref getfirst() GetFirst()/GetNext.
Removing from the list isn't a thread safe operation
so can't be done when other threads are running that will be using the list.
The list does not own the factories, so removing a factory does not delete it.
*/
void Remove();
@@ -478,8 +455,8 @@ public:
// template parameter 'Arc' should be the type of an archive input stream
wxArchiveIterator(Arc& arc) {
/* ... */
// ...
}
};
@endcode

View File

@@ -60,7 +60,7 @@ class wxArrayString : public wxArray
public:
//@{
/**
Constructor from a wxString array. Pass a size @e sz and array @e arr.
Constructor from a wxString array. Pass a size @a sz and array @e arr.
*/
wxArrayString();
wxArrayString(const wxArrayString& array);
@@ -76,30 +76,26 @@ public:
~wxArrayString();
/**
Appends the given number of @e copies of the new item @e str to the
Appends the given number of @a copies of the new item @a str to the
array and returns the index of the first new item in the array.
@b Warning: For sorted arrays, the index of the inserted item will not be,
in general, equal to GetCount() - 1 because
the item is inserted at the correct position to keep the array sorted and not
appended.
See also: Insert()
*/
#define size_t Add(const wxString& str, size_t copies = 1) /* implementation is private */
size_t Add(const wxString& str, size_t copies = 1);
/**
Preallocates enough memory to store @e nCount items. This function may be
Preallocates enough memory to store @a nCount items. This function may be
used to improve array class performance before adding a known number of items
consecutively.
See also: @ref wxArray::memorymanagement "Dynamic array memory management"
*/
void Alloc(size_t nCount);
/**
Clears the array contents and frees memory.
See also: Empty()
*/
void Clear();
@@ -121,25 +117,23 @@ public:
/**
Search the element in the array, starting from the beginning if
@e bFromEnd is @false or from end otherwise. If @e bCase, comparison is
@a bFromEnd is @false or from end otherwise. If @e bCase, comparison is
case sensitive (default), otherwise the case is ignored.
This function uses linear search for wxArrayString and binary search for
wxSortedArrayString, but it ignores the @e bCase and @e bFromEnd
wxSortedArrayString, but it ignores the @a bCase and @a bFromEnd
parameters in the latter case.
Returns index of the first item matched or @c wxNOT_FOUND if there is no match.
*/
int Index(const wxString& sz, bool bCase = @true,
bool bFromEnd = @false);
int Index(const wxString& sz, bool bCase = true,
bool bFromEnd = false);
/**
Insert the given number of @e copies of the new element in the array before the
Insert the given number of @a copies of the new element in the array before the
position @e nIndex. Thus, for
example, to insert the string in the beginning of the array you would write
If @e nIndex is equal to @e GetCount() this function behaves as
Add().
If @a nIndex is equal to @e GetCount() this function behaves as
Add().
@b Warning: this function should not be used with sorted arrays because it
could break the order of items and, for example, subsequent calls to
Index() would then not work!
@@ -157,7 +151,6 @@ public:
Return the array element at position @e nIndex. An assert failure will
result from an attempt to access an element beyond the end of array in debug
mode, but no check is done in release mode.
See also @ref operatorindex() operator[] for the operator
version.
*/
@@ -173,20 +166,18 @@ public:
/**
Removes the first item matching this value. An assert failure is provoked by
an attempt to remove an element which does not exist in debug build.
See also: Index()
*/
void Remove(const wxString& sz);
/**
Removes @e count items starting at position @e nIndex from the array.
Removes @a count items starting at position @a nIndex from the array.
*/
void RemoveAt(size_t nIndex, size_t count = 1);
/**
Releases the extra memory allocated by the array. This function is useful to
minimize the array memory consumption.
See also: Alloc(), @ref wxArray::memorymanagement "Dynamic array memory
management"
*/
@@ -194,13 +185,13 @@ public:
//@{
/**
Sorts the array using the specified @e compareFunction for item comparison.
Sorts the array using the specified @a compareFunction for item comparison.
@e CompareFunction is defined as a function taking two @e const
wxString parameters and returning an @e int value less than, equal to or
greater than 0 if the first string is less than, equal to or greater than the
second one.
*/
void Sort(bool reverseOrder = @false);
void Sort(bool reverseOrder = false);
Warning:
void Sort(CompareFunction compareFunction);
//@}
@@ -226,7 +217,6 @@ Warning:
Return the array element at position @e nIndex. An assert failure will
result from an attempt to access an element beyond the end of array in debug
mode, but no check is done in release mode.
This is the operator version of Item() method.
*/
wxString operator[](size_t nIndex);
@@ -238,30 +228,27 @@ Warning:
// ============================================================================
/**
Splits the given wxString object using the separator @e sep and returns the
Splits the given wxString object using the separator @a sep and returns the
result as a wxArrayString.
If the @e escape character is non-@NULL, then the occurrences of @e sep
If the @a escape character is non-@NULL, then the occurrences of @a sep
immediately prefixed
with @e escape are not considered as separators.
with @a escape are not considered as separators.
Note that empty tokens will be generated if there are two or more adjacent
separators.
@sa wxJoin
@see wxJoin
*/
wxArrayString wxSplit(const wxString& str, const wxChar sep,
const wxChar escape = '
');
/**
Concatenate all lines of the given wxArrayString object using the separator @e
Concatenate all lines of the given wxArrayString object using the separator @a
sep and returns
the result as a wxString.
If the @e escape character is non-@NULL, then it's used as prefix for each
If the @a escape character is non-@NULL, then it's used as prefix for each
occurrence of @e sep
in the strings contained in @e arr before joining them which is necessary
in the strings contained in @a arr before joining them which is necessary
in order to be able to recover the original array contents from the string
later using wxSplit.
*/

View File

@@ -144,7 +144,6 @@ public:
Client is the entity that calls wxArtProvider's GetBitmap or GetIcon
function. It is represented by wxClientID type and can have one of these
values:
wxART_TOOLBAR
wxART_MENU
wxART_BUTTON
@@ -154,7 +153,6 @@ public:
wxART_MESSAGE_BOX
wxART_OTHER (used for all requests that don't fit into any of the categories
above)
Client ID servers as a hint to wxArtProvider that is supposed to help it to
choose the best looking bitmap. For example it is often desirable to use
slightly different icons in menus and toolbars even though they represent the
@@ -163,7 +161,7 @@ public:
GetBitmap()
returns identical bitmap for different @e client values!
@sa See the artprov sample for an example of wxArtProvider usage.
@see See the artprov sample for an example of wxArtProvider usage.
*/
@@ -175,16 +173,14 @@ public:
@param id
wxArtID unique identifier of the bitmap.
@param client
wxArtClient identifier of the client (i.e. who is asking for the bitmap).
This only servers as a hint.
@param size
Preferred size of the bitmap. The function may return a bitmap of different
dimensions, it will be automatically rescaled to meet client's request.
@sa CreateIconBundle()
@see CreateIconBundle()
*/
wxBitmap CreateBitmap(const wxArtID& id,
const wxArtClient& client,
@@ -207,10 +203,8 @@ public:
@param id
wxArtID unique identifier of the bitmap.
@param client
wxArtClient identifier of the client (i.e. who is asking for the bitmap).
@param size
Size of the returned bitmap or wxDefaultSize if size doesn't matter.
@@ -224,7 +218,7 @@ public:
//@{
/**
Returns a suitable size hint for the given @e wxArtClient. If
@e platform_default is @true, return a size based on the current platform,
@a platform_default is @true, return a size based on the current platform,
otherwise return the size from the topmost wxArtProvider. @e wxDefaultSize may
be
returned if the client doesn't have a specified size, like wxART_OTHER for
@@ -234,7 +228,7 @@ public:
const wxArtClient& client = wxART_OTHER,
const wxSize& size = wxDefaultSize);
static wxSize GetSizeHint(const wxArtClient& client,
bool platform_default = @false);
bool platform_default = false);
//@}
/**
@@ -242,9 +236,9 @@ public:
@param id
wxArtID unique identifier of the icon bundle.
@param client
wxArtClient identifier of the client (i.e. who is asking for the icon bundle).
wxArtClient identifier of the client (i.e. who is asking for the icon
bundle).
@returns The icon bundle if one of registered providers recognizes the ID
or wxNullIconBundle otherwise.
@@ -307,7 +301,6 @@ public:
wxART_FLOPPY
wxART_CDROM
wxART_REMOVABLE
Additionally, any string recognized by custom art providers registered using
Push() may be used.
*/
@@ -317,20 +310,20 @@ public:
Register new art provider and add it to the bottom of providers stack (i.e.
it will be queried as the last one).
@sa Push()
@see Push()
*/
static void Insert(wxArtProvider* provider);
/**
Remove latest added provider and delete it.
*/
#define static bool Pop() /* implementation is private */
static bool Pop();
/**
Register new art provider and add it to the top of providers stack (i.e. it
will be queried as the first provider).
@sa Insert()
@see Insert()
*/
static void Push(wxArtProvider* provider);

View File

@@ -7,7 +7,7 @@
/////////////////////////////////////////////////////////////////////////////
/**
This function increments @e value in an atomic manner.
This function increments @a value in an atomic manner.
*/
void wxAtomicInc(wxAtomicInt& value);

View File

@@ -12,7 +12,7 @@
wxAuiManager is the central class of the wxAUI class framework.
See also @ref overview_wxauioverview "wxAUI overview".
See also @ref overview_wxauioverview.
wxAuiManager manages the panes associated with it
for a particular wxFrame, using a pane's wxAuiPaneInfo information to
@@ -56,11 +56,11 @@ class wxAuiManager : public wxEvtHandler
{
public:
/**
Constructor. @e managed_wnd specifies the wxFrame which should be managed.
@e flags specifies options which allow the frame management behavior
Constructor. @a managed_wnd specifies the wxFrame which should be managed.
@a flags specifies options which allow the frame management behavior
to be modified.
*/
wxAuiManager(wxWindow* managed_wnd = @NULL,
wxAuiManager(wxWindow* managed_wnd = NULL,
unsigned int flags = wxAUI_MGR_DEFAULT);
/**
@@ -95,7 +95,6 @@ public:
/**
Returns the current art provider being used.
See also: wxAuiDockArt.
*/
wxAuiDockArt* GetArtProvider();
@@ -117,11 +116,11 @@ public:
wxWindow* GetManagedWindow();
/**
Calling this method will return the wxAuiManager for a given window. The @e
Calling this method will return the wxAuiManager for a given window. The @a
window parameter should
specify any child window or sub-child window of the frame or window managed by
wxAuiManager.
The @e window parameter need not be managed by the manager itself, nor does it
The @a window parameter need not be managed by the manager itself, nor does it
even need to be a child
or sub-child of a managed window. It must however be inside the window
hierarchy underneath the managed
@@ -154,9 +153,9 @@ public:
into the frame manager, or to insert a currently managed pane somewhere
else. @e InsertPane will push all panes, rows, or docks aside and
insert the window into the position specified by @e insert_location.
Because @e insert_location can specify either a pane, dock row, or dock
layer, the @e insert_level parameter is used to disambiguate this. The
parameter @e insert_level can take a value of wxAUI_INSERT_PANE,
Because @a insert_location can specify either a pane, dock row, or dock
layer, the @a insert_level parameter is used to disambiguate this. The
parameter @a insert_level can take a value of wxAUI_INSERT_PANE,
wxAUI_INSERT_ROW
or wxAUI_INSERT_DOCK.
*/
@@ -175,7 +174,7 @@ public:
is automatically invoked, thus realizing the saved perspective on screen.
*/
bool LoadPerspective(const wxString& perspective,
bool update = @true);
bool update = true);
/**
ProcessDockResult() is a protected member of the wxAUI layout manager. It can
@@ -200,10 +199,9 @@ public:
/**
Instructs wxAuiManager to use art provider specified by parameter
@e art_provider for all drawing calls. This allows plugable
@a art_provider for all drawing calls. This allows plugable
look-and-feel features. The previous art provider object, if any,
will be deleted by wxAuiManager.
See also: wxAuiDockArt.
*/
void SetArtProvider(wxAuiDockArt* art_provider);
@@ -265,7 +263,7 @@ public:
@headerfile aui.h wx/aui/aui.h
wxAuiPaneInfo is part of the wxAUI class framework.
See also @ref overview_wxauioverview "wxAUI overview".
See also @ref overview_wxauioverview.
wxAuiPaneInfo specifies all the parameters for a pane.
These parameters specify where the pane is on the
@@ -310,7 +308,7 @@ public:
BottomDockable() indicates whether a pane can be docked at the bottom of the
frame.
*/
wxAuiPaneInfo BottomDockable(bool b = @true);
wxAuiPaneInfo BottomDockable(bool b = true);
/**
Caption() sets the caption of the pane.
@@ -321,14 +319,13 @@ public:
CaptionVisible indicates that a pane caption should be visible. If @false, no
pane caption is drawn.
*/
wxAuiPaneInfo CaptionVisible(bool visible = @true);
wxAuiPaneInfo CaptionVisible(bool visible = true);
//@{
/**
Center() sets the pane dock position to the left side of the frame.
The centre pane is the space in the middle after all border panes (left, top,
right, bottom) are subtracted from the layout.
This is the same thing as calling Direction(wxAUI_DOCK_CENTRE).
*/
wxAuiPaneInfo Centre();
@@ -347,7 +344,7 @@ public:
/**
CloseButton() indicates that a close button should be drawn for the pane.
*/
wxAuiPaneInfo CloseButton(bool visible = @true);
wxAuiPaneInfo CloseButton(bool visible = true);
/**
DefaultPane() specifies that the pane should adopt the default pane settings.
@@ -358,7 +355,7 @@ public:
DestroyOnClose() indicates whether a pane should be detroyed when it is closed.
Normally a pane is simply hidden when the close button is clicked. Setting DestroyOnClose to @true will cause the window to be destroyed when the user clicks the pane's close button.
*/
wxAuiPaneInfo DestroyOnClose(bool b = @true);
wxAuiPaneInfo DestroyOnClose(bool b = true);
/**
Direction() determines the direction of the docked pane. It is functionally the
@@ -375,13 +372,13 @@ public:
DockFixed() causes the containing dock to have no resize sash. This is useful
for creating panes that span the entire width or height of a dock, but should not be resizable in the other direction.
*/
wxAuiPaneInfo DockFixed(bool b = @true);
wxAuiPaneInfo DockFixed(bool b = true);
/**
Dockable() specifies whether a frame can be docked or not. It is the same as
specifying TopDockable(b).BottomDockable(b).LeftDockable(b).RightDockable(b).
*/
wxAuiPaneInfo Dockable(bool b = @true);
wxAuiPaneInfo Dockable(bool b = true);
/**
Fixed() forces a pane to be fixed size so that it cannot be resized. After
@@ -398,7 +395,7 @@ public:
Floatable() sets whether the user will be able to undock a pane and turn it
into a floating window.
*/
wxAuiPaneInfo Floatable(bool b = @true);
wxAuiPaneInfo Floatable(bool b = true);
//@{
/**
@@ -419,12 +416,12 @@ public:
/**
Gripper() indicates that a gripper should be drawn for the pane.
*/
wxAuiPaneInfo Gripper(bool visible = @true);
wxAuiPaneInfo Gripper(bool visible = true);
/**
GripperTop() indicates that a gripper should be drawn at the top of the pane.
*/
wxAuiPaneInfo GripperTop(bool attop = @true);
wxAuiPaneInfo GripperTop(bool attop = true);
/**
HasBorder() returns @true if the pane displays a border.
@@ -522,7 +519,7 @@ public:
IsOk() returns @true if the wxAuiPaneInfo structure is valid. A pane structure
is valid if it has an associated window.
*/
#define bool IsOk() /* implementation is private */
bool IsOk();
/**
IsResizable() returns @true if the pane can be resized.
@@ -566,7 +563,7 @@ public:
/**
LeftDockable() indicates whether a pane can be docked on the left of the frame.
*/
wxAuiPaneInfo LeftDockable(bool b = @true);
wxAuiPaneInfo LeftDockable(bool b = true);
//@{
/**
@@ -579,7 +576,7 @@ public:
/**
MaximizeButton() indicates that a maximize button should be drawn for the pane.
*/
wxAuiPaneInfo MaximizeButton(bool visible = @true);
wxAuiPaneInfo MaximizeButton(bool visible = true);
//@{
/**
@@ -593,12 +590,12 @@ public:
/**
MinimizeButton() indicates that a minimize button should be drawn for the pane.
*/
wxAuiPaneInfo MinimizeButton(bool visible = @true);
wxAuiPaneInfo MinimizeButton(bool visible = true);
/**
Movable indicates whether a frame can be moved.
*/
wxAuiPaneInfo Movable(bool b = @true);
wxAuiPaneInfo Movable(bool b = true);
/**
Name() sets the name of the pane so it can be referenced in lookup functions.
@@ -609,12 +606,12 @@ public:
/**
PaneBorder indicates that a border should be drawn for the pane.
*/
wxAuiPaneInfo PaneBorder(bool visible = @true);
wxAuiPaneInfo PaneBorder(bool visible = true);
/**
PinButton() indicates that a pin button should be drawn for the pane.
*/
wxAuiPaneInfo PinButton(bool visible = @true);
wxAuiPaneInfo PinButton(bool visible = true);
/**
Position() determines the position of the docked pane.
@@ -625,7 +622,7 @@ public:
Resizable() allows a pane to be resized if the parameter is @true, and forces it
to be a fixed size if the parameter is @false. This is simply an antonym for Fixed().
*/
wxAuiPaneInfo Resizable(bool resizable = @true);
wxAuiPaneInfo Resizable(bool resizable = true);
/**
Right() sets the pane dock position to the right side of the frame.
@@ -636,12 +633,12 @@ public:
RightDockable() indicates whether a pane can be docked on the right of the
frame.
*/
wxAuiPaneInfo RightDockable(bool b = @true);
wxAuiPaneInfo RightDockable(bool b = true);
/**
Row() determines the row of the docked pane.
*/
#define wxAuiPaneInfo Row(int row) /* implementation is private */
wxAuiPaneInfo Row(int row);
/**
Write the safe parts of a newly loaded PaneInfo structure "source" into "this"
@@ -658,7 +655,7 @@ public:
/**
Show() indicates that a pane should be shown.
*/
wxAuiPaneInfo Show(bool show = @true);
wxAuiPaneInfo Show(bool show = true);
/**
ToolbarPane() specifies that the pane should adopt the default toolbar pane
@@ -669,12 +666,12 @@ public:
/**
Top() sets the pane dock position to the top of the frame.
*/
#define wxAuiPaneInfo Top() /* implementation is private */
wxAuiPaneInfo Top();
/**
TopDockable() indicates whether a pane can be docked at the top of the frame.
*/
wxAuiPaneInfo TopDockable(bool b = @true);
wxAuiPaneInfo TopDockable(bool b = true);
/**
Window() assigns the window pointer that the wxAuiPaneInfo should use. This

View File

@@ -11,7 +11,7 @@
@headerfile auibook.h wx/aui/auibook.h
wxAuiNotebook is part of the wxAUI class framework.
See also @ref overview_wxauioverview "wxAUI overview".
See also @ref overview_wxauioverview.
wxAuiNotebook is a notebook control which implements many features common in
applications with dockable panes.
@@ -74,17 +74,17 @@ public:
//@}
/**
Adds a page. If the @e select parameter is @true, calling this will generate a
Adds a page. If the @a select parameter is @true, calling this will generate a
page change event.
*/
bool AddPage(wxWindow* page, const wxString& caption,
bool select = @false,
bool select = false,
const wxBitmap& bitmap = wxNullBitmap);
/**
Sets the selection to the next or previous page.
*/
void AdvanceSelection(bool forward = @true);
void AdvanceSelection(bool forward = true);
/**
Creates the notebook window.
@@ -151,12 +151,12 @@ public:
/**
InsertPage() is similar to AddPage, but allows the ability to specify the
insert location.
If the @e select parameter is @true, calling this will generate a page change
If the @a select parameter is @true, calling this will generate a page change
event.
*/
bool InsertPage(size_t page_idx, wxWindow* page,
const wxString& caption,
bool select = @false,
bool select = false,
const wxBitmap& bitmap = wxNullBitmap);
/**
@@ -219,11 +219,11 @@ public:
//@{
/**
Split performs a split operation programmatically. The argument @e page
Split performs a split operation programmatically. The argument @a page
indicates
the page that will be split off. This page will also become the active page
after the
split. The @e direction argument specifies where the pane should go, it should
split. The @a direction argument specifies where the pane should go, it should
be one
of the following: wxTOP, wxBOTTOM, wxLEFT, or wxRIGHT.
*/

View File

@@ -11,7 +11,7 @@
@headerfile dockart.h wx/aui/dockart.h
wxAuiDockArt is part of the wxAUI class framework.
See also @ref overview_wxauioverview "wxAUI overview".
See also @ref overview_wxauioverview.
Dock art provider code - a dock provider provides all drawing
functionality to the wxAui dock manager. This allows the dock
@@ -75,10 +75,8 @@ public:
/**
Draws a button in the pane's title bar.
@e button can be one of the values of @b wxAuiButtonId.
@e button_state can be one of the values of @b wxAuiPaneButtonState.
@a button can be one of the values of @b wxAuiButtonId.
@a button_state can be one of the values of @b wxAuiPaneButtonState.
*/
virtual void DrawPaneButton(wxDC& dc, wxWindow* window,
int button,
@@ -100,8 +98,7 @@ public:
/**
Get the colour of a certain setting.
@e id can be one of the colour values of @b wxAuiPaneDockArtSetting.
@a id can be one of the colour values of @b wxAuiPaneDockArtSetting.
*/
virtual wxColour GetColour(int id);
@@ -112,8 +109,7 @@ public:
/**
Get the value of a certain setting.
@e id can be one of the size values of @b wxAuiPaneDockArtSetting.
@a id can be one of the size values of @b wxAuiPaneDockArtSetting.
*/
virtual int GetMetric(int id);
@@ -124,8 +120,7 @@ public:
/**
Set a certain setting with the value @e colour.
@e id can be one of the colour values of @b wxAuiPaneDockArtSetting.
@a id can be one of the colour values of @b wxAuiPaneDockArtSetting.
*/
virtual void SetColour(int id, const wxColor& colour);
@@ -136,8 +131,7 @@ public:
/**
Set a certain setting with the value @e new_val.
@e id can be one of the size values of @b wxAuiPaneDockArtSetting.
@a id can be one of the size values of @b wxAuiPaneDockArtSetting.
*/
virtual void SetMetric(int id, int new_val);
};

View File

@@ -14,18 +14,15 @@
functions except for the first one which returns @c wxCONV_FAILED if the
output buffer is too small. To allocate the buffer of the correct size, use
wxBase64EncodedSize or call this function with
@e dst set to @NULL -- it will then return the necessary buffer size.
@a dst set to @NULL -- it will then return the necessary buffer size.
@param dst
The output buffer, may be @NULL to retrieve the needed buffer
size.
@param dstLen
The output buffer size, ignored if dst is @NULL.
@param src
The input buffer, must not be @NULL.
@param srcLen
The length of the input data.
*/
@@ -54,14 +51,13 @@ size_t wxBase64EncodedSize(size_t len);
//@{
/**
These function decode a Base64-encoded string. The first version is a raw
decoding function and decodes the data into the provided buffer @e dst of
decoding function and decodes the data into the provided buffer @a dst of
the given size @e dstLen. An error is returned if the buffer is not large
enough -- that is not at least wxBase64DecodedSize(srcLen)
bytes. The second version allocates memory internally and returns it as
wxMemoryBuffer and is recommended for normal use.
The first version returns the number of bytes written to the buffer or the
necessary buffer size if @e dst was @NULL or @c wxCONV_FAILED on
necessary buffer size if @a dst was @NULL or @c wxCONV_FAILED on
error, e.g. if the output buffer is too small or invalid characters were
encountered in the input string. The second version returns a buffer with the
base64 decoded binary equivalent of the input string. In neither case is the
@@ -70,27 +66,24 @@ size_t wxBase64EncodedSize(size_t len);
@param dst
Pointer to output buffer, may be @NULL to just compute the
necessary buffer size.
@param dstLen
The size of the output buffer, ignored if dst is
@NULL.
@param src
The input string, must not be @NULL. For the version using
wxString, the input string should contain only ASCII characters.
@param srcLen
The length of the input string or special value
wxNO_LEN if the string is NUL-terminated and the length should be
computed by this function itself.
@param mode
This parameter specifies the function behaviour when invalid
characters are encountered in input. By default, any such character stops the
decoding with error. If the mode is wxBase64DecodeMode_SkipWS, then the white
characters are encountered in input. By default, any such character stops
the
decoding with error. If the mode is wxBase64DecodeMode_SkipWS, then the
white
space characters are silently skipped instead. And if it is
wxBase64DecodeMode_Relaxed, then all invalid characters are skipped.
@param posErr
If this pointer is non-@NULL and an error occurs during
decoding, it is filled with the index of the invalid character.
@@ -99,13 +92,13 @@ size_t wxBase64Decode(void * dst, size_t dstLen,
const char* src,
size_t srcLen = wxNO_LEN,
wxBase64DecodeMode mode = wxBase64DecodeMode_Strict,
size_t posErr = @NULL);
size_t posErr = NULL);
wxMemoryBuffer wxBase64Decode(const char* src,
size_t srcLen = wxNO_LEN,
wxBase64DecodeMode mode = wxBase64DecodeMode_Strict,
size_t posErr = @NULL);
size_t posErr = NULL);
wxMemoryBuffer wxBase64Decode(const wxString& src,
wxBase64DecodeMode mode = wxBase64DecodeMode_Strict,
size_t posErr = @NULL);
size_t posErr = NULL);
//@}

View File

@@ -43,24 +43,19 @@ public:
/**
Creates a bitmap from the given data, which can be of arbitrary type. The
wxBitmap object @e bitmap is
wxBitmap object @a bitmap is
manipulated by this function.
@param bitmap
The wxBitmap object.
@param width
The width of the bitmap in pixels.
@param height
The height of the bitmap in pixels.
@param depth
The depth of the bitmap in pixels. If this is -1, the screen depth is used.
@param data
Data whose type depends on the value of type.
@param type
A bitmap type identifier - see wxBitmapHandler() for a list
of possible values.
@@ -93,17 +88,15 @@ public:
@param bitmap
The bitmap object which is to be affected by this operation.
@param name
Either a filename or a Windows resource name.
The meaning of name is determined by the type parameter.
@param type
See wxBitmap::wxBitmap for values this can take.
@returns @true if the operation succeeded, @false otherwise.
@sa wxBitmap::LoadFile, wxBitmap::SaveFile, SaveFile()
@see wxBitmap::LoadFile, wxBitmap::SaveFile, SaveFile()
*/
bool LoadFile(wxBitmap* bitmap, const wxString& name, long type);
@@ -112,22 +105,19 @@ public:
@param bitmap
The bitmap object which is to be affected by this operation.
@param name
A filename. The meaning of name is determined by the type parameter.
@param type
See wxBitmap::wxBitmap for values this can take.
@param palette
An optional palette used for saving the bitmap.
@returns @true if the operation succeeded, @false otherwise.
@sa wxBitmap::LoadFile, wxBitmap::SaveFile, LoadFile()
@see wxBitmap::LoadFile, wxBitmap::SaveFile, LoadFile()
*/
bool SaveFile(wxBitmap* bitmap, const wxString& name, int type,
wxPalette* palette = @NULL);
wxPalette* palette = NULL);
/**
Sets the handler extension.
@@ -183,14 +173,12 @@ public:
The resulting bitmap will use the provided colour depth (or that of the
current system if depth is -1) which entails that a colour reduction has
to take place.
When in 8-bit mode (PseudoColour mode), the GTK port will use a color cube
created
on program start-up to look up colors. This ensures a very fast conversion, but
the image quality won't be perfect (and could be better for photo images using
more
sophisticated dithering algorithms).
On Windows, if there is a palette present (set with SetPalette), it will be
used when
creating the wxBitmap (most useful in 8-bit display mode). On other platforms,
@@ -198,77 +186,114 @@ public:
@param bits
Specifies an array of pixel values.
@param width
Specifies the width of the bitmap.
@param height
Specifies the height of the bitmap.
@param depth
Specifies the depth of the bitmap. If this is omitted, the display depth of the
Specifies the depth of the bitmap. If this is omitted, the display depth of
the
screen is used.
@param name
This can refer to a resource name under MS Windows, or a filename under MS
Windows and X.
Its meaning is determined by the type parameter.
@param type
May be one of the following:
wxBITMAP_TYPE_BMP
Load a Windows bitmap file.
wxBITMAP_TYPE_BMP_RESOURCE
Load a Windows bitmap resource from the executable. Windows only.
wxBITMAP_TYPE_PICT_RESOURCE
Load a PICT image resource from the executable. Mac OS only.
wxBITMAP_TYPE_GIF
Load a GIF bitmap file.
wxBITMAP_TYPE_XBM
Load an X bitmap file.
wxBITMAP_TYPE_XPM
Load an XPM bitmap file.
The validity of these flags depends on the platform and wxWidgets configuration.
If all possible wxWidgets settings are used, the Windows platform supports BMP
file, BMP resource,
XPM data, and XPM. Under wxGTK, the available formats are BMP file, XPM data,
XPM file, and PNG file.
Under wxMotif, the available formats are XBM data, XBM file, XPM data, XPM file.
In addition, wxBitmap can read all formats that wxImage can, which currently
include
wxBITMAP_TYPE_JPEG, wxBITMAP_TYPE_TIF, wxBITMAP_TYPE_PNG, wxBITMAP_TYPE_GIF,
wxBITMAP_TYPE_PCX,
The validity of these flags depends on the platform and wxWidgets
configuration.
If all possible wxWidgets settings are used, the Windows platform supports
BMP file, BMP resource,
XPM data, and XPM. Under wxGTK, the available formats are BMP file, XPM
data, XPM file, and PNG file.
Under wxMotif, the available formats are XBM data, XBM file, XPM data, XPM
file.
In addition, wxBitmap can read all formats that wxImage can, which
currently include
wxBITMAP_TYPE_JPEG, wxBITMAP_TYPE_TIF, wxBITMAP_TYPE_PNG,
wxBITMAP_TYPE_GIF, wxBITMAP_TYPE_PCX,
and wxBITMAP_TYPE_PNM. Of course, you must have wxImage handlers loaded.
@param img
Platform-independent wxImage object.
@remarks The first form constructs a bitmap object with no data; an
assignment or another member function such as Create
or LoadFile must be called subsequently.
assignment or another member function such as Create or
LoadFile must be called subsequently.
@sa LoadFile()
@see LoadFile()
*/
wxBitmap();
wxBitmap(const wxBitmap& bitmap);
@@ -286,10 +311,8 @@ public:
Destructor.
See @ref overview_refcountdestruct "reference-counted object destruction" for
more info.
If the application omits to delete the bitmap explicitly, the bitmap will be
destroyed automatically by wxWidgets when the application exits.
Do not delete a bitmap that is selected into a memory device context.
*/
~wxBitmap();
@@ -301,13 +324,12 @@ public:
A new bitmap format handler object. There is usually only one instance
of a given handler class in an application session.
@sa wxBitmapHandler
@see wxBitmapHandler
*/
static void AddHandler(wxBitmapHandler* handler);
/**
Deletes all bitmap handlers.
This function is called by wxWidgets on exit.
*/
static void CleanUpHandlers();
@@ -330,16 +352,12 @@ public:
@param width
The width of the bitmap in pixels.
@param height
The height of the bitmap in pixels.
@param depth
The depth of the bitmap in pixels. If this is -1, the screen depth is used.
@param data
Data whose type depends on the value of type.
@param type
A bitmap type identifier - see wxBitmap() for a list
of possible values.
@@ -349,7 +367,7 @@ public:
@remarks The first form works on all platforms. The portability of the
second form depends on the type of data.
@sa wxBitmap()
@see wxBitmap()
*/
virtual bool Create(int width, int height, int depth = -1);
virtual bool Create(const void* data, int type, int width,
@@ -363,16 +381,14 @@ public:
@param name
The handler name.
@param extension
The file extension, such as "bmp".
@param bitmapType
The bitmap type, such as wxBITMAP_TYPE_BMP.
@returns A pointer to the handler if found, @NULL otherwise.
@sa wxBitmapHandler
@see wxBitmapHandler
*/
static wxBitmapHandler* FindHandler(const wxString& name);
static wxBitmapHandler* FindHandler(const wxString& extension,
@@ -389,7 +405,7 @@ public:
/**
Returns the static list of bitmap format handlers.
@sa wxBitmapHandler
@see wxBitmapHandler
*/
static wxList GetHandlers();
@@ -402,7 +418,7 @@ public:
Gets the associated mask (if any) which may have been loaded from a file
or set for the bitmap.
@sa SetMask(), wxMask
@see SetMask(), wxMask
*/
wxMask* GetMask();
@@ -410,7 +426,7 @@ public:
Gets the associated palette (if any) which may have been loaded from a file
or set for the bitmap.
@sa wxPalette
@see wxPalette
*/
wxPalette* GetPalette();
@@ -423,7 +439,7 @@ public:
/**
Gets the width of the bitmap in pixels.
@sa GetHeight()
@see GetHeight()
*/
int GetWidth();
@@ -431,10 +447,9 @@ public:
Adds the standard bitmap format handlers, which, depending on wxWidgets
configuration, can be handlers for Windows bitmap, Windows bitmap resource, and
XPM.
This function is called by wxWidgets on startup.
@sa wxBitmapHandler
@see wxBitmapHandler
*/
static void InitStandardHandlers();
@@ -445,14 +460,14 @@ public:
A new bitmap format handler object. There is usually only one instance
of a given handler class in an application session.
@sa wxBitmapHandler
@see wxBitmapHandler
*/
static void InsertHandler(wxBitmapHandler* handler);
/**
Returns @true if bitmap data is present.
*/
#define bool IsOk() /* implementation is private */
bool IsOk();
/**
Loads a bitmap from a file or resource.
@@ -460,56 +475,96 @@ public:
@param name
Either a filename or a Windows resource name.
The meaning of name is determined by the type parameter.
@param type
One of the following values:
wxBITMAP_TYPE_BMP
Load a Windows bitmap file.
wxBITMAP_TYPE_BMP_RESOURCE
Load a Windows bitmap resource from the executable.
wxBITMAP_TYPE_PICT_RESOURCE
Load a PICT image resource from the executable. Mac OS only.
wxBITMAP_TYPE_GIF
Load a GIF bitmap file.
wxBITMAP_TYPE_XBM
Load an X bitmap file.
wxBITMAP_TYPE_XPM
Load an XPM bitmap file.
The validity of these flags depends on the platform and wxWidgets configuration.
The validity of these flags depends on the platform and wxWidgets
configuration.
In addition, wxBitmap can read all formats that wxImage can
(wxBITMAP_TYPE_JPEG, wxBITMAP_TYPE_PNG, wxBITMAP_TYPE_GIF, wxBITMAP_TYPE_PCX,
wxBITMAP_TYPE_PNM).
(wxBITMAP_TYPE_JPEG, wxBITMAP_TYPE_PNG, wxBITMAP_TYPE_GIF,
wxBITMAP_TYPE_PCX, wxBITMAP_TYPE_PNM).
(Of course you must have wxImage handlers loaded.)
@returns @true if the operation succeeded, @false otherwise.
@remarks A palette may be associated with the bitmap if one exists
(especially for colour Windows bitmaps), and if the
code supports it. You can check if one has been
created by using the GetPalette member.
code supports it. You can check if one has been created
by using the GetPalette member.
@sa SaveFile()
@see SaveFile()
*/
bool LoadFile(const wxString& name, wxBitmapType type);
@@ -522,7 +577,7 @@ public:
@returns @true if the handler was found and removed, @false otherwise.
@sa wxBitmapHandler
@see wxBitmapHandler
*/
static bool RemoveHandler(const wxString& name);
@@ -531,37 +586,64 @@ public:
@param name
A filename. The meaning of name is determined by the type parameter.
@param type
One of the following values:
wxBITMAP_TYPE_BMP
Save a Windows bitmap file.
wxBITMAP_TYPE_GIF
Save a GIF bitmap file.
wxBITMAP_TYPE_XBM
Save an X bitmap file.
wxBITMAP_TYPE_XPM
Save an XPM bitmap file.
The validity of these flags depends on the platform and wxWidgets configuration.
The validity of these flags depends on the platform and wxWidgets
configuration.
In addition, wxBitmap can save all formats that wxImage can
(wxBITMAP_TYPE_JPEG, wxBITMAP_TYPE_PNG).
(Of course you must have wxImage handlers loaded.)
@param palette
An optional palette used for saving the bitmap.
@@ -570,10 +652,10 @@ public:
@remarks Depending on how wxWidgets has been configured, not all formats
may be available.
@sa LoadFile()
@see LoadFile()
*/
bool SaveFile(const wxString& name, wxBitmapType type,
wxPalette* palette = @NULL);
wxPalette* palette = NULL);
/**
Sets the depth member (does not affect the bitmap data).
@@ -596,7 +678,7 @@ public:
@remarks The bitmap object owns the mask once this has been called.
@sa GetMask(), wxMask
@see GetMask(), wxMask
*/
void SetMask(wxMask* mask);
@@ -606,7 +688,7 @@ public:
@param palette
The palette to set.
@sa wxPalette
@see wxPalette
*/
void SetPalette(const wxPalette& palette);
@@ -656,10 +738,8 @@ public:
@param bitmap
A valid bitmap.
@param colour
A colour specifying the transparency RGB values.
@param index
Index into a palette, specifying the transparency colour.
*/
@@ -683,10 +763,8 @@ public:
@param bitmap
A valid bitmap.
@param colour
A colour specifying the transparency RGB values.
@param index
Index into a palette, specifying the transparency colour.
*/

View File

@@ -31,7 +31,7 @@
@endStyleTable
@beginEventTable
@event{EVT_BUTTON(id\, func)}:
@event{EVT_BUTTON(id, func)}:
Process a wxEVT_COMMAND_BUTTON_CLICKED event, when the button is
clicked.
@endEventTable
@@ -52,38 +52,31 @@ public:
@param parent
Parent window. Must not be @NULL.
@param id
Button identifier. The value wxID_ANY indicates a default value.
@param bitmap
Bitmap to be displayed.
@param pos
Button position.
@param size
Button size. If wxDefaultSize is specified then the button is sized
Button size. If wxDefaultSize is specified then the button is
sized
appropriately for the bitmap.
@param style
Window style. See wxBitmapButton.
@param validator
Window validator.
@param name
Window name.
@remarks The bitmap parameter is normally the only bitmap you need to
provide, and wxWidgets will draw the button correctly
in its different states. If you want more control,
call any of the functions
SetBitmapSelected(),
in its different states. If you want more control, call
any of the functions SetBitmapSelected(),
SetBitmapFocus(),
SetBitmapDisabled().
@sa Create(), wxValidator
@see Create(), wxValidator
*/
wxBitmapButton();
wxBitmapButton(wxWindow* parent, wxWindowID id,
@@ -118,7 +111,7 @@ public:
@returns A reference to the disabled state bitmap.
@sa SetBitmapDisabled()
@see SetBitmapDisabled()
*/
const wxBitmap GetBitmapDisabled();
wxBitmap GetBitmapDisabled();
@@ -130,7 +123,7 @@ public:
@returns A reference to the focused state bitmap.
@sa SetBitmapFocus()
@see SetBitmapFocus()
*/
const wxBitmap GetBitmapFocus();
wxBitmap GetBitmapFocus();
@@ -140,7 +133,7 @@ public:
/**
Returns the bitmap used when the mouse is over the button, may be invalid.
@sa SetBitmapHover()
@see SetBitmapHover()
*/
const wxBitmap GetBitmapHover();
wxBitmap GetBitmapHover();
@@ -152,7 +145,7 @@ public:
@returns A reference to the button's label bitmap.
@sa SetBitmapLabel()
@see SetBitmapLabel()
*/
const wxBitmap GetBitmapLabel();
wxBitmap GetBitmapLabel();
@@ -163,7 +156,7 @@ public:
@returns A reference to the selected state bitmap.
@sa SetBitmapSelected()
@see SetBitmapSelected()
*/
wxBitmap GetBitmapSelected();
@@ -173,7 +166,7 @@ public:
@param bitmap
The bitmap to set.
@sa GetBitmapDisabled(), SetBitmapLabel(),
@see GetBitmapDisabled(), SetBitmapLabel(),
SetBitmapSelected(), SetBitmapFocus()
*/
void SetBitmapDisabled(const wxBitmap& bitmap);
@@ -184,18 +177,17 @@ public:
@param bitmap
The bitmap to set.
@sa GetBitmapFocus(), SetBitmapLabel(),
@see GetBitmapFocus(), SetBitmapLabel(),
SetBitmapSelected(), SetBitmapDisabled()
*/
void SetBitmapFocus(const wxBitmap& bitmap);
/**
Sets the bitmap to be shown when the mouse is over the button.
This function is new since wxWidgets version 2.7.0 and the hover bitmap is
currently only supported in wxMSW.
@sa GetBitmapHover()
@see GetBitmapHover()
*/
void SetBitmapHover(const wxBitmap& bitmap);
@@ -208,7 +200,7 @@ public:
@remarks This is the bitmap used for the unselected state, and for all
other states if no other bitmaps are provided.
@sa GetBitmapLabel()
@see GetBitmapLabel()
*/
void SetBitmapLabel(const wxBitmap& bitmap);

View File

@@ -28,13 +28,13 @@
@endStyleTable
@beginEventTable
@event{EVT_COMBOBOX(id\, func)}:
@event{EVT_COMBOBOX(id, func)}:
Process a wxEVT_COMMAND_COMBOBOX_SELECTED event, when an item on
the list is selected.
@event{EVT_TEXT(id\, func)}:
@event{EVT_TEXT(id, func)}:
Process a wxEVT_COMMAND_TEXT_UPDATED event, when the combobox text
changes.
@event{EVT_TEXT_ENTER(id\, func)}:
@event{EVT_TEXT_ENTER(id, func)}:
Process a wxEVT_COMMAND_TEXT_ENTER event, when RETURN is pressed in
the combobox.
@endEventTable
@@ -55,36 +55,28 @@ public:
@param parent
Parent window. Must not be @NULL.
@param id
Window identifier. The value wxID_ANY indicates a default value.
@param value
Initial selection string. An empty string indicates no selection.
@param pos
Window position.
@param size
Window size. If wxDefaultSize is specified then the window is sized
Window size. If wxDefaultSize is specified then the window is
sized
appropriately.
@param n
Number of strings with which to initialise the control.
@param choices
An array of strings with which to initialise the control.
@param style
Window style. See wxBitmapComboBox.
@param validator
Window validator.
@param name
Window name.
@sa Create(), wxValidator
@see Create(), wxValidator
*/
wxBitmapComboBox();
wxBitmapComboBox(wxWindow* parent, wxWindowID id,
@@ -92,7 +84,7 @@ public:
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
int n = 0,
const wxString choices[] = @NULL,
const wxString choices[] = NULL,
long style = 0,
const wxValidator& validator = wxDefaultValidator,
const wxString& name = "comboBox");

View File

@@ -53,68 +53,119 @@ public:
@param colour
Colour object.
@param colourName
Colour name. The name will be looked up in the colour database.
@param style
One of:
wxTRANSPARENT
Transparent (no fill).
wxSOLID
Solid.
wxSTIPPLE
Uses a bitmap as a stipple.
wxBDIAGONAL_HATCH
Backward diagonal hatch.
wxCROSSDIAG_HATCH
Cross-diagonal hatch.
wxFDIAGONAL_HATCH
Forward diagonal hatch.
wxCROSS_HATCH
Cross hatch.
wxHORIZONTAL_HATCH
Horizontal hatch.
wxVERTICAL_HATCH
Vertical hatch.
Vertical hatch.
@param brush
Pointer or reference to a brush to copy.
@param stippleBitmap
A bitmap to use for stippling.
@remarks If a stipple brush is created, the brush style will be set to
wxSTIPPLE.
@sa wxBrushList, wxColour, wxColourDatabase
@see wxBrushList, wxColour, wxColourDatabase
*/
wxBrush();
wxBrush(const wxColour& colour, int style = wxSOLID);
@@ -140,7 +191,7 @@ public:
/**
Returns a reference to the brush colour.
@sa SetColour()
@see SetColour()
*/
wxColour GetColour();
@@ -150,7 +201,7 @@ public:
this bitmap may be non-@NULL but uninitialised (@ref wxBitmap::isok
wxBitmap:IsOk returns @false).
@sa SetStipple()
@see SetStipple()
*/
wxBitmap* GetStipple();
@@ -159,63 +210,52 @@ public:
@b wxTRANSPARENT
Transparent (no fill).
@b wxSOLID
Solid.
@b wxBDIAGONAL_HATCH
Backward diagonal hatch.
@b wxCROSSDIAG_HATCH
Cross-diagonal hatch.
@b wxFDIAGONAL_HATCH
Forward diagonal hatch.
@b wxCROSS_HATCH
Cross hatch.
@b wxHORIZONTAL_HATCH
Horizontal hatch.
@b wxVERTICAL_HATCH
Vertical hatch.
@b wxSTIPPLE
Stippled using a bitmap.
@b wxSTIPPLE_MASK_OPAQUE
Stippled using a bitmap's mask.
@sa SetStyle(), SetColour(), SetStipple()
@see SetStyle(), SetColour(), SetStipple()
*/
int GetStyle();
/**
Returns @true if the style of the brush is any of hatched fills.
@sa GetStyle()
@see GetStyle()
*/
bool IsHatch();
@@ -224,13 +264,13 @@ public:
constructor has been used (for example, the brush is a member of a class, or
@NULL has been assigned to it).
*/
#define bool IsOk() /* implementation is private */
bool IsOk();
//@{
/**
Sets the brush colour using red, green and blue values.
@sa GetColour()
@see GetColour()
*/
void SetColour(wxColour& colour);
void SetColour(const wxString& colourName);
@@ -248,7 +288,7 @@ public:
associated to it, in which case the style will be set
to wxSTIPPLE_MASK_OPAQUE.
@sa wxBitmap
@see wxBitmap
*/
void SetStipple(const wxBitmap& bitmap);
@@ -258,57 +298,118 @@ public:
@param style
One of:
wxTRANSPARENT
Transparent (no fill).
wxSOLID
Solid.
wxBDIAGONAL_HATCH
Backward diagonal hatch.
wxCROSSDIAG_HATCH
Cross-diagonal hatch.
wxFDIAGONAL_HATCH
Forward diagonal hatch.
wxCROSS_HATCH
Cross hatch.
wxHORIZONTAL_HATCH
Horizontal hatch.
wxVERTICAL_HATCH
Vertical hatch.
wxSTIPPLE
Stippled using a bitmap.
wxSTIPPLE_MASK_OPAQUE
Stippled using a bitmap's mask.
@sa GetStyle()
@see GetStyle()
*/
void SetStyle(int style);

View File

@@ -71,12 +71,12 @@ public:
/**
Ensure the buffer is big enough and return a pointer to the
buffer which can be used to directly write into the buffer
up to @e sizeNeeded bytes.
up to @a sizeNeeded bytes.
*/
void* GetWriteBuf(size_t sizeNeeded);
/**
Ensures the buffer has at least @e size bytes available.
Ensures the buffer has at least @a size bytes available.
*/
void SetBufSize(size_t size);

View File

@@ -58,13 +58,12 @@ class wxBusyInfo
{
public:
/**
Constructs a busy info window as child of @e parent and displays @e msg
Constructs a busy info window as child of @a parent and displays @e msg
in it.
@b NB: If @e parent is not @NULL you must ensure that it is not
@b NB: If @a parent is not @NULL you must ensure that it is not
closed while the busy info is shown.
*/
wxBusyInfo(const wxString& msg, wxWindow* parent = @NULL);
wxBusyInfo(const wxString& msg, wxWindow* parent = NULL);
/**
Hides and closes the window containing the information text.

View File

@@ -32,7 +32,7 @@
@endStyleTable
@beginEventTable
@event{EVT_BUTTON(id\, func)}:
@event{EVT_BUTTON(id, func)}:
Process a wxEVT_COMMAND_BUTTON_CLICKED event, when the button is
clicked.
@endEventTable
@@ -50,39 +50,31 @@ public:
//@{
/**
Constructor, creating and showing a button.
The preferred way to create standard buttons is to use default value of
@e label. If no label is supplied and @e id is one of standard IDs from
@e label. If no label is supplied and @a id is one of standard IDs from
@ref overview_stockitems "this list", standard label will be used. In addition
to
that, the button will be decorated with stock icons under GTK+ 2.
@param parent
Parent window. Must not be @NULL.
@param id
Button identifier. A value of wxID_ANY indicates a default value.
@param label
Text to be displayed on the button.
@param pos
Button position.
@param size
Button size. If the default size is specified then the button is sized
appropriately for the text.
@param style
Window style. See wxButton.
@param validator
Window validator.
@param name
Window name.
@sa Create(), wxValidator
@see Create(), wxValidator
*/
wxButton();
wxButton(wxWindow* parent, wxWindowID id,
@@ -123,7 +115,7 @@ public:
@returns The button's label.
@sa SetLabel()
@see SetLabel()
*/
wxString GetLabel();

View File

@@ -249,7 +249,7 @@ public:
style bit directly. It enables or disables the special highlighting of the
holidays.
*/
void EnableHolidayDisplay(bool display = @true);
void EnableHolidayDisplay(bool display = true);
/**
This function should be used instead of changing
@@ -257,18 +257,17 @@ public:
change the month interactively. Note that if the month can not be changed, the
year can not be changed neither.
*/
void EnableMonthChange(bool enable = @true);
void EnableMonthChange(bool enable = true);
/**
This function should be used instead of changing @c wxCAL_NO_YEAR_CHANGE
style bit directly. It allows or disallows the user to change the year
interactively.
*/
void EnableYearChange(bool enable = @true);
void EnableYearChange(bool enable = true);
/**
Returns the attribute for the given date (should be in the range 1...31).
The returned pointer may be @NULL.
*/
wxCalendarDateAttr* GetAttr(size_t day);
@@ -281,53 +280,53 @@ public:
/**
Gets the background colour of the header part of the calendar window.
@sa SetHeaderColours()
@see SetHeaderColours()
*/
const wxColour GetHeaderColourBg();
/**
Gets the foreground colour of the header part of the calendar window.
@sa SetHeaderColours()
@see SetHeaderColours()
*/
const wxColour GetHeaderColourFg();
/**
Gets the background highlight colour.
@sa SetHighlightColours()
@see SetHighlightColours()
*/
const wxColour GetHighlightColourBg();
/**
Gets the foreground highlight colour.
@sa SetHighlightColours()
@see SetHighlightColours()
*/
const wxColour GetHighlightColourFg();
/**
Return the background colour currently used for holiday highlighting.
@sa SetHolidayColours()
@see SetHolidayColours()
*/
const wxColour GetHolidayColourBg();
/**
Return the foreground colour currently used for holiday highlighting.
@sa SetHolidayColours()
@see SetHolidayColours()
*/
const wxColour GetHolidayColourFg();
/**
Returns one of @c wxCAL_HITTEST_XXX
constants and fills either @e date or
@e wd pointer with the corresponding value depending on the hit test code.
constants and fills either @a date or
@a wd pointer with the corresponding value depending on the hit test code.
*/
wxCalendarHitTestResult HitTest(const wxPoint& pos,
wxDateTime* date = @NULL,
wxDateTime::WeekDay* wd = @NULL);
wxDateTime* date = NULL,
wxDateTime::WeekDay* wd = NULL);
/**
Clears any attributes associated with the given day (in the range
@@ -337,7 +336,6 @@ public:
/**
Associates the attribute with the specified date (in the range 1...31).
If the pointer is @NULL, the items attribute is cleared.
*/
void SetAttr(size_t day, wxCalendarDateAttr* attr);

View File

@@ -60,16 +60,12 @@ public:
/**
Get the caret position (in pixels).
@b GetPosition()
Returns a Wx::Point
@b GetPositionXY()
Returns a 2-element list
@c ( x, y )
*/
@@ -81,16 +77,12 @@ public:
/**
Get the caret size.
@b GetSize()
Returns a Wx::Size
@b GetSizeWH()
Returns a 2-element list
@c ( width, height )
*/
@@ -111,7 +103,7 @@ public:
/**
Returns @true if the caret was created successfully.
*/
#define bool IsOk() /* implementation is private */
bool IsOk();
/**
Returns @true if the caret is visible and @false if it is permanently
@@ -132,10 +124,10 @@ public:
Sets the blink time for all the carets.
@remarks Under Windows, this function will change the blink time for all
carets permanently (until the next time it is
called), even for the carets in other applications.
carets permanently (until the next time it is called),
even for the carets in other applications.
@sa GetBlinkTime()
@see GetBlinkTime()
*/
static void SetBlinkTime(int milliseconds);
@@ -151,5 +143,5 @@ public:
Shows or hides the caret. Notice that if the caret was hidden N times, it
must be shown N times as well to reappear on the screen.
*/
void Show(bool show = @true);
void Show(bool show = true);
};

View File

@@ -12,7 +12,6 @@
words, @c 'x' or @c "foo") to automatically convert them to Unicode in
Unicode build configuration. Please see the
@ref overview_unicode "Unicode overview" for more information.
This macro is simply returns the value passed to it without changes in ASCII
build. In fact, its definition is:
@@ -39,7 +38,7 @@ const wxChar * wxT(const char * s);
current build, but using it can be beneficial in performance-sensitive code to
do the conversion at compile-time instead.
@sa wxT
@see wxT
*/
wxStringCharType wxS(char ch);
const wxStringCharType* wxS(const char* s);

View File

@@ -30,7 +30,7 @@
@endStyleTable
@beginEventTable
@event{EVT_CHECKBOX(id\, func)}:
@event{EVT_CHECKBOX(id, func)}:
Process a wxEVT_COMMAND_CHECKBOX_CLICKED event, when the checkbox
is clicked.
@endEventTable
@@ -51,31 +51,24 @@ public:
@param parent
Parent window. Must not be @NULL.
@param id
Checkbox identifier. The value wxID_ANY indicates a default value.
@param label
Text to be displayed next to the checkbox.
@param pos
Checkbox position. If wxDefaultPosition is specified then a default
position is chosen.
@param size
Checkbox size. If wxDefaultSize is specified then a default size is
chosen.
Checkbox size. If wxDefaultSize is specified then a default
size is chosen.
@param style
Window style. See wxCheckBox.
@param validator
Window validator.
@param name
Window name.
@sa Create(), wxValidator
@see Create(), wxValidator
*/
wxCheckBox();
wxCheckBox(wxWindow* parent, wxWindowID id,
@@ -109,9 +102,9 @@ public:
@returns Returns wxCHK_UNCHECKED when the checkbox is unchecked,
wxCHK_CHECKED when it is checked and
wxCHK_UNDETERMINED when it's in the undetermined
state. Asserts when the function is used with a
2-state checkbox.
wxCHK_UNDETERMINED when it's in the undetermined state.
Asserts when the function is used with a 2-state
checkbox.
*/
wxCheckBoxState Get3StateValue();
@@ -134,8 +127,8 @@ public:
Returns whether or not the user can set the checkbox to the third state.
@returns Returns @true if the user can set the third state of this
checkbox, @false if it can only be set
programmatically or if it's a 2-state checkbox.
checkbox, @false if it can only be set programmatically
or if it's a 2-state checkbox.
*/
bool Is3rdStateAllowedForUser();

View File

@@ -21,7 +21,7 @@
and therefore this is not available to the application.
@beginEventTable
@event{EVT_CHECKLISTBOX(id\, func)}:
@event{EVT_CHECKLISTBOX(id, func)}:
Process a wxEVT_COMMAND_CHECKLISTBOX_TOGGLED event, when an item in
the check list box is checked or unchecked.
@endEventTable
@@ -42,29 +42,22 @@ public:
@param parent
Parent window. Must not be @NULL.
@param id
Window identifier. The value wxID_ANY indicates a default value.
@param pos
Window position.
@param size
Window size. If wxDefaultSize is specified then the window is sized
Window size. If wxDefaultSize is specified then the window is
sized
appropriately.
@param n
Number of strings with which to initialise the control.
@param choices
An array of strings with which to initialise the control.
@param style
Window style. See wxCheckListBox.
@param validator
Window validator.
@param name
Window name.
*/
@@ -73,7 +66,7 @@ public:
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
int n,
const wxString choices[] = @NULL,
const wxString choices[] = NULL,
long style = 0,
const wxValidator& validator = wxDefaultValidator,
const wxString& name = "listBox");
@@ -97,9 +90,8 @@ public:
@param item
Index of item to check.
@param check
@true if the item is to be checked, @false otherwise.
*/
void Check(int item, bool check = @true);
void Check(int item, bool check = true);
};

View File

@@ -29,42 +29,59 @@ public:
@param parent
Parent window.
@param message
Message to show on the dialog.
@param caption
The dialog caption.
@param n
The number of choices.
@param choices
An array of strings, or a string list, containing the choices.
@param style
A dialog style (bitlist) containing flags chosen from standard
dialog styles and the following:
wxOK
Show an OK button.
wxCANCEL
Show a Cancel button.
wxCENTRE
Centre the message. Not Windows.
The default value is equivalent to wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER |
wxOK | wxCANCEL | wxCENTRE.
The default value is equivalent to wxDEFAULT_DIALOG_STYLE |
wxRESIZE_BORDER | wxOK | wxCANCEL | wxCENTRE.
@param pos
Dialog position. Not Windows.
@@ -125,46 +142,62 @@ public:
@param parent
Parent window.
@param message
Message to show on the dialog.
@param caption
The dialog caption.
@param n
The number of choices.
@param choices
An array of strings, or a string list, containing the choices.
@param clientData
An array of client data to be associated with the items.
See GetSelectionClientData.
@param style
A dialog style (bitlist) containing flags chosen from standard
dialog styles and the following:
wxOK
Show an OK button.
wxCANCEL
Show a Cancel button.
wxCENTRE
Centre the message. Not Windows.
The default value is equivalent to wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER |
wxOK | wxCANCEL | wxCENTRE.
The default value is equivalent to wxDEFAULT_DIALOG_STYLE |
wxRESIZE_BORDER | wxOK | wxCANCEL | wxCENTRE.
@param pos
Dialog position. Not Windows.
@@ -174,14 +207,14 @@ public:
const wxString& caption,
int n,
const wxString* choices,
void** clientData = @NULL,
void** clientData = NULL,
long style = wxCHOICEDLG_STYLE,
const wxPoint& pos = wxDefaultPosition);
wxSingleChoiceDialog(wxWindow* parent,
const wxString& message,
const wxString& caption,
const wxArrayString& choices,
void** clientData = @NULL,
void** clientData = NULL,
long style = wxCHOICEDLG_STYLE,
const wxPoint& pos = wxDefaultPosition);
//@}
@@ -225,20 +258,20 @@ public:
int wxGetSingleChoiceIndex(const wxString& message,
const wxString& caption,
const wxArrayString& aChoices,
wxWindow * parent = @NULL,
wxWindow* parent = NULL,
int x = -1,
int y = -1,
bool centre = @true,
bool centre = true,
int width = 150,
int height = 200);
int wxGetSingleChoiceIndex(const wxString& message,
const wxString& caption,
int n,
const wxString& choices[],
wxWindow * parent = @NULL,
wxWindow* parent = NULL,
int x = -1,
int y = -1,
bool centre = @true,
bool centre = true,
int width = 150,
int height = 200);
//@}
@@ -250,31 +283,29 @@ int wxGetSingleChoiceIndex(const wxString& message,
string or Cancel to return the empty string. Use
wxGetSingleChoiceIndex if empty string is a
valid choice and if you want to be able to detect pressing Cancel reliably.
You may pass the list of strings to choose from either using @e choices
which is an array of @e n strings for the listbox or by using a single
@e aChoices parameter of type wxArrayString.
If @e centre is @true, the message text (which may include new line
which is an array of @a n strings for the listbox or by using a single
@a aChoices parameter of type wxArrayString.
If @a centre is @true, the message text (which may include new line
characters) is centred; if @false, the message is left-justified.
*/
wxString wxGetSingleChoice(const wxString& message,
const wxString& caption,
const wxArrayString& aChoices,
wxWindow * parent = @NULL,
wxWindow* parent = NULL,
int x = -1,
int y = -1,
bool centre = @true,
bool centre = true,
int width = 150,
int height = 200);
wxString wxGetSingleChoice(const wxString& message,
const wxString& caption,
int n,
const wxString& choices[],
wxWindow * parent = @NULL,
wxWindow* parent = NULL,
int x = -1,
int y = -1,
bool centre = @true,
bool centre = true,
int width = 150,
int height = 200);
//@}
@@ -290,10 +321,10 @@ wxString wxGetSingleChoiceData(const wxString& message,
const wxString& caption,
const wxArrayString& aChoices,
const wxString& client_data[],
wxWindow * parent = @NULL,
wxWindow* parent = NULL,
int x = -1,
int y = -1,
bool centre = @true,
bool centre = true,
int width = 150,
int height = 200);
wxString wxGetSingleChoiceData(const wxString& message,
@@ -301,10 +332,10 @@ wxString wxGetSingleChoiceData(const wxString& message,
int n,
const wxString& choices[],
const wxString& client_data[],
wxWindow * parent = @NULL,
wxWindow* parent = NULL,
int x = -1,
int y = -1,
bool centre = @true,
bool centre = true,
int width = 150,
int height = 200);
//@}
@@ -316,22 +347,20 @@ wxString wxGetSingleChoiceData(const wxString& message,
number of items in the listbox whose indices will be returned in
@e selection array. The initial contents of this array will be used to
select the items when the dialog is shown.
You may pass the list of strings to choose from either using @e choices
which is an array of @e n strings for the listbox or by using a single
@e aChoices parameter of type wxArrayString.
If @e centre is @true, the message text (which may include new line
which is an array of @a n strings for the listbox or by using a single
@a aChoices parameter of type wxArrayString.
If @a centre is @true, the message text (which may include new line
characters) is centred; if @false, the message is left-justified.
*/
size_t wxGetMultipleChoices(wxArrayInt& selections,
const wxString& message,
const wxString& caption,
const wxArrayString& aChoices,
wxWindow * parent = @NULL,
wxWindow* parent = NULL,
int x = -1,
int y = -1,
bool centre = @true,
bool centre = true,
int width = 150,
int height = 200);
size_t wxGetMultipleChoices(wxArrayInt& selections,
@@ -339,10 +368,10 @@ size_t wxGetMultipleChoices(wxArrayInt& selections,
const wxString& caption,
int n,
const wxString& choices[],
wxWindow * parent = @NULL,
wxWindow* parent = NULL,
int x = -1,
int y = -1,
bool centre = @true,
bool centre = true,
int width = 150,
int height = 200);
//@}

View File

@@ -20,7 +20,7 @@
@endStyleTable
@beginEventTable
@event{EVT_CHOICE(id\, func)}:
@event{EVT_CHOICE(id, func)}:
Process a wxEVT_COMMAND_CHOICE_SELECTED event, when an item on the
list is selected.
@endEventTable
@@ -41,33 +41,26 @@ public:
@param parent
Parent window. Must not be @NULL.
@param id
Window identifier. The value wxID_ANY indicates a default value.
@param pos
Window position.
@param size
Window size. If wxDefaultSize is specified then the choice is sized
Window size. If wxDefaultSize is specified then the choice is
sized
appropriately.
@param n
Number of strings with which to initialise the choice control.
@param choices
An array of strings with which to initialise the choice control.
@param style
Window style. See wxChoice.
@param validator
Window validator.
@param name
Window name.
@sa Create(), wxValidator
@see Create(), wxValidator
*/
wxChoice();
wxChoice(wxWindow* parent, wxWindowID id,
@@ -125,7 +118,6 @@ public:
That is, while the dropdown list is shown, it returns the currently selected
item in it. When it is not shown, its result is the same as for the other
function.
This function is new since wxWidgets version 2.6.2 (before this version
wxControlWithItems::GetSelection itself behaved like
this).

View File

@@ -7,9 +7,9 @@
/////////////////////////////////////////////////////////////////////////////
/**
Gets the name of a registered clipboard format, and puts it into the buffer @e
Gets the name of a registered clipboard format, and puts it into the buffer @a
formatName which is of maximum
length @e maxCount. @e dataFormat must not specify a predefined clipboard
length @e maxCount. @a dataFormat must not specify a predefined clipboard
format.
*/
bool wxGetClipboardFormatName(int dataFormat,
@@ -19,13 +19,10 @@ bool wxGetClipboardFormatName(int dataFormat,
/**
Gets data from the clipboard.
@e dataFormat may be one of:
@a dataFormat may be one of:
wxCF_TEXT or wxCF_OEMTEXT: returns a pointer to new memory containing a
null-terminated text string.
wxCF_BITMAP: returns a new wxBitmap.
The clipboard must have previously been opened for this call to succeed.
*/
wxObject* wxGetClipboardData(int dataFormat);
@@ -65,15 +62,12 @@ bool wxCloseClipboard();
to the clipboard. Each call to this function specifies a known
available format; the function returns the format that appears next in
the list.
@e dataFormat specifies a known format. If this parameter is zero,
@a dataFormat specifies a known format. If this parameter is zero,
the function returns the first format in the list.
The return value specifies the next known clipboard data format if the
function is successful. It is zero if the @e dataFormat parameter specifies
function is successful. It is zero if the @a dataFormat parameter specifies
the last format in the list of available formats, or if the clipboard
is not open.
Before it enumerates the formats function, an application must open the
clipboard by using the
wxOpenClipboard function.

View File

@@ -18,8 +18,7 @@
To use the clipboard, you call member functions of the global @b wxTheClipboard
object.
See also the @ref overview_wxdataobjectoverview "wxDataObject overview" for
further information.
See also the @ref overview_wxdataobjectoverview for further information.
Call wxClipboard::Open to get ownership of the clipboard. If this operation
returns @true, you
@@ -58,7 +57,7 @@
@category{dnd}
@seealso
@ref overview_wxdndoverview "Drag and drop overview", wxDataObject
@ref overview_wxdndoverview, wxDataObject
*/
class wxClipboard : public wxObject
{
@@ -76,12 +75,11 @@ public:
/**
Call this function to add the data object to the clipboard. You may call
this function repeatedly after having cleared the clipboard using Clear().
After this function has been called, the clipboard owns the data, so do not
delete
the data explicitly.
@sa SetData()
@see SetData()
*/
bool AddData(wxDataObject* data);
@@ -104,7 +102,7 @@ public:
bool Flush();
/**
Call this function to fill @e data with data on the clipboard, if available in
Call this function to fill @a data with data on the clipboard, if available in
the required
format. Returns @true on success.
*/
@@ -131,10 +129,8 @@ public:
/**
Call this function to open the clipboard before calling SetData()
and GetData().
Call Close() when you have finished with the clipboard. You
should keep the clipboard open for only a very short time.
Returns @true on success. This should be tested (as in the sample shown above).
*/
bool Open();
@@ -143,12 +139,11 @@ public:
Call this function to set the data object to the clipboard. This function will
clear all previous contents in the clipboard, so calling it several times
does not make any sense.
After this function has been called, the clipboard owns the data, so do not
delete
the data explicitly.
@sa AddData()
@see AddData()
*/
bool SetData(wxDataObject* data);
@@ -157,7 +152,6 @@ public:
CLIPBOARD X11 selection by default. When this function is called with @true
argument, all subsequent clipboard operations will use PRIMARY selection until
this function is called again with @false.
On the other platforms, there is no PRIMARY selection and so all clipboard
operations will fail. This allows to implement the standard X11 handling of the
clipboard which consists in copying data to the CLIPBOARD selection only when
@@ -166,5 +160,5 @@ public:
automatically, without overwriting the normal clipboard contents with the
currently selected text on the other platforms.
*/
void UsePrimarySelection(bool primary = @true);
void UsePrimarySelection(bool primary = true);
};

View File

@@ -56,25 +56,18 @@ public:
/**
@param parent
Parent window, must not be non-@NULL.
@param id
The identifier for the control.
@param colour
The initial colour shown in the control.
@param pos
Initial position.
@param size
Initial size.
@param style
The window style, see wxCRLP_* flags.
@param validator
Validator which can be used for additional date checks.
@param name
Control name.

View File

@@ -82,13 +82,12 @@ public:
/**
Frees resources allocated by the object.
@b NB: destructor is not virtual, don't use this class polymorphically.
*/
~wxCmdLineParser();
/**
Add an option @e name with an optional long name @e lng (no long name if
Add an option @a name with an optional long name @a lng (no long name if
it is empty, which is default) taking a value of the given type (string by
default) to the command line description.
*/
@@ -99,15 +98,15 @@ public:
int flags = 0);
/**
Add a parameter of the given @e type to the command line description.
Add a parameter of the given @a type to the command line description.
*/
void AddParam(const wxString& desc = wxEmptyString,
wxCmdLineParamType type = wxCMD_LINE_VAL_STRING,
int flags = 0);
/**
Add a switch @e name with an optional long name @e lng (no long name if it
is empty, which is default), description @e desc and flags @e flags to the
Add a switch @a name with an optional long name @a lng (no long name if it
is empty, which is default), description @a desc and flags @a flags to the
command line description.
*/
void AddSwitch(const wxString& name,
@@ -118,7 +117,7 @@ public:
/**
Returns @true if long options are enabled, otherwise @false.
@sa EnableLongOptions()
@see EnableLongOptions()
*/
bool AreLongOptionsEnabled();
@@ -127,17 +126,14 @@ public:
parser object must have the command line to parse and also the rules saying
which switches, options and parameters are valid - this is called command line
description in what follows.
You have complete freedom of choice as to when specify the required information,
the only restriction is that it must be done before calling
Parse().
To specify the command line to parse you may use either one of constructors
accepting it (@c wxCmdLineParser(argc, argv) or @c wxCmdLineParser(const
wxString) usually)
or, if you use the default constructor, you can do it later by calling
SetCmdLine().
The same holds for command line description: it can be specified either in
the @ref wxcmdlineparserctor() constructor (with or without
the command line itself) or constructed later using either
@@ -145,7 +141,6 @@ public:
AddSwitch(),
AddOption() and
AddParam() methods.
Using constructors or SetDesc() uses a (usually
@c const static) table containing the command line description. If you want
to decide which options to accept during the run-time, using one of the
@@ -164,21 +159,18 @@ public:
wxCmdLineParser has several global options which may be changed by the
application. All of the functions described in this section should be called
before Parse().
First global option is the support for long (also known as GNU-style) options.
The long options are the ones which start with two dashes (@c "--") and look
like this: @c --verbose, i.e. they generally are complete words and not some
abbreviations of them. As long options are used by more and more applications,
they are enabled by default, but may be disabled with
DisableLongOptions().
Another global option is the set of characters which may be used to start an
option (otherwise, the word on the command line is assumed to be a parameter).
Under Unix, @c '-' is always used, but Windows has at least two common
choices for this: @c '-' and @c '/'. Some programs also use @c '+'.
The default is to use what suits most the current platform, but may be changed
with SetSwitchChars() method.
Finally, SetLogo() can be used to show some
application-specific text before the explanation given by
Usage() function.
@@ -192,13 +184,12 @@ public:
/**
Enable or disable support for the long options.
As long options are not (yet) POSIX-compliant, this option allows to disable
them.
@sa Customization() and AreLongOptionsEnabled()
@see Customization() and AreLongOptionsEnabled()
*/
void EnableLongOptions(bool enable = @true);
void EnableLongOptions(bool enable = true);
//@{
/**
@@ -226,7 +217,6 @@ public:
After calling Parse() (and if it returned 0),
you may access the results of parsing using one of overloaded @c Found()
methods.
For a simple switch, you will simply call
Found() to determine if the switch was given
or not, for an option or a parameter, you will call a version of @c Found()
@@ -248,7 +238,7 @@ public:
are given, use Usage to show the usage message
from the caller if needed.
*/
int Parse(bool giveUsage = @true);
int Parse(bool giveUsage = true);
/**
After the command line description was constructed and the desired options were
@@ -257,7 +247,6 @@ public:
option was specified (this is a separate case as, normally, the program will
terminate after this) or a positive number if there was an error during the
command line parsing.
In the latter case, the appropriate error message and usage information are
logged by wxCmdLineParser itself using the standard wxWidgets logging functions.
*/
@@ -274,21 +263,19 @@ public:
/**
Construct the command line description
Take the command line description from the wxCMD_LINE_NONE terminated table.
Example of usage:
*/
void SetDesc(const wxCmdLineEntryDesc* desc);
/**
@e logo is some extra text which will be shown by
@a logo is some extra text which will be shown by
Usage() method.
*/
void SetLogo(const wxString& logo);
/**
@e switchChars contains all characters with which an option or switch may
@a switchChars contains all characters with which an option or switch may
start. Default is @c "-" for Unix, @c "-/" for Windows.
*/
void SetSwitchChars(const wxString& switchChars);
@@ -298,7 +285,7 @@ public:
options and parameters descriptions specified earlier, so the resulting message
will not be helpful to the user unless the descriptions were indeed specified.
@sa SetLogo()
@see SetLogo()
*/
void Usage();
};

View File

@@ -27,16 +27,14 @@ public:
/**
Constructor. wxCommand is an abstract class, so you will need to derive
a new class and call this constructor from your own constructor.
@e canUndo tells the command processor whether this command is undo-able. You
@a canUndo tells the command processor whether this command is undo-able. You
can achieve the same functionality by overriding the CanUndo member function
(if for example
the criteria for undoability is context-dependent).
@e name must be supplied for the command processor to display the command name
@a name must be supplied for the command processor to display the command name
in the application's edit menu.
*/
wxCommand(bool canUndo = @false, const wxString& name = @NULL);
wxCommand(bool canUndo = false, const wxString& name = NULL);
/**
Destructor.
@@ -54,7 +52,7 @@ public:
Returning @false will indicate to the command processor that the action is
not undoable and should not be added to the command history.
*/
#define bool Do() /* implementation is private */
bool Do();
/**
Returns the command name.
@@ -66,10 +64,8 @@ public:
Return @true to indicate that the action has taken place, @false otherwise.
Returning @false will indicate to the command processor that the action is
not redoable and no change should be made to the command history.
How you implement this command is totally application dependent, but typical
strategies include:
Perform an inverse operation on the last modified piece of
data in the document. When redone, a copy of data stored in command
is pasted back or some operation reapplied. This relies on the fact that
@@ -78,7 +74,6 @@ public:
Restore the entire document state (perhaps using document transactioning).
Potentially very inefficient, but possibly easier to code if the user interface
and data are complex, and an 'inverse execute' operation is hard to write.
The docview sample uses the first method, to remove or restore segments
in the drawing.
*/
@@ -106,8 +101,7 @@ class wxCommandProcessor : public wxObject
public:
/**
Constructor.
@e maxCommands may be set to a positive integer to limit the number of
@a maxCommands may be set to a positive integer to limit the number of
commands stored to it, otherwise (and by default) the list of commands can grow
arbitrarily.
*/
@@ -222,11 +216,10 @@ public:
appropriately. If it fails, the command is deleted
immediately. Once Submit has been called, the passed command should not
be deleted directly by the application.
@e storeIt indicates whether the successful command should be stored
@a storeIt indicates whether the successful command should be stored
in the history list.
*/
virtual bool Submit(wxCommand * command, bool storeIt = @true);
virtual bool Submit(wxCommand* command, bool storeIt = true);
/**
Undoes the command just executed.

View File

@@ -34,7 +34,6 @@ public:
Enables or disables 'effects' under MS Windows or generic only. This refers to
the
controls for manipulating colour, strikeout and underline properties.
The default value is @true.
*/
void EnableEffects(bool enable);
@@ -43,7 +42,6 @@ public:
Under MS Windows, returns a flag determining whether symbol fonts can be
selected. Has no
effect on other platforms.
The default value is @true.
*/
bool GetAllowSymbols();
@@ -56,7 +54,6 @@ public:
/**
Gets the colour associated with the font dialog.
The default value is black.
*/
wxColour GetColour();
@@ -64,7 +61,6 @@ public:
/**
Determines whether 'effects' are enabled under Windows. This refers to the
controls for manipulating colour, strikeout and underline properties.
The default value is @true.
*/
bool GetEnableEffects();
@@ -77,7 +73,6 @@ public:
/**
Returns @true if the Help button will be shown (Windows only).
The default value is @false.
*/
bool GetShowHelp();
@@ -85,7 +80,6 @@ public:
/**
Under MS Windows, determines whether symbol fonts can be selected. Has no
effect on other platforms.
The default value is @true.
*/
void SetAllowSymbols(bool allowSymbols);
@@ -97,7 +91,6 @@ public:
/**
Sets the colour that will be used for the font foreground colour.
The default colour is black.
*/
void SetColour(const wxColour& colour);
@@ -109,7 +102,6 @@ public:
/**
Sets the valid range for the font point size (Windows only).
The default is 0, 0 (unrestricted range).
*/
void SetRange(int min, int max);
@@ -117,7 +109,6 @@ public:
/**
Determines whether the Help button will be displayed in the font dialog
(Windows only).
The default value is @false.
*/
void SetShowHelp(bool showHelp);
@@ -252,7 +243,6 @@ public:
/**
Returns the paper id (stored in the internal wxPrintData object).
For further information, see wxPrintData::SetPaperId.
*/
wxPaperSize GetPaperId();
@@ -273,7 +263,7 @@ public:
This can return @false on Windows if the current printer is not set, for example.
On all other platforms, it returns @true.
*/
#define bool IsOk() /* implementation is private */
bool IsOk();
/**
Pass @true if the dialog will simply return default printer information (such as
@@ -315,7 +305,6 @@ public:
/**
Sets the paper size id. For further information, see wxPrintData::SetPaperId.
Calling this function overrides the explicit paper dimensions passed in
SetPaperSize().
*/
@@ -378,22 +367,19 @@ public:
dialog
will display full rgb colour picker or only available palette indexer.
Has no meaning under other platforms.
The default value is @true.
*/
bool GetChooseFull();
/**
Gets the current colour associated with the colour dialog.
The default colour is black.
*/
wxColour GetColour();
/**
Gets the @e ith custom colour associated with the colour dialog. @e i should
Gets the @e ith custom colour associated with the colour dialog. @a i should
be an integer between 0 and 15.
The default custom colours are invalid colours.
*/
wxColour GetCustomColour(int i);
@@ -401,22 +387,19 @@ public:
/**
Under Windows, tells the Windows colour dialog to display the full dialog
with custom colour selection controls. Under other platforms, has no effect.
The default value is @true.
*/
void SetChooseFull(const bool flag);
/**
Sets the default colour for the colour dialog.
The default colour is black.
*/
void SetColour(const wxColour& colour);
/**
Sets the @e ith custom colour for the colour dialog. @e i should
Sets the @e ith custom colour for the colour dialog. @a i should
be an integer between 0 and 15.
The default custom colours are invalid colours.
*/
void SetCustomColour(int i, const wxColour& colour);
@@ -464,7 +447,6 @@ public:
/**
Returns the current bin (papersource). By default, the system is left to select
the bin (@c wxPRINTBIN_DEFAULT is returned).
See SetBin() for the full list of bin values.
*/
wxPrintBin GetBin();
@@ -511,6 +493,7 @@ public:
Returns the current print quality. This can be a positive integer, denoting the
number of dots per inch, or
one of the following identifiers:
On input you should pass one of these identifiers, but on return you may get
back a positive integer
indicating the current resolution setting.
@@ -522,7 +505,7 @@ public:
This can return @false on Windows if the current printer is not set, for example.
On all other platforms, it returns @true.
*/
#define bool IsOk() /* implementation is private */
bool IsOk();
/**
Sets the current bin. Possible values are:
@@ -560,8 +543,7 @@ public:
between
paper id, paper size and string name, see wxPrintPaperDatabase in @c paper.h
(not yet documented).
@e paperId can be one of:
@a paperId can be one of:
*/
void SetPaperId(wxPaperSize paperId);
@@ -575,6 +557,7 @@ public:
Sets the desired print quality. This can be a positive integer, denoting the
number of dots per inch, or
one of the following identifiers:
On input you should pass one of these identifiers, but on return you may get
back a positive integer
indicating the current resolution setting.
@@ -701,7 +684,7 @@ public:
This can return @false on Windows if the current printer is not set, for example.
On all other platforms, it returns @true.
*/
#define bool IsOk() /* implementation is private */
bool IsOk();
/**
Sets the 'Collate' checkbox to @true or @false.
@@ -748,7 +731,6 @@ public:
/**
Determines whether the dialog to be shown will be the Print dialog
(pass @false) or Print Setup dialog (pass @true).
This function has been deprecated since version 2.5.4.
*/
void SetSetupDialog(bool flag);

View File

@@ -34,9 +34,9 @@ public:
bool GetCollapsed();
/**
Sets this as a collapsed pane event (if @e collapsed is @true) or as an
Sets this as a collapsed pane event (if @a collapsed is @true) or as an
expanded
pane event (if @e collapsed is @false).
pane event (if @a collapsed is @false).
*/
void SetCollapsed(bool collapsed);
};
@@ -117,31 +117,24 @@ public:
/**
Collapses or expands the pane window.
*/
void Collapse(bool collapse = @true);
void Collapse(bool collapse = true);
/**
@param parent
Parent window, must not be non-@NULL.
@param id
The identifier for the control.
@param label
The initial label shown in the button which allows the user to expand or
collapse the pane window.
@param pos
Initial position.
@param size
Initial size.
@param style
The window style, see wxCP_* flags.
@param validator
Validator which can be used for additional date checks.
@param name
Control name.

View File

@@ -30,9 +30,9 @@ public:
or replaced with white colour on platforms where custom colours palette has
fixed size (MSW).
@sa wxColourData
@see wxColourData
*/
wxColourDialog(wxWindow* parent, wxColourData* data = @NULL);
wxColourDialog(wxWindow* parent, wxColourData* data = NULL);
/**
Destructor.
@@ -42,7 +42,7 @@ public:
/**
Same as @ref ctor() constructor.
*/
bool Create(wxWindow* parent, wxColourData* data = @NULL);
bool Create(wxWindow* parent, wxColourData* data = NULL);
/**
Returns the @ref overview_wxcolourdata "colour data" associated with the colour
@@ -69,20 +69,18 @@ public:
@param parent
The parent window for the colour selection dialog
@param colInit
If given, this will be the colour initially selected in the dialog.
@param caption
If given, this will be used for the dialog caption.
@param data
Optional object storing additional colour dialog settings, such
as custom colours. If none is provided the same settings as the last time are
as custom colours. If none is provided the same settings as the last time
are
used.
*/
wxColour wxGetColourFromUser(wxWindow* parent,
const wxColour& colInit,
const wxString& caption = wxEmptyString,
wxColourData * data = @NULL);
wxColourData* data = NULL);

View File

@@ -53,24 +53,19 @@ public:
@param red
The red value.
@param green
The green value.
@param blue
The blue value.
@param alpha
The alpha value. Alpha values range from 0 (wxALPHA_TRANSPARENT) to 255
(wxALPHA_OPAQUE).
@param colourName
The colour name.
@param colour
The colour to copy.
@sa wxColourDatabase
@see wxColourDatabase
*/
wxColour();
wxColour(unsigned char red, unsigned char green,
@@ -95,7 +90,6 @@ public:
/**
is not
specified in flags.
This function is new since wxWidgets version 2.7.0
*/
wxString GetAsString(long flags);
@@ -113,7 +107,6 @@ public:
Returns a pixel value which is platform-dependent. On Windows, a COLORREF is
returned.
On X, an allocated pixel value is returned.
-1 is returned if the pixel is invalid (on X, unallocated).
*/
long GetPixel();
@@ -127,26 +120,23 @@ public:
Returns @true if the colour object is valid (the colour has been initialised
with RGB values).
*/
#define bool IsOk() /* implementation is private */
bool IsOk();
/**
Returns the red intensity.
*/
#define unsigned char Red() /* implementation is private */
unsigned char Red();
//@{
/**
Sets the RGB intensity values using the given values (first overload),
extracting them from the packed long (second overload), using the given string (third overloard).
When using third form, Set() accepts: colour names (those listed in
wxTheColourDatabase), the CSS-like
@c "rgb(r,g,b)" or @c "rgba(r,g,b,a)" syntax (case insensitive)
and the HTML-like syntax (i.e. @c "#" followed by 6 hexadecimal digits
for red, green, blue components).
Returns @true if the conversion was successful, @false otherwise.
This function is new since wxWidgets version 2.7.0
*/
void Set(unsigned char red, unsigned char green,
@@ -166,7 +156,7 @@ public:
/**
Assignment operator, using a colour name to be found in the colour database.
@sa wxColourDatabase
@see wxColourDatabase
*/
wxColour operator =(const wxColour& colour);
wxColour operator =(const wxString& colourName);

View File

@@ -49,11 +49,9 @@ public:
@param minWidth
Preferred minimum width.
@param prefHeight
Preferred height. May be -1 to indicate
no preference.
@param maxWidth
Max height for window, as limited by
screen size.
@@ -85,7 +83,6 @@ public:
/**
Utility method that returns @true if Create has been called.
Useful in conjunction with LazyCreate().
*/
bool IsCreated();
@@ -110,7 +107,6 @@ public:
/**
The derived class may implement this to receive
key events from the parent wxComboCtrl.
Events not handled should be skipped, as usual.
*/
void OnComboKeyEvent(wxKeyEvent& event);
@@ -130,7 +126,6 @@ public:
/**
The derived class may implement this to paint
the parent wxComboCtrl.
Default implementation draws value as string.
*/
void PaintComboControl(wxDC& dc, const wxRect& rect);
@@ -143,7 +138,6 @@ public:
/**
wxComboCtrl m_combo
Parent wxComboCtrl. This is parameter has
been prepared before Init() is called.
*/
@@ -179,9 +173,9 @@ public:
@endStyleTable
@beginEventTable
@event{EVT_TEXT(id\, func)}:
@event{EVT_TEXT(id, func)}:
Process a wxEVT_COMMAND_TEXT_UPDATED event, when the text changes.
@event{EVT_TEXT_ENTER(id\, func)}:
@event{EVT_TEXT_ENTER(id, func)}:
Process a wxEVT_COMMAND_TEXT_ENTER event, when RETURN is pressed in
the combo control.
@endEventTable
@@ -202,30 +196,24 @@ public:
@param parent
Parent window. Must not be @NULL.
@param id
Window identifier. The value wxID_ANY indicates a default value.
@param value
Initial selection string. An empty string indicates no selection.
@param pos
Window position.
@param size
Window size. If wxDefaultSize is specified then the window is sized
Window size. If wxDefaultSize is specified then the window is
sized
appropriately.
@param style
Window style. See wxComboCtrl.
@param validator
Window validator.
@param name
Window name.
@sa Create(), wxValidator
@see Create(), wxValidator
*/
wxComboCtrl();
wxComboCtrl(wxWindow* parent, wxWindowID id,
@@ -248,8 +236,8 @@ public:
custom popup animation.
@returns @true if animation finishes before the function returns. @false
otherwise. In the latter case you need to manually
call DoShowPopup after the animation ends.
otherwise. In the latter case you need to manually call
DoShowPopup after the animation ends.
*/
virtual bool AnimateShow(const wxRect& rect, int flags);
@@ -274,13 +262,12 @@ public:
/**
Copies the selected text to the clipboard and removes the selection.
*/
#define void Cut() /* implementation is private */
void Cut();
/**
This member function is not normally called in application code.
Instead, it can be implemented in a derived class to return
default wxComboPopup, incase @c popup is @NULL.
@b Note: If you have implemented OnButtonClick to do
something else than show the popup, then DoSetPopupControl
must always return @NULL.
@@ -296,7 +283,6 @@ public:
@param rect
Position to show the popup window at, in screen coordinates.
@param flags
Combination of any of the following:
*/
@@ -306,7 +292,7 @@ public:
Enables or disables popup animation, if any, depending on the value of
the argument.
*/
void EnablePopupAnimation(bool enable = @true);
void EnablePopupAnimation(bool enable = true);
/**
Returns disabled button bitmap that has been set with
@@ -348,7 +334,7 @@ public:
/**
Returns custom painted area in control.
@sa SetCustomPaintWidth().
@see SetCustomPaintWidth().
*/
int GetCustomPaintWidth();
@@ -363,7 +349,6 @@ public:
/**
Returns the insertion point for the combo control's text field.
@b Note: Under wxMSW, this function always returns 0 if the combo control
doesn't have the focus.
*/
@@ -420,21 +405,17 @@ public:
Returns @true if the popup window is in the given state.
Possible values are:
@c Hidden()
Popup window is hidden.
@c Animating()
Popup window is being shown, but the
popup animation has not yet finished.
@c Visible()
Popup window is fully visible.
*/
bool IsPopupWindowState(int state);
@@ -442,9 +423,7 @@ public:
/**
Implement in a derived class to define what happens on
dropdown button click.
Default action is to show the popup.
@b Note: If you implement this to do something else than
show the popup, you must then also implement
DoSetPopupControl() to always
@@ -462,7 +441,6 @@ public:
@param from
The first position.
@param to
The last position.
*/
@@ -474,10 +452,8 @@ public:
@param from
The first position.
@param to
The second position.
@param text
The text to insert.
*/
@@ -488,24 +464,20 @@ public:
@param bmpNormal
Default button image.
@param pushButtonBg
If @true, blank push button background is painted
below the image.
@param bmpPressed
Depressed button image.
@param bmpHover
Button image when mouse hovers above it. This
should be ignored on platforms and themes that do not generally draw
different kind of button on mouse hover.
@param bmpDisabled
Disabled button image.
*/
void SetButtonBitmaps(const wxBitmap& bmpNormal,
bool pushButtonBg = @false,
bool pushButtonBg = false,
const wxBitmap& bmpPressed = wxNullBitmap,
const wxBitmap& bmpHover = wxNullBitmap,
const wxBitmap& bmpDisabled = wxNullBitmap);
@@ -515,14 +487,11 @@ public:
@param width
Button width. Value = 0 specifies default.
@param height
Button height. Value = 0 specifies default.
@param side
Indicates which side the button will be placed.
Value can be wxLEFT or wxRIGHT.
@param spacingX
Horizontal spacing around the button. Default is 0.
*/
@@ -571,7 +540,6 @@ public:
@param extLeft
How many pixel to extend beyond the left edge of the
control. Default is 0.
@param extRight
How many pixel to extend beyond the right edge of the
control. Default is 0.
@@ -600,7 +568,6 @@ public:
@param from
The first position.
@param to
The second position.
*/
@@ -622,7 +589,6 @@ public:
/**
Sets the text for the combo control text field.
@b NB: For a combo control with @c wxCB_READONLY style the
string must be accepted by the popup (for instance, exist in the dropdown
list), otherwise the call to SetValue() is ignored
@@ -635,7 +601,7 @@ public:
if @c withEvent is @true.
*/
void SetValueWithEvent(const wxString& value,
bool withEvent = @true);
bool withEvent = true);
/**
Show the popup.
@@ -654,5 +620,5 @@ public:
and as such, when it is shown, its parent top-level window will appear
as if the focus has been lost from it.
*/
void UseAltPopupWindow(bool enable = @true);
void UseAltPopupWindow(bool enable = true);
};

View File

@@ -41,14 +41,14 @@
@endStyleTable
@beginEventTable
@event{EVT_COMBOBOX(id\, func)}:
@event{EVT_COMBOBOX(id, func)}:
Process a wxEVT_COMMAND_COMBOBOX_SELECTED event, when an item on
the list is selected. Note that calling GetValue returns the new
value of selection.
@event{EVT_TEXT(id\, func)}:
@event{EVT_TEXT(id, func)}:
Process a wxEVT_COMMAND_TEXT_UPDATED event, when the combobox text
changes.
@event{EVT_TEXT_ENTER(id\, func)}:
@event{EVT_TEXT_ENTER(id, func)}:
Process a wxEVT_COMMAND_TEXT_ENTER event, when RETURN is pressed in
the combobox (notice that the combobox must have been created with
wxTE_PROCESS_ENTER style to receive this event).
@@ -70,36 +70,28 @@ public:
@param parent
Parent window. Must not be @NULL.
@param id
Window identifier. The value wxID_ANY indicates a default value.
@param value
Initial selection string. An empty string indicates no selection.
@param pos
Window position.
@param size
Window size. If wxDefaultSize is specified then the window is sized
Window size. If wxDefaultSize is specified then the window is
sized
appropriately.
@param n
Number of strings with which to initialise the control.
@param choices
An array of strings with which to initialise the control.
@param style
Window style. See wxComboBox.
@param validator
Window validator.
@param name
Window name.
@sa Create(), wxValidator
@see Create(), wxValidator
*/
wxComboBox();
wxComboBox(wxWindow* parent, wxWindowID id,
@@ -107,7 +99,7 @@ public:
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
int n = 0,
const wxString choices[] = @NULL,
const wxString choices[] = NULL,
long style = 0,
const wxValidator& validator = wxDefaultValidator,
const wxString& name = "comboBox");
@@ -191,7 +183,7 @@ public:
/**
Copies the selected text to the clipboard and removes the selection.
*/
#define void Cut() /* implementation is private */
void Cut();
/**
This function does the same things as
@@ -203,7 +195,6 @@ public:
/**
Returns the insertion point for the combobox's text field.
@b Note: Under wxMSW, this function always returns 0 if the combobox
doesn't have the focus.
*/
@@ -218,7 +209,6 @@ public:
This is the same as wxTextCtrl::GetSelection
for the text control which is part of the combobox. Notice that this is a
different method from wxControlWithItems::GetSelection.
Currently this method is only implemented in wxMSW and wxGTK.
*/
void GetSelection(long* from, long* to);
@@ -243,7 +233,6 @@ public:
@param from
The first position.
@param to
The last position.
*/
@@ -255,10 +244,8 @@ public:
@param from
The first position.
@param to
The second position.
@param text
The text to insert.
*/
@@ -282,7 +269,6 @@ public:
@param from
The first position.
@param to
The second position.
*/
@@ -290,7 +276,6 @@ public:
/**
Sets the text for the combobox text field.
@b NB: For a combobox with @c wxCB_READONLY style the string must be in
the combobox choices list, otherwise the call to SetValue() is ignored.

View File

@@ -39,7 +39,6 @@ class wxConfigBase : public wxObject
public:
/**
)
This is the default and only constructor of the wxConfigBase class, and
derived classes.
@@ -48,20 +47,17 @@ public:
normally use wxApp::GetAppName to set it. The
application name is used in the registry key on Windows, and can be used to
deduce the local filename parameter if that is missing.
@param vendorName
The vendor name. If this is empty, it is assumed that
no vendor name is wanted, if this is optional for the current config class.
The vendor name is appended to the application name for wxRegConfig.
@param localFilename
Some config classes require a local filename. If this
is not present, but required, the application name will be used instead.
@param globalFilename
Some config classes require a global filename. If
this is not present, but required, the application name will be used instead.
this is not present, but required, the application name will be used
instead.
@param style
Can be one of wxCONFIG_USE_LOCAL_FILE and
wxCONFIG_USE_GLOBAL_FILE. The style interpretation depends on the config
@@ -72,35 +68,34 @@ public:
and written to local config file (if they are both set, global file is read
first, then local file, overwriting global settings). If the
flag is present but the parameter is empty, the parameter will be set to a
default. If the parameter is present but the style flag not, the relevant flag
default. If the parameter is present but the style flag not, the relevant
flag
will be added to the style. For wxRegConfig, thie GLOBAL flag refers to HKLM
key while LOCAL one is for the usual HKCU one.
For wxFileConfig you can also add wxCONFIG_USE_RELATIVE_PATH by logically
or'ing it to either of the _FILE options to tell wxFileConfig to use relative
or'ing it to either of the _FILE options to tell wxFileConfig to use
relative
instead of absolute paths.
On non-VMS Unix systems, the default local configuration file is ~/.appname.
However, this path may be also used as user data directory
(see wxStandardPaths::GetUserDataDir) if
the application has several data files. In this case wxCONFIG_USE_SUBDIR
flag, which changes the default local configuration file to ~/.appname/appname
flag, which changes the default local configuration file to
~/.appname/appname
should be used. Notice that this flag is ignored if localFilename is
provided. This function is new since wxWidgets version 2.8.2
For wxFileConfig, you can also add wxCONFIG_USE_NO_ESCAPE_CHARACTERS which
will turn off character escaping for the values of entries stored in the config
will turn off character escaping for the values of entries stored in the
config
file: for example a foo key with some backslash characters will be stored
as foo=C:\mydir instead of the usual storage of
foo=C:\\mydir.
The wxCONFIG_USE_NO_ESCAPE_CHARACTERS style can be helpful if your config
file must be read or written to by a non-wxWidgets program (which might not
understand the escape characters). Note, however, that if
wxCONFIG_USE_NO_ESCAPE_CHARACTERS style is used, it is is now
your application's responsibility to ensure that there is no newline or
other illegal characters in a value, before writing that value to the file.
@param conv
This parameter is only used by wxFileConfig when compiled
in Unicode mode. It specifies the encoding in which the configuration file
@@ -139,7 +134,6 @@ public:
The functions in this section delete entries and/or groups of entries from the
config file. @e DeleteAll() is especially useful if you want to erase all
traces of your program presence: for example, when you uninstall it.
DeleteEntry()
DeleteGroup()
@@ -159,7 +153,7 @@ public:
in it and the second parameter is @true.
*/
bool DeleteEntry(const wxString& key,
bool bDeleteGroupIfEmpty = @true);
bool bDeleteGroupIfEmpty = true);
/**
Delete the group (with all subgroups). If the current path is under the group
@@ -179,7 +173,6 @@ public:
/**
The functions in this section allow to enumerate all entries and groups in the
config file. All functions here return @false when there are no more items.
You must pass the same index to GetNext and GetFirst (don't modify it).
Please note that it is @b not the index of the current item (you will have
some great surprises with wxRegConfig if you assume this) and you shouldn't
@@ -187,11 +180,10 @@ public:
enumeration. It can't be stored inside the class because it would prevent you
from running several enumerations simultaneously, that's why you must pass it
explicitly.
Having said all this, enumerating the config entries/groups is very simple:
There are also functions to get the number of entries/subgroups without
actually enumerating them, but you will probably never need them.
GetFirstGroup()
GetNextGroup()
@@ -215,14 +207,14 @@ public:
permanently writes all changes (otherwise, they're only written from object's
destructor)
*/
bool Flush(bool bCurrentOnly = @false);
bool Flush(bool bCurrentOnly = false);
/**
Get the current config object. If there is no current object and
@e CreateOnDemand is @true, creates one
@a CreateOnDemand is @true, creates one
(using @e Create) unless DontCreateOnDemand was called previously.
*/
#define static wxConfigBase * Get(bool CreateOnDemand = @true) /* implementation is private */
static wxConfigBase* Get(bool CreateOnDemand = true);
/**
Returns the application name.
@@ -235,7 +227,6 @@ public:
be used because some of wxConfig implementations will complain about type
mismatch otherwise: e.g., an attempt to read a string value from an integer
key with wxRegConfig will fail.
The result is an element of enum EntryType:
*/
enum wxConfigBase::EntryType GetEntryType(const wxString& name);
@@ -263,13 +254,13 @@ public:
/**
*/
uint GetNumberOfEntries(bool bRecursive = @false);
uint GetNumberOfEntries(bool bRecursive = false);
/**
Get number of entries/subgroups in the current group, with or without its
subgroups.
*/
uint GetNumberOfGroups(bool bRecursive = @false);
uint GetNumberOfGroups(bool bRecursive = false);
/**
Retrieve the current path (always as absolute path).
@@ -305,21 +296,17 @@ public:
These function are the core of wxConfigBase class: they allow you to read and
write config file data. All @e Read function take a default value which
will be returned if the specified key is not found in the config file.
Currently, supported types of data are:
wxString, @e long, @e double, @e bool,
wxColour and any other types,
for which functions wxToString
and wxFromString are defined.
Try not to read long values into string variables and vice versa: although it
just might work with wxFileConfig, you will get a system error with
wxRegConfig because in the Windows registry the different types of entries are
indeed used.
Final remark: the @e szKey parameter for all these functions can contain an
arbitrary path (either relative or absolute), not just the key name.
Read()
Write()
@@ -342,18 +329,16 @@ public:
first of them is the expansion of environment variables in the string values
read from the config file: for example, if you have the following in your
config file:
the call to @c config-Read("UserData") will return something like
@c "/home/zeitlin/data" if you're lucky enough to run a Linux system ;-)
Although this feature is very useful, it may be annoying if you read a value
which containts '$' or '%' symbols (% is used for environment variables
expansion under Windows) which are not used for environment variable
expansion. In this situation you may call SetExpandEnvVars(@false) just before
reading this value and SetExpandEnvVars(@true) just after. Another solution
would be to prefix the offending symbols with a backslash.
The following functions control this option:
IsExpandingEnvVars()
SetExpandEnvVars()
@@ -373,14 +358,16 @@ public:
which makes it possible to use the relative paths. To clarify all this, here
is an example (it is only for the sake of demonstration, it doesn't do anything
sensible!):
@e Warning: it is probably a good idea to always restore the path to its
old value on function exit:
because otherwise the assert in the following example will surely fail
(we suppose here that @e foo() function is the same as above except that it
doesn't save and restore the path):
Finally, the path separator in wxConfigBase and derived classes is always '/',
regardless of the platform (i.e. it is @b not '\\' under Windows).
SetPath()
GetPath()
@@ -392,30 +379,24 @@ public:
Reads a value of type T, for which function
wxFromString is defined,
returning @true if the value was found.
If the value was not found, @e defaultVal is used instead.
If the value was not found, @a defaultVal is used instead.
bool Read(const wxStringkey, T* value) const;
@b Read(key, default="")
Returns a string
@b ReadInt(key, default=0)
Returns an integer
@b ReadFloat(key, default=0.0)
Returns a floating point number
@b ReadBool(key, default=0)
Returns a boolean
*/
bool Read(const wxString& key, wxString* str);
@@ -437,19 +418,19 @@ public:
//@}
/**
Reads a bool value from the key and returns it. @e defaultVal is returned
Reads a bool value from the key and returns it. @a defaultVal is returned
if the key is not found.
*/
long ReadBool(const wxString& key, bool defaultVal);
/**
Reads a double value from the key and returns it. @e defaultVal is returned
Reads a double value from the key and returns it. @a defaultVal is returned
if the key is not found.
*/
long ReadDouble(const wxString& key, double defaultVal);
/**
Reads a long value from the key and returns it. @e defaultVal is returned
Reads a long value from the key and returns it. @a defaultVal is returned
if the key is not found.
*/
long ReadLong(const wxString& key, long defaultVal);
@@ -457,7 +438,7 @@ public:
/**
Reads a value of type T, for which function
wxFromString is defined, from the key and returns it.
@e defaultVal is returned if the key is not found.
@a defaultVal is returned if the key is not found.
*/
T ReadObject(const wxString& key, T const& defaultVal);
@@ -467,7 +448,6 @@ public:
entry/group with the original name doesn't exist, because the entry/group with
the new name already exists or because the function is not supported in this
wxConfig implementation.
RenameEntry()
RenameGroup()
@@ -478,8 +458,7 @@ public:
Renames an entry in the current group. The entries names (both the old and
the new one) shouldn't contain backslashes, i.e. only simple names and not
arbitrary paths are accepted by this function.
Returns @false if @e oldName doesn't exist or if @e newName already
Returns @false if @a oldName doesn't exist or if @a newName already
exists.
*/
bool RenameEntry(const wxString& oldName,
@@ -489,8 +468,7 @@ public:
Renames a subgroup of the current group. The subgroup names (both the old and
the new one) shouldn't contain backslashes, i.e. only simple names and not
arbitrary paths are accepted by this function.
Returns @false if @e oldName doesn't exist or if @e newName already
Returns @false if @a oldName doesn't exist or if @a newName already
exists.
*/
bool RenameGroup(const wxString& oldName,
@@ -500,12 +478,12 @@ public:
Sets the config object as the current one, returns the pointer to the previous
current object (both the parameter and returned value may be @NULL)
*/
#define static wxConfigBase * Set(wxConfigBase * pConfig) /* implementation is private */
static wxConfigBase* Set(wxConfigBase* pConfig);
/**
Determine whether we wish to expand environment variables in key values.
*/
void SetExpandEnvVars(bool bDoIt = @true);
void SetExpandEnvVars(bool bDoIt = true);
/**
Set current path: if the first character is '/', it is the absolute path,
@@ -517,12 +495,11 @@ public:
/**
Sets whether defaults are recorded to the config file whenever an attempt to
read the value which is not present in it is done.
If on (default is off) all default values for the settings used by the program
are written back to the config file. This allows the user to see what config
options may be changed and is probably useful only for wxFileConfig.
*/
void SetRecordDefaults(bool bDoIt = @true);
void SetRecordDefaults(bool bDoIt = true);
/**
These functions deal with the "default" config object. Although its usage is
@@ -536,17 +513,14 @@ public:
exists. Note that this implies that if you do delete this object yourself
(usually in wxApp::OnExit) you must use @e Set(@NULL)
to prevent wxWidgets from deleting it the second time.
As it happens, you may even further simplify the procedure described above:
you may forget about calling @e Set(). When @e Get() is called and there
is no current object, it will create one using @e Create() function. To
disable this behaviour @e DontCreateOnDemand() is provided.
@b Note: You should use either @e Set() or @e Get() because wxWidgets
library itself would take advantage of it and could save various information
in it. For example wxFontMapper or Unix version
of wxFileDialog have the ability to use wxConfig class.
Set()
Get()
@@ -575,25 +549,20 @@ public:
defined for type @e T.
@b Write(key, value)
Writes a string
@b WriteInt(key, value)
Writes an integer
@b WriteFloat(key, value)
Writes a floating point number
@b WriteBool(key, value)
Writes a boolean
*/
bool Write(const wxString& key, const wxString& value);

View File

@@ -33,7 +33,6 @@ public:
/**
Returns the control's text.
Note that the returned string contains the mnemonics (@c characters) if
any, use GetLabelText() if they are
undesired.
@@ -42,7 +41,7 @@ public:
//@{
/**
Returns the control's label, or the given @e label string for the static
Returns the control's label, or the given @a label string for the static
version, without the mnemonics characters.
*/
const wxString GetLabelText();
@@ -51,8 +50,7 @@ public:
/**
Sets the item's text.
The @c characters in the @e label are special and indicate that the
The @c characters in the @a label are special and indicate that the
following character is a mnemonic for this control and can be used to activate
it from the keyboard (typically by using @e Alt key in combination with
it). To insert a literal ampersand character, you need to double it, i.e. use

View File

@@ -52,7 +52,7 @@ public:
Constructs a new wxConvAuto instance. The object will try to detect the input
of the multibyte text given to its wxMBConv::ToWChar method
automatically but if the automatic detection of Unicode encodings fails, the
fall-back encoding @e enc will be used to interpret it as multibyte text.
fall-back encoding @a enc will be used to interpret it as multibyte text.
The default value of this parameter, @c wxFONTENCODING_DEFAULT means
that the global default value which can be set using
@ref setdefaultmbencoding() SetFallbackEncoding method should be
@@ -87,9 +87,8 @@ public:
explicitly specified in constructor. The default value, which can be retrieved
using @ref getdefaultmbencoding() GetFallbackEncoding, is
@c wxFONTENCODING_ISO8859_1.
Special values of @c wxFONTENCODING_SYSTEM or
@c wxFONTENCODING_MAX can be used for @e enc parameter to use the
@c wxFONTENCODING_MAX can be used for @a enc parameter to use the
encoding of the current user locale as fall back or not use any encoding for
fall back at all, respectively (just as with the similar constructor
parameter). However @c wxFONTENCODING_DEFAULT value cannot be used here.

View File

@@ -23,11 +23,10 @@ wxCONCAT5(x1, x2, x3, x4, x5);
Returns the string representation of the given symbol which can be either a
literal or a macro (hence the advantage of using this macro instead of the
standard preprocessor @c # operator which doesn't work with macros).
Notice that this macro always produces a @c char string, use
wxSTRINGIZE_T to build a wide string Unicode build.
@sa wxCONCAT
@see wxCONCAT
*/
#define wxSTRINGIZE(x) /* implementation is private */

View File

@@ -43,7 +43,7 @@ public:
Unlike some other classes, the help provider is not created on demand.
This must be explicitly done by the application.
*/
#define wxHelpProvider* Get() /* implementation is private */
wxHelpProvider* Get();
//@{
/**
@@ -67,13 +67,12 @@ public:
Get/set the current, application-wide help provider. Returns
the previous one.
*/
#define wxHelpProvider* Set(wxHelpProvider* helpProvider) /* implementation is private */
wxHelpProvider* Set(wxHelpProvider* helpProvider);
/**
Shows help for the given window. Override this function if the help doesn't
depend on the exact position inside the window, otherwise you need to override
ShowHelpAtPoint().
Returns @true if help was shown, or @false if no help was available for this
window.
*/
@@ -84,16 +83,13 @@ public:
depend on the position inside the window, By default this method forwards to
ShowHelp(), so it is enough to only implement
the latter if the help doesn't depend on the position.
Returns @true if help was shown, or @false if no help was available for this
window.
@param window
Window to show help text for.
@param point
Coordinates of the mouse at the moment of help event emission.
@param origin
Help event origin, see wxHelpEvent::GetOrigin.
*/
@@ -134,7 +130,7 @@ public:
Note that the instance doesn't own the help controller. The help controller
should be deleted separately.
*/
wxHelpControllerHelpProvider(wxHelpControllerBase* hc = @NULL);
wxHelpControllerHelpProvider(wxHelpControllerBase* hc = NULL);
/**
Returns the help controller associated with this help provider.
@@ -192,11 +188,10 @@ class wxContextHelp : public wxObject
public:
/**
Constructs a context help object, calling BeginContextHelp() if
@e doNow is @true (the default).
If @e window is @NULL, the top window is used.
@a doNow is @true (the default).
If @a window is @NULL, the top window is used.
*/
wxContextHelp(wxWindow* window = @NULL, bool doNow = @true);
wxContextHelp(wxWindow* window = NULL, bool doNow = true);
/**
Destroys the context help object.
@@ -204,14 +199,13 @@ public:
~wxContextHelp();
/**
Puts the application into context-sensitive help mode. @e window is the window
Puts the application into context-sensitive help mode. @a window is the window
which will be used to catch events; if @NULL, the top window will be used.
Returns @true if the application was successfully put into context-sensitive
help mode.
This function only returns when the event loop has finished.
*/
bool BeginContextHelp(wxWindow* window = @NULL);
bool BeginContextHelp(wxWindow* window = NULL);
/**
Ends context-sensitive help mode. Not normally called by the application.
@@ -250,17 +244,14 @@ public:
@param parent
Parent window. Must not be @NULL.
@param id
Button identifier. Defaults to wxID_CONTEXT_HELP.
@param pos
Button position.
@param size
Button size. If wxDefaultSize is specified then the button is sized
Button size. If wxDefaultSize is specified then the button is
sized
appropriately for the question mark bitmap.
@param style
Window style.
*/

View File

@@ -49,16 +49,12 @@ public:
@param item
String to add.
@param stringsArray
Contains items to append to the control.
@param strings
Array of strings of size n.
@param n
Number of items in the strings array.
@param clientData
Array of client data pointers of size n to associate with the new items.
@@ -80,7 +76,6 @@ public:
/**
Removes all items from the control.
@e Clear() also deletes the client data of the existing items if it is owned
by the control.
*/
@@ -89,7 +84,6 @@ public:
/**
Deletes an item from the control. The client data associated with the item
will be also deleted if it is owned by the control.
Note that it is an error (signalled by an assert failure in debug builds) to
remove an item with the index negative or greater or equal than the number of
items in the control.
@@ -97,7 +91,7 @@ public:
@param n
The zero-based item index.
@sa Clear()
@see Clear()
*/
void Delete(unsigned int n);
@@ -106,7 +100,6 @@ public:
@param string
String to find.
@param caseSensitive
Whether search is case sensitive (default is not).
@@ -114,7 +107,7 @@ public:
string was not found.
*/
int FindString(const wxString& string,
bool caseSensitive = @false);
bool caseSensitive = false);
/**
Returns a pointer to the client data associated with the given item (if any).
@@ -145,7 +138,7 @@ public:
/**
Returns the number of items in the control.
@sa IsEmpty()
@see IsEmpty()
*/
unsigned int GetCount();
@@ -159,7 +152,7 @@ public:
you should use wxListBox::GetSelections for the list
boxes with wxLB_MULTIPLE style.
@sa SetSelection(), GetStringSelection()
@see SetSelection(), GetStringSelection()
*/
int GetSelection();
@@ -178,7 +171,7 @@ public:
Returns the label of the selected item or an empty string if no item is
selected.
@sa GetSelection()
@see GetSelection()
*/
wxString GetStringSelection();
@@ -196,19 +189,14 @@ public:
@param item
String to add.
@param pos
Position to insert item before, zero based.
@param stringsArray
Contains items to insert into the control content
@param strings
Array of strings of size n.
@param n
Number of items in the strings array.
@param clientData
Array of client data pointers of size n to associate with the new items.
@@ -235,7 +223,7 @@ public:
/**
Returns @true if the control is empty or @false if it has some items.
@sa GetCount()
@see GetCount()
*/
bool IsEmpty();
@@ -254,16 +242,13 @@ public:
@param item
The single item to insert into the control.
@param stringsArray
Contains items to set as control content.
@param strings
Raw C++ array of strings. Only used in conjunction with 'n'.
@param n
Number of items passed in 'strings'. Only used in conjunction with 'strings'.
Number of items passed in 'strings'. Only used in conjunction with
'strings'.
@param clientData
Client data to associate with the item(s).
@@ -271,9 +256,9 @@ public:
style) the return value could be different from
(GetCount() - 1). When setting a single item to the
container, the return value is the index of the newly
added item which may be different from the last one
if the control is sorted (e.g. has wxLB_SORT or
wxCB_SORT style).
added item which may be different from the last one if
the control is sorted (e.g. has wxLB_SORT or wxCB_SORT
style).
*/
int Set(const wxString& item);
int Set(const wxString& item, void* clientData);
@@ -293,7 +278,6 @@ public:
@param n
The zero-based item index.
@param data
The client data to associate with the item.
*/
@@ -301,32 +285,29 @@ public:
/**
Associates the given typed client data pointer with the given item: the
@e data object will be deleted when the item is deleted (either explicitly
@a data object will be deleted when the item is deleted (either explicitly
by using @ref delete() Deletes or implicitly when the
control itself is destroyed).
Note that it is an error to call this function if any untyped client data
pointers had been associated with the control items before.
@param n
The zero-based item index.
@param data
The client data to associate with the item.
*/
void SetClientObject(unsigned int n, wxClientData* data);
/**
Sets the selection to the given item @e n or removes the selection entirely
if @e n == @c wxNOT_FOUND.
Sets the selection to the given item @a n or removes the selection entirely
if @a n == @c wxNOT_FOUND.
Note that this does not cause any command events to be emitted nor does it
deselect any other items in the controls which support multiple selections.
@param n
The string position to select, starting from zero.
@sa SetString(), SetStringSelection()
@see SetString(), SetStringSelection()
*/
void SetSelection(int n);
@@ -335,7 +316,6 @@ public:
@param n
The zero-based item index.
@param string
The label to set.
*/

View File

@@ -49,208 +49,396 @@ public:
@param bits
An array of bits.
@param maskBits
Bits for a mask bitmap.
@param width
Cursor width.
@param height
Cursor height.
@param hotSpotX
Hotspot x coordinate.
@param hotSpotY
Hotspot y coordinate.
@param type
Icon type to load. Under Motif, type defaults to wxBITMAP_TYPE_XBM. Under
Windows,
it defaults to wxBITMAP_TYPE_CUR_RESOURCE. Under MacOS, it defaults to
wxBITMAP_TYPE_MACCURSOR_RESOURCE.
Under X, the permitted cursor types are:
wxBITMAP_TYPE_XBM
Load an X bitmap file.
Under Windows, the permitted types are:
wxBITMAP_TYPE_CUR
Load a cursor from a .cur cursor file (only if USE_RESOURCE_LOADING_IN_MSW
is enabled in setup.h).
wxBITMAP_TYPE_CUR_RESOURCE
Load a Windows resource (as specified in the .rc file).
wxBITMAP_TYPE_ICO
Load a cursor from a .ico icon file (only if USE_RESOURCE_LOADING_IN_MSW
is enabled in setup.h). Specify hotSpotX and hotSpotY.
@param cursorId
A stock cursor identifier. May be one of:
wxCURSOR_ARROW
A standard arrow cursor.
wxCURSOR_RIGHT_ARROW
A standard arrow cursor
pointing to the right.
wxCURSOR_BLANK
Transparent cursor.
wxCURSOR_BULLSEYE
Bullseye cursor.
wxCURSOR_CHAR
Rectangular character cursor.
wxCURSOR_CROSS
A cross cursor.
wxCURSOR_HAND
A hand cursor.
wxCURSOR_IBEAM
An I-beam cursor (vertical line).
wxCURSOR_LEFT_BUTTON
Represents a mouse with the left button depressed.
wxCURSOR_MAGNIFIER
A magnifier icon.
wxCURSOR_MIDDLE_BUTTON
Represents a mouse with the middle button depressed.
wxCURSOR_NO_ENTRY
A no-entry sign cursor.
wxCURSOR_PAINT_BRUSH
A paintbrush cursor.
wxCURSOR_PENCIL
A pencil cursor.
wxCURSOR_POINT_LEFT
A cursor that points left.
wxCURSOR_POINT_RIGHT
A cursor that points right.
wxCURSOR_QUESTION_ARROW
An arrow and question mark.
wxCURSOR_RIGHT_BUTTON
Represents a mouse with the right button depressed.
wxCURSOR_SIZENESW
A sizing cursor pointing NE-SW.
wxCURSOR_SIZENS
A sizing cursor pointing N-S.
wxCURSOR_SIZENWSE
A sizing cursor pointing NW-SE.
wxCURSOR_SIZEWE
A sizing cursor pointing W-E.
wxCURSOR_SIZING
A general sizing cursor.
wxCURSOR_SPRAYCAN
A spraycan cursor.
wxCURSOR_WAIT
A wait cursor.
wxCURSOR_WATCH
A watch cursor.
wxCURSOR_ARROWWAIT
A cursor with both an arrow and
an hourglass, (windows.)
Note that not all cursors are available on all platforms.
Note that not all cursors are available on all platforms.
@param cursor
Pointer or reference to a cursor to copy.
*/
wxCursor();
wxCursor(const char bits[], int width, int height,
int hotSpotX = -1, int hotSpotY = -1,
const char maskBits[]=@NULL,
wxColour* fg=@NULL,
wxColour* bg=@NULL);
const char maskBits[] = NULL,
wxColour* fg = NULL,
wxColour* bg = NULL);
wxCursor(const wxString& cursorName, long type,
int hotSpotX = 0, int hotSpotY = 0);
wxCursor(int cursorId);
@@ -262,7 +450,6 @@ public:
Destroys the cursor.
See @ref overview_refcountdestruct "reference-counted object destruction" for
more info.
A cursor can be reused for more
than one window, and does not get destroyed when the window is
destroyed. wxWidgets destroys all cursors on application exit, although
@@ -273,7 +460,7 @@ public:
/**
Returns @true if cursor data is present.
*/
#define bool IsOk() /* implementation is private */
bool IsOk();
/**
Assignment operator, using @ref overview_trefcount "reference counting".

View File

@@ -37,7 +37,7 @@ class wxCustomDataObject : public wxDataObjectSimple
{
public:
/**
The constructor accepts a @e format argument which specifies the (single)
The constructor accepts a @a format argument which specifies the (single)
format supported by this object. If it isn't set here,
wxDataObjectSimple::SetFormat should be used.
*/
@@ -54,7 +54,7 @@ public:
~wxCustomDataObject();
/**
This function is called to allocate @e size bytes of memory from SetData().
This function is called to allocate @a size bytes of memory from SetData().
The default version just uses the operator new.
*/
virtual void* Alloc(size_t size);
@@ -84,7 +84,6 @@ public:
/**
Like SetData(), but doesn't copy the data -
instead the object takes ownership of the pointer.
@b wxPython note: This method expects a string in wxPython. You can pass
nearly any object by pickling it first.
*/
@@ -125,10 +124,10 @@ public:
wxDataObjectComposite();
/**
Adds the @e dataObject to the list of supported objects and it becomes the
preferred object if @e preferred is @true.
Adds the @a dataObject to the list of supported objects and it becomes the
preferred object if @a preferred is @true.
*/
#define void Add(wxDataObjectSimple dataObject, bool preferred = @false) /* implementation is private */
void Add(wxDataObjectSimple dataObject, bool preferred = false);
/**
Report the format passed to the SetData method. This should be the
@@ -197,7 +196,6 @@ public:
/**
Copy the data from the buffer, return @true on success. Must be implemented in
the derived class if the object supports setting its data.
@b wxPython note: When implementing this method in wxPython, the data comes
as a single string parameter rather than the two shown here.
*/
@@ -401,7 +399,7 @@ class wxURLDataObject
{
public:
/**
Constructor, may be used to initialize the URL. If @e url is empty,
Constructor, may be used to initialize the URL. If @a url is empty,
SetURL() can be used later.
*/
wxURLDataObject(const wxString& url = wxEmptyString);
@@ -409,12 +407,12 @@ public:
/**
Returns the URL stored by this object, as a string.
*/
#define wxString GetURL() /* implementation is private */
wxString GetURL();
/**
Sets the URL stored by this object.
*/
#define void SetURL(const wxString& url) /* implementation is private */
void SetURL(const wxString& url);
};
@@ -567,7 +565,7 @@ public:
Direction dir = Get);
/**
The method will write the data of the format @e format in the buffer @e buf and
The method will write the data of the format @a format in the buffer @a buf and
return @true on success, @false on failure.
*/
virtual bool GetDataHere(const wxDataFormat& format, void buf);
@@ -583,16 +581,15 @@ public:
virtual size_t GetFormatCount(Direction dir = Get);
/**
Returns the preferred format for either rendering the data (if @e dir is @c Get,
Returns the preferred format for either rendering the data (if @a dir is @c Get,
its default value) or for setting it. Usually this will be the
native format of the wxDataObject.
*/
virtual wxDataFormat GetPreferredFormat(Direction dir = Get);
/**
Set the data in the format @e format of the length @e len provided in the
Set the data in the format @a format of the length @a len provided in the
buffer @e buf.
Returns @true on success, @false on failure.
*/
virtual bool SetData(const wxDataFormat& format, size_t len,

View File

@@ -68,7 +68,7 @@ public:
/**
*/
wxDataViewEvent(wxEventType commandType = wxEVT_@NULL,
wxDataViewEvent(wxEventType commandType = wxEVT_NULL,
int winid = 0);
wxDataViewEvent(const wxDataViewEvent& event);
//@}
@@ -198,7 +198,6 @@ public:
Oberride this to indicate that the row has special font attributes.
This only affects the
wxDataViewTextRendererText renderer.
See also wxDataViewItemAttr.
*/
bool GetAttr(unsigned int row, unsigned int col,
@@ -387,7 +386,6 @@ public:
The compare function to be used by control. The default compare function
sorts by container and other items separately and in ascending order.
Override this for a different sorting behaviour.
See also HasDefaultCompare().
*/
virtual int Compare(const wxDataViewItem& item1,
@@ -399,7 +397,6 @@ public:
Oberride this to indicate that the item has special font attributes.
This only affects the
wxDataViewTextRendererText renderer.
See also wxDataViewItemAttr.
*/
bool GetAttr(const wxDataViewItem& item, unsigned int col,
@@ -426,7 +423,7 @@ public:
/**
Override this to indicate which wxDataViewItem representing the parent
of @e item or an invalid wxDataViewItem if the the root item is
of @a item or an invalid wxDataViewItem if the the root item is
the parent item.
*/
virtual wxDataViewItem GetParent(const wxDataViewItem& item);
@@ -459,7 +456,7 @@ public:
virtual bool HasDefaultCompare();
/**
Override this to indicate of @e item is a container, i.e. if
Override this to indicate of @a item is a container, i.e. if
it can have child items.
*/
virtual bool IsContainer(const wxDataViewItem& item);
@@ -473,7 +470,6 @@ public:
/**
Call this to inform the model that an item has changed.
This will eventually emit a wxEVT_DATAVIEW_ITEM_VALUE_CHANGED
event (in which the column fields will not be set) to the user.
*/
@@ -494,7 +490,6 @@ public:
/**
Call this to inform the model that several items have changed.
This will eventually emit wxEVT_DATAVIEW_ITEM_VALUE_CHANGED
events (in which the column fields will not be set) to the user.
*/
@@ -507,7 +502,7 @@ public:
const wxDataViewItemArray& items);
/**
Remove the @e notifier from the list of notifiers.
Remove the @a notifier from the list of notifiers.
*/
void RemoveNotifier(wxDataViewModelNotifier* notifier);
@@ -533,7 +528,6 @@ public:
been changed. This is also called from wxDataViewCtrl's
internal editing code, e.g. when editing a text field
in the control.
This will eventually emit a wxEVT_DATAVIEW_ITEM_VALUE_CHANGED
event to the user.
*/
@@ -573,7 +567,7 @@ public:
*/
wxDataViewCustomRenderer(const wxString& varianttype = "string",
wxDataViewCellMode mode = wxDATAVIEW_CELL_INERT,
bool no_init = @false);
bool no_init = false);
/**
Destructor.
@@ -589,9 +583,9 @@ public:
/**
Override this to create the actual editor control once editing
is about to start. @e parent is the parent of the editor
control, @e labelRect indicates the position and
size of the editor control and @e value is its initial value:
is about to start. @a parent is the parent of the editor
control, @a labelRect indicates the position and
size of the editor control and @a value is its initial value:
*/
virtual wxControl* CreateEditorCtrl(wxWindow* parent,
wxRect labelRect,
@@ -600,7 +594,7 @@ public:
/**
Create DC on request. Internal.
*/
#define virtual wxDC* GetDC() /* implementation is private */
virtual wxDC* GetDC();
/**
Return size required to show content.
@@ -753,19 +747,19 @@ public:
/**
*/
wxDataViewItem(void* id = @NULL);
wxDataViewItem(void* id = NULL);
wxDataViewItem(const wxDataViewItem& item);
//@}
/**
Returns the ID.
*/
#define void* GetID() /* implementation is private */
void* GetID();
/**
Returns @true if the ID is not @e @NULL.
*/
#define bool IsOk() /* implementation is private */
bool IsOk();
};
@@ -863,7 +857,6 @@ public:
/**
Add a wxDataViewColumn to the control. Returns
@e @true on success.
Note that there is a number of short cut methods which implicitly create
a wxDataViewColumn and a
wxDataViewRenderer for it (see below).
@@ -1006,7 +999,7 @@ public:
Call this to ensure that the given item is visible.
*/
void EnsureVisible(const wxDataViewItem& item,
const wxDataViewColumn* column = @NULL);
const wxDataViewColumn* column = NULL);
/**
Expands the item.
@@ -1014,7 +1007,7 @@ public:
void Expand(const wxDataViewItem& item);
/**
Returns pointer to the column. @e pos refers to the
Returns pointer to the column. @a pos refers to the
position in the control which may change after reordering
columns by the user.
*/
@@ -1044,7 +1037,7 @@ public:
Returns item rect.
*/
wxRect GetItemRect(const wxDataViewItem& item,
const wxDataViewColumn * col = @NULL);
const wxDataViewColumn* col = NULL);
/**
Returns pointer to the data model associated with the
@@ -1058,7 +1051,7 @@ public:
wxDataViewItem GetSelection();
/**
Fills @e sel with currently selected items and returns
Fills @a sel with currently selected items and returns
their number.
*/
int GetSelections(wxDataViewItemArray& sel);
@@ -1314,7 +1307,6 @@ public:
a certain aspect (e.g. max number of characters or only alphanumeric
input, ASCII only etc.). Return @e @false if the value is
not valid.
Please note that due to implementation limitations, this validation
is done after the editing control already is destroyed and the
editing process finished.
@@ -1380,7 +1372,7 @@ class wxDataViewSpinRenderer : public wxDataViewCustomRenderer
{
public:
/**
Constructor. @e min and @e max indicate the minimum und
Constructor. @a min and @a max indicate the minimum und
maximum values of for the wxSpinCtrl.
*/
wxDataViewSpinRenderer(int min, int max,
@@ -1451,7 +1443,7 @@ public:
const wxString& text,
int icon = -1,
int expanded = -1,
wxClientData* data = @NULL);
wxClientData* data = NULL);
/**
@@ -1459,7 +1451,7 @@ public:
wxDataViewItem AppendItem(const wxDataViewItem& parent,
const wxString& text,
int icon = -1,
wxClientData* data = @NULL);
wxClientData* data = NULL);
/**
Creates the control and a wxDataViewTreeStore as
@@ -1539,7 +1531,7 @@ public:
const wxString& text,
int icon = -1,
int expanded = -1,
wxClientData* data = @NULL);
wxClientData* data = NULL);
/**
Calls the same method from wxDataViewTreeStore but uess
@@ -1549,7 +1541,7 @@ public:
const wxDataViewItem& previous,
const wxString& text,
int icon = -1,
wxClientData* data = @NULL);
wxClientData* data = NULL);
/**
Calls the same method from wxDataViewTreeStore but uess
@@ -1559,7 +1551,7 @@ public:
const wxString& text,
int icon = -1,
int expanded = -1,
wxClientData* data = @NULL);
wxClientData* data = NULL);
/**
Calls the same method from wxDataViewTreeStore but uess
@@ -1568,7 +1560,7 @@ public:
wxDataViewItem PrependItem(const wxDataViewItem& parent,
const wxString& text,
int icon = -1,
wxClientData* data = @NULL);
wxClientData* data = NULL);
/**
Sets the image list.
@@ -1633,7 +1625,7 @@ public:
const wxString& text,
const wxIcon& icon = wxNullIcon,
const wxIcon& expanded = wxNullIcon,
wxClientData* data = @NULL);
wxClientData* data = NULL);
/**
Append an item.
@@ -1641,7 +1633,7 @@ public:
wxDataViewItem AppendItem(const wxDataViewItem& parent,
const wxString& text,
const wxIcon& icon = wxNullIcon,
wxClientData* data = @NULL);
wxClientData* data = NULL);
/**
Delete all item in the model.
@@ -1697,7 +1689,7 @@ public:
const wxString& text,
const wxIcon& icon = wxNullIcon,
const wxIcon& expanded = wxNullIcon,
wxClientData* data = @NULL);
wxClientData* data = NULL);
/**
Inserts an item after @e previous.
@@ -1706,7 +1698,7 @@ public:
const wxDataViewItem& previous,
const wxString& text,
const wxIcon& icon = wxNullIcon,
wxClientData* data = @NULL);
wxClientData* data = NULL);
/**
Inserts a container before the first child item or @e parent.
@@ -1715,7 +1707,7 @@ public:
const wxString& text,
const wxIcon& icon = wxNullIcon,
const wxIcon& expanded = wxNullIcon,
wxClientData* data = @NULL);
wxClientData* data = NULL);
/**
Inserts an item before the first child item or @e parent.
@@ -1723,7 +1715,7 @@ public:
wxDataViewItem PrependItem(const wxDataViewItem& parent,
const wxString& text,
const wxIcon& icon = wxNullIcon,
wxClientData* data = @NULL);
wxClientData* data = NULL);
/**
Sets the client data associated with the item.
@@ -1847,7 +1839,6 @@ public:
/**
Returns the renderer of this wxDataViewColumn.
See also wxDataViewRenderer.
*/
wxDataViewRenderer* GetRenderer();
@@ -1859,7 +1850,6 @@ public:
/**
Returns @true if the column is sortable.
See SetSortable()
*/
bool GetSortable();
@@ -1871,7 +1861,6 @@ public:
/**
Returns @true, if the sort order is ascending.
See also SetSortOrder()
*/
bool IsSortOrderAscending();
@@ -1906,7 +1895,7 @@ public:
make the column header clickable. Call
SetSortOrder()
afterwards to actually make the sort indicator appear.
If @e sortable is @false, the column header is
If @a sortable is @false, the column header is
no longer clickable and the sort indicator (little
arrow) will disappear.
*/

View File

@@ -43,7 +43,7 @@
@endStyleTable
@beginEventTable
@event{EVT_DATE_CHANGED(id\, func)}:
@event{EVT_DATE_CHANGED(id, func)}:
This event fires when the user changes the current selection in the
control.
@endEventTable
@@ -73,29 +73,22 @@ public:
/**
@param parent
Parent window, must not be non-@NULL.
@param id
The identifier for the control.
@param dt
The initial value of the control, if an invalid date (such as the
default value) is used, the control is set to today.
@param pos
Initial position.
@param size
Initial size. If left at default value, the control chooses its
own best size by using the height approximately equal to a text control and
width large enough to show the date string fully.
@param style
The window style, should be left at 0 as there are no
special styles for this control in this version.
@param validator
Validator which can be used for additional date checks.
@param name
Control name.
@@ -114,13 +107,12 @@ public:
If the control had been previously limited to a range of dates using
SetRange(), returns the lower and upper
bounds of this range. If no range is set (or only one of the bounds is set),
@e dt1 and/or @e dt2 are set to be invalid.
@a dt1 and/or @a dt2 are set to be invalid.
@param dt1
Pointer to the object which receives the lower range limit or
becomes invalid if it is not set. May be @NULL if the caller is not
interested in lower limit
@param dt2
Same as above but for the upper limit
@@ -138,7 +130,6 @@ public:
/**
Please note that this function is only available in the generic version of this
control. The native version always uses the current system locale.
Sets the display format for the date in the control. See wxDateTime for the
meaning of format strings.
@@ -147,8 +138,8 @@ public:
void SetFormat(const wxChar* format);
/**
Sets the valid range for the date selection. If @e dt1 is valid, it becomes
the earliest date (inclusive) accepted by the control. If @e dt2 is valid,
Sets the valid range for the date selection. If @a dt1 is valid, it becomes
the earliest date (inclusive) accepted by the control. If @a dt2 is valid,
it becomes the latest possible date.
@remarks If the current value of the control is outside of the newly set
@@ -159,7 +150,6 @@ public:
/**
Changes the current value of the control. The date should be valid and included
in the currently selected range, if any.
Calling this method does not result in a date change event.
*/
void SetValue(const wxDateTime& dt);

View File

@@ -35,7 +35,6 @@ public:
Here are the trivial accessors. Other functions, which might have to perform
some more complicated calculations to find the answer are under the
@ref overview_datetimecalculations "Calendar calculations" section.
IsValid()
GetTicks()
@@ -89,7 +88,6 @@ public:
@ref setjdn() JDN and you may also get its JDN,
@ref getmodifiedjuliandaynumber() MJD or
@ref getratadie() "Rata Die number" from it.
@ref wxdatetimejdn() "wxDateTime(double jdn)"
@ref setjdn() "Set(double jdn)"
@@ -110,10 +108,8 @@ public:
The functions in this section perform the basic calendar calculations, mostly
related to the week days. They allow to find the given week day in the
week with given number (either in the month or in the year) and so on.
All (non-const) functions in this section don't modify the time part of the
wxDateTime -- they only work with the date part of it.
SetToWeekDayInSameWeek()
GetWeekDayInSameWeek()
@@ -151,7 +147,6 @@ public:
construct a date object from separate values for day, month and year, you
should use IsValid() method to check that the
values were correct as constructors can not return an error code.
@ref wxdatetimedef() wxDateTime
@ref wxdatetimetimet() wxDateTime(time_t)
@@ -205,7 +200,6 @@ public:
positive or zero) to the year in BC/AD notation. For the positive years,
nothing is done, but the year 0 is year 1 BC and so for other years there is a
difference of 1.
This function should be used like this:
*/
static int ConvertYearToBC(int year);
@@ -215,13 +209,11 @@ public:
objects. As explained in the overview, either wxTimeSpan or wxDateSpan may be
added to wxDateTime, hence all functions are overloaded to accept both
arguments.
Also, both @c Add() and @c Subtract() have both const and non-const
version. The first one returns a new object which represents the
sum/difference of the original one with the argument while the second form
modifies the object to which it is applied. The operators -= and += are
defined to be equivalent to the second forms of these functions.
@ref addts() Add(wxTimeSpan)
@ref addds() Add(wxDateSpan)
@@ -245,7 +237,6 @@ public:
/**
There are several function to allow date comparison. To supplement them, a few
global operators , etc taking wxDateTime are defined.
IsEqualTo()
IsEarlierThan()
@@ -266,13 +257,12 @@ public:
/**
This function does the same as the standard ANSI C @c strftime(3) function.
Please see its description for the meaning of @e format parameter.
Please see its description for the meaning of @a format parameter.
It also accepts a few wxWidgets-specific extensions: you can optionally specify
the width of the field to follow using @c printf(3)-like syntax and the
format specification @c %l can be used to get the number of milliseconds.
@sa ParseFormat()
@see ParseFormat()
*/
wxString Format(const wxChar* format = wxDefaultDateTimeFormat,
const TimeZone& tz = Local);
@@ -285,12 +275,12 @@ public:
/**
Returns the combined date-time representation in the ISO 8601 format
(YYYY-MM-DDTHH:MM:SS). The @e sep parameter default value produces the
(YYYY-MM-DDTHH:MM:SS). The @a sep parameter default value produces the
result exactly corresponding to the ISO standard, but it can also be useful to
use a space as seprator if a more human-readable combined date-time
representation is needed.
@sa FormatISODate(), FormatISOTime(),
@see FormatISODate(), FormatISOTime(),
ParseISOCombined()
*/
wxString FormatISOCombined(char sep = 'T');
@@ -314,13 +304,12 @@ public:
wxString FormatTime();
/**
Transform the date from the given time zone to the local one. If @e noDST is
Transform the date from the given time zone to the local one. If @a noDST is
@true, no DST adjustments will be made.
Returns the date in the local time zone.
*/
wxDateTime FromTimezone(const TimeZone& tz,
bool noDST = @false);
bool noDST = false);
/**
Returns the translations of the strings @c AM and @c PM used for time
@@ -341,7 +330,7 @@ public:
by default). This function suffers from limitations described in
@ref overview_tdatedst "DST overview".
@sa GetEndDST()
@see GetEndDST()
*/
static wxDateTime GetBeginDST(int year = Inv_Year,
Country country = Country_Default);
@@ -355,7 +344,7 @@ public:
Returns the current default country. The default country is used for DST
calculations, for example.
@sa SetCountry()
@see SetCountry()
*/
static Country GetCountry();
@@ -372,10 +361,9 @@ public:
/**
Returns the object having the same date component as this one but time of
00:00:00.
This function is new since wxWidgets version 2.8.2
@sa ResetTime()
@see ResetTime()
*/
wxDateTime GetDateOnly();
@@ -394,7 +382,7 @@ public:
Returns the end of DST for the given country in the given year (current one by
default).
@sa GetBeginDST()
@see GetBeginDST()
*/
static wxDateTime GetEndDST(int year = Inv_Year,
Country country = Country_Default);
@@ -407,13 +395,13 @@ public:
/**
Synonym for GetJulianDayNumber().
*/
#define double GetJDN() /* implementation is private */
double GetJDN();
/**
Returns the @ref setjdn() JDN corresponding to this date. Beware
of rounding errors!
@sa GetModifiedJulianDayNumber()
@see GetModifiedJulianDayNumber()
*/
double GetJulianDayNumber();
@@ -435,7 +423,7 @@ public:
/**
Synonym for GetModifiedJulianDayNumber().
*/
#define double GetMJD() /* implementation is private */
double GetMJD();
/**
Returns the milliseconds in the given timezone (local one by default).
@@ -464,7 +452,7 @@ public:
Gets the full (default) or abbreviated (specify @c Name_Abbr name of the
given month.
@sa GetWeekDayName()
@see GetWeekDayName()
*/
static wxString GetMonthName(Month month,
NameFlags flags = Name_Full);
@@ -479,8 +467,7 @@ public:
/**
Returns the number of days in the given year or in the given month of the
year.
The only supported value for @e cal parameter is currently @c Gregorian.
The only supported value for @a cal parameter is currently @c Gregorian.
*/
static wxDateTime_t GetNumberOfDays(int year,
Calendar cal = Gregorian);
@@ -497,7 +484,6 @@ public:
/**
Return the @e Rata Die number of this date.
By definition, the Rata Die number is a date specified as the number of days
relative to a base date of December 31 of the year 0. Thus January 1 of the
year 1 is Rata Die day 1.
@@ -555,14 +541,13 @@ public:
Gets the full (default) or abbreviated (specify @c Name_Abbr name of the
given week day.
@sa GetMonthName()
@see GetMonthName()
*/
static wxString GetWeekDayName(WeekDay weekday,
NameFlags flags = Name_Full);
/**
Returns the ordinal number of the week in the month (in 1...5 range).
As GetWeekOfYear(), this function supports
both conventions for the week start. See the description of these
@ref overview_wxdatetime "week start" conventions.
@@ -577,9 +562,8 @@ public:
definitions are the same as saying that the first week of the year must contain
more than half of its days in this year. Accordingly, the week number will
always be in 1...53 range (52 for non-leap years).
The function depends on the @ref overview_wxdatetime "week start" convention
specified by the @e flags argument but its results for
specified by the @a flags argument but its results for
@c Sunday_First are not well-defined as the ISO definition quoted above
applies to the weeks starting on Monday only.
*/
@@ -601,14 +585,14 @@ public:
Returns @true if IsStrictlyBetween()
is @true or if the date is equal to one of the limit values.
@sa IsStrictlyBetween()
@see IsStrictlyBetween()
*/
bool IsBetween(const wxDateTime& t1, const wxDateTime& t2);
/**
Returns @true if the DST is applied for this date in the given country.
*/
#define int IsDST(Country country = Country_Default) /* implementation is private */
int IsDST(Country country = Country_Default);
/**
Returns @true if DST was used n the given year (the current one by
@@ -647,8 +631,7 @@ public:
bool IsLaterThan(const wxDateTime& datetime);
/**
Returns @true if the @e year is a leap one in the specified calendar.
Returns @true if the @a year is a leap one in the specified calendar.
This functions supports Gregorian and Julian calendars.
*/
static bool IsLeapYear(int year = Inv_Year,
@@ -667,7 +650,7 @@ public:
/**
Returns @true if this date lies strictly between the two others,
@sa IsBetween()
@see IsBetween()
*/
bool IsStrictlyBetween(const wxDateTime& t1,
const wxDateTime& t2);
@@ -694,32 +677,32 @@ public:
in place.
*/
wxDateTime MakeFromTimezone(const TimeZone& tz,
bool noDST = @false);
bool noDST = false);
/**
Modifies the object in place to represent the date in another time zone. If
@e noDST is @true, no DST adjustments will be made.
@a noDST is @true, no DST adjustments will be made.
*/
wxDateTime MakeTimezone(const TimeZone& tz,
bool noDST = @false);
bool noDST = false);
/**
This is the same as calling MakeTimezone() with
the argument @c GMT0.
*/
wxDateTime MakeUTC(bool noDST = @false);
wxDateTime MakeUTC(bool noDST = false);
/**
Returns the object corresponding to the current time.
Example:
Note that this function is accurate up to second:
UNow() should be used for better precision
(but it is less efficient and might not be available on all platforms).
@sa Today()
@see Today()
*/
#define static wxDateTime Now() /* implementation is private */
static wxDateTime Now();
//@{
/**
@@ -727,59 +710,54 @@ public:
only allows the date to be specified. It is thus less flexible then
ParseDateTime(), but also has less chances to
misinterpret the user input.
Returns @NULL if the conversion failed, otherwise return the pointer to
the character which stopped the scan.
*/
const char* ParseDate(const wxString& date,
wxString::const_iterator * end = @NULL);
wxString::const_iterator* end = NULL);
const char* ParseDate(const char* date);
const wchar_t* ParseDate(const wchar_t* date);
//@}
//@{
/**
Parses the string @e datetime containing the date and time in free format.
Parses the string @a datetime containing the date and time in free format.
This function tries as hard as it can to interpret the given string as date
and time. Unlike wxDateTime::ParseRfc822Date, it
will accept anything that may be accepted and will only reject strings which
can not be parsed in any way at all.
Returns @NULL if the conversion failed, otherwise return the pointer to
the character which stopped the scan.
*/
const char* ParseDateTime(const wxString& datetime,
wxString::const_iterator * end = @NULL);
wxString::const_iterator* end = NULL);
const char* ParseDateTime(const char* datetime);
const wchar_t* ParseDateTime(const wchar_t* datetime);
//@}
//@{
/**
This function parses the string @e date according to the given
This function parses the string @a date according to the given
@e format. The system @c strptime(3) function is used whenever available,
but even if it is not, this function is still implemented, although support
for locale-dependent format specifiers such as @c "%c", @c "%x" or @c "%X" may
not be perfect and GNU extensions such as @c "%z" and @c "%Z" are
not implemented. This function does handle the month and weekday
names in the current locale on all platforms, however.
Please see the description of the ANSI C function @c strftime(3) for the syntax
of the format string.
The @e dateDef parameter is used to fill in the fields which could not be
The @a dateDef parameter is used to fill in the fields which could not be
determined from the format string. For example, if the format is @c "%d" (the
ay of the month), the month and the year are taken from @e dateDef. If
it is not specified, Today() is used as the
default date.
Returns @NULL if the conversion failed, otherwise return the pointer to
the character which stopped the scan.
*/
const char* ParseFormat(const wxString& date,
const wxString& format = wxDefaultDateTimeFormat,
const wxDateTime& dateDef = wxDefaultDateTime,
wxString::const_iterator * end = @NULL);
wxString::const_iterator* end = NULL);
const char* ParseFormat(const char* date,
const wxString& format = wxDefaultDateTimeFormat,
const wxDateTime& dateDef = wxDefaultDateTime);
@@ -791,8 +769,7 @@ public:
/**
This function parses the string containing the date and time in ISO 8601
combined format (YYYY-MM-DDTHH:MM:SS). The separator between the date and time
parts must be equal to @e sep for the function to succeed.
parts must be equal to @a sep for the function to succeed.
Returns @true if the entire string was parsed successfully, @false
otherwise.
*/
@@ -800,7 +777,6 @@ public:
/**
This function parses the date in ISO 8601 format (YYYY-MM-DD).
Returns @true if the entire string was parsed successfully, @false
otherwise.
*/
@@ -808,7 +784,6 @@ public:
/**
This function parses the time in ISO 8601 format (HH:MM:SS).
Returns @true if the entire string was parsed successfully, @false
otherwise.
*/
@@ -816,24 +791,22 @@ public:
//@{
/**
Parses the string @e date looking for a date formatted according to the RFC
Parses the string @a date looking for a date formatted according to the RFC
822 in it. The exact description of this format may, of course, be found in
the RFC (section 5), but, briefly, this is the format used in the headers of
Internet email messages and one of the most common strings expressing date in
this format may be something like @c "Sat, 18 Dec 1999 00:48:30 +0100".
Returns @NULL if the conversion failed, otherwise return the pointer to
the character immediately following the part of the string which could be
parsed. If the entire string contains only the date in RFC 822 format,
the returned pointer will be pointing to a @c NUL character.
This function is intentionally strict, it will return an error for any string
which is not RFC 822 compliant. If you need to parse date formatted in more
free ways, you should use ParseDateTime() or
ParseDate() instead.
*/
const char* ParseRfc822Date(const wxString& date,
wxString::const_iterator * end = @NULL);
wxString::const_iterator* end = NULL);
const char* ParseRfc822Date(const char* date);
const wchar_t* ParseRfc822Date(const wchar_t* date);
//@}
@@ -842,12 +815,11 @@ public:
/**
This functions is like ParseDateTime(), but
only allows the time to be specified in the input string.
Returns @NULL if the conversion failed, otherwise return the pointer to
the character which stopped the scan.
*/
const char* ParseTime(const wxString& time,
wxString::const_iterator * end = @NULL);
wxString::const_iterator* end = NULL);
const char* ParseTime(const char* time);
const wchar_t* ParseTime(const wchar_t* time);
//@}
@@ -863,7 +835,6 @@ public:
FormatISOTime() and
wxDateTime::FormatISOCombined) or by specifying any
format at all and using Format() directly.
The conversions from text are more interesting, as there are much more
possibilities to care about. The simplest cases can be taken care of with
ParseFormat() which can parse any date in the
@@ -872,7 +843,6 @@ public:
which (still...) defines the format of email messages on the Internet. This
format can not be described with @c strptime(3)-like format strings used by
Format(), hence the need for a separate function.
But the most interesting functions are
ParseTime(),
ParseDate() and
@@ -883,7 +853,6 @@ public:
format. As an example, ParseDateTime() can
parse the strings such as @c "tomorrow", @c "March first" and even
@c "next Sunday".
Finally notice that each of the parsing functions is available in several
overloads: if the input string is a narrow (@c char *) string, then a
narrow pointer is returned. If the input string is a wide string, a wide char
@@ -891,7 +860,6 @@ public:
char pointer is also returned for backwards compatibility but there is also an
additional argument of wxString::const_iterator type in which, if it is not
@NULL, an iterator pointing to the end of the scanned string part is returned.
ParseFormat()
ParseDateTime()
@@ -930,21 +898,20 @@ public:
/**
Sets the date and time from the parameters.
*/
#define wxDateTime Set(wxDateTime_t day, Month month = Inv_Month,
wxDateTime Set(wxDateTime_t day, Month month = Inv_Month,
int year = Inv_Year,
wxDateTime_t hour = 0,
wxDateTime_t minute = 0,
wxDateTime_t second = 0,
wxDateTime_t millisec = 0) /* implementation is private */
wxDateTime_t millisec = 0);
/**
Sets the country to use by default. This setting influences the DST
calculations, date formatting and other things.
The possible values for @e country parameter are enumerated in
The possible values for @a country parameter are enumerated in
@ref overview_wxdatetime "wxDateTime constants section".
@sa GetCountry()
@see GetCountry()
*/
static void SetCountry(Country country);
@@ -994,7 +961,6 @@ public:
/**
Sets the date to the last day in the specified month (the current one by
default).
Returns the reference to the modified object itself.
*/
wxDateTime SetToLastMonthDay(Month month = Inv_Month,
@@ -1003,39 +969,34 @@ public:
/**
The effect of calling this function is the same as of calling
@c SetToWeekDay(-1, weekday, month, year). The date will be set to the last
@e weekday in the given month and year (the current ones by default).
@a weekday in the given month and year (the current ones by default).
Always returns @true.
*/
bool SetToLastWeekDay(WeekDay weekday, Month month = Inv_Month,
int year = Inv_Year);
/**
Sets the date so that it will be the first @e weekday following the current
Sets the date so that it will be the first @a weekday following the current
date.
Returns the reference to the modified object itself.
*/
wxDateTime SetToNextWeekDay(WeekDay weekday);
/**
Sets the date so that it will be the last @e weekday before the current
Sets the date so that it will be the last @a weekday before the current
date.
Returns the reference to the modified object itself.
*/
wxDateTime SetToPrevWeekDay(WeekDay weekday);
/**
Sets the date to the @e n-th @e weekday in the given month of the given
Sets the date to the @e n-th @a weekday in the given month of the given
year (the current month and year are used by default). The parameter @e n
may be either positive (counting from the beginning of the month) or negative
(counting from the end of it).
For example, @c SetToWeekDay(2, wxDateTime::Wed) will set the date to the
second Wednesday in the current month and
@c SetToWeekDay(-1, wxDateTime::Sun) -- to the last Sunday in it.
Returns @true if the date was modified successfully, @false
otherwise meaning that the specified date doesn't exist.
*/
@@ -1046,16 +1007,14 @@ public:
/**
Adjusts the date so that it will still lie in the same week as before, but its
week day will be the given one.
Returns the reference to the modified object itself.
*/
wxDateTime SetToWeekDayInSameWeek(WeekDay weekday,
WeekFlags flags = Monday_First);
/**
Set the date to the given @e weekday in the week number @e numWeek of the
given @e year . The number should be in range 1...53.
Set the date to the given @a weekday in the week number @a numWeek of the
given @a year . The number should be in range 1...53.
Note that the returned date may be in a different year than the one passed to
this function because both the week 1 and week 52 or 53 (for leap years)
contain days from different years. See
@@ -1066,11 +1025,10 @@ public:
WeekDay weekday = Mon);
/**
Sets the date to the day number @e yday in the same year (i.e., unlike the
Sets the date to the day number @a yday in the same year (i.e., unlike the
other functions, this one does not use the current year). The day number
should be in the range 1...366 for the leap years and 1...365 for
the other ones.
Returns the reference to the modified object itself.
*/
wxDateTime SetToYearDay(wxDateTime_t yday);
@@ -1085,10 +1043,10 @@ public:
either set or return the static variables of wxDateSpan (the country), return
the current moment, year, month or number of days in it, or do some general
calendar-related actions.
Please note that although several function accept an extra @e Calendar
parameter, it is currently ignored as only the Gregorian calendar is
supported. Future versions will support other calendars.
SetCountry()
GetCountry()
@@ -1138,7 +1096,6 @@ public:
/**
Please see the @ref overview_tdatetimezones "time zone overview" for more
information about time zones. Normally, these functions should be rarely used.
FromTimezone()
ToTimezone()
@@ -1160,24 +1117,23 @@ public:
/**
Transform the date to the given time zone. If @e noDST is @true, no
Transform the date to the given time zone. If @a noDST is @true, no
DST adjustments will be made.
Returns the date in the new time zone.
*/
wxDateTime ToTimezone(const TimeZone& tz, bool noDST = @false);
wxDateTime ToTimezone(const TimeZone& tz, bool noDST = false);
/**
This is the same as calling ToTimezone() with
the argument @c GMT0.
*/
#define wxDateTime ToUTC(bool noDST = @false) /* implementation is private */
wxDateTime ToUTC(bool noDST = false);
/**
Returns the object corresponding to the midnight of the current day (i.e. the
same as Now(), but the time part is set to 0).
@sa Now()
@see Now()
*/
static wxDateTime Today();
@@ -1186,9 +1142,9 @@ public:
milliseconds if a function to get time with such precision is available on the
current platform (supported under most Unices and Win32).
@sa Now()
@see Now()
*/
#define static wxDateTime UNow() /* implementation is private */
static wxDateTime UNow();
/**
Same as @ref settm() Set.
@@ -1280,14 +1236,14 @@ public:
/**
Returns a date span object corresponding to one day.
@sa Days()
@see Days()
*/
#define static wxDateSpan Day() /* implementation is private */
static wxDateSpan Day();
/**
Returns a date span object corresponding to the given number of days.
@sa Day()
@see Day()
*/
static wxDateSpan Days(int days);
@@ -1295,7 +1251,7 @@ public:
Returns the number of days (only, that it not counting the weeks component!)
in this date span.
@sa GetTotalDays()
@see GetTotalDays()
*/
int GetDays();
@@ -1308,14 +1264,14 @@ public:
Returns the combined number of days in this date span, counting both weeks and
days. It still doesn't take neither months nor years into the account.
@sa GetWeeks(), GetDays()
@see GetWeeks(), GetDays()
*/
int GetTotalDays();
/**
Returns the number of weeks in this date span.
@sa GetTotalDays()
@see GetTotalDays()
*/
int GetWeeks();
@@ -1327,14 +1283,14 @@ public:
/**
Returns a date span object corresponding to one month.
@sa Months()
@see Months()
*/
static wxDateSpan Month();
/**
Returns a date span object corresponding to the given number of months.
@sa Month()
@see Month()
*/
static wxDateSpan Months(int mon);
@@ -1342,7 +1298,6 @@ public:
/**
Returns the product of the date span by the specified @e factor. The
product is computed by multiplying each of the components by the factor.
The first version returns a new object, the second and third ones modify this
object in place.
*/
@@ -1355,7 +1310,7 @@ public:
/**
Changes the sign of this date span.
@sa Negate()
@see Negate()
*/
wxDateSpan Neg();
wxDateSpan operator-();
@@ -1364,7 +1319,7 @@ public:
/**
Returns the date span with the opposite sign.
@sa Neg()
@see Neg()
*/
wxDateSpan Negate();
@@ -1405,28 +1360,28 @@ public:
/**
Returns a date span object corresponding to one week.
@sa Weeks()
@see Weeks()
*/
static wxDateSpan Week();
/**
Returns a date span object corresponding to the given number of weeks.
@sa Week()
@see Week()
*/
static wxDateSpan Weeks(int weeks);
/**
Returns a date span object corresponding to one year.
@sa Years()
@see Years()
*/
static wxDateSpan Year();
/**
Returns a date span object corresponding to the given number of years.
@sa Year()
@see Year()
*/
static wxDateSpan Years(int years);
@@ -1473,7 +1428,7 @@ public:
Returns the absolute value of the timespan: does not modify the
object.
*/
#define wxTimeSpan Abs() /* implementation is private */
wxTimeSpan Abs();
/**
GetSeconds()
@@ -1507,7 +1462,7 @@ public:
/**
Returns the timespan for one day.
*/
#define static wxTimespan Day() /* implementation is private */
static wxTimespan Day();
/**
Returns the timespan for the given number of days.
@@ -1520,37 +1475,30 @@ public:
H
number of @b Hours
M
number of @b Minutes
S
number of @b Seconds
l
number of mi@b lliseconds
D
number of @b Days
E
number of w@b Eeks
%
the percent character
Note that, for example, the number of hours in the description above is not
@@ -1558,11 +1506,9 @@ public:
time span of 50 hours this would be 50) or just the hour part of the time
span, which would be 2 in this case as 50 hours is equal to 2 days and
2 hours.
wxTimeSpan resolves this ambiguity in the following way: if there had been,
indeed, the @c %D format specified preceding the @c %H, then it is
interpreted as 2. Otherwise, it is 50.
The same applies to all other format specifiers: if they follow a specifier of
larger unit, only the rest part is taken, otherwise the full value is used.
*/

View File

@@ -32,13 +32,11 @@ public:
//@{
/**
)
Constructs a datastream object from an output stream. Only write methods will
be available. The second form is only available in Unicode build of wxWidgets.
@param stream
The output stream.
@param conv
Charset conversion object object used to encoding Unicode
strings before writing them to the stream
@@ -57,7 +55,7 @@ public:
~wxDataOutputStream();
/**
If @e be_order is @true, all data will be written in big-endian
If @a be_order is @true, all data will be written in big-endian
order, e.g. for reading on a Sparc or from Java-Streams (which
always use big-endian order), otherwise data will be written in
little-endian order.
@@ -67,7 +65,7 @@ public:
//@{
/**
Writes an array of 16 bit unsigned integer to the stream. The amount of
16 bit unsigned integer to write is specified with the @e size variable.
16 bit unsigned integer to write is specified with the @a size variable.
*/
void Write16(wxUint16 i16);
void Write16(const wxUint16* buffer, size_t size);
@@ -76,7 +74,7 @@ public:
//@{
/**
Writes an array of 32 bit unsigned integer to the stream. The amount of
32 bit unsigned integer to write is specified with the @e size variable.
32 bit unsigned integer to write is specified with the @a size variable.
*/
void Write32(wxUint32 i32);
void Write32(const wxUint32* buffer, size_t size);
@@ -85,7 +83,7 @@ public:
//@{
/**
Writes an array of 64 bit unsigned integer to the stream. The amount of
64 bit unsigned integer to write is specified with the @e size variable.
64 bit unsigned integer to write is specified with the @a size variable.
*/
void Write64(wxUint64 i64);
void Write64(const wxUint64* buffer, size_t size);
@@ -94,7 +92,7 @@ public:
//@{
/**
Writes an array of bytes to the stream. The amount of bytes to write is
specified with the @e size variable.
specified with the @a size variable.
*/
void Write8(wxUint8 i8);
void Write8(const wxUint8* buffer, size_t size);
@@ -103,16 +101,15 @@ public:
//@{
/**
Writes an array of double to the stream. The amount of double to write is
specified with the @e size variable.
specified with the @a size variable.
*/
void WriteDouble(double f);
void WriteDouble(const double* buffer, size_t size);
//@}
/**
Writes @e string to the stream. Actually, this method writes the size of
the string before writing @e string itself.
Writes @a string to the stream. Actually, this method writes the size of
the string before writing @a string itself.
In ANSI build of wxWidgets, the string is written to the stream in exactly
same way it is represented in memory. In Unicode build, however, the string
is first converted to multibyte representation with @e conv object passed
@@ -169,13 +166,11 @@ public:
//@{
/**
)
Constructs a datastream object from an input stream. Only read methods will
be available. The second form is only available in Unicode build of wxWidgets.
@param stream
The input stream.
@param conv
Charset conversion object object used to decode strings in Unicode
mode (see ReadString()
@@ -192,7 +187,7 @@ public:
~wxDataInputStream();
/**
If @e be_order is @true, all data will be read in big-endian
If @a be_order is @true, all data will be read in big-endian
order, such as written by programs on a big endian architecture
(e.g. Sparc) or written by Java-Streams (which always use
big-endian order).
@@ -202,7 +197,7 @@ public:
//@{
/**
Reads 16 bit unsigned integers from the stream in a specified buffer. the
amount of 16 bit unsigned integer to read is specified by the @e size variable.
amount of 16 bit unsigned integer to read is specified by the @a size variable.
*/
wxUint16 Read16();
void Read16(wxUint16* buffer, size_t size);
@@ -212,7 +207,7 @@ public:
/**
Reads 32 bit unsigned integers from the stream in a specified buffer. the
amount of
32 bit unsigned integer to read is specified by the @e size variable.
32 bit unsigned integer to read is specified by the @a size variable.
*/
wxUint32 Read32();
void Read32(wxUint32* buffer, size_t size);
@@ -222,7 +217,7 @@ public:
/**
Reads 64 bit unsigned integers from the stream in a specified buffer. the
amount of
64 bit unsigned integer to read is specified by the @e size variable.
64 bit unsigned integer to read is specified by the @a size variable.
*/
wxUint64 Read64();
void Read64(wxUint64* buffer, size_t size);
@@ -231,7 +226,7 @@ public:
//@{
/**
Reads bytes from the stream in a specified buffer. The amount of
bytes to read is specified by the @e size variable.
bytes to read is specified by the @a size variable.
*/
wxUint8 Read8();
void Read8(wxUint8* buffer, size_t size);
@@ -241,7 +236,7 @@ public:
/**
Reads double data (IEEE encoded) from the stream in a specified buffer. the
amount of
double to read is specified by the @e size variable.
double to read is specified by the @a size variable.
*/
double ReadDouble();
void ReadDouble(double* buffer, size_t size);
@@ -251,12 +246,10 @@ public:
Reads a string from a stream. Actually, this function first reads a long
integer specifying the length of the string (without the last null character)
and then reads the string.
In Unicode build of wxWidgets, the fuction first reads multibyte (char*)
string from the stream and then converts it to Unicode using the @e conv
object passed to constructor and returns the result as wxString. You are
responsible for using the same convertor as when writing the stream.
See also wxDataOutputStream::WriteString.
*/
wxString ReadString();

View File

@@ -43,77 +43,71 @@ public:
@param xdest
Destination device context x position.
@param ydest
Destination device context y position.
@param width
Width of source area to be copied.
@param height
Height of source area to be copied.
@param source
Source device context.
@param xsrc
Source device context x position.
@param ysrc
Source device context y position.
@param logicalFunc
Logical function to use: see SetLogicalFunction().
@param useMask
If @true, Blit does a transparent blit using the mask that is associated with
the bitmap
selected into the source device context. The Windows implementation does the
following if MaskBlt cannot be used:
If @true, Blit does a transparent blit using the mask that is associated
with the bitmap
selected into the source device context. The Windows implementation does
the following if MaskBlt cannot be used:
Creates a temporary bitmap and copies the destination area into it.
Copies the source area into the temporary bitmap using the specified logical
function.
Copies the source area into the temporary bitmap using the specified
logical function.
Sets the masked area in the temporary bitmap to BLACK by ANDing the
mask bitmap with the temp bitmap with the foreground colour set to WHITE
and the bg colour set to BLACK.
Sets the unmasked area in the destination area to BLACK by ANDing the
mask bitmap with the destination area with the foreground colour set to BLACK
mask bitmap with the destination area with the foreground colour set to
BLACK
and the background colour set to WHITE.
ORs the temporary bitmap with the destination area.
Deletes the temporary bitmap.
This sequence of operations ensures that the source's transparent area need not
be black,
and logical functions are supported.
This sequence of operations ensures that the source's transparent area need
not be black,
and logical functions are supported.
Note: on Windows, blitting with masks can be speeded up considerably by
compiling
wxWidgets with the wxUSE_DC_CACHE option enabled. You can also influence
whether MaskBlt
or the explicit mask blitting code above is used, by using wxSystemOptions and
or the explicit mask blitting code above is used, by using wxSystemOptions
and
setting the no-maskblt option to 1.
@param xsrcMask
Source x position on the mask. If both xsrcMask and ysrcMask are -1, xsrc and
ysrc
Source x position on the mask. If both xsrcMask and ysrcMask are -1, xsrc
and ysrc
will be assumed for the mask source position. Currently only implemented on
Windows.
@param ysrcMask
Source y position on the mask. If both xsrcMask and ysrcMask are -1, xsrc and
ysrc
Source y position on the mask. If both xsrcMask and ysrcMask are -1, xsrc
and ysrc
will be assumed for the mask source position. Currently only implemented on
Windows.
@remarks There is partial support for Blit in wxPostScriptDC, under X.
@sa StretchBlit(), wxMemoryDC, wxBitmap, wxMask
@see StretchBlit(), wxMemoryDC, wxBitmap, wxMask
*/
bool Blit(wxCoord xdest, wxCoord ydest, wxCoord width,
wxCoord height, wxDC* source,
wxCoord xsrc, wxCoord ysrc,
int logicalFunc = wxCOPY,
bool useMask = @false,
bool useMask = false,
wxCoord xsrcMask = -1,
wxCoord ysrcMask = -1);
@@ -122,7 +116,7 @@ public:
MinX(), MaxX() and
MinY(), MaxY() functions.
@sa ResetBoundingBox()
@see ResetBoundingBox()
*/
void CalcBoundingBox(wxCoord x, wxCoord y);
@@ -182,7 +176,6 @@ public:
y1)
and ending at (@e x2, y2). The current pen is used for the outline
and the current brush for filling the shape.
The arc is drawn in an anticlockwise direction from the start point to the end
point.
*/
@@ -190,10 +183,9 @@ public:
wxCoord xc, wxCoord yc);
/**
Draw a bitmap on the device context at the specified point. If @e transparent
Draw a bitmap on the device context at the specified point. If @a transparent
is @true and the bitmap has
a transparency mask, the bitmap will be drawn transparently.
When drawing a mono-bitmap, the current text foreground colour will be used to
draw the foreground
of the bitmap (all bits set to 1), and the current text background colour to
@@ -217,7 +209,7 @@ public:
/**
Draws a circle with the given centre and radius.
@sa DrawEllipse()
@see DrawEllipse()
*/
void DrawCircle(wxCoord x, wxCoord y, wxCoord radius);
void DrawCircle(const wxPoint& pt, wxCoord radius);
@@ -229,7 +221,7 @@ public:
left corner and the given size or directly. The current pen is used for the
outline and the current brush for filling the shape.
@sa DrawCircle()
@see DrawCircle()
*/
void DrawEllipse(wxCoord x, wxCoord y, wxCoord width,
wxCoord height);
@@ -240,20 +232,17 @@ public:
/**
Draws an arc of an ellipse. The current pen is used for drawing the arc and
the current brush is used for drawing the pie.
@e x and @e y specify the x and y coordinates of the upper-left corner of the
@a x and @a y specify the x and y coordinates of the upper-left corner of the
rectangle that contains
the ellipse.
@e width and @e height specify the width and height of the rectangle that
@a width and @a height specify the width and height of the rectangle that
contains
the ellipse.
@e start and @e end specify the start and end of the arc relative to the
@a start and @a end specify the start and end of the arc relative to the
three-o'clock
position from the center of the rectangle. Angles are specified
in degrees (360 is a complete circle). Positive values mean
counter-clockwise motion. If @e start is equal to @e end, a
counter-clockwise motion. If @a start is equal to @e end, a
complete ellipse will be drawn.
*/
void DrawEllipticArc(wxCoord x, wxCoord y, wxCoord width,
@@ -280,7 +269,7 @@ public:
const wxRect& rect,
int alignment = wxALIGN_LEFT | wxALIGN_TOP,
int indexAccel = -1,
wxRect * rectBounding = @NULL);
wxRect* rectBounding = NULL);
void DrawLabel(const wxString& text, const wxRect& rect,
int alignment = wxALIGN_LEFT | wxALIGN_TOP,
int indexAccel = -1);
@@ -316,21 +305,16 @@ public:
/**
Draws two or more filled polygons using an array of @e points, adding the
optional offset coordinates.
Notice that for the platforms providing a native implementation
of this function (Windows and PostScript-based wxDC currently), this is more
efficient than using DrawPolygon() in a loop.
@e n specifies the number of polygons to draw, the array @e count of size
@e n specifies the number of points in each of the polygons in the
@a n specifies the number of polygons to draw, the array @e count of size
@a n specifies the number of points in each of the polygons in the
@e points array.
The last argument specifies the fill rule: @b wxODDEVEN_RULE (the default)
or @b wxWINDING_RULE.
The current pen is used for drawing the outline, and the current brush for
filling the shape. Using a transparent brush suppresses filling.
The polygons maybe disjoint or overlapping. Each polygon specified in a call to
@b DrawPolyPolygon must be closed. Unlike polygons created by the
DrawPolygon() member function, the polygons created by
@@ -345,14 +329,11 @@ public:
/**
This method draws a filled polygon using a list of wxPoints,
adding the optional offset coordinate.
The last argument specifies the fill rule: @b wxODDEVEN_RULE (the
default) or @b wxWINDING_RULE.
The current pen is used for drawing the outline, and the current brush
for filling the shape. Using a transparent brush suppresses filling.
The programmer is responsible for deleting the list of points.
Note that wxWidgets automatically closes the first and last points.
*/
void DrawPolygon(int n, wxPoint points[], wxCoord xoffset = 0,
@@ -373,14 +354,13 @@ public:
wxCoord height);
/**
Draws the text rotated by @e angle degrees.
Draws the text rotated by @a angle degrees.
@b NB: Under Win9x only TrueType fonts can be drawn by this function. In
particular, a font different from @c wxNORMAL_FONT should be used as the
latter is not a TrueType font. @c wxSWISS_FONT is an example of a font
which is.
@sa DrawText()
@see DrawText()
*/
void DrawRotatedText(const wxString& text, wxCoord x, wxCoord y,
double angle);
@@ -390,9 +370,8 @@ public:
size. The corners are quarter-circles using the given radius. The
current pen is used for the outline and the current brush for filling
the shape.
If @e radius is positive, the value is assumed to be the
radius of the rounded corner. If @e radius is negative,
If @a radius is positive, the value is assumed to be the
radius of the rounded corner. If @a radius is negative,
the absolute value is assumed to be the @e proportion of the smallest
dimension of the rectangle. This means that the corner can be
a sensible size relative to the size of the rectangle, and also avoids
@@ -418,12 +397,10 @@ public:
/**
Draws a text string at the specified point, using the current text font,
and the current text foreground and background colours.
The coordinates refer to the top-left corner of the rectangle bounding
the string. See GetTextExtent() for how
to get the dimensions of a text string, which can be used to position the
text more precisely.
@b NB: under wxGTK the current
@ref getlogicalfunction() "logical function" is used by this function
but it is ignored by wxMSW. Thus, you should avoid using logical functions
@@ -444,13 +421,10 @@ public:
/**
Flood fills the device context starting from the given point, using
the @e current brush colour, and using a style:
wxFLOOD_SURFACE: the flooding occurs until a colour other than the given
colour is encountered.
wxFLOOD_BORDER: the area to be flooded is bounded by the given colour.
Returns @false if the operation failed.
@e Note: The present implementation for non-Windows platforms may fail to find
colour borders if the pixels do not match the colour exactly. However the
function will still return @true.
@@ -466,7 +440,7 @@ public:
/**
Returns the current background mode: @c wxSOLID or @c wxTRANSPARENT.
@sa SetBackgroundMode()
@see SetBackgroundMode()
*/
int GetBackgroundMode();
@@ -494,7 +468,7 @@ public:
/**
Returns the depth (number of bits/pixel) of this DC.
@sa wxDisplayDepth
@see wxDisplayDepth
*/
int GetDepth();
@@ -513,7 +487,7 @@ public:
@c wxLayout_RightToLeft. If RTL layout is not supported, the return value will
be @c wxLayout_Default.
@sa SetLayoutDirection()
@see SetLayoutDirection()
*/
wxLayoutDirection GetLayoutDirection();
@@ -530,41 +504,38 @@ public:
//@{
/**
Gets the dimensions of the string using the currently selected font.
@e string is the text string to measure, @e heightLine, if non @NULL,
@a string is the text string to measure, @e heightLine, if non @NULL,
is where to store the height of a single line.
The text extent is returned in @e w and @e h pointers (first form) or as
The text extent is returned in @a w and @a h pointers (first form) or as
a wxSize object (second form).
If the optional parameter @e font is specified and valid, then it is used
If the optional parameter @a font is specified and valid, then it is used
for the text extent calculation. Otherwise the currently selected font is.
Note that this function works both with single-line and multi-line strings.
@sa wxFont, SetFont(), GetPartialTextExtents(), GetTextExtent()
@see wxFont, SetFont(), GetPartialTextExtents(), GetTextExtent()
*/
void GetMultiLineTextExtent(const wxString& string, wxCoord* w,
wxCoord* h,
wxCoord * heightLine = @NULL,
wxFont * font = @NULL);
wxCoord* heightLine = NULL,
wxFont* font = NULL);
wxSize GetMultiLineTextExtent(const wxString& string);
//@}
/**
Returns the resolution of the device in pixels per inch.
*/
#define wxSize GetPPI() /* implementation is private */
wxSize GetPPI();
/**
Fills the @e widths array with the widths from the beginning of
@e text to the corresponding character of @e text. The generic
Fills the @a widths array with the widths from the beginning of
@a text to the corresponding character of @e text. The generic
version simply builds a running total of the widths of each character
using GetTextExtent(), however if the
various platforms have a native API function that is faster or more
accurate than the generic implementation then it should be used
instead.
@sa GetMultiLineTextExtent(), GetTextExtent()
@see GetMultiLineTextExtent(), GetTextExtent()
*/
bool GetPartialTextExtents(const wxString& text,
wxArrayInt& widths);
@@ -575,9 +546,8 @@ public:
const wxPen GetPen();
/**
Gets in @e colour the colour at the specified location.
Gets in @a colour the colour at the specified location.
Not available for wxPostScriptDC or wxMetafileDC.
Note that setting a pixel can be done using DrawPoint().
*/
bool GetPixel(wxCoord x, wxCoord y, wxColour* colour);
@@ -592,15 +562,12 @@ public:
printer page:
@b GetSize()
Returns a Wx::Size
@b GetSizeWH()
Returns a 2-element list
@c ( width, height )
*/
@@ -624,27 +591,24 @@ public:
//@{
/**
Gets the dimensions of the string using the currently selected font.
@e string is the text string to measure, @e descent is the
@a string is the text string to measure, @a descent is the
dimension from the baseline of the font to the bottom of the
descender, and @e externalLeading is any extra vertical space added
descender, and @a externalLeading is any extra vertical space added
to the font by the font designer (usually is zero).
The text extent is returned in @e w and @e h pointers (first form) or as
The text extent is returned in @a w and @a h pointers (first form) or as
a wxSize object (second form).
If the optional parameter @e font is specified and valid, then it is used
If the optional parameter @a font is specified and valid, then it is used
for the text extent calculation. Otherwise the currently selected font is.
Note that this function only works with single-line strings.
@sa wxFont, SetFont(), GetPartialTextExtents(),
@see wxFont, SetFont(), GetPartialTextExtents(),
GetMultiLineTextExtent()
*/
void GetTextExtent(const wxString& string, wxCoord* w,
wxCoord* h,
wxCoord * descent = @NULL,
wxCoord * externalLeading = @NULL,
const wxFont * font = @NULL);
wxCoord* descent = NULL,
wxCoord* externalLeading = NULL,
const wxFont* font = NULL);
wxSize GetTextExtent(const wxString& string);
//@}
@@ -661,13 +625,11 @@ public:
//@{
/**
Fill the area specified by rect with a radial gradient, starting from
@e initialColour at the centre of the circle and fading to @e destColour
@a initialColour at the centre of the circle and fading to @a destColour
on the circle outside.
@e circleCenter are the relative coordinates of centre of the circle in
@a circleCenter are the relative coordinates of centre of the circle in
the specified @e rect. If not specified, the cercle is placed at the
centre of rect.
@b Note: Currently this function is very slow, don't use it for
real-time drawing.
*/
@@ -681,11 +643,11 @@ public:
//@}
/**
Fill the area specified by @e rect with a linear gradient, starting from
@e initialColour and eventually fading to @e destColour. The
@e nDirection specifies the direction of the colour change, default is to
use @e initialColour on the left part of the rectangle and
@e destColour on the right one.
Fill the area specified by @a rect with a linear gradient, starting from
@a initialColour and eventually fading to @e destColour. The
@a nDirection specifies the direction of the colour change, default is to
use @a initialColour on the left part of the rectangle and
@a destColour on the right one.
*/
void GradientFillLinear(const wxRect& rect,
const wxColour& initialColour,
@@ -695,7 +657,7 @@ public:
/**
Returns @true if the DC is ok to use.
*/
#define bool Ok() /* implementation is private */
bool Ok();
/**
Converts logical X coordinate to device coordinate, using the current
@@ -726,28 +688,28 @@ public:
/**
Gets the maximum horizontal extent used in drawing commands so far.
*/
#define wxCoord MaxX() /* implementation is private */
wxCoord MaxX();
/**
Gets the maximum vertical extent used in drawing commands so far.
*/
#define wxCoord MaxY() /* implementation is private */
wxCoord MaxY();
/**
Gets the minimum horizontal extent used in drawing commands so far.
*/
#define wxCoord MinX() /* implementation is private */
wxCoord MinX();
/**
Gets the minimum vertical extent used in drawing commands so far.
*/
#define wxCoord MinY() /* implementation is private */
wxCoord MinY();
/**
Resets the bounding box: after a call to this function, the bounding box
doesn't contain anything.
@sa CalcBoundingBox()
@see CalcBoundingBox()
*/
void ResetBoundingBox();
@@ -759,7 +721,6 @@ public:
@param xLeftRight
True to set the x axis orientation to the natural
left to right orientation, @false to invert it.
@param yBottomUp
True to set the y axis orientation to the natural
bottom up orientation, @false to invert it.
@@ -772,20 +733,17 @@ public:
void SetBackground(const wxBrush& brush);
/**
@e mode may be one of wxSOLID and wxTRANSPARENT. This setting determines
@a mode may be one of wxSOLID and wxTRANSPARENT. This setting determines
whether text will be drawn with a background colour or not.
*/
void SetBackgroundMode(int mode);
/**
Sets the current brush for the DC.
If the argument is wxNullBrush, the current brush is selected out of the device
context (leaving wxDC without any valid brush), allowing the current brush to
be destroyed safely.
See also wxBrush.
See also wxMemoryDC for the interpretation of colours
when drawing into a monochrome bitmap.
*/
@@ -798,12 +756,11 @@ public:
clipping region. You should call
DestroyClippingRegion() if you want to set
the clipping region exactly to the region specified.
The clipping region is an area to which drawing is restricted. Possible uses
for the clipping region are for clipping text or for speeding up window redraws
when only a known area of the screen is damaged.
@sa DestroyClippingRegion(), wxRegion
@see DestroyClippingRegion(), wxRegion
*/
void SetClippingRegion(wxCoord x, wxCoord y, wxCoord width,
wxCoord height);
@@ -815,7 +772,6 @@ public:
/**
Sets the device origin (i.e., the origin in pixels after scaling has been
applied).
This function may be useful in Windows printing
operations for placing a graphic on a page.
*/
@@ -824,16 +780,15 @@ public:
/**
Sets the current font for the DC. It must be a valid font, in particular you
should not pass @c wxNullFont to this method.
See also wxFont.
*/
void SetFont(const wxFont& font);
/**
Sets the current layout direction for the device context. @e dir may be either
Sets the current layout direction for the device context. @a dir may be either
@c wxLayout_Default, @c wxLayout_LeftToRight or @c wxLayout_RightToLeft.
@sa GetLayoutDirection()
@see GetLayoutDirection()
*/
void SetLayoutDirection(wxLayoutDirection dir);
@@ -842,10 +797,10 @@ public:
a source pixel (from a pen or brush colour, or source device context if
using wxDC::Blit) combines with a destination pixel in the
current device context.
The possible values
and their meaning in terms of source and destination pixel values are
as follows:
The default is wxCOPY, which simply draws with the current colour.
The others combine the current colour and the background using a
logical operation. wxINVERT is commonly used for drawing rubber bands or
@@ -861,38 +816,30 @@ public:
wxDC::SetUserScale) scales the text appropriately. In
Windows, scalable TrueType fonts are always used; in X, results depend
on availability of fonts, but usually a reasonable match is found.
The coordinate origin is always at the top left of the screen/printer.
Drawing to a Windows printer device context uses the current mapping mode,
but mapping mode is currently ignored for PostScript output.
The mapping mode can be one of the following:
wxMM_TWIPS
Each logical unit is 1/20 of a point, or 1/1440 of
an inch.
wxMM_POINTS
Each logical unit is a point, or 1/72 of an inch.
wxMM_METRIC
Each logical unit is 1 mm.
wxMM_LOMETRIC
Each logical unit is 1/10 of a mm.
wxMM_TEXT
Each logical unit is 1 device pixel.
*/
void SetMapMode(int int);
@@ -902,18 +849,15 @@ public:
or bitmap associated with the DC. If the argument is wxNullPalette, the current
palette is selected out of the device context, and the original palette
restored.
See wxPalette for further details.
*/
void SetPalette(const wxPalette& palette);
/**
Sets the current pen for the DC.
If the argument is wxNullPen, the current pen is selected out of the device
context (leaving wxDC without any valid pen), allowing the current brush to
be destroyed safely.
See also wxMemoryDC for the interpretation of colours
when drawing into a monochrome bitmap.
*/
@@ -926,7 +870,6 @@ public:
/**
Sets the current text foreground colour for the DC.
See also wxMemoryDC for the interpretation of colours
when drawing into a monochrome bitmap.
*/
@@ -957,71 +900,63 @@ public:
@param xdest
Destination device context x position.
@param ydest
Destination device context y position.
@param dstWidth
Width of destination area.
@param dstHeight
Height of destination area.
@param source
Source device context.
@param xsrc
Source device context x position.
@param ysrc
Source device context y position.
@param srcWidth
Width of source area to be copied.
@param srcHeight
Height of source area to be copied.
@param logicalFunc
Logical function to use: see SetLogicalFunction().
@param useMask
If @true, Blit does a transparent blit using the mask that is associated with
the bitmap
selected into the source device context. The Windows implementation does the
following if MaskBlt cannot be used:
If @true, Blit does a transparent blit using the mask that is associated
with the bitmap
selected into the source device context. The Windows implementation does
the following if MaskBlt cannot be used:
Creates a temporary bitmap and copies the destination area into it.
Copies the source area into the temporary bitmap using the specified logical
function.
Copies the source area into the temporary bitmap using the specified
logical function.
Sets the masked area in the temporary bitmap to BLACK by ANDing the
mask bitmap with the temp bitmap with the foreground colour set to WHITE
and the background colour set to BLACK.
Sets the unmasked area in the destination area to BLACK by ANDing the
mask bitmap with the destination area with the foreground colour set to BLACK
mask bitmap with the destination area with the foreground colour set to
BLACK
and the background colour set to WHITE.
ORs the temporary bitmap with the destination area.
Deletes the temporary bitmap.
This sequence of operations ensures that the source's transparent area need not
be black,
and logical functions are supported.
This sequence of operations ensures that the source's transparent area need
not be black,
and logical functions are supported.
Note: on Windows, blitting with masks can be speeded up considerably by
compiling
wxWidgets with the wxUSE_DC_CACHE option enabled. You can also influence
whether MaskBlt
or the explicit mask blitting code above is used, by using wxSystemOptions and
or the explicit mask blitting code above is used, by using wxSystemOptions
and
setting the no-maskblt option to 1.
@param xsrcMask
Source x position on the mask. If both xsrcMask and ysrcMask are -1, xsrc and
ysrc
Source x position on the mask. If both xsrcMask and ysrcMask are -1, xsrc
and ysrc
will be assumed for the mask source position. Currently only implemented on
Windows.
@param ysrcMask
Source y position on the mask. If both xsrcMask and ysrcMask are -1, xsrc and
ysrc
Source y position on the mask. If both xsrcMask and ysrcMask are -1, xsrc
and ysrc
will be assumed for the mask source position. Currently only implemented on
Windows.
@@ -1034,7 +969,7 @@ public:
wxCoord srcWidth,
wxCoord srcHeight,
int logicalFunc = wxCOPY,
bool useMask = @false,
bool useMask = false,
wxCoord xsrcMask = -1,
wxCoord ysrcMask = -1);
};
@@ -1075,10 +1010,9 @@ class wxDCClipper
public:
//@{
/**
Sets the clipping region to the specified region @e r or rectangle specified
by either a single @e rect parameter or its position (@e x and @e y)
and size (@e w ad @e h).
Sets the clipping region to the specified region @a r or rectangle specified
by either a single @a rect parameter or its position (@a x and @e y)
and size (@a w ad @e h).
The clipping region is automatically unset when this object is destroyed.
*/
wxDCClipper(wxDC& dc, const wxRegion& r);

View File

@@ -48,7 +48,6 @@ public:
/**
If you use the first, default, constructor, you must call one of the
Init() methods later in order to use the object.
The other constructors initialize the object immediately and @c Init()
must not be called after using them.
@@ -56,23 +55,22 @@ public:
The underlying DC: everything drawn to this object will be
flushed to this DC when this object is destroyed. You may pass @NULL
in order to just initialize the buffer, and not flush it.
@param area
The size of the bitmap to be used for buffering (this bitmap is
created internally when it is not given explicitly).
@param buffer
Explicitly provided bitmap to be used for buffering: this is
the most efficient solution as the bitmap doesn't have to be recreated each
time but it also requires more memory as the bitmap is never freed. The bitmap
should have appropriate size, anything drawn outside of its bounds is clipped.
time but it also requires more memory as the bitmap is never freed. The
bitmap
should have appropriate size, anything drawn outside of its bounds is
clipped.
@param style
wxBUFFER_CLIENT_AREA to indicate that just the client area of
the window is buffered, or wxBUFFER_VIRTUAL_AREA to indicate that the buffer
bitmap
covers the virtual area (in which case PrepareDC is automatically called for
the actual window
the window is buffered, or wxBUFFER_VIRTUAL_AREA to indicate that the
buffer bitmap
covers the virtual area (in which case PrepareDC is automatically called
for the actual window
device context).
*/
wxBufferedDC();
@@ -165,8 +163,7 @@ public:
As with @ref wxBufferedDC::ctor wxBufferedDC, you may either provide the
bitmap to be used for buffering or let this object create one internally (in
the latter case, the size of the client part of the window is used).
Pass wxBUFFER_CLIENT_AREA for the @e style parameter to indicate that just the
Pass wxBUFFER_CLIENT_AREA for the @a style parameter to indicate that just the
client area of
the window is buffered, or wxBUFFER_VIRTUAL_AREA to indicate that the buffer
bitmap

View File

@@ -41,17 +41,15 @@ public:
this is the function you should use when you select a bitmap because you want
to modify
it, e.g. drawing on this DC.
Using SelectObjectAsSource() when modifying
the bitmap may incurr some problems related to wxBitmap being a reference
counted object
(see @ref overview_trefcount "reference counting overview").
Also, before using the updated bitmap data, make sure to select it out of
context first
(for example by selecting wxNullBitmap into the device context).
@sa wxDC::DrawBitmap
@see wxDC::DrawBitmap
*/
void SelectObject(wxBitmap& bitmap);
@@ -61,7 +59,6 @@ public:
the DC (and therefore the bitmap) and also to use wxDC::Blit to copy
the bitmap to a window. For this purpose, you may find wxDC::DrawIcon
easier to use instead.
If the argument is wxNullBitmap (or some other uninitialised wxBitmap) the
current bitmap is
selected out of the device context, and the original bitmap restored, allowing

View File

@@ -27,8 +27,7 @@ public:
/**
Creates a (maybe) mirrored DC associated with the real @e dc. Everything
drawn on wxMirrorDC will appear (and maybe mirrored) on @e dc.
@e mirror specifies if we do mirror (if it is @true) or not (if it is
@a mirror specifies if we do mirror (if it is @true) or not (if it is
@false).
*/
wxMirrorDC(wxDC& dc, bool mirror);

View File

@@ -28,17 +28,16 @@ public:
/**
Constructor. With empty strings for the first three arguments, the default
printer dialog is
displayed. @e device indicates the type of printer and @e output
is an optional file for printing to. The @e driver parameter is
displayed. @a device indicates the type of printer and @e output
is an optional file for printing to. The @a driver parameter is
currently unused. Use the @e Ok member to test whether the
constructor was successful in creating a usable device context.
This constructor is deprecated and retained only for backward compatibility.
*/
wxPrinterDC(const wxPrintData& printData);
wxPrinterDC(const wxString& driver, const wxString& device,
const wxString& output,
const bool interactive = @true,
const bool interactive = true,
int orientation = wxPORTRAIT);
//@}

View File

@@ -22,22 +22,19 @@ class wxPostScriptDC : public wxDC
public:
//@{
/**
Constructor. @e output is an optional file for printing to, and if
@e interactive is @true a dialog box will be displayed for adjusting
various parameters. @e parent is the parent of the printer dialog box.
Constructor. @a output is an optional file for printing to, and if
@a interactive is @true a dialog box will be displayed for adjusting
various parameters. @a parent is the parent of the printer dialog box.
Use the @e Ok member to test whether the constructor was successful
in creating a usable device context.
See @ref overview_printersettings "Printer settings" for functions to set and
get PostScript printing settings.
This constructor and the global printer settings are now deprecated;
use the wxPrintData constructor instead.
*/
wxPostScriptDC(const wxPrintData& printData);
wxPostScriptDC(const wxString& output,
bool interactive = @true,
bool interactive = true,
wxWindow* parent);
//@}

View File

@@ -30,7 +30,6 @@ public:
/**
Use this in conjunction with StartDrawingOnTop().
This function destroys the temporary window created to implement on-top drawing
(X only).
*/
@@ -43,30 +42,26 @@ public:
this,
some window systems (such as X) only allow drawing to take place underneath
other windows.
By using the first form of this function, an application is specifying that
the area that will be drawn on coincides with the given window.
By using the second form, an application can specify an area of the screen
which is to be drawn on. If @NULL is passed, the whole screen is available.
It is recommended that an area of the screen is specified because with large
regions,
flickering effects are noticeable when destroying the temporary transparent
window used
to implement this feature.
You might use this pair of functions when implementing a drag feature, for
example
as in the wxSplitterWindow implementation.
@remarks This function is probably obsolete since the X implementations
allow drawing directly on the screen now. However,
the fact that this function allows the screen to be
allow drawing directly on the screen now. However, the
fact that this function allows the screen to be
refreshed afterwards, may be useful to some
applications.
*/
bool StartDrawingOnTop(wxWindow* window);
bool StartDrawingOnTop(wxRect* rect = @NULL);
bool StartDrawingOnTop(wxRect* rect = NULL);
//@}
};

View File

@@ -45,10 +45,10 @@ public:
//@{
/**
Constructors:
a filename @e f with default size 340x240 at 72.0 dots per inch (a frequent
a filename @a f with default size 340x240 at 72.0 dots per inch (a frequent
screen resolution).
a filename @e f with size @e Width by @e Height at 72.0 dots per inch
a filename @e f with size @e Width by @e Height at @e dpi resolution.
a filename @a f with size @a Width by @a Height at 72.0 dots per inch
a filename @a f with size @a Width by @a Height at @a dpi resolution.
*/
wxSVGFileDC(wxString f);
wxSVGFileDC(wxString f, int Width, int Height);
@@ -131,7 +131,6 @@ public:
y1)
and ending at (@e x2, y2). The current pen is used for the outline
and the current brush for filling the shape.
The arc is drawn in an anticlockwise direction from the start point to the end
point.
*/
@@ -139,10 +138,9 @@ public:
wxCoord xc, wxCoord yc);
/**
Draw a bitmap on the device context at the specified point. If @e transparent
Draw a bitmap on the device context at the specified point. If @a transparent
is @true and the bitmap has
a transparency mask, the bitmap will be drawn transparently.
When drawing a mono-bitmap, the current text foreground colour will be used to
draw the foreground
of the bitmap (all bits set to 1), and the current text background colour to
@@ -166,7 +164,7 @@ public:
/**
Draws a circle with the given centre and radius.
@sa wxDC::DrawEllipse
@see wxDC::DrawEllipse
*/
void DrawCircle(wxCoord x, wxCoord y, wxCoord radius);
void DrawCircle(const wxPoint& pt, wxCoord radius);
@@ -178,7 +176,7 @@ public:
left corner and the given size or directly. The current pen is used for the
outline and the current brush for filling the shape.
@sa wxDC::DrawCircle
@see wxDC::DrawCircle
*/
void DrawEllipse(wxCoord x, wxCoord y, wxCoord width,
wxCoord height);
@@ -189,20 +187,17 @@ public:
/**
Draws an arc of an ellipse. The current pen is used for drawing the arc and
the current brush is used for drawing the pie.
@e x and @e y specify the x and y coordinates of the upper-left corner of the
@a x and @a y specify the x and y coordinates of the upper-left corner of the
rectangle that contains
the ellipse.
@e width and @e height specify the width and height of the rectangle that
@a width and @a height specify the width and height of the rectangle that
contains
the ellipse.
@e start and @e end specify the start and end of the arc relative to the
@a start and @a end specify the start and end of the arc relative to the
three-o'clock
position from the center of the rectangle. Angles are specified
in degrees (360 is a complete circle). Positive values mean
counter-clockwise motion. If @e start is equal to @e end, a
counter-clockwise motion. If @a start is equal to @e end, a
complete ellipse will be drawn.
*/
void DrawEllipticArc(wxCoord x, wxCoord y, wxCoord width,
@@ -224,7 +219,7 @@ public:
//@{
/**
Draws lines using an array of @e points of size @e n, or list of
Draws lines using an array of @a points of size @e n, or list of
pointers to points, adding the optional offset coordinate. The current
pen is used for drawing the lines. The programmer is responsible for
deleting the list of points.
@@ -242,16 +237,13 @@ public:
//@{
/**
Draws a filled polygon using an array of @e points of size @e n,
Draws a filled polygon using an array of @a points of size @e n,
or list of pointers to points, adding the optional offset coordinate.
The last argument specifies the fill rule: @b wxODDEVEN_RULE (the
default) or @b wxWINDING_RULE.
The current pen is used for drawing the outline, and the current brush
for filling the shape. Using a transparent brush suppresses filling.
The programmer is responsible for deleting the list of points.
Note that wxWindows automatically closes the first and last points.
*/
void DrawPolygon(int n, wxPoint points[], wxCoord xoffset = 0,
@@ -271,8 +263,7 @@ public:
wxCoord height);
/**
Draws the text rotated by @e angle degrees.
Draws the text rotated by @a angle degrees.
The wxMSW wxDC and wxSVGFileDC rotate the text around slightly different
points, depending on the size of the font
*/
@@ -284,9 +275,8 @@ public:
size. The corners are quarter-circles using the given radius. The
current pen is used for the outline and the current brush for filling
the shape.
If @e radius is positive, the value is assumed to be the
radius of the rounded corner. If @e radius is negative,
If @a radius is positive, the value is assumed to be the
radius of the rounded corner. If @a radius is negative,
the absolute value is assumed to be the @e proportion of the smallest
dimension of the rectangle. This means that the corner can be
a sensible size relative to the size of the rectangle, and also avoids
@@ -311,7 +301,6 @@ public:
/**
Draws a text string at the specified point, using the current text font,
and the current text foreground and background colours.
The coordinates refer to the top-left corner of the rectangle bounding
the string. See GetTextExtent() for how
to get the dimensions of a text string, which can be used to position the
@@ -352,7 +341,7 @@ public:
/**
Returns the current background mode: @c wxSOLID or @c wxTRANSPARENT.
@sa wxDC::SetBackgroundMode
@see wxDC::SetBackgroundMode
*/
int GetBackgroundMode();
@@ -427,24 +416,22 @@ public:
/**
Gets the dimensions of the string using the currently selected font.
@e string is the text string to measure, @e w and @e h are
the total width and height respectively, @e descent is the
@a string is the text string to measure, @a w and @a h are
the total width and height respectively, @a descent is the
dimension from the baseline of the font to the bottom of the
descender, and @e externalLeading is any extra vertical space added
descender, and @a externalLeading is any extra vertical space added
to the font by the font designer (usually is zero).
The optional parameter @e font specifies an alternative
The optional parameter @a font specifies an alternative
to the currently selected font: but note that this does not
yet work under Windows, so you need to set a font for
the device context first.
See also wxFont, SetFont().
*/
void GetTextExtent(const wxString& string, wxCoord* w,
wxCoord* h,
wxCoord * descent = @NULL,
wxCoord * externalLeading = @NULL,
wxFont * font = @NULL);
wxCoord* descent = NULL,
wxCoord* externalLeading = NULL,
wxFont* font = NULL);
//@{
/**
@@ -488,34 +475,34 @@ public:
/**
Gets the maximum horizontal extent used in drawing commands so far.
*/
#define wxCoord MaxX() /* implementation is private */
wxCoord MaxX();
/**
Gets the maximum vertical extent used in drawing commands so far.
*/
#define wxCoord MaxY() /* implementation is private */
wxCoord MaxY();
/**
Gets the minimum horizontal extent used in drawing commands so far.
*/
#define wxCoord MinX() /* implementation is private */
wxCoord MinX();
/**
Gets the minimum vertical extent used in drawing commands so far.
*/
#define wxCoord MinY() /* implementation is private */
wxCoord MinY();
/**
Returns @true if the DC is ok to use; False values arise from being unable to
write the file
*/
#define bool Ok() /* implementation is private */
bool Ok();
/**
Resets the bounding box: after a call to this function, the bounding box
doesn't contain anything.
@sa wxDC::CalcBoundingBox
@see wxDC::CalcBoundingBox
*/
void ResetBoundingBox();
@@ -527,7 +514,6 @@ public:
@param xLeftRight
True to set the x axis orientation to the natural
left to right orientation, @false to invert it.
@param yBottomUp
True to set the y axis orientation to the natural
bottom up orientation, @false to invert it.
@@ -540,20 +526,17 @@ public:
void SetBackground(const wxBrush& brush);
/**
@e mode may be one of wxSOLID and wxTRANSPARENT. This setting determines
@a mode may be one of wxSOLID and wxTRANSPARENT. This setting determines
whether text will be drawn with a background colour or not.
*/
void SetBackgroundMode(int mode);
/**
Sets the current brush for the DC.
If the argument is wxNullBrush, the current brush is selected out of the device
context, and the original brush restored, allowing the current brush to
be destroyed safely.
See also wxBrush.
See also wxMemoryDC for the interpretation of colours
when drawing into a monochrome bitmap.
*/
@@ -573,7 +556,6 @@ public:
/**
Sets the device origin (i.e., the origin in pixels after scaling has been
applied).
This function may be useful in Windows printing
operations for placing a graphic on a page.
*/
@@ -582,7 +564,6 @@ public:
/**
Sets the current font for the DC. It must be a valid font, in particular you
should not pass @c wxNullFont to this method.
See also wxFont.
*/
void SetFont(const wxFont& font);
@@ -600,40 +581,32 @@ public:
wxSVGFileDC::SetUserScale) scales the text appropriately. In
Windows, scaleable TrueType fonts are always used; in X, results depend
on availability of fonts, but usually a reasonable match is found.
Note that the coordinate origin should ideally be selectable, but for
now is always at the top left of the screen/printer.
Drawing to a Windows printer device context under UNIX
uses the current mapping mode, but mapping mode is currently ignored for
PostScript output.
The mapping mode can be one of the following:
wxMM_TWIPS
Each logical unit is 1/20 of a point, or 1/1440 of
an inch.
wxMM_POINTS
Each logical unit is a point, or 1/72 of an inch.
wxMM_METRIC
Each logical unit is 1 mm.
wxMM_LOMETRIC
Each logical unit is 1/10 of a mm.
wxMM_TEXT
Each logical unit is 1 pixel.
*/
void SetMapMode(int int);
@@ -645,10 +618,8 @@ public:
/**
Sets the current pen for the DC.
If the argument is wxNullPen, the current pen is selected out of the device
context, and the original pen restored.
See also wxMemoryDC for the interpretation of colours
when drawing into a monochrome bitmap.
*/
@@ -661,7 +632,6 @@ public:
/**
Sets the current text foreground colour for the DC.
See also wxMemoryDC for the interpretation of colours
when drawing into a monochrome bitmap.
*/

View File

@@ -248,7 +248,6 @@ public:
be altered by deriving the @b OnMakeConnection member to return your
own derived connection object. By default, a wxDDEConnection
object is returned.
The advantage of deriving your own connection class is that it will
enable you to intercept messages initiated by the server, such
as wxDDEConnection::OnAdvise. You may also want to
@@ -319,17 +318,14 @@ public:
Called when wxWidgets exits, to clean up the DDE system. This no longer needs
to be
called by the application.
See also wxDDEInitialize.
*/
void wxDDECleanUp();
/**
Initializes the DDE system. May be called multiple times without harm.
This no longer needs to be called by the application: it will be called
by wxWidgets if necessary.
See also wxDDEServer, wxDDEClient, wxDDEConnection,
wxDDECleanUp.
*/

View File

@@ -8,17 +8,15 @@
/**
Will always generate an assert error if this code is reached (in debug mode).
See also: wxFAIL_MSG
*/
#define wxFAIL() /* implementation is private */
wxFAIL();
/**
This function is called whenever one of debugging macros fails (i.e. condition
is @false in an assertion). It is only defined in the debug mode, in release
builds the wxCHECK failures don't result in anything.
To override the default behaviour in the debug builds which is to show the user
a dialog asking whether he wants to abort the program, continue or continue
ignoring any subsequent assert failures, you may override
@@ -28,13 +26,12 @@ the global application object exists.
void wxOnAssert(const char* fileName, int lineNumber,
const char* func,
const char* cond,
const char * msg = @NULL);
const char* msg = NULL);
/**
In debug mode (when @c __WXDEBUG__ is defined) this function generates a
debugger exception meaning that the control is passed to the debugger if one is
attached to the process. Otherwise the program just terminates abnormally.
In release mode this function does nothing.
*/
void wxTrap();
@@ -42,12 +39,11 @@ void wxTrap();
/**
Will always generate an assert error with specified message if this code is
reached (in debug mode).
This macro is useful for marking unreachable" code areas, for example
it may be used in the "default:" branch of a switch statement if all possible
cases are processed above.
@sa wxFAIL
@see wxFAIL
*/
#define wxFAIL_MSG(msg) /* implementation is private */
@@ -61,9 +57,9 @@ void wxTrap();
/**
This macro results in a
@ref overview_wxcompiletimeassert "compile time assertion failure" if the size
of the given type @e type is less than @e size bits.
of the given type @a type is less than @a size bits.
You may use it like this, for example:
@code
// we rely on the int being able to hold values up to 2^32
wxASSERT_MIN_BITSIZE(int, 32);
@@ -78,32 +74,30 @@ void wxTrap();
Assert macro with message. An error message will be generated if the condition
is @false.
@sa wxASSERT, wxCOMPILE_TIME_ASSERT
@see wxASSERT, wxCOMPILE_TIME_ASSERT
*/
#define wxASSERT_MSG(condition, msg) /* implementation is private */
/**
This is the same as wxCHECK2, but
wxFAIL_MSG with the specified @e msg is called
instead of wxFAIL() if the @e condition is @false.
wxFAIL_MSG with the specified @a msg is called
instead of wxFAIL() if the @a condition is @false.
*/
#define wxCHECK2(condition, operation, msg) /* implementation is private */
/**
Assert macro. An error message will be generated if the condition is @false in
debug mode, but nothing will be done in the release build.
Please note that the condition in wxASSERT() should have no side effects
because it will not be executed in release mode at all.
@sa wxASSERT_MSG, wxCOMPILE_TIME_ASSERT
@see wxASSERT_MSG, wxCOMPILE_TIME_ASSERT
*/
#define wxASSERT(condition) /* implementation is private */
/**
Checks that the condition is @true, and returns if not (FAILs with given error
message in debug mode). This check is done even in release mode.
This macro should be used in void functions instead of
wxCHECK_MSG.
*/
@@ -111,17 +105,16 @@ void wxTrap();
/**
Checks that the condition is @true and wxFAIL and execute
@e operation if it is not. This is a generalisation of
@a operation if it is not. This is a generalisation of
wxCHECK and may be used when something else than just
returning from the function must be done when the @e condition is @false.
returning from the function must be done when the @a condition is @false.
This check is done even in release mode.
*/
#define wxCHECK2(condition, operation) /* implementation is private */
/**
This macro is identical to wxCOMPILE_TIME_ASSERT2
except that it allows you to specify a unique @e name for the struct
except that it allows you to specify a unique @a name for the struct
internally defined by this macro to avoid getting the compilation errors
described above.
*/
@@ -131,7 +124,6 @@ void wxTrap();
Checks that the condition is @true, returns with the given return value if not
(FAILs in debug mode).
This check is done even in release mode.
This macro may be only used in non-void functions, see also
wxCHECK_RET.
*/
@@ -139,26 +131,23 @@ void wxTrap();
/**
Using @c wxCOMPILE_TIME_ASSERT results in a compilation error if the
specified @e condition is @false. The compiler error message should include
the @e msg identifier - please note that it must be a valid C++ identifier
specified @a condition is @false. The compiler error message should include
the @a msg identifier - please note that it must be a valid C++ identifier
and not a string unlike in the other cases.
This macro is mostly useful for testing the expressions involving the
@c sizeof operator as they can't be tested by the preprocessor but it is
sometimes desirable to test them at the compile time.
Note that this macro internally declares a struct whose name it tries to make
unique by using the @c __LINE__ in it but it may still not work if you
use it on the same line in two different source files. In this case you may
either change the line in which either of them appears on or use the
wxCOMPILE_TIME_ASSERT2 macro.
Also note that Microsoft Visual C++ has a bug which results in compiler errors
if you use this macro with 'Program Database For Edit And Continue'
(@c /ZI) option, so you shouldn't use it ('Program Database'
(@c /Zi) is ok though) for the code making use of this macro.
@sa wxASSERT_MSG, wxASSERT_MIN_BITSIZE
@see wxASSERT_MSG, wxASSERT_MIN_BITSIZE
*/
#define wxCOMPILE_TIME_ASSERT(condition, msg) /* implementation is private */

View File

@@ -144,7 +144,6 @@ public:
/**
Adds the minidump file to the debug report.
Minidumps are only available under recent Win32 versions (@c dbghlp32.dll
can be installed under older systems to make minidumps available).
*/
@@ -161,11 +160,10 @@ public:
bool AddExceptionDump();
/**
Add another file to the report. If @e filename is an absolute path, it is
Add another file to the report. If @a filename is an absolute path, it is
copied to a file in the debug report directory with the same name. Otherwise
the file should already exist in this directory
@e description only exists to be displayed to the user in the report summary
@a description only exists to be displayed to the user in the report summary
shown by wxDebugReportPreview.
*/
void AddFile(const wxString& filename,
@@ -173,9 +171,8 @@ public:
/**
This is a convenient wrapper around AddFile(). It
creates the file with the given @e name and writes @e text to it, then
adds the file to the report. The @e filename shouldn't contain the path.
creates the file with the given @e name and writes @a text to it, then
adds the file to the report. The @a filename shouldn't contain the path.
Returns @true if file could be added successfully, @false if an IO error
occurred.
*/
@@ -209,7 +206,6 @@ public:
/**
Returns the name of the temporary directory used for the files in this report.
This method should be used to construct the full name of the files which you
wish to add to the report using AddFile().
*/
@@ -218,7 +214,7 @@ public:
/**
Retrieves the name (relative to
wxDebugReport::GetDirectory) and the description of the
file with the given index. If @e n is greater than or equal to the number of
file with the given index. If @a n is greater than or equal to the number of
filse, @false is returned.
*/
bool GetFile(size_t n, wxString* name, wxString* desc);
@@ -239,7 +235,7 @@ public:
returns
@false the report can't be used.
*/
#define bool IsOk() /* implementation is private */
bool IsOk();
/**
Processes this report: the base class simply notifies the user that the
@@ -307,11 +303,10 @@ class wxDebugReportUpload : public wxDebugReportCompress
public:
/**
)
This class will upload the compressed file created by its base class to an HTML
multipart/form-data form at the specified address. The @e url is the upload
page address, @e input is the name of the @c "type=file" control on
the form used for the file name and @e action is the value of the form
multipart/form-data form at the specified address. The @a url is the upload
page address, @a input is the name of the @c "type=file" control on
the form used for the file name and @a action is the value of the form
action field. The report is uploaded using @c @e curl program which
should be available, the @e curl parameter may be used to specify the full
path to it.
@@ -321,7 +316,6 @@ public:
/**
)
This function may be overridden in a derived class to show the output from
curl: this may be an HTML page or anything else that the server returned.
Value returned by this function becomes the return value of

View File

@@ -8,7 +8,7 @@
//@{
/**
These macros will swap the bytes of the @e value variable from little
These macros will swap the bytes of the @a value variable from little
endian to big endian or vice versa unconditionally, i.e. independently of the
current platform.
*/
@@ -21,11 +21,10 @@ wxUint16 wxUINT16_SWAP_ALWAYS(wxUint16 value);
//@{
/**
This macro will swap the bytes of the @e value variable from little
This macro will swap the bytes of the @a value variable from little
endian to big endian or vice versa if the program is compiled on a
little-endian architecture (such as Intel PCs). If the program has
been compiled on a big-endian architecture, the value will be unchanged.
Use these macros to read data from and write data to a file that stores
data in big-endian format.
*/
@@ -37,9 +36,8 @@ wxUint16 wxUINT16_SWAP_ON_LE(wxUint16 value);
/**
This macro is similar to wxDEPRECATED but can be used
to not only declare the function @e func as deprecated but to also provide
to not only declare the function @a func as deprecated but to also provide
its (inline) implementation @e body.
It can be used as following:
@code
@@ -67,9 +65,10 @@ wxUint16 wxUINT16_SWAP_ON_LE(wxUint16 value);
unless it has a friend. This warning may sometimes be useful but it doesn't
make sense for reference counted class which always delete themselves (hence
destructor should be private) but don't necessarily have any friends, so this
macro is provided to disable the warning in such case. The @e name parameter
macro is provided to disable the warning in such case. The @a name parameter
should be the name of the class but is only used to construct a unique friend
class name internally. Example of using the macro:
@code
class RefCounted
{
@@ -91,11 +90,10 @@ wxUint16 wxUINT16_SWAP_ON_LE(wxUint16 value);
//@{
/**
This macro will swap the bytes of the @e value variable from little
This macro will swap the bytes of the @a value variable from little
endian to big endian or vice versa if the program is compiled on a
big-endian architecture (such as Sun work stations). If the program has
been compiled on a little-endian architecture, the value will be unchanged.
Use these macros to read data from and write data to a file that stores
data in little-endian (for example Intel i386) format.
*/
@@ -110,7 +108,6 @@ wxUint16 wxUINT16_SWAP_ON_BE(wxUint16 value);
indicating that this function is deprecated (i.e. obsolete and planned to be
removed in the future) when it is used. Only Visual C++ 7 and higher and g++
compilers currently support this functionality.
Example of use:
@code
@@ -128,7 +125,6 @@ wxUint16 wxUINT16_SWAP_ON_BE(wxUint16 value);
which support it or its replacement for those that don't. It must be used to
preserve the value of a @c va_list object if you need to use it after
passing it to another function because it can be modified by the latter.
As with @c va_start, each call to @c wxVaCopy must have a matching
@c va_end.
*/

View File

@@ -61,8 +61,8 @@
@category{cmndlg}
@seealso
@ref overview_wxdialogoverview "wxDialog overview", wxFrame, @ref
overview_validatoroverview "Validator overview"
@ref overview_wxdialogoverview, wxFrame, @ref overview_validatoroverview
"Validator overview"
*/
class wxDialog : public wxTopLevelWindow
{
@@ -73,30 +73,25 @@ public:
@param parent
Can be @NULL, a frame or another dialog box.
@param id
An identifier for the dialog. A value of -1 is taken to mean a default.
@param title
The title of the dialog.
@param pos
The dialog position. The value wxDefaultPosition indicates a default position, chosen by
The dialog position. The value wxDefaultPosition indicates a default position,
chosen by
either the windowing system or wxWidgets, depending on platform.
@param size
The dialog size. The value wxDefaultSize indicates a default size, chosen by
either the windowing system or wxWidgets, depending on platform.
@param style
The window style. See wxDialog.
@param name
Used to associate a name with the window,
allowing the application user to set Motif resource values for
individual dialog boxes.
@sa Create()
@see Create()
*/
wxDialog();
wxDialog(wxWindow* parent, wxWindowID id,
@@ -115,7 +110,6 @@ public:
/**
Adds an identifier to be regarded as a main button for the non-scrolling area
of a dialog.
See also @ref overview_autoscrollingdialogs "Automatic scrolling dialogs" for
more on layout adaptation.
*/
@@ -125,7 +119,6 @@ public:
Returns @true if this dialog can and should perform layout adaptation using
DoLayoutAdaptation(), usually if
the dialog is too large to fit on the display.
See also @ref overview_autoscrollingdialogs "Automatic scrolling dialogs" for
more on layout adaptation.
*/
@@ -151,12 +144,10 @@ public:
const wxString& name = "dialogBox");
/**
Creates a sizer with standard buttons. @e flags is a bit list
Creates a sizer with standard buttons. @a flags is a bit list
of the following flags: wxOK, wxCANCEL, wxYES, wxNO, wxAPPLY, wxCLOSE,
wxHELP, wxNO_DEFAULT.
The sizer lays out the buttons in a manner appropriate to the platform.
This function uses CreateStdDialogButtonSizer()
internally for most platforms but doesn't create the sizer at all for the
platforms with hardware buttons (such as smartphones) for which it sets up the
@@ -169,7 +160,6 @@ public:
Creates a sizer with standard buttons using
CreateButtonSizer() separated from the rest
of the dialog contents by a horizontal wxStaticLine.
Please notice that just like CreateButtonSizer() this function may return @c
@NULL
if no buttons were created.
@@ -177,10 +167,9 @@ public:
wxSizer* CreateSeparatedButtonSizer(long flags);
/**
Creates a wxStdDialogButtonSizer with standard buttons. @e flags is a bit list
Creates a wxStdDialogButtonSizer with standard buttons. @a flags is a bit list
of the following flags: wxOK, wxCANCEL, wxYES, wxNO, wxAPPLY, wxCLOSE,
wxHELP, wxNO_DEFAULT.
The sizer lays out the buttons in a manner appropriate to the platform.
*/
wxStdDialogButtonSizer* CreateStdDialogButtonSizer(long flags);
@@ -188,7 +177,6 @@ public:
/**
Performs layout adaptation, usually if the dialog is too large to fit on the
display.
See also @ref overview_autoscrollingdialogs "Automatic scrolling dialogs" for
more on layout adaptation.
*/
@@ -201,11 +189,10 @@ public:
wxWidgets
will call Close() for the dialog.
*/
#define virtual bool DoOK() /* implementation is private */
virtual bool DoOK();
/**
A static function enabling or disabling layout adaptation for all dialogs.
See also @ref overview_autoscrollingdialogs "Automatic scrolling dialogs" for
more on layout adaptation.
*/
@@ -218,7 +205,7 @@ public:
@param retCode
The value that should be returned by ShowModal.
@sa ShowModal(), GetReturnCode(), SetReturnCode()
@see ShowModal(), GetReturnCode(), SetReturnCode()
*/
void EndModal(int retCode);
@@ -226,7 +213,7 @@ public:
Gets the identifier of the button which works like standard OK button in this
dialog.
@sa SetAffirmativeId()
@see SetAffirmativeId()
*/
int GetAffirmativeId();
@@ -244,14 +231,13 @@ public:
Gets the identifier of the button to map presses of @c ESC
button to.
@sa SetEscapeId()
@see SetEscapeId()
*/
int GetEscapeId();
/**
Returns @true if the dialog has been adapted, usually by making it scrollable
to work with a small display.
See also @ref overview_autoscrollingdialogs "Automatic scrolling dialogs" for
more on layout adaptation.
*/
@@ -262,7 +248,6 @@ public:
to be in the non-scrolling part of a layout-adapted dialog.
Zero switches off adaptation, and 3 allows search for standard buttons anywhere
in the dialog.
See also @ref overview_autoscrollingdialogs "Automatic scrolling dialogs" for
more on layout adaptation.
*/
@@ -270,7 +255,6 @@ public:
/**
Gets the adaptation mode, overriding the global adaptation flag.
See also SetLayoutAdaptationMode() and @ref overview_autoscrollingdialogs
"Automatic scrolling dialogs".
*/
@@ -278,7 +262,6 @@ public:
/**
A static function getting the current layout adapter object.
See also @ref overview_autoscrollingdialogs "Automatic scrolling dialogs" for
more on layout adaptation.
*/
@@ -287,7 +270,6 @@ public:
/**
Returns an array of identifiers to be regarded as the main buttons for the
non-scrolling area of a dialog.
See also @ref overview_autoscrollingdialogs "Automatic scrolling dialogs" for
more on layout adaptation.
*/
@@ -299,7 +281,7 @@ public:
@remarks A return code is normally associated with a modal dialog, where
ShowModal() returns a code to the application.
@sa SetReturnCode(), ShowModal(), EndModal()
@see SetReturnCode(), ShowModal(), EndModal()
*/
int GetReturnCode();
@@ -308,7 +290,6 @@ public:
GetToolBar
allows you to access the toolbar and add tools to it. Removing tools and adding
arbitrary controls are not currently supported.
This function is not available on any other platform.
*/
wxToolBar* GetToolBar();
@@ -339,16 +320,14 @@ public:
/**
A static function returning @true if layout adaptation is enabled for all
dialogs.
See also @ref overview_autoscrollingdialogs "Automatic scrolling dialogs" for
more on layout adaptation.
*/
static bool IsLayoutAdaptationEnabled();
/**
Returns @true if @e id is in the array of identifiers to be regarded as the
Returns @true if @a id is in the array of identifiers to be regarded as the
main buttons for the non-scrolling area of a dialog.
See also @ref overview_autoscrollingdialogs "Automatic scrolling dialogs" for
more on layout adaptation.
*/
@@ -367,13 +346,13 @@ public:
@remarks Changes the dialog's colour to conform to the current settings
(Windows only). Add an event table entry for your
dialog class if you wish the behaviour to be
different (such as keeping a user-defined background
colour). If you do override this function, call
wxEvent::Skip to propagate the notification to child
windows and controls.
dialog class if you wish the behaviour to be different
(such as keeping a user-defined background colour). If
you do override this function, call wxEvent::Skip to
propagate the notification to child windows and
controls.
@sa wxSysColourChangedEvent
@see wxSysColourChangedEvent
*/
void OnSysColourChanged(wxSysColourChangedEvent& event);
@@ -383,14 +362,12 @@ public:
and wxWindow::TransferDataFromWindow
and, if they both return @true, closes the dialog with @c wxID_OK return
code.
Also, when the user presses a hardware OK button on the devices having one or
the special OK button in the PocketPC title bar, an event with this id is
generated.
By default, the affirmative id is wxID_OK.
@sa GetAffirmativeId(), SetEscapeId()
@see GetAffirmativeId(), SetEscapeId()
*/
void SetAffirmativeId(int id);
@@ -400,11 +377,10 @@ public:
clicked, the dialog is closed. Also, when the user presses @c ESC
key in the dialog or closes the dialog using the close button in the title bar,
this is mapped to the click of the button with the specified id.
By default, the escape id is the special value @c wxID_ANY meaning that
@c wxID_CANCEL button is used if it's present in the dialog and
otherwise the button with GetAffirmativeId()
is used. Another special value for @e id is @c wxID_NONE meaning that
is used. Another special value for @a id is @c wxID_NONE meaning that
@c ESC presses should be ignored. If any other value is given, it
is interpreted as the id of the button to map the escape key to.
*/
@@ -429,7 +405,6 @@ public:
/**
Marks the dialog as having been adapted, usually by making it scrollable to
work with a small display.
See also @ref overview_autoscrollingdialogs "Automatic scrolling dialogs" for
more on layout adaptation.
*/
@@ -440,15 +415,15 @@ public:
non-scrolling part of a layout-adapted dialog.
Zero switches off adaptation, and 3 allows search for standard buttons anywhere
in the dialog.
See also @ref overview_autoscrollingdialogs "Automatic scrolling dialogs" for
more on layout adaptation.
*/
void SetLayoutAdaptationLevel(int level);
/**
Sets the adaptation mode, overriding the global adaptation flag. @e mode may be
Sets the adaptation mode, overriding the global adaptation flag. @a mode may be
one of the following values:
See also @ref overview_autoscrollingdialogs "Automatic scrolling dialogs" for
more on layout adaptation.
*/
@@ -458,7 +433,6 @@ public:
A static function for setting the current layout adapter object, returning the
old adapter. If you call this, you should
delete the old adapter object.
See also wxDialogLayoutAdapter and @ref overview_autoscrollingdialogs
"Automatic scrolling dialogs".
*/
@@ -467,7 +441,6 @@ public:
/**
@b NB: This function is deprecated and doesn't work for all ports, just use
ShowModal() to show a modal dialog instead.
Allows the programmer to specify whether the dialog box is modal (Show() blocks
control
until the dialog is hidden) or modeless (control returns immediately).
@@ -484,11 +457,10 @@ public:
The integer return code, usually a control identifier.
@remarks A return code is normally associated with a modal dialog, where
ShowModal() returns a code to the
application. The function EndModal() calls
SetReturnCode.
ShowModal() returns a code to the application.
The function EndModal() calls SetReturnCode.
@sa GetReturnCode(), ShowModal(), EndModal()
@see GetReturnCode(), ShowModal(), EndModal()
*/
void SetReturnCode(int retCode);

View File

@@ -43,10 +43,9 @@ public:
/**
Cancel dialing the number initiated with Dial()
with async parameter equal to @true.
Note that this won't result in DISCONNECTED event being sent.
@sa IsDialing()
@see IsDialing()
*/
bool CancelDialing();
@@ -58,28 +57,24 @@ public:
wxDialUpManager* Create();
/**
Dial the given ISP, use @e username and @e password to authenticate.
Dial the given ISP, use @a username and @a password to authenticate.
The parameters are only used under Windows currently, for Unix you should use
SetConnectCommand() to customize this
functions behaviour.
If no @e nameOfISP is given, the function will select the default one
If no @a nameOfISP is given, the function will select the default one
(proposing the user to choose among all connections defined on this machine)
and if no username and/or password are given, the function will try to do
without them, but will ask the user if really needed.
If @e async parameter is @false, the function waits until the end of dialing
If @a async parameter is @false, the function waits until the end of dialing
and returns @true upon successful completion.
If @e async is @true, the function only initiates the connection and
If @a async is @true, the function only initiates the connection and
returns immediately - the result is reported via events (an event is sent
anyhow, but if dialing failed it will be a DISCONNECTED one).
*/
bool Dial(const wxString& nameOfISP = wxEmptyString,
const wxString& username = wxEmptyString,
const wxString& password = wxEmptyString,
bool async = @true);
bool async = true);
/**
Disable automatic check for connection status change - notice that the
@@ -94,14 +89,12 @@ public:
often should we repeat the check (each minute by default). Under Windows, the
notification about the change of connection status is sent by the system and so
we don't do any polling and this parameter is ignored.
Returns @false if couldn't set up automatic check for online status.
*/
bool EnableAutoCheckOnlineStatus(size_t nSeconds = 60);
/**
This function is only implemented under Windows.
Fills the array with the names of all possible values for the first
parameter to Dial() on this machine and returns
their number (may be 0).
@@ -116,7 +109,6 @@ public:
/**
Returns @true if the computer has a permanent network connection (i.e. is
on a LAN) and so there is no need to use Dial() function to go online.
@b NB: this functions tries to guess the result and it is not always
guaranteed to be correct, so it is better to ask user for
confirmation or give him a possibility to override it.
@@ -126,7 +118,7 @@ public:
/**
Returns @true if (async) dialing is in progress.
@sa Dial()
@see Dial()
*/
bool IsDialing();
@@ -136,7 +128,7 @@ public:
good idea to call this function and check its result before calling any other
wxDialUpManager methods
*/
#define bool IsOk() /* implementation is private */
bool IsOk();
/**
Returns @true if the computer is connected to the network: under Windows,
@@ -148,9 +140,7 @@ public:
/**
, @b const wxString&@e commandHangup = wxT("/usr/bin/poff"))
This method is for Unix only.
Sets the commands to start up the network and to hang up again.
*/
void SetConnectCommand();
@@ -161,13 +151,12 @@ public:
allows to forcefully set the online status - whatever our internal
algorithm may think about it.
@sa IsOnline()
@see IsOnline()
*/
void SetOnlineStatus(bool isOnline = @true);
void SetOnlineStatus(bool isOnline = true);
/**
This method is for Unix only.
Under Unix, the value of well-known host is used to check whether we're
connected to the internet. It is unused under Windows, but this function
is always safe to call. The default value is @c www.yahoo.com:80.

View File

@@ -55,7 +55,6 @@ public:
to abort traversing completely, @c wxDIR_IGNORE to skip this directory but
continue with others or @c wxDIR_CONTINUE to enumerate all files and
subdirectories in this directory.
This is a pure virtual function and must be implemented in the derived class.
*/
virtual wxDirTraverseResult OnDir(const wxString& dirname);
@@ -64,7 +63,6 @@ public:
This function is called for each file. It may return @c wxDIR_STOP to abort
traversing (for example, if the file being searched is found) or
@c wxDIR_CONTINUE to proceed.
This is a pure virtual function and must be implemented in the derived class.
*/
virtual wxDirTraverseResult OnFile(const wxString& filename);
@@ -74,7 +72,6 @@ public:
enumerating. It may return @c wxSIR_STOP to abort traversing completely,
@c wxDIR_IGNORE to skip this directory but continue with others or
@c wxDIR_CONTINUE to retry opening this directory once again.
The base class version always returns @c wxDIR_IGNORE.
*/
virtual wxDirTraverseResult OnOpenError(const wxString& openerrorname);
@@ -147,13 +144,11 @@ public:
/**
The function returns the path of the first file matching the given @e filespec
or an empty string if there are no files matching it.
The @e flags parameter may or may not include @c wxDIR_FILES, the
function always behaves as if it were specified. By default, @e flags
The @a flags parameter may or may not include @c wxDIR_FILES, the
function always behaves as if it were specified. By default, @a flags
includes @c wxDIR_DIRS and so the function recurses into the subdirectories
but if this flag is not specified, the function restricts the search only to
the directory @e dirname itself.
the directory @a dirname itself.
See also: Traverse()
*/
static wxString FindFirst(const wxString& dirname,
@@ -161,14 +156,12 @@ public:
int flags = wxDIR_DEFAULT);
/**
The function appends the names of all the files under directory @e dirname
to the array @e files (note that its old content is preserved). Only files
matching the @e filespec are taken, with empty spec matching all the files.
The @e flags parameter should always include @c wxDIR_FILES or the array
The function appends the names of all the files under directory @a dirname
to the array @a files (note that its old content is preserved). Only files
matching the @a filespec are taken, with empty spec matching all the files.
The @a flags parameter should always include @c wxDIR_FILES or the array
would be unchanged and should include @c wxDIR_DIRS flag to recurse into
subdirectories (both flags are included in the value by default).
See also: Traverse()
*/
static size_t GetAllFiles(const wxString& dirname,
@@ -177,7 +170,7 @@ public:
int flags = wxDIR_DEFAULT);
/**
Start enumerating all files matching @e filespec (or all files if it is
Start enumerating all files matching @a filespec (or all files if it is
empty) and @e flags, return @true on success.
*/
bool GetFirst(wxString* filename,
@@ -199,7 +192,6 @@ public:
/**
Returns the size (in bytes) of all files recursively found in @c dir or
@c wxInvalidSize in case of error.
In case it happens that while traversing folders a file's size can not be read,
that file is added to the @c filesSkipped array, if not @NULL, and then
skipped.
@@ -210,16 +202,15 @@ public:
then the returned value is not 100% accurate and, if the skipped files were
big, it could be
far from real size of the directory.
See also: wxFileName::GetHumanReadableSize,
wxGetDiskSpace
*/
static wxULongLong GetTotalSize(const wxString& dir,
wxArrayString* filesSkipped = @NULL);
wxArrayString* filesSkipped = NULL);
/**
Returns @true if the directory contains any files matching the given
@e filespec. If @e filespec is empty, look for any files at all. In any
@e filespec. If @a filespec is empty, look for any files at all. In any
case, even hidden files are taken into account.
*/
bool HasFiles(const wxString& filespec = wxEmptyString);
@@ -247,19 +238,15 @@ public:
Enumerate all files and directories under the given directory recursively
calling the element of the provided wxDirTraverser
object for each of them.
More precisely, the function will really recurse into subdirectories if
@e flags contains @c wxDIR_DIRS flag. It will ignore the files (but
@a flags contains @c wxDIR_DIRS flag. It will ignore the files (but
still possibly recurse into subdirectories) if @c wxDIR_FILES flag is
given.
For each found directory, @ref wxDirTraverser::ondir sink.OnDir is called
and @ref wxDirTraverser::onfile sink.OnFile is called for every file.
Depending on the return value, the enumeration may continue or stop.
The function returns the total number of files found or @c (size_t)-1 on
error.
See also: GetAllFiles()
*/
size_t Traverse(wxDirTraverser& sink,

View File

@@ -29,32 +29,23 @@ public:
@param parent
Parent window.
@param id
Window identifier.
@param dir
Initial folder.
@param pos
Position.
@param size
Size.
@param style
Window style. Please see wxGenericDirCtrl for a list of possible styles.
@param filter
A filter string, using the same syntax as that for wxFileDialog. This may be
empty if filters
A filter string, using the same syntax as that for wxFileDialog. This may
be empty if filters
are not being used.
Example: "All files (*.*)|*.*|JPEG files (*.jpg)|*.jpg"
@param defaultFilter
The zero-indexed default filter setting.
@param name
The window name.
*/
@@ -109,7 +100,6 @@ public:
/**
Gets selected filename path only (else empty string).
This function doesn't count a directory as a selection.
*/
wxString GetFilePath();

View File

@@ -41,22 +41,16 @@ public:
@param parent
Parent window.
@param message
Message to show on the dialog.
@param defaultPath
The default path, or the empty string.
@param style
The dialog style. See wxDirDialog
@param pos
Dialog position. Ignored under Windows.
@param size
Dialog size. Ignored under Windows.
@param name
The dialog name, not used.
*/
@@ -109,9 +103,9 @@ public:
Pops up a directory selector dialog. The arguments have the same meaning as
those of wxDirDialog::wxDirDialog(). The message is displayed at the top,
and the default_path, if specified, is set as the initial selection.
The application must check for an empty return value (if the user pressed
Cancel). For example:
@code
const wxString& dir = wxDirSelector("Choose a folder");
if ( !dir.empty() )
@@ -124,5 +118,5 @@ wxString wxDirSelector(const wxString& message = wxDirSelectorPromptStr,
const wxString& default_path = "",
long style = 0,
const wxPoint& pos = wxDefaultPosition,
wxWindow * parent = @NULL);
wxWindow* parent = NULL);

View File

@@ -38,14 +38,12 @@ public:
/**
Changes the video mode of this display to the mode specified
in the mode parameter.
If wxDefaultVideoMode is passed in as the mode parameter,
the defined behaviour is that wxDisplay will reset the video
mode to the default mode used by the display. On Windows,
the behavior is normal. However, there are differences on other
platforms. On Unix variations using X11 extensions it should
behave as defined, but some irregularities may occur.
On wxMac passing in wxDefaultVideoMode as the mode
parameter does nothing. This happens because carbon
no longer has access to DMUseScreenPrefs, an undocumented
@@ -88,10 +86,8 @@ public:
/**
Returns the index of the display on which the given window lies.
If the window is on more than one display it gets the display that overlaps the
window the most.
Returns @c wxNOT_FOUND if the window is not on any connected display.
@param win

View File

@@ -16,8 +16,7 @@
@category{dnd}
@seealso
@ref overview_wxdndoverview "Drag and drop overview", wxDropSource,
wxDropTarget, wxFileDropTarget
@ref overview_wxdndoverview, wxDropSource, wxDropTarget, wxFileDropTarget
*/
class wxTextDropTarget : public wxDropTarget
{
@@ -38,10 +37,8 @@ public:
@param x
The x coordinate of the mouse.
@param y
The y coordinate of the mouse.
@param data
The data being dropped: a wxString.
*/
@@ -70,8 +67,7 @@ public:
wxDropTarget::OnEnter, possibly many times wxDropTarget::OnDragOver,
wxDropTarget::OnDrop and finally wxDropTarget::OnData.
See @ref overview_wxdndoverview "Drag and drop overview" and @ref
overview_wxdataobjectoverview "wxDataObject overview"
See @ref overview_wxdndoverview and @ref overview_wxdataobjectoverview
for more information.
@library{wxcore}
@@ -84,9 +80,9 @@ class wxDropTarget
{
public:
/**
Constructor. @e data is the data to be associated with the drop target.
Constructor. @a data is the data to be associated with the drop target.
*/
wxDropTarget(wxDataObject* data = @NULL);
wxDropTarget(wxDataObject* data = NULL);
/**
Destructor. Deletes the associated data object, if any.
@@ -115,10 +111,8 @@ public:
@param x
The x coordinate of the mouse.
@param y
The y coordinate of the mouse.
@param def
Suggested value for return value. Determined by SHIFT or CONTROL key states.
@@ -135,7 +129,6 @@ public:
@param x
The x coordinate of the mouse.
@param y
The y coordinate of the mouse.
@@ -149,12 +142,11 @@ public:
@param x
The x coordinate of the mouse.
@param y
The y coordinate of the mouse.
@param def
Suggested default for return value. Determined by SHIFT or CONTROL key states.
Suggested default for return value. Determined by SHIFT or CONTROL key
states.
@returns Returns the desired operation or wxDragNone. This is used for
optical feedback from the side of the drop source,
@@ -182,8 +174,7 @@ public:
This class represents a source for a drag and drop operation.
See @ref overview_wxdndoverview "Drag and drop overview" and @ref
overview_wxdataobjectoverview "wxDataObject overview"
See @ref overview_wxdndoverview and @ref overview_wxdataobjectoverview
for more information.
@library{wxcore}
@@ -198,32 +189,27 @@ public:
//@{
/**
The constructors for wxDataObject.
If you use the constructor without @e data parameter you must call
If you use the constructor without @a data parameter you must call
SetData() later.
Note that the exact type of @e iconCopy and subsequent parameters differs
Note that the exact type of @a iconCopy and subsequent parameters differs
between wxMSW and wxGTK: these are cursors under Windows but icons for GTK.
You should use the macro wxDROP_ICON in portable
programs instead of directly using either of these types.
@param win
The window which initiates the drag and drop operation.
@param iconCopy
The icon or cursor used for feedback for copy operation.
@param iconMove
The icon or cursor used for feedback for move operation.
@param iconNone
The icon or cursor used for feedback when operation can't be done.
*/
wxDropSource(wxWindow* win = @NULL,
wxDropSource(wxWindow* win = NULL,
const wxIconOrCursor& iconCopy = wxNullIconOrCursor,
const wxIconOrCursor& iconMove = wxNullIconOrCursor,
const wxIconOrCursor& iconNone = wxNullIconOrCursor);
wxDropSource(wxDataObject& data, wxWindow* win = @NULL,
wxDropSource(wxDataObject& data, wxWindow* win = NULL,
const wxIconOrCursor& iconCopy = wxNullIconOrCursor,
const wxIconOrCursor& iconMove = wxNullIconOrCursor,
const wxIconOrCursor& iconNone = wxNullIconOrCursor);
@@ -266,7 +252,6 @@ public:
@param effect
The effect to implement. One of wxDragCopy, wxDragMove, wxDragLink and
wxDragNone.
@param scrolling
@true if the window is scrolling. MSW only.
@@ -281,7 +266,6 @@ public:
@param res
The drag result to set the icon for.
@param cursor
The ion to show when this drag result occurs.
*/
@@ -306,8 +290,7 @@ public:
@category{dnd}
@seealso
@ref overview_wxdndoverview "Drag and drop overview", wxDropSource,
wxDropTarget, wxTextDropTarget
@ref overview_wxdndoverview, wxDropSource, wxDropTarget, wxTextDropTarget
*/
class wxFileDropTarget : public wxDropTarget
{
@@ -328,10 +311,8 @@ public:
@param x
The x coordinate of the mouse.
@param y
The y coordinate of the mouse.
@param filenames
An array of filenames.
*/
@@ -348,7 +329,6 @@ public:
This macro creates either a cursor (MSW) or an icon (elsewhere) with the given
name. Under MSW, the cursor is loaded from the resource file and the icon is
loaded from XPM file under other platforms.
This macro should be used with
@ref wxDropSource::wxdropsource "wxDropSource constructor".
*/

View File

@@ -23,7 +23,7 @@
@category{FIXME}
@seealso
@ref overview_docviewoverview "Document/view overview", wxMDIParentFrame
@ref overview_docviewoverview, wxMDIParentFrame
*/
class wxDocMDIParentFrame : public wxMDIParentFrame
{
@@ -60,7 +60,6 @@ public:
/**
Deletes all views and documents. If no user input cancelled the
operation, the frame will be destroyed and the application will exit.
Since understanding how document/view clean-up takes place can be difficult,
the implementation of this function is shown below.
*/
@@ -85,7 +84,7 @@ public:
@category{FIXME}
@seealso
@ref overview_docviewoverview "Document/view overview", wxMDIChildFrame
@ref overview_docviewoverview, wxMDIChildFrame
*/
class wxDocMDIChildFrame : public wxMDIChildFrame
{
@@ -141,14 +140,12 @@ public:
/**
wxDocument* m_childDocument
The document associated with the frame.
*/
/**
wxView* m_childView
The view associated with the frame.
*/
};

View File

@@ -26,64 +26,49 @@ public:
Constructor. Create instances dynamically near the start of your application
after creating
a wxDocManager instance, and before doing any document or view operations.
@e manager is the document manager object which manages this template.
@e descr is a short description of what the template is for. This string will
@a manager is the document manager object which manages this template.
@a descr is a short description of what the template is for. This string will
be displayed in the
file filter list of Windows file selectors.
@e filter is an appropriate file filter such as @c *.txt.
@e dir is the default directory to use for file selectors.
@e ext is the default file extension (such as txt).
@e docTypeName is a name that should be unique for a given type of document,
@a filter is an appropriate file filter such as @c *.txt.
@a dir is the default directory to use for file selectors.
@a ext is the default file extension (such as txt).
@a docTypeName is a name that should be unique for a given type of document,
used for
gathering a list of views relevant to a particular document.
@e viewTypeName is a name that should be unique for a given view.
@e docClassInfo is a pointer to the run-time document class information as
@a viewTypeName is a name that should be unique for a given view.
@a docClassInfo is a pointer to the run-time document class information as
returned
by the CLASSINFO macro, e.g. CLASSINFO(MyDocumentClass). If this is not
supplied,
you will need to derive a new wxDocTemplate class and override the
CreateDocument
member to return a new document instance on demand.
@e viewClassInfo is a pointer to the run-time view class information as returned
@a viewClassInfo is a pointer to the run-time view class information as returned
by the CLASSINFO macro, e.g. CLASSINFO(MyViewClass). If this is not supplied,
you will need to derive a new wxDocTemplate class and override the CreateView
member to return a new view instance on demand.
@e flags is a bit list of the following:
@a flags is a bit list of the following:
wxTEMPLATE_VISIBLE The template may be displayed to the user in dialogs.
wxTEMPLATE_INVISIBLE The template may not be displayed to the user in dialogs.
wxDEFAULT_TEMPLATE_FLAGS Defined as wxTEMPLATE_VISIBLE.
@b Wx::DocTemplate-new( docmgr, descr, filter, dir,
ext, docTypeName, viewTypeName, docClassInfo, viewClassInfo, flags
)
will construct document and view objects from the class information
@b Wx::DocTemplate-new( docmgr, descr, filter, dir,
ext, docTypeName, viewTypeName, docClassName, viewClassName, flags
)
will construct document and view objects from perl packages
@b Wx::DocTemplate-new( docmgr, descr, filter, dir,
ext, docTypeName, viewTypeName )
@c Wx::DocTemplate::CreateDocument() and
@c Wx::DocTemplate::CreateView() must be overridden
*/
@@ -93,8 +78,8 @@ public:
const wxString& ext,
const wxString& docTypeName,
const wxString& viewTypeName,
wxClassInfo* docClassInfo = @NULL,
wxClassInfo* viewClassInfo = @NULL,
wxClassInfo* docClassInfo = NULL,
wxClassInfo* viewClassInfo = NULL,
long flags = wxDEFAULT_TEMPLATE_FLAGS);
/**
@@ -108,7 +93,6 @@ public:
a wxClassInfo parameter to the template constructor, you will need to override
this
function to return an appropriate document instance.
This function calls InitDocument() which in turns
calls wxDocument::OnCreate.
*/
@@ -213,28 +197,24 @@ public:
/**
wxString m_defaultExt
The default extension for files of this type.
*/
/**
wxString m_description
A short description of this template.
*/
/**
wxString m_directory
The default directory for files of this type.
*/
/**
wxClassInfo* m_docClassInfo
Run-time class information that allows document instances to be constructed
dynamically.
*/
@@ -242,35 +222,30 @@ public:
/**
wxString m_docTypeName
The named type of the document associated with this template.
*/
/**
wxDocTemplate* m_documentManager
A pointer to the document manager for which this template was created.
*/
/**
wxString m_fileFilter
The file filter (such as @c *.txt) to be used in file selector dialogs.
*/
/**
long m_flags
The flags passed to the constructor.
*/
/**
wxClassInfo* m_viewClassInfo
Run-time class information that allows view instances to be constructed
dynamically.
*/
@@ -278,7 +253,6 @@ public:
/**
wxString m_viewTypeName
The named type of the view associated with this template.
*/
};
@@ -307,10 +281,8 @@ public:
Constructor. Create a document manager instance dynamically near the start of
your application
before doing any document or view operations.
@e flags is currently unused.
If @e initialize is @true, the Initialize() function will be called
@a flags is currently unused.
If @a initialize is @true, the Initialize() function will be called
to create a default history list object. If you derive from wxDocManager, you
may wish to call the
base constructor with @false, and then call Initialize in your own constructor,
@@ -318,7 +290,7 @@ public:
your own Initialize or OnCreateFileHistory functions to be called.
*/
wxDocManager(long flags = wxDEFAULT_DOCMAN_FLAGS,
bool initialize = @true);
bool initialize = true);
/**
Destructor.
@@ -328,7 +300,7 @@ public:
/**
Sets the current view.
*/
void ActivateView(wxView* doc, bool activate = @true);
void ActivateView(wxView* doc, bool activate = true);
/**
Adds the document to the list of documents.
@@ -349,15 +321,13 @@ public:
/**
Closes all currently opened documents.
*/
bool CloseDocuments(bool force = @true);
bool CloseDocuments(bool force = true);
/**
Creates a new document in a manner determined by the @e flags parameter, which
Creates a new document in a manner determined by the @a flags parameter, which
can be:
wxDOC_NEW Creates a fresh document.
wxDOC_SILENT Silently loads the given document file.
If wxDOC_NEW is present, a new document will be created and returned, possibly
after
asking the user for a template to use if there is more than one document
@@ -368,7 +338,6 @@ public:
a file selector for the file to load, and the template to use will be
determined by the
extension (Windows) or by popping up a template choice list (other platforms).
If the maximum number of documents has been reached, this function
will delete the oldest currently loaded document before creating a new one.
*/
@@ -399,7 +368,7 @@ public:
/**
Loads the file history from a config object.
@sa wxConfig
@see wxConfig
*/
void FileHistoryLoad(wxConfigBase& config);
@@ -413,7 +382,7 @@ public:
Saves the file history into a config object. This must be called
explicitly by the application.
@sa wxConfig
@see wxConfig
*/
void FileHistorySave(wxConfigBase& resourceFile);
@@ -421,7 +390,6 @@ public:
Use this menu for appending recently-visited document filenames, for convenient
access. Calling this function with a valid menu pointer enables the history
list functionality.
Note that you can add multiple menus using this function, to be managed by the
file history object.
*/
@@ -484,7 +452,6 @@ public:
vetoed by passing @false to the second argument, allowing the derived class's
constructor to call Initialize, possibly calling a different OnCreateFileHistory
from the default.
The bottom line: if you're not deriving from Initialize, forget it and
construct wxDocManager with no arguments.
*/
@@ -550,13 +517,10 @@ public:
Under Windows, pops up a file selector with a list of filters corresponding to
document templates.
The wxDocTemplate corresponding to the selected file's extension is returned.
On other platforms, if there is more than one document template a choice list
is popped up,
followed by a file selector.
This function is used in CreateDocument().
(doctemplate, path) = My::DocManager-SelectDocumentPath( ... );
*/
wxDocTemplate* SelectDocumentPath(wxDocTemplate** templates,
@@ -572,19 +536,18 @@ public:
@param templates
Pointer to an array of templates from which to choose a desired template.
@param noTemplates
Number of templates being pointed to by the templates pointer.
@param sort
If more than one template is passed in in templates,
then this parameter indicates whether the list of templates that the user
will have to choose from is sorted or not when shown the choice box dialog.
Default is @false.
*/
wxDocTemplate* SelectDocumentType(wxDocTemplate** templates,
int noTemplates,
bool sort=@false);
bool sort = false);
/**
Returns a document template by asking the user (if there is more than one
@@ -596,19 +559,18 @@ public:
@param templates
Pointer to an array of templates from which to choose a desired template.
@param noTemplates
Number of templates being pointed to by the templates pointer.
@param sort
If more than one template is passed in in templates,
then this parameter indicates whether the list of templates that the user
will have to choose from is sorted or not when shown the choice box dialog.
Default is @false.
*/
wxDocTemplate* SelectViewType(wxDocTemplate** templates,
int noTemplates,
bool sort=@false);
bool sort = false);
/**
Sets the directory to be displayed to the user when opening a file. Initially
@@ -628,28 +590,24 @@ public:
/**
wxView* m_currentView
The currently active view.
*/
/**
int m_defaultDocumentNameCounter
Stores the integer to be used for the next default document name.
*/
/**
wxList m_docs
A list of all documents.
*/
/**
wxFileHistory* m_fileHistory
A pointer to an instance of wxFileHistory,
which manages the history of recently-visited files on the File menu.
*/
@@ -657,21 +615,18 @@ public:
/**
long m_flags
Stores the flags passed to the constructor.
*/
/**
The directory last selected by the user when opening a file.
wxFileHistory* m_fileHistory
*/
/**
int m_maxDocsOpen
Stores the maximum number of documents that can be opened before
existing documents are closed. By default, this is 10,000.
*/
@@ -717,20 +672,18 @@ public:
need to
call this function from any place where you know the view must
be active, and the framework will need to get the current view.
The prepackaged view frame wxDocChildFrame calls Activate() from its OnActivate
member.
This function calls OnActivateView().
*/
virtual void Activate(bool activate);
/**
Closes the view by calling OnClose. If @e deleteWindow is @true, this function
Closes the view by calling OnClose. If @a deleteWindow is @true, this function
should
delete the window associated with the view.
*/
virtual bool Close(bool deleteWindow = @true);
virtual bool Close(bool deleteWindow = true);
/**
Gets a pointer to the document associated with the view.
@@ -777,7 +730,7 @@ public:
may wish to do some cleaning up operations in this function, @e if a
call to wxDocument::Close succeeded. For example, if your views
all share the same window, you need to disassociate the window from the view
and perhaps clear the window. If @e deleteWindow is @true, delete the
and perhaps clear the window. If @a deleteWindow is @true, delete the
frame associated with the view.
*/
virtual bool OnClose(bool deleteWindow);
@@ -795,7 +748,6 @@ public:
wxDocChildFrame
or a derived class. This wxDocChildFrame provides user interface
elements to view and/or edit the contents of the wxDocument.
By default, simply returns @true. If the function returns @false, the
view will be deleted.
*/
@@ -805,10 +757,8 @@ public:
If the printing framework is enabled in the library, this function returns a
wxPrintout object for the purposes of printing. It should create a new object
every time it is called; the framework will delete objects it creates.
By default, this function returns an instance of wxDocPrintout, which prints
and previews one page by calling OnDraw().
Override to return an instance of a class other than wxDocPrintout.
*/
virtual wxPrintout* OnCreatePrintout();
@@ -819,10 +769,10 @@ public:
virtual void OnDraw(wxDC* dc);
/**
Called when the view should be updated. @e sender is a pointer to the view
Called when the view should be updated. @a sender is a pointer to the view
that sent the update request, or @NULL if no single view requested the update
(for instance,
when the document is opened). @e hint is as yet unused but may in future contain
when the document is opened). @a hint is as yet unused but may in future contain
application-specific information for making updating more efficient.
*/
virtual void OnUpdate(wxView* sender, wxObject* hint);
@@ -836,7 +786,6 @@ public:
/**
Sets the frame associated with this view. The application should call this
if possible, to tell the view about the frame.
See GetFrame() for the explanation about the mismatch
between the "Frame'' in the method name and the type of its parameter.
*/
@@ -849,7 +798,6 @@ public:
/**
wxDocument* m_viewDocument
The document associated with this view. There may be more than one view per
document, but there can never be more than one document for one view.
*/
@@ -857,14 +805,12 @@ public:
/**
wxFrame* m_viewFrame
Frame associated with the view, if any.
*/
/**
wxString m_viewTypeName
The view type name given to the wxDocTemplate constructor, copied to this
variable when the view is created. Not currently used by the framework.
*/
@@ -888,7 +834,7 @@ public:
@category{dvf}
@seealso
@ref overview_docviewoverview "Document/view overview", wxFrame
@ref overview_docviewoverview, wxFrame
*/
class wxDocChildFrame : public wxFrame
{
@@ -943,14 +889,12 @@ public:
/**
wxDocument* m_childDocument
The document associated with the frame.
*/
/**
wxView* m_childView
The view associated with the frame.
*/
};
@@ -973,7 +917,7 @@ public:
@category{dvf}
@seealso
@ref overview_docviewoverview "Document/view overview", wxFrame
@ref overview_docviewoverview, wxFrame
*/
class wxDocParentFrame : public wxFrame
{
@@ -1015,7 +959,6 @@ public:
/**
Deletes all views and documents. If no user input cancelled the
operation, the frame will be destroyed and the application will exit.
Since understanding how document/view clean-up takes place can be difficult,
the implementation of this function is shown below.
*/
@@ -1079,7 +1022,6 @@ public:
/**
Returns a pointer to the command processor associated with this document.
See wxCommandProcessor.
*/
wxCommandProcessor* GetCommandProcessor();
@@ -1115,7 +1057,6 @@ public:
/**
A convenience function to get the first view for a document, because
in many cases a document will only have a single view.
See also: GetViews()
*/
wxView* GetFirstView();
@@ -1136,7 +1077,6 @@ public:
/**
Returns the list whose elements are the views on the document.
See also: GetFirstView()
*/
wxList GetViews();
@@ -1147,7 +1087,6 @@ public:
You may need to override this if your document view maintains its own
record of being modified (for example if using wxTextWindow to view and edit
the document).
See also Modify().
*/
virtual bool IsModified();
@@ -1157,7 +1096,6 @@ public:
Override this function and call it from your own LoadObject before
streaming your own data. LoadObject is called by the framework
automatically when the document contents need to be loaded.
Note that only one of these forms exists, depending on how wxWidgets
was configured.
*/
@@ -1171,7 +1109,6 @@ public:
You may need to override this if your document view maintains its own
record of being modified (for example if using wxTextWindow to view and edit
the document).
See also IsModified().
*/
virtual void Modify(bool modify);
@@ -1202,7 +1139,6 @@ public:
Override this function if you want a different (or no) command processor
to be created when the document is created. By default, it returns
an instance of wxCommandProcessor.
See wxCommandProcessor.
*/
virtual wxCommandProcessor* OnCreateCommandProcessor();
@@ -1262,7 +1198,6 @@ public:
Override this function and call it from your own SaveObject before
streaming your own data. SaveObject is called by the framework
automatically when the document contents need to be saved.
Note that only one of these forms exists, depending on how wxWidgets
was configured.
*/
@@ -1276,7 +1211,6 @@ public:
for its deletion. Normally you should not call this; override
OnCreateCommandProcessor
instead.
See wxCommandProcessor.
*/
virtual void SetCommandProcessor(wxCommandProcessor* processor);
@@ -1296,11 +1230,10 @@ public:
/**
Sets the filename for this document. Usually called by the framework.
If @e notifyViews is @true, wxView::OnChangeFilename is called for all views.
If @a notifyViews is @true, wxView::OnChangeFilename is called for all views.
*/
void SetFilename(const wxString& filename,
bool notifyViews = @false);
bool notifyViews = false);
/**
Sets the title for this document. The document title is used for an associated
@@ -1310,43 +1243,37 @@ public:
void SetTitle(const wxString& title);
/**
Updates all views. If @e sender is non-@NULL, does not update this view.
@e hint represents optional information to allow a view to optimize its update.
Updates all views. If @a sender is non-@NULL, does not update this view.
@a hint represents optional information to allow a view to optimize its update.
*/
void UpdateAllViews(wxView* sender = @NULL, wxObject* hint = @NULL);
void UpdateAllViews(wxView* sender = NULL, wxObject* hint = NULL);
/**
wxCommandProcessor* m_commandProcessor
A pointer to the command processor associated with this document.
*/
/**
wxString m_documentFile
Filename associated with this document ("" if none).
*/
/**
bool m_documentModified
@true if the document has been modified, @false otherwise.
*/
/**
wxDocTemplate * m_documentTemplate
A pointer to the template from which this document was created.
*/
/**
wxString m_documentTitle
Document title. The document title is used for an associated
frame (if any), and is usually constructed by the framework from
the filename.
@@ -1355,7 +1282,6 @@ public:
/**
wxString m_documentTypeName
The document type name given to the wxDocTemplate constructor, copied to this
variable when the document is created. If several document templates are
created that use the same document type, this variable is used in
@@ -1367,7 +1293,6 @@ public:
/**
wxList m_documentViews
List of wxView instances associated with this document.
*/
};
@@ -1398,8 +1323,7 @@ public:
/**
Constructor. Pass the maximum number of files that should be stored and
displayed.
@e idBase defaults to wxID_FILE1 and represents the id given to the first
@a idBase defaults to wxID_FILE1 and represents the id given to the first
history menu item. Since menu items can't share the same ID you should change
idBase (To one of your own defined IDs) when using more than one wxFileHistory
in your application.
@@ -1449,7 +1373,7 @@ public:
/**
Returns the list of menus that are managed by this file history object.
@sa UseMenu()
@see UseMenu()
*/
const wxList GetMenus();
@@ -1457,7 +1381,7 @@ public:
Loads the file history from the given config object. This function should be
called explicitly by the application.
@sa wxConfig
@see wxConfig
*/
void Load(wxConfigBase& config);
@@ -1475,7 +1399,7 @@ public:
Saves the file history into the given config object. This must be called
explicitly by the application.
@sa wxConfig
@see wxConfig
*/
void Save(wxConfigBase& config);
@@ -1495,7 +1419,6 @@ public:
/**
char** m_fileHistory
A character array of strings corresponding to the most recently opened
files.
*/
@@ -1503,21 +1426,18 @@ public:
/**
size_t m_fileHistoryN
The number of files stored in the history array.
*/
/**
size_t m_fileMaxFiles
The maximum number of files to be stored and displayed on the menu.
*/
/**
wxMenu* m_fileMenu
The file menu used to display the file history list (if enabled).
*/
};

View File

@@ -50,7 +50,6 @@ public:
//@{
/**
)
Constructs a drag image an optional cursor. This constructor is only available
for
wxGenericDragImage, and can be used when the application
@@ -59,22 +58,16 @@ public:
@param image
Icon or bitmap to be used as the drag image. The bitmap can
have a mask.
@param text
Text used to construct a drag image.
@param cursor
Optional cursor to combine with the image.
@param hotspot
This parameter is deprecated.
@param treeCtrl
Tree control for constructing a tree drag image.
@param listCtrl
List control for constructing a list drag image.
@param id
Tree or list control item id.
*/
@@ -96,43 +89,36 @@ public:
second
to specify the bounding area. This form is equivalent to using the first form,
but more convenient than working out the bounding rectangle explicitly.
You need to then call Show()
and Move() to show the image on the screen.
Call EndDrag() when the drag has finished.
Note that this call automatically calls CaptureMouse.
@param hotspot
The location of the drag position relative to the upper-left corner
of the image.
@param window
The window that captures the mouse, and within which the dragging
is limited unless fullScreen is @true.
@param boundingWindow
In the second form of the function, specifies the
area within which the drag occurs.
@param fullScreen
If @true, specifies that the drag will be visible over the full
screen, or over as much of the screen as is specified by rect. Note that the
mouse will
screen, or over as much of the screen as is specified by rect. Note that
the mouse will
still be captured in window.
@param rect
If non-@NULL, specifies the rectangle (in screen coordinates) that
bounds the dragging operation. Specifying this can make the operation more
efficient
by cutting down on the area under consideration, and it can also make a visual
difference
by cutting down on the area under consideration, and it can also make a
visual difference
since the drag is clipped to this area.
*/
bool BeginDrag(const wxPoint& hotspot, wxWindow* window,
bool fullScreen = @false,
wxRect* rect = @NULL);
bool fullScreen = false,
wxRect* rect = NULL);
bool BeginDrag(const wxPoint& hotspot, wxWindow* window,
wxWindow* boundingWindow);
//@}
@@ -140,7 +126,6 @@ public:
/**
Draws the image on the device context with top-left corner at the given
position.
This function is only available with wxGenericDragImage, to allow applications
to
draw their own image instead of using an actual bitmap. If you override this
@@ -151,7 +136,6 @@ public:
/**
Call this when the drag has finished.
Note that this call automatically calls ReleaseMouse.
*/
bool EndDrag();
@@ -160,7 +144,6 @@ public:
Returns the rectangle enclosing the image, assuming that the image is drawn
with its
top-left corner at the given point.
This function is available in wxGenericDragImage only, and may be overridden
(together with
wxDragImage::DoDrawImage) to provide a virtual drawing capability.
@@ -178,10 +161,8 @@ public:
Call this to move the image to a new position. The image will only be shown if
Show() has been called previously (for example
at the start of the drag).
@e pt is the position in client coordinates (relative to the window specified
@a pt is the position in client coordinates (relative to the window specified
in BeginDrag).
You can move the image either when the image is hidden or shown, but in general
dragging
will be smoother if you move the image when it is shown.
@@ -203,13 +184,11 @@ public:
graphic @e minus the objects to be dragged, and leave the window itself to be
updated
by the drag image. This can provide eerily smooth, flicker-free drag behaviour.
The default implementation copies the window contents to the backing bitmap. A
new
implementation will normally copy information from another source, such as from
its
own backing bitmap if it has one, or directly from internal data structures.
This function is available in wxGenericDragImage only.
*/
bool UpdateBackingFromWindow(wxDC& windowDC, wxMemoryDC& destDC,

View File

@@ -150,19 +150,17 @@
@category{FIXME}
@seealso
@ref overview_wxcontaineroverview "Container classes overview", wxListT,
wxVectorT
@ref overview_wxcontaineroverview, wxListT, wxVectorT
*/
class wxArray<T>
{
public:
//@{
/**
Appends the given number of @e copies of the @e item to the array
Appends the given number of @a copies of the @a item to the array
consisting of the elements of type @e T.
The first version is used with wxArray. The second is used with wxSortedArray,
returning the index where @e item is stored. The third and the
returning the index where @a item is stored. The third and the
fourth ones are used with wxObjArray. There is an important difference between
them: if you give a pointer to the array, it will take ownership of it, i.e.
will delete it when the item is deleted from the array. If you give a reference
@@ -171,10 +169,9 @@ public:
because the other array types never take ownership of their elements. Also note
that you cannot append more than one pointer as reusing it would lead to
deleting it twice (or more) and hence to a crash.
You may also use WX_APPEND_ARRAY macro to append all
elements of one array to another one but it is more efficient to use
@e copies parameter and modify the elements in place later if you plan to
@a copies parameter and modify the elements in place later if you plan to
append a lot of items.
*/
void Add(T item, size_t copies = 1);
@@ -184,12 +181,10 @@ public:
//@}
/**
Inserts the given @e item into the array in the specified @e index
Inserts the given @a item into the array in the specified @e index
position.
Be aware that you will set out the order of the array if you give a wrong
position.
This function is useful in conjunction with
wxArray::IndexForInsert for a common operation
of "insert only if not found".
@@ -235,7 +230,6 @@ public:
should avoid deleting wxObjArray through a wxBaseArray pointer (as you would
never use wxBaseArray anyhow it shouldn't be a problem) and that you should not
derive your own classes from the array classes.
@ref wxArray::ctordef "wxArray default constructor"
@ref wxArray::ctorcopy "wxArray copy constructors and assignment operators"
@@ -247,7 +241,6 @@ public:
//@{
/**
(T first, T second)@e compareFunction)
There is no default constructor for wxSortedArray classes - you must initialize
it
with a function to use for item comparison. It is a function which is passed
@@ -284,34 +277,29 @@ public:
/**
The first version of the function is for wxArray and wxObjArray, the second is
for wxSortedArray only.
Searches the element in the array, starting from either beginning or the end
depending on the value of @e searchFromEnd parameter. @c wxNOT_FOUND is
depending on the value of @a searchFromEnd parameter. @c wxNOT_FOUND is
returned if the element is not found, otherwise the index of the element is
returned.
Linear search is used for the wxArray and wxObjArray classes but binary search
in the sorted array is used for wxSortedArray (this is why searchFromEnd
parameter doesn't make sense for it).
@b NB: even for wxObjArray classes, the operator==() of the elements in the
array is @b not used by this function. It searches exactly the given
element in the array and so will only succeed if this element had been
previously added to the array, but fail even if another, identical, element is
in the array.
*/
int Index(T& item, bool searchFromEnd = @false);
int Index(T& item, bool searchFromEnd = false);
int Index(T& item);
//@}
/**
Search for a place to insert @e item into the sorted array (binary search).
Search for a place to insert @a item into the sorted array (binary search).
The index returned is just before the first existing item that is greater or
equal
(according to the compare function) to the given @e item.
You have to do extra work to know if the @e item already exists in array.
You have to do extra work to know if the @a item already exists in array.
This function is useful in conjunction with
wxArray::AddAt for a common operation
of "insert only if not found".
@@ -320,13 +308,11 @@ public:
//@{
/**
Insert the given number of @e copies of the @e item into the array before
the existing item @e n - thus, @e Insert(something, 0u) will insert an
Insert the given number of @a copies of the @a item into the array before
the existing item @a n - thus, @e Insert(something, 0u) will insert an
item in such way that it will become the first array element.
wxSortedArray doesn't have this function because inserting in wrong place
would break its sorted condition.
Please see wxArray::Add for explanation of the differences
between the overloaded versions of this function.
*/
@@ -341,10 +327,9 @@ public:
bool IsEmpty();
/**
Returns the item at the given position in the array. If @e index is out of
Returns the item at the given position in the array. If @a index is out of
bounds, an assert failure is raised in the debug builds but nothing special is
done in the release build.
The returned value is of type "reference to the array element type" for all of
the array classes.
*/
@@ -353,7 +338,6 @@ public:
/**
Returns the last element in the array, i.e. is the same as Item(GetCount() - 1).
An assert failure is raised in the debug mode if the array is empty.
The returned value is of type "reference to the array element type" for all of
the array classes.
*/
@@ -365,7 +349,6 @@ public:
least) forward declared for WX_DEFINE_ARRAY, WX_DEFINE_SORTED_ARRAY and
WX_DECLARE_OBJARRAY macros and must be fully declared before you use
WX_DEFINE_OBJARRAY macro.
WX_DEFINE_ARRAY
WX_DEFINE_EXPORTED_ARRAY
@@ -387,18 +370,17 @@ public:
WX_DEFINE_EXPORTED_OBJARRAY
WX_DEFINE_USER_EXPORTED_OBJARRAY
To slightly complicate the matters even further, the operator - defined by
default for the array iterators by these macros only makes sense if the array
element type is not a pointer itself and, although it still works, this
provokes warnings from some compilers and to avoid them you should use the
@c _PTR versions of the macros above. For example, to define an array of
pointers to @c double you should use:
Note that the above macros are generally only useful for
wxObject types. There are separate macros for declaring an array of a simple
type,
such as an int.
The following simple types are supported:
int
@@ -408,12 +390,9 @@ public:
size_t
double
To create an array of a simple type, simply append the type you want in CAPS to
the array definition.
For example, for an integer array, you'd use one of the following variants:
WX_DEFINE_ARRAY_INT
WX_DEFINE_EXPORTED_ARRAY_INT
@@ -441,7 +420,6 @@ public:
function can also be quite useful if you know in advance how many items you are
going to put in the array and will prevent the array code from reallocating the
memory more times than needed.
wxArray::Alloc
wxArray::Shrink
@@ -452,7 +430,6 @@ public:
Functions in this section return the total number of array elements and allow to
retrieve them - possibly using just the C array indexing [] operator which
does exactly the same as wxArray::Item method.
wxArray::GetCount
wxArray::IsEmpty
@@ -465,24 +442,25 @@ public:
/**
Removes an element from the array by value: the first item of the
array equal to @e item is removed, an assert failure will result from an
array equal to @a item is removed, an assert failure will result from an
attempt to remove an item which doesn't exist in the array.
When an element is removed from wxObjArray it is deleted by the array - use
Detach if you don't want this to happen. On the
other hand, when an object is removed from a wxArray nothing happens - you
should delete it manually if required:
See also WX_CLEAR_ARRAY macro which deletes all
elements of a wxArray (supposed to contain pointers).
*/
Remove(T item);
/**
Removes @e count elements starting at @e index from the array. When an
Removes @a count elements starting at @a index from the array. When an
element is removed from wxObjArray it is deleted by the array - use
Detach if you don't want this to happen. On
the other hand, when an object is removed from a wxArray nothing happens -
you should delete it manually if required:
See also WX_CLEAR_ARRAY macro which deletes all
elements of a wxArray (supposed to contain pointers).
*/
@@ -512,13 +490,12 @@ public:
/**
)
This function ensures that the number of array elements is at least
@e count. If the array has already @e count or more items, nothing is
@e count. If the array has already @a count or more items, nothing is
done. Otherwise, @c count - GetCount() elements are added and initialized to
the value @e defval.
@sa wxArray::GetCount
@see wxArray::GetCount
*/
void SetCount(size_t count);
@@ -532,19 +509,18 @@ public:
/**
The notation CMPFUNCT should be read as if we had the following declaration:
where @e T is the type of the array elements. I.e. it is a function returning
@e int which is passed two arguments of type @e T *.
Sorts the array using the specified compare function: this function should
return a negative, zero or positive value according to whether the first element
passed to it is less than, equal to or greater than the second one.
wxSortedArray doesn't have this function because it is always sorted.
*/
void Sort(CMPFUNC<T> compareFunction);
/**
This macro may be used to append all elements of the @e other array to the
This macro may be used to append all elements of the @a other array to the
@e array. The two arrays must be of the same type.
*/
#define void WX_APPEND_ARRAY(wxArray& array, wxArray& other) /* implementation is private */
@@ -558,12 +534,12 @@ public:
//@{
/**
This macro declares a new object array class named @e name and containing
This macro declares a new object array class named @a name and containing
the elements of type @e T. The second form is used when compiling wxWidgets as
a DLL under Windows and array needs to be visible outside the DLL. The third is
needed for exporting an array from a user DLL.
Example:
You must use WX_DEFINE_OBJARRAY macro to define
the array class - otherwise you would get link errors.
*/
@@ -574,12 +550,12 @@ public:
//@{
/**
This macro defines a new array class named @e name and containing the
This macro defines a new array class named @a name and containing the
elements of type @e T. The second form is used when compiling wxWidgets as
a DLL under Windows and array needs to be visible outside the DLL. The third is
needed for exporting an array from a user DLL.
Example:
Note that wxWidgets predefines the following standard array classes: @b
wxArrayInt,
@b wxArrayLong, @b wxArrayShort, @b wxArrayDouble, @b wxArrayPtrVoid.
@@ -591,7 +567,7 @@ public:
//@{
/**
This macro defines the methods of the array class @e name not defined by the
This macro defines the methods of the array class @a name not defined by the
WX_DECLARE_OBJARRAY macro. You must include the
file wx/arrimpl.cpp before using this macro and you must have the full
declaration of the class of array elements in scope! If you forget to do the
@@ -600,7 +576,6 @@ public:
objects of the class will not be copied correctly and their real destructor will
not be called. The latter two forms are merely aliases of the first to satisfy
some people's sense of symmetry when using the exported declarations.
Example of usage:
*/
WX_DEFINE_OBJARRAY(name);
@@ -610,12 +585,12 @@ public:
//@{
/**
This macro defines a new sorted array class named @e name and containing
This macro defines a new sorted array class named @a name and containing
the elements of type @e T. The second form is used when compiling wxWidgets as
a DLL under Windows and array needs to be visible outside the DLL. The third is
needed for exporting an array from a user DLL.
Example:
You will have to initialize the objects of this class by passing a comparison
function to the array object constructor like this:
*/
@@ -625,7 +600,7 @@ public:
//@}
/**
This macro may be used to prepend all elements of the @e other array to the
This macro may be used to prepend all elements of the @a other array to the
@e array. The two arrays must be of the same type.
*/
#define void WX_PREPEND_ARRAY(wxArray& array, wxArray& other) /* implementation is private */

View File

@@ -28,7 +28,6 @@ public:
@param addr
the pointer to the location to return load address in, may be
@NULL
@param len
pointer to the location to return the size of this module in
memory in, may be @NULL
@@ -131,7 +130,6 @@ public:
/**
Returns the string containing the usual extension for shared libraries for the
given systems (including the leading dot if not empty).
For example, this function will return @c ".dll" under Windows or (usually)
@c ".so" under Unix.
*/
@@ -141,7 +139,6 @@ public:
This function returns a valid handle for the main program itself. Notice that
the @NULL return value is valid for some systems (i.e. doesn't mean that
the function failed).
@b NB: This function is Unix specific. It will always fail under Windows
or OS/2.
*/
@@ -150,42 +147,38 @@ public:
/**
This function resolves a symbol in a loaded DLL, such as a variable or
function name.
Returned value will be @NULL if the symbol was not found in the DLL or if
an error occurred.
@param dllHandle
Valid handle previously returned by
LoadLibrary
@param name
Name of the symbol.
*/
void* GetSymbol(wxDllType dllHandle, const wxString& name);
/**
This function loads a shared library into memory, with @e libname being the
This function loads a shared library into memory, with @a libname being the
name of the library: it may be either the full name including path and
(platform-dependent) extension, just the basename (no path and no extension)
or a basename with extension. In the last two cases, the library will be
searched in all standard locations.
Returns a handle to the loaded DLL. Use @e success parameter to test if it
Returns a handle to the loaded DLL. Use @a success parameter to test if it
is valid. If the handle is valid, the library must be unloaded later with
UnloadLibrary().
@param libname
Name of the shared object to load.
@param success
May point to a bool variable which will be set to @true or
@false; may also be @NULL.
*/
wxDllType LoadLibrary(const wxString& libname,
bool* success = @NULL);
bool* success = NULL);
/**
This function unloads the shared library. The handle @e dllhandle must have
This function unloads the shared library. The handle @a dllhandle must have
been returned by LoadLibrary() previously.
*/
void UnloadLibrary(wxDllType dllhandle);
@@ -223,25 +216,18 @@ public:
Returns the platform-specific full name for the library called @e name. E.g.
it adds a @c ".dll" extension under Windows and @c "lib" prefix and
@c ".so", @c ".sl" or maybe @c ".dylib" extension under Unix.
The possible values for @e cat are:
The possible values for @a cat are:
wxDL_LIBRARY
normal library
wxDL_MODULE
a loadable module or plugin
@sa CanonicalizePluginName()
@see CanonicalizePluginName()
*/
static wxString CanonicalizeName(const wxString& name,
wxDynamicLibraryCategory cat = wxDL_LIBRARY);
@@ -252,21 +238,15 @@ public:
plugins. The only difference is that compiler and version information are added
to the name to ensure that the plugin which is going to be loaded will be
compatible with the main program.
The possible values for @e cat are:
The possible values for @a cat are:
wxDL_PLUGIN_GUI
plugin which uses GUI classes (default)
wxDL_PLUGIN_BASE
plugin which only uses wxBase
*/
static wxString CanonicalizePluginName(const wxString& name,
@@ -286,10 +266,10 @@ public:
static wxDllType GetProgramHandle();
/**
Returns pointer to symbol @e name in the library or @NULL if the library
Returns pointer to symbol @a name in the library or @NULL if the library
contains no such symbol.
@sa wxDYNLIB_FUNCTION
@see wxDYNLIB_FUNCTION
*/
void* GetSymbol(const wxString& name);
@@ -305,10 +285,9 @@ public:
void* GetSymbolAorW(const wxString& name);
/**
Returns @true if the symbol with the given @e name is present in the dynamic
Returns @true if the symbol with the given @a name is present in the dynamic
library, @false otherwise. Unlike GetSymbol(),
this function doesn't log an error message if the symbol is not found.
This function is new since wxWidgets version 2.5.4
*/
bool HasSymbol(const wxString& name);
@@ -323,45 +302,38 @@ public:
of all modules loaded into the address space of the current project, the array
elements are object of @c wxDynamicLibraryDetails class. The array will
be empty if an error occurred.
This method is currently implemented only under Win32 and Linux and is useful
mostly for diagnostics purposes.
*/
static wxDynamicLibraryDetailsArray ListLoaded();
/**
Loads DLL with the given @e name into memory. The @e flags argument can
Loads DLL with the given @a name into memory. The @a flags argument can
be a combination of the following bits:
wxDL_LAZY
equivalent of RTLD_LAZY under Unix, ignored elsewhere
wxDL_NOW
equivalent of RTLD_NOW under Unix, ignored elsewhere
wxDL_GLOBAL
equivalent of RTLD_GLOBAL under Unix, ignored elsewhere
wxDL_VERBATIM
don't try to append the appropriate extension to
the library name (this is done by default).
wxDL_DEFAULT
default flags, same as wxDL_NOW currently
wxDL_QUIET
don't log an error message if the library couldn't be
loaded.
@@ -373,7 +345,6 @@ public:
/**
Unloads the library from memory. wxDynamicLibrary object automatically calls
this method from its destructor if it had been successfully loaded.
The second version is only used if you need to keep the library in memory
during a longer period of time than the scope of the wxDynamicLibrary object.
In this case you may call Detach() and store
@@ -394,20 +365,17 @@ public:
@c void * pointer to the correct type and, even more annoyingly, you have to
repeat this type twice if you want to declare and define a function pointer all
in one line
This macro makes this slightly less painful by allowing you to specify the
type only once, as the first parameter, and creating a variable of this type
named after the function but with @c pfn prefix and initialized with the
function @e name from the wxDynamicLibrary
function @a name from the wxDynamicLibrary
@e dynlib.
@param type
the type of the function
@param name
the name of the function to load, not a string (without quotes,
it is quoted automatically by the macro)
@param dynlib
the library to load the function from
*/

View File

@@ -41,27 +41,22 @@ public:
@param parent
Parent window. Must not be @NULL.
@param id
Window identifier. The value wxID_ANY indicates a default value.
@param label
The text shown just before the list control.
@param pos
Window position.
@param size
Window size. If wxDefaultSize is specified then the window is sized
Window size. If wxDefaultSize is specified then the window is
sized
appropriately.
@param style
Window style. See wxEditableListBox.
@param name
Window name.
@sa Create()
@see Create()
*/
wxEditableListBox();
wxEditableListBox(wxWindow* parent, wxWindowID id,

View File

@@ -33,9 +33,8 @@ public:
wxEncodingConverter();
/**
Return @true if (any text in) multibyte encoding @e encIn can be converted to
Return @true if (any text in) multibyte encoding @a encIn can be converted to
another one (@e encOut) losslessly.
Do not call this method with @c wxFONTENCODING_UNICODE as either
parameter, it doesn't make sense (always works in one sense and always depends
on the text to convert in the other).
@@ -61,8 +60,7 @@ public:
GetPlatformEquivalents(),
but this one will return ALL
equivalent encodings, regardless of the platform, and including itself.
This platform's encodings are before others in the array. And again, if @e enc
This platform's encodings are before others in the array. And again, if @a enc
is in the array,
it is the very first item in it.
*/
@@ -71,23 +69,20 @@ public:
/**
Return equivalents for given font that are used
under given platform. Supported platforms:
wxPLATFORM_UNIX
wxPLATFORM_WINDOWS
wxPLATFORM_OS2
wxPLATFORM_MAC
wxPLATFORM_CURRENT
wxPLATFORM_CURRENT means the platform this binary was compiled for.
Examples:
Equivalence is defined in terms of convertibility:
two encodings are equivalent if you can convert text between
then without losing information (it may - and will - happen
that you lose special chars like quotation marks or em-dashes
but you shouldn't lose any diacritics and language-specific
characters when converting between equivalent encodings).
Remember that this function does @b NOT check for presence of
fonts in system. It only tells you what are most suitable
encodings. (It usually returns only one encoding.)
@@ -100,8 +95,8 @@ public:
be wxFONTENCODING_UNICODE, but only if wxUSE_ENCODING is set to 1.
All subsequent calls to Convert()
will interpret its argument
as a string in @e input_enc encoding and will output string in
@e output_enc encoding.
as a string in @a input_enc encoding and will output string in
@a output_enc encoding.
You must call this method before calling Convert. You may call
it more than once in order to switch to another conversion.
@e Method affects behaviour of Convert() in case input character
@@ -109,14 +104,12 @@ public:
@b wxCONVERT_STRICT
follow behaviour of GNU Recode -
just copy unconvertible characters to output and don't change them
(its integer value will stay the same)
@b wxCONVERT_SUBSTITUTE
try some (lossy) substitutions
- e.g. replace unconvertible latin capitals with acute by ordinary
capitals, replace en-dash or em-dash by '-' etc.

File diff suppressed because it is too large Load Diff

View File

@@ -21,7 +21,7 @@ public:
/**
Constuctor used by wxWidgets only.
*/
wxFindDialogEvent(wxEventType commandType = wxEVT_@NULL,
wxFindDialogEvent(wxEventType commandType = wxEVT_NULL,
int id = 0);
/**
@@ -129,8 +129,7 @@ public:
/**
After using default constructor Create()
must be called.
The @e parent and @e data parameters must be non-@NULL.
The @a parent and @a data parameters must be non-@NULL.
*/
wxFindReplaceDialog();
wxFindReplaceDialog(wxWindow* parent,
@@ -146,8 +145,7 @@ public:
/**
Creates the dialog; use wxWindow::Show to show it on screen.
The @e parent and @e data parameters must be non-@NULL.
The @a parent and @a data parameters must be non-@NULL.
*/
bool Create(wxWindow* parent, wxFindReplaceData* data,
const wxString& title, int style = 0);

View File

@@ -31,13 +31,11 @@ public:
@param filename
The filename.
@param mode
The mode in which to open the file using standard C strings.
Note that you should use "b" flag if you use binary files under Windows
or the results might be unexpected due to automatic newline conversion done
for the text files.
@param fp
An existing file descriptor, such as stderr.
*/
@@ -48,14 +46,12 @@ public:
/**
Destructor will close the file.
NB: it is not virtual so you should @e not derive from wxFFile!
*/
~wxFFile();
/**
Attaches an existing file pointer to the wxFFile object.
The descriptor should be already opened and it will be closed by wxFFile
object.
*/
@@ -76,27 +72,24 @@ public:
/**
Returns @true if the an attempt has been made to read @e past
the end of the file.
Note that the behaviour of the file descriptor based class
wxFile is different as wxFile::Eof
will return @true here as soon as the last byte of the file has been
read.
Also note that this method may only be called for opened files and may crash if
the file is not opened.
@sa IsOpened()
@see IsOpened()
*/
#define bool Eof() /* implementation is private */
bool Eof();
/**
Returns @true if an error has occurred on this file, similar to the standard
@c ferror() function.
Please note that this method may only be called for opened files and may crash
if the file is not opened.
@sa IsOpened()
@see IsOpened()
*/
@@ -127,7 +120,6 @@ public:
@param filename
The filename.
@param mode
The mode in which to open the file.
*/
@@ -139,7 +131,6 @@ public:
@param buffer
A buffer to receive the data.
@param count
The number of bytes to read.
@@ -149,12 +140,10 @@ public:
/**
)
Reads the entire contents of the file into a string.
@param str
String to read data into.
@param conv
Conversion object to use in Unicode build; by default supposes
that file contents is encoded in UTF-8.
@@ -168,7 +157,6 @@ public:
@param ofs
Offset to seek to.
@param mode
One of wxFromStart, wxFromEnd, wxFromCurrent.
*/
@@ -191,16 +179,14 @@ public:
/**
)
Writes the contents of the string to the file, returns @true on success.
The second argument is only meaningful in Unicode build of wxWidgets when
@e conv is used to convert @e s to multibyte representation.
@e conv is used to convert @a s to multibyte representation.
*/
bool Write(const wxString& s);
/**
Returns the file pointer associated with the file.
*/
#define FILE * fp() /* implementation is private */
FILE* fp();
};

View File

@@ -89,10 +89,9 @@ public:
/**
Open the temporary file, returns @true on success, @false if an error
occurred.
@e strName is the name of file to be replaced. The temporary file is always
created in the directory where @e strName is. In particular, if
@e strName doesn't include the path, it is created in the current directory
@a strName is the name of file to be replaced. The temporary file is always
created in the directory where @a strName is. In particular, if
@a strName doesn't include the path, it is created in the current directory
and the program should have write access to it for the function to succeed.
*/
bool Open(const wxString& strName);
@@ -112,9 +111,8 @@ public:
/**
Write to the file, return @true on success, @false on failure.
The second argument is only meaningful in Unicode build of wxWidgets when
@e conv is used to convert @e str to multibyte representation.
@a conv is used to convert @a str to multibyte representation.
*/
bool Write(const wxString& str,
const wxMBConv& conv = wxConvUTF8);
@@ -151,11 +149,9 @@ public:
@param filename
The filename.
@param mode
The mode in which to open the file. May be one of read(), write() and
wxFile::read_write.
@param fd
An existing file descriptor (see Attach() for the list of predefined
descriptors)
@@ -168,7 +164,6 @@ public:
/**
Destructor will close the file.
@b NB: it is not virtual so you should not use wxFile polymorphically.
*/
~wxFile();
@@ -185,7 +180,6 @@ public:
(and
have symbolic names of @b wxFile::fd_stdin, @b wxFile::fd_stdout and @b
wxFile::fd_stderr).
The descriptor should be already opened and it will be closed by wxFile
object.
*/
@@ -201,7 +195,7 @@ public:
@true
will ensure it is overwritten.
*/
bool Create(const wxString& filename, bool overwrite = @false,
bool Create(const wxString& filename, bool overwrite = false,
int access = wxS_DEFAULT);
/**
@@ -213,14 +207,12 @@ public:
/**
Returns @true if the end of the file has been reached.
Note that the behaviour of the file pointer based class
wxFFile is different as wxFFile::Eof
will return @true here only if an attempt has been made to read
@e past the last byte of the file, while wxFile::Eof() will return @true
even before such attempt is made if the file pointer is at the last position
in the file.
Note also that this function doesn't work on unseekable file descriptors
(examples include pipes, terminals and sockets under Unix) and an attempt to
use it will result in an error message in such case. So, to read the entire
@@ -228,7 +220,7 @@ public:
Read() repeatedly and tests its return condition instead
of using Eof() as this will not work for special files under Unix.
*/
#define bool Eof() /* implementation is private */
bool Eof();
/**
Returns @true if the given name specifies an existing regular file (not a
@@ -238,7 +230,6 @@ public:
/**
Flushes the file descriptor.
Note that Flush() is not implemented on some Windows compilers
due to a missing fsync function, which reduces the usefulness of this function
(it can still be called but it will do nothing on unsupported compilers).
@@ -265,7 +256,6 @@ public:
@param filename
The filename.
@param mode
The mode in which to open the file. May be one of read(), write() and
wxFile::read_write.
@@ -287,7 +277,6 @@ public:
@param ofs
Offset to seek to.
@param mode
One of wxFromStart, wxFromEnd, wxFromCurrent.
@@ -319,10 +308,8 @@ public:
/**
Writes the contents of the string to the file, returns @true on success.
The second argument is only meaningful in Unicode build of wxWidgets when
@e conv is used to convert @e s to multibyte representation.
@a conv is used to convert @a s to multibyte representation.
Note that this method only works with @c NUL-terminated strings, if you want
to write data with embedded @c NULs to the file you should use the other
@ref write() "Write() overload".
@@ -332,5 +319,5 @@ public:
/**
Returns the file descriptor associated with the file.
*/
#define int fd() /* implementation is private */
int fd();
};

View File

@@ -31,32 +31,29 @@ class wxFileConfig : public wxConfigBase
public:
/**
)
Read the config data from the specified stream instead of the associated file,
as usual.
@sa Save()
@see Save()
*/
wxFileConfig(wxInputStream& is);
/**
Return the full path to the file which would be used by wxFileConfig as global,
system-wide, file if it were constructed with @e basename as "global
system-wide, file if it were constructed with @a basename as "global
filename'' parameter in the constructor. Notice that this function cannot be
used if @e basename is already a full path name.
used if @a basename is already a full path name.
*/
static wxFileName GetGlobalFile(const wxString& basename);
/**
Return the full path to the file which would be used by wxFileConfig as local,
user-specific, file if it were constructed with @e basename as "local
user-specific, file if it were constructed with @a basename as "local
filename'' parameter in the constructor.
@e style has the same meaning as in @ref wxConfigBase::ctor constructor
@a style has the same meaning as in @ref wxConfigBase::ctor constructor
and can contain any combination of styles but only wxCONFIG_USE_SUBDIR bit is
examined by this function.
Notice that this function cannot be used if @e basename is already a full
Notice that this function cannot be used if @a basename is already a full
path name.
*/
static wxFileName GetLocalFile(const wxString& basename,
@@ -64,17 +61,15 @@ public:
/**
)
Saves all config data to the given stream, returns @true if data was saved
successfully or @false on error.
Note the interaction of this function with the internal "dirty flag'': the
data is saved unconditionally, i.e. even if the object is not dirty. However
after saving it successfully, the dirty flag is reset so no changes will be
written back to the file this object is associated with until you change its
contents again.
@sa wxConfigBase::Flush
@see wxConfigBase::Flush
*/
bool Save(wxOutputStream& os);
@@ -83,10 +78,9 @@ public:
create a config file which is not readable by other users (useful if it stores
some sensitive information, such as passwords), you could use
@c SetUmask(0077).
This function doesn't do anything on non-Unix platforms.
@sa wxCHANGE_UMASK
@see wxCHANGE_UMASK
*/
void SetUmask(int mode);
};

View File

@@ -43,31 +43,23 @@ public:
/**
@param parent
Parent window, must not be non-@NULL.
@param id
The identifier for the control.
@param defaultDirectory
The initial directory shown in the control. Must be
a valid path to a directory or the empty string.
In case it is the empty string, the current working directory is used.
@param defaultFilename
The default filename, or the empty string.
@param wildcard
A wildcard specifying which files can be selected,
such as "*.*" or "BMP files (*.bmp)|*.bmp|GIF files (*.gif)|*.gif".
@param style
The window style, see wxFC_* flags.
@param pos
Initial position.
@param size
Initial size.
@param name
Control name.
@@ -111,7 +103,7 @@ public:
wxString GetFilename();
/**
Fills the array @e filenames with the filenames only of selected items. This
Fills the array @a filenames with the filenames only of selected items. This
function should only be used with the controls having the @c wxFC_MULTIPLE
style,
use GetFilename() for the others.
@@ -133,7 +125,7 @@ public:
wxString GetPath();
/**
Fills the array @e paths with the full paths of the files chosen. This
Fills the array @a paths with the full paths of the files chosen. This
function should be used with the controls having the @c wxFC_MULTIPLE style,
use GetPath() otherwise.
@@ -167,7 +159,6 @@ public:
/**
Sets the wildcard, which can contain multiple file types, for example:
"BMP files (*.bmp)|*.bmp|GIF files (*.gif)|*.gif"
*/
void SetWildcard(const wxString& wildCard);

View File

@@ -52,31 +52,23 @@ public:
@param parent
Parent window.
@param message
Message to show on the dialog.
@param defaultDir
The default directory, or the empty string.
@param defaultFile
The default filename, or the empty string.
@param wildcard
A wildcard, such as "*.*" or "BMP files (*.bmp)|*.bmp|GIF files (*.gif)|*.gif".
A wildcard, such as "*.*" or "BMP files (*.bmp)|*.bmp|GIF files
(*.gif)|*.gif".
Note that the native Motif dialog has some limitations with respect to
wildcards; see the Remarks section above.
@param style
A dialog style. See wxFD_* styles for more info.
@param pos
Dialog position. Not implemented.
@param size
Dialog size. Not implemented.
@param name
Dialog name. Not implemented.
*/
@@ -114,10 +106,9 @@ public:
wxString GetFilename();
/**
Fills the array @e filenames with the names of the files chosen. This
Fills the array @a filenames with the names of the files chosen. This
function should only be used with the dialogs which have @c wxFD_MULTIPLE style,
use GetFilename() for the others.
Note that under Windows, if the user selects shortcuts, the filenames
include paths, since the application cannot determine the full path
of each referenced file by appending the directory containing the shortcuts
@@ -145,7 +136,7 @@ public:
wxString GetPath();
/**
Fills the array @e paths with the full paths of the files chosen. This
Fills the array @a paths with the full paths of the files chosen. This
function should only be used with the dialogs which have @c wxFD_MULTIPLE style,
use GetPath() for the others.
*/
@@ -164,12 +155,10 @@ public:
/**
Customize file dialog by adding extra window, which is typically placed
below the list of files and above the buttons.
SetExtraControlCreator can be called only once, before calling
ShowModal().
The @c creator function should take pointer to parent window (file dialog)
and should return a window allocated with operator new.
Supported platforms: wxGTK, wxUniv.
*/
bool SetExtraControlCreator(t_extraControlCreator creator);
@@ -197,9 +186,7 @@ public:
/**
Sets the wildcard, which can contain multiple file types, for example:
"BMP files (*.bmp)|*.bmp|GIF files (*.gif)|*.gif"
Note that the native Motif dialog has some limitations with respect to
wildcards; see the Remarks section above.
*/
@@ -229,20 +216,20 @@ public:
wxFD_MULTIPLE
can only be used with wxFileDialog and not here as this
function only returns a single file name.
Both the Unix and Windows versions implement a wildcard filter. Typing a
filename containing wildcards (*, ?) in the filename text item, and
clicking on Ok, will result in only those files matching the pattern being
displayed.
The wildcard may be a specification for multiple types of file
with a description for each, such as:
@code
"BMP files (*.bmp)|*.bmp|GIF files (*.gif)|*.gif"
@endcode
The application must check for an empty return value (the user pressed
Cancel). For example:
@code
wxString filename = wxFileSelector("Choose a file to open");
if ( !filename.empty() )
@@ -259,7 +246,7 @@ wxString wxFileSelector(const wxString& message,
const wxString& default_extension = "",
const wxString& wildcard = ".",
int flags = 0,
wxWindow * parent = @NULL,
wxWindow* parent = NULL,
int x = -1,
int y = -1);

View File

@@ -40,15 +40,12 @@ public:
The first form adds the given directory to the path list, if the path is not
already in the list.
If the path cannot be normalized for some reason, it returns @false.
The second form just calls the first form on all elements of the given array.
The @e path is always considered a directory but no existence checks will be
The @a path is always considered a directory but no existence checks will be
done on it
(because if it doesn't exist, it could be created later and thus result a valid
path when
FindValidPath() is called).
@b Note: if the given path is relative, it won't be made absolute before adding
it
(this is why FindValidPath() may return relative paths).
@@ -82,15 +79,12 @@ public:
Searches the given file in all paths stored in this class.
The first path which concatenated to the given string points to an existing
file (see @ref wxFile::exists wxFileExists) is returned.
If the file wasn't found in any of the stored paths, an empty string is
returned.
The given string must be a file name, eventually with a path prefix (if the path
prefix is absolute, only its name will be searched); i.e. it must not end with
a directory separator (see wxFileName::GetPathSeparator)
otherwise an assertion will fail.
The returned path may be relative to the current working directory.
Note in fact that wxPathList can be used to store both relative and absolute
paths so that
@@ -108,13 +102,13 @@ public:
/**
This function returns the total number of bytes and number of free bytes on
the disk containing the directory @e path (it should exist). Both
@e total and @e free parameters may be @NULL if the corresponding
the disk containing the directory @a path (it should exist). Both
@a total and @a free parameters may be @NULL if the corresponding
information is not needed.
*/
bool wxGetDiskSpace(const wxString& path,
wxLongLong total = @NULL,
wxLongLong free = @NULL);
wxLongLong total = NULL,
wxLongLong free = NULL);
/**
Returns the Windows directory under Windows; on other platforms returns the
@@ -128,7 +122,7 @@ wxString wxGetOSDirectory();
The arrays will contain an equal number of items found before the error.
On platforms where native dialogs handle only one filter per entry,
entries in arrays are automatically adjusted.
@e wildCard is in the form:
@a wildCard is in the form:
@code
"All files (*)|*|Image Files (*.jpeg *.png)|*.jpg;*.png"
@@ -140,40 +134,35 @@ int wxParseCommonDialogsFilter(const wxString& wildCard,
/**
This function is deprecated, use wxFileName instead.
Converts a Unix to a DOS filename by replacing forward
slashes with backslashes.
*/
void wxUnix2DosFilename(wxChar* s);
/**
Returns @true if @e dirname exists and is a directory.
Returns @true if @a dirname exists and is a directory.
*/
bool wxDirExists(const wxString& dirname);
/**
@b NB: This function is obsolete, please use
wxFileName::SplitPath instead.
This function splits a full file name into components: the path (including
possible disk/drive
specification under Windows), the base name and the extension. Any of the
output parameters
(@e path, @e name or @e ext) may be @NULL if you are not interested in the value
(@e path, @a name or @e ext) may be @NULL if you are not interested in the value
of
a particular component.
wxSplitPath() will correctly handle filenames with both DOS and Unix path
separators under
Windows, however it will not consider backslashes as path separators under Unix
(where backslash
is a valid character in a filename).
On entry, @e fullname should be non-@NULL (it may be empty though).
On return, @e path contains the file path (without the trailing separator), @e
On entry, @a fullname should be non-@NULL (it may be empty though).
On return, @a path contains the file path (without the trailing separator), @e
name
contains the file name and @e ext contains the file extension without leading
contains the file name and @a ext contains the file extension without leading
dot. All
three of them may be empty if the corresponding component is. The old contents
of the
@@ -189,15 +178,13 @@ void wxSplitPath(const wxString& fullname, wxString * path,
Under Unix this macro changes the current process umask to the given value,
unless it is equal to -1 in which case nothing is done, and restores it to
the original value on scope exit. It works by declaring a variable which sets
umask to @e mask in its constructor and restores it in its destructor.
umask to @a mask in its constructor and restores it in its destructor.
Under other platforms this macro expands to nothing.
*/
#define wxCHANGE_UMASK(int mask) /* implementation is private */
/**
Returns time of last modification of given file.
The function returns @c (time_t)-1 if an error occurred (e.g. file not
found).
*/
@@ -207,7 +194,6 @@ time_t wxFileModificationTime(const wxString& filename);
/**
@b NB: This function is obsolete, please use
wxFileName::SplitPath instead.
Returns the filename for a full path. The second form returns a pointer to
temporary storage that should not be deallocated.
*/
@@ -216,25 +202,23 @@ char * wxFileNameFromPath(char * path);
//@}
/**
Renames @e file1 to @e file2, returning @true if successful.
If @e overwrite parameter is @true (default), the destination file is
overwritten if it exists, but if @e overwrite is @false, the functions fails
Renames @a file1 to @e file2, returning @true if successful.
If @a overwrite parameter is @true (default), the destination file is
overwritten if it exists, but if @a overwrite is @false, the functions fails
in this case.
*/
bool wxRenameFile(const wxString& file1, const wxString& file2,
bool overwrite = @true);
bool overwrite = true);
/**
Copies @e file1 to @e file2, returning @true if successful. If
@e overwrite parameter is @true (default), the destination file is overwritten
if it exists, but if @e overwrite is @false, the functions fails in this
Copies @a file1 to @e file2, returning @true if successful. If
@a overwrite parameter is @true (default), the destination file is overwritten
if it exists, but if @a overwrite is @false, the functions fails in this
case.
This function supports resources forks under Mac OS.
*/
bool wxCopyFile(const wxString& file1, const wxString& file2,
bool overwrite = @true);
bool overwrite = true);
/**
Returns @true if the file exists and is a plain file.
@@ -242,7 +226,7 @@ bool wxCopyFile(const wxString& file1, const wxString& file2,
bool wxFileExists(const wxString& filename);
/**
Returns @true if the @e pattern matches the @e text; if @e dot_special is @true,
Returns @true if the @a pattern matches the @e text; if @a dot_special is @true,
filenames beginning with a dot are not matched
with wildcard characters. See wxIsWild.
*/
@@ -251,14 +235,12 @@ bool wxMatchWild(const wxString& pattern, const wxString& text,
/**
@b NB: This function is deprecated: use wxGetCwd instead.
Copies the current working directory into the buffer if supplied, or
copies the working directory into new storage (which you must delete
yourself) if the buffer is @NULL.
@e sz is the size of the buffer if supplied.
@a sz is the size of the buffer if supplied.
*/
wxString wxGetWorkingDirectory(char * buf=@NULL, int sz=1000);
wxString wxGetWorkingDirectory(char* buf = NULL, int sz = 1000);
/**
Returns the directory part of the filename.
@@ -282,7 +264,7 @@ wxString wxGetCwd();
void wxDos2UnixFilename(wxChar* s);
/**
Concatenates @e file1 and @e file2 to @e file3, returning
Concatenates @a file1 and @a file2 to @e file3, returning
@true if successful.
*/
bool wxConcatFiles(const wxString& file1, const wxString& file2,
@@ -295,15 +277,14 @@ bool wxRemoveFile(const wxString& file);
/**
Sets the current working directory, returning @true if the operation succeeded.
Under MS Windows, the current drive is also changed if @e dir contains a drive
Under MS Windows, the current drive is also changed if @a dir contains a drive
specification.
*/
bool wxSetWorkingDirectory(const wxString& dir);
/**
Makes the directory @e dir, returning @true if successful.
@e perm is the access mask for the directory for the systems on which it is
@a perm is the access mask for the directory for the systems on which it is
supported (Unix) and doesn't have any effect on the other ones.
*/
bool wxMkdir(const wxString& dir, int perm = 0777);
@@ -316,7 +297,6 @@ bool wxIsAbsolutePath(const wxString& filename);
/**
Returns the next file that matches the path passed to wxFindFirstFile.
See wxFindFirstFile for an example.
*/
wxString wxFindNextFile();
@@ -332,6 +312,7 @@ wxString wxFindFirstFile(const wxString& spec, int flags = 0);
//@{
/**
Returns the type of an open file. Possible return values are:
@code
enum wxFileKind
{
@@ -352,16 +333,14 @@ wxFileKind wxGetFileKind(FILE * fp);
wxFileName::CreateTempFileName
instead.
*/
char * wxGetTempFileName(const wxString& prefix, char * buf=@NULL);
char* wxGetTempFileName(const wxString& prefix, char* buf = NULL);
bool wxGetTempFileName(const wxString& prefix, wxString& buf);
//@}
/**
Removes the directory @e dir, returning @true if successful. Does not work under
VMS.
The @e flags parameter is reserved for future use.
The @a flags parameter is reserved for future use.
Please notice that there is also a wxRmDir() function which simply wraps the
standard POSIX rmdir() function and so return an integer error code instead of
a boolean value (but otherwise is currently identical to wxRmdir), don't

View File

@@ -120,9 +120,9 @@ public:
/**
Makes this object refer to the current working directory on the specified
volume (or current volume if @e volume is empty).
volume (or current volume if @a volume is empty).
@sa GetCwd()
@see GetCwd()
*/
static void AssignCwd(const wxString& volume = wxEmptyString);
@@ -145,7 +145,7 @@ public:
@ref isok() invalid state.
*/
void AssignTempFileName(const wxString& prefix,
wxFile * fileTemp = @NULL);
wxFile* fileTemp = NULL);
/**
Reset all components to default, uninitialized state.
@@ -156,36 +156,33 @@ public:
Removes the extension from the file name resulting in a
file name with no trailing dot.
@sa SetExt(), SetEmptyExt()
@see SetExt(), SetEmptyExt()
*/
void SetClearExt();
/**
Returns a temporary file name starting with the given @e prefix. If
the @e prefix is an absolute path, the temporary file is created in this
the @a prefix is an absolute path, the temporary file is created in this
directory, otherwise it is created in the default system directory for the
temporary files or in the current directory.
If the function succeeds, the temporary file is actually created. If
@e fileTemp is not @NULL, this file will be opened using the name of
@a fileTemp is not @NULL, this file will be opened using the name of
the temporary file. When possible, this is done in an atomic way ensuring that
no race condition occurs between the temporary file name generation and opening
it which could often lead to security compromise on the multiuser systems.
If @e fileTemp is @NULL, the file is only created, but not opened.
If @a fileTemp is @NULL, the file is only created, but not opened.
Under Unix, the temporary file will have read and write permissions for the
owner only to minimize the security problems.
@param prefix
Prefix to use for the temporary file name construction
@param fileTemp
The file to open or @NULL to just get the name
@returns The full temporary file name or an empty string on error.
*/
static wxString CreateTempFileName(const wxString& prefix,
wxFile * fileTemp = @NULL);
wxFile* fileTemp = NULL);
//@{
/**
@@ -197,7 +194,7 @@ public:
/**
Returns the object corresponding to the directory with the given name.
The @e dir parameter may have trailing path separator or not.
The @a dir parameter may have trailing path separator or not.
*/
static wxFileName DirName(const wxString& dir,
wxPathFormat format = wxPATH_NATIVE);
@@ -205,7 +202,6 @@ public:
/**
These functions allow to examine and modify the individual directories of the
path:
AppendDir()
InsertDir()
@@ -216,10 +212,8 @@ public:
RemoveDir()
RemoveLastDir()
To change the components of the file name individually you can use the
following functions:
GetExt()
GetName()
@@ -246,7 +240,6 @@ public:
/**
You can initialize a wxFileName instance using one of the following functions:
@ref wxfilename() "wxFileName constructors"
Assign()
@@ -279,10 +272,8 @@ public:
for example, the volume name is always empty under Unix, but if they are all
empty simultaneously, the filename object is considered to be in an invalid
state and IsOk() returns @false for it.
File names can be case-sensitive or not, the function
IsCaseSensitive() allows to determine this.
The rules for determining whether the file name is absolute or relative also
depend on the file name format and the only portable way to answer this
question is to use IsAbsolute() or
@@ -290,12 +281,10 @@ public:
refers to the current working directory on drive X. Therefore, a wxFileName
instance constructed from for example "X:dir/file.ext" treats the portion
beyond drive separator as being relative to that directory.
To ensure that the filename is absolute, you may use
MakeAbsolute(). There is also an inverse
function MakeRelativeTo() which undoes
what @ref normalize() Normalize(wxPATH_NORM_DOTS) does.
Other functions returning information about the file format provided by this
class are GetVolumeSeparator(),
IsPathSeparator().
@@ -308,12 +297,9 @@ public:
FileExists() can be used to test whether a file
with such name exists and DirExists() can be used
to test for directory existence.
File names should be compared using SameAs() method
or @ref operatorequal() "operator ==".
For testing basic access modes, you can use:
IsDirWritable()
IsDirReadable()
@@ -330,7 +316,7 @@ public:
/**
Returns @true if the file with this name exists.
@sa DirExists()
@see DirExists()
*/
bool FileExists();
static bool FileExists(const wxString& file);
@@ -351,7 +337,7 @@ public:
@returns The string containing the current working directory or an empty
string on error.
@sa AssignCwd()
@see AssignCwd()
*/
static wxString GetCwd(const wxString& volume = "");
@@ -401,12 +387,10 @@ public:
Returns the size of this file (first form) or the given number of bytes (second
form)
in a human-readable form.
If the size could not be retrieved the @c failmsg string is returned (first
form).
If @c bytes is @c wxInvalidSize or zero, then @c nullsize is returned (second
form).
In case of success, the returned string is a floating-point number with @c
precision decimal digits
followed by the size unit (B, kB, MB, GB, TB: respectively bytes, kilobytes,
@@ -432,7 +416,7 @@ public:
/**
Returns the name part of the filename (without extension).
@sa GetFullName()
@see GetFullName()
*/
wxString GetName();
@@ -440,17 +424,14 @@ public:
Returns the path part of the filename (without the name or extension). The
possible flags values are:
@b wxPATH_GET_VOLUME
Return the path with the volume (does
nothing for the filename formats without volumes), otherwise the path without
volume part is returned.
@b wxPATH_GET_SEPARATOR
Return the path with the trailing
separator, if this flag is not given there will be no separator at the end of
the path.
@@ -464,7 +445,7 @@ public:
are two of them and the native one, i.e. the backslash is returned by this
method.
@sa GetPathSeparators()
@see GetPathSeparators()
*/
static wxChar GetPathSeparator(wxPathFormat format = wxPATH_NATIVE);
@@ -474,7 +455,7 @@ public:
DOS and Windows both @c '/' and @c '\' may be used as
separators.
@sa GetPathSeparator()
@see GetPathSeparator()
*/
static wxString GetPathSeparators(wxPathFormat format = wxPATH_NATIVE);
@@ -488,7 +469,6 @@ public:
/**
Returns the path with the trailing separator, useful for appending the name to
the given path.
This is the same as calling GetPath()
@c (wxPATH_GET_VOLUME | wxPATH_GET_SEPARATOR, format).
*/
@@ -524,13 +504,11 @@ public:
under Windows and the inode change time under Unix (as it is impossible to
retrieve the real file creation time there anyhow) which can also be changed
by many operations after the file creation.
If no filename or extension is specified in this instance of wxFileName
(and therefore IsDir() returns @true) then
this function will return the directory times of the path specified by
GetPath(), otherwise the file times of the
file specified by GetFullPath().
Any of the pointers may be @NULL if the corresponding time is not
needed.
@@ -647,7 +625,7 @@ public:
Clear() may reset the object to the uninitialized,
invalid state (the former only do it on failure).
*/
#define bool IsOk() /* implementation is private */
bool IsOk();
/**
Returns @true if the char is a path separator for this format.
@@ -686,7 +664,7 @@ public:
@c wxFileName::Normalize(wxPATH_NORM_DOTS | wxPATH_NORM_ABSOLUTE |
wxPATH_NORM_TILDE, cwd, format).
@sa MakeRelativeTo(), Normalize(), IsAbsolute()
@see MakeRelativeTo(), Normalize(), IsAbsolute()
*/
bool MakeAbsolute(const wxString& cwd = wxEmptyString,
wxPathFormat format = wxPATH_NATIVE);
@@ -701,7 +679,6 @@ public:
pathBase
the directory to use as root, current directory is used by
default
@param format
the file name format, native by default
@@ -710,7 +687,7 @@ public:
file name is on a volume different from the volume
specified by pathBase).
@sa Normalize()
@see Normalize()
*/
bool MakeRelativeTo(const wxString& pathBase = wxEmptyString,
wxPathFormat format = wxPATH_NATIVE);
@@ -719,10 +696,8 @@ public:
/**
@param dir
the directory to create
@param parm
the permissions for the newly created directory
@param flags
if the flags contain wxPATH_MKDIR_FULL flag,
try to create each directory in the path and also don't return an error
@@ -745,51 +720,98 @@ public:
The kind of normalization to do with the file name. It can be
any or-combination of the following constants:
wxPATH_NORM_ENV_VARS
replace env vars with their values
wxPATH_NORM_DOTS
squeeze all .. and . when possible; if there are too many .. and thus they
cannot be all removed, @false will be returned
wxPATH_NORM_CASE
if filesystem is case insensitive, transform to lower case
wxPATH_NORM_ABSOLUTE
make the path absolute prepending cwd
wxPATH_NORM_LONG
make the path the long form
wxPATH_NORM_SHORTCUT
resolve if it is a shortcut (Windows only)
wxPATH_NORM_TILDE
replace ~ and ~user (Unix only)
wxPATH_NORM_ALL
all of previous flags except wxPATH_NORM_CASE
all of previous flags except wxPATH_NORM_CASE
@param cwd
If not empty, this directory will be used instead of current
working directory in normalization (see wxPATH_NORM_ABSOLUTE).
@param format
The file name format to use when processing the paths, native by default.
@@ -805,7 +827,6 @@ public:
in the same way. For example, the access time under Windows has a resolution of
one day (so it is really the access date and not time). The access time may be
updated when the file is executed or not depending on the platform.
GetModificationTime()
GetTimes()
@@ -813,9 +834,7 @@ public:
SetTimes()
Touch()
Other file system operations functions are:
Mkdir()
Rmdir()
@@ -831,7 +850,7 @@ public:
/**
Removes the specified directory component from the path.
@sa GetDirCount()
@see GetDirCount()
*/
void RemoveDir(size_t pos);
@@ -867,7 +886,7 @@ public:
This is different from having no extension at all as the file
name will have a trailing dot after a call to this method.
@sa SetExt(), ClearExt()
@see SetExt(), ClearExt()
*/
void SetEmptyExt();
@@ -877,7 +896,7 @@ public:
name without a trailing dot, unlike a call to
SetEmptyExt().
@sa SetEmptyExt(), ClearExt()
@see SetEmptyExt(), ClearExt()
*/
void SetExt(const wxString& ext);
@@ -889,7 +908,7 @@ public:
/**
Sets the name part (without extension).
@sa SetFullName()
@see SetFullName()
*/
void SetName(const wxString& name);
@@ -911,24 +930,22 @@ public:
This function splits a full file name into components: the volume (with the
first version) path (including the volume in the second version), the base name
and the extension. Any of the output parameters (@e volume, @e path,
@e name or @e ext) may be @NULL if you are not interested in the
value of a particular component. Also, @e fullpath may be empty on entry.
On return, @e path contains the file path (without the trailing separator),
@e name contains the file name and @e ext contains the file extension
@a name or @e ext) may be @NULL if you are not interested in the
value of a particular component. Also, @a fullpath may be empty on entry.
On return, @a path contains the file path (without the trailing separator),
@a name contains the file name and @a ext contains the file extension
without leading dot. All three of them may be empty if the corresponding
component is. The old contents of the strings pointed to by these parameters
will be overwritten in any case (if the pointers are not @NULL).
Note that for a filename "foo.'' the extension is present, as indicated by the
trailing dot, but empty. If you need to cope with such cases, you should use
@e hasExt instead of relying on testing whether @e ext is empty or not.
@a hasExt instead of relying on testing whether @a ext is empty or not.
*/
static void SplitPath(const wxString& fullpath, wxString* volume,
wxString* path,
wxString* name,
wxString* ext,
bool hasExt = @NULL,
bool hasExt = NULL,
wxPathFormat format = wxPATH_NATIVE);
static void SplitPath(const wxString& fullpath,
wxString* volume,
@@ -944,10 +961,10 @@ public:
//@}
/**
Splits the given @e fullpath into the volume part (which may be empty) and
Splits the given @a fullpath into the volume part (which may be empty) and
the pure path part, not containing any volume.
@sa SplitPath()
@see SplitPath()
*/
static void SplitVolume(const wxString& fullpath,
wxString* volume,

View File

@@ -68,33 +68,24 @@ public:
/**
@param parent
Parent window, must not be non-@NULL.
@param id
The identifier for the control.
@param path
The initial file shown in the control. Must be a valid path to a file or the
empty string.
The initial file shown in the control. Must be a valid path to a file or
the empty string.
@param message
The message shown to the user in the wxFileDialog shown by the control.
@param wildcard
A wildcard which defines user-selectable files (use the same syntax as for
wxFileDialog's wildcards).
@param pos
Initial position.
@param size
Initial size.
@param style
The window style, see wxFLP_* flags.
@param validator
Validator which can be used for additional date checks.
@param name
Control name.
@@ -194,29 +185,21 @@ public:
/**
@param parent
Parent window, must not be non-@NULL.
@param id
The identifier for the control.
@param path
The initial directory shown in the control. Must be a valid path to a directory
or the empty string.
The initial directory shown in the control. Must be a valid path to a
directory or the empty string.
@param message
The message shown to the user in the wxDirDialog shown by the control.
@param pos
Initial position.
@param size
Initial size.
@param style
The window style, see wxDIRP_* flags.
@param validator
Validator which can be used for additional date checks.
@param name
Control name.

View File

@@ -38,31 +38,29 @@ public:
static void AddHandler(wxFileSystemHandler handler);
/**
Sets the current location. @e location parameter passed to
Sets the current location. @a location parameter passed to
OpenFile() is relative to this path.
@b Caution! Unless @e is_dir is @true the @e location parameter
@b Caution! Unless @a is_dir is @true the @a location parameter
is not the directory name but the name of the file in this directory. All these
commands change the path to "dir/subdir/":
@param location
the new location. Its meaning depends on the value of is_dir
@param is_dir
if @true location is new directory. If @false (default)
location is file in the new directory.
*/
void ChangePathTo(const wxString& location, bool is_dir = @false);
void ChangePathTo(const wxString& location, bool is_dir = false);
/**
Converts filename into URL.
@sa URLToFileName(), wxFileName
@see URLToFileName(), wxFileName
*/
static wxString FileNameToURL(wxFileName filename);
/**
Looks for the file with the given name @e file in a colon or semi-colon
Looks for the file with the given name @a file in a colon or semi-colon
(depending on the current platform) separated list of directories in
@e path. If the file is found in any directory, returns @true and the full
path of the file in @e str, otherwise returns @false and doesn't modify
@@ -70,10 +68,8 @@ public:
@param str
Receives the full path of the file, must not be @NULL
@param path
wxPATH_SEP-separated list of directories
@param file
the name of the file to look for
*/
@@ -82,7 +78,7 @@ public:
/**
Works like wxFindFirstFile. Returns name of the first
filename (within filesystem's current path) that matches @e wildcard. @e flags
filename (within filesystem's current path) that matches @e wildcard. @a flags
may be one of
wxFILE (only files), wxDIR (only directories) or 0 (both).
*/
@@ -111,11 +107,11 @@ public:
(based on value passed to ChangePathTo() method) and then as an
absolute path. Note that the user is responsible for deleting the returned
wxFSFile.
@a flags can be one or more of the following bit values ored together:
@e flags can be one or more of the following bit values ored together:
A stream opened with just the default @e wxFS_READ flag may
or may not be seekable depending on the underlying source.
Passing @e wxFS_READ | wxFS_SEEKABLE for @e flags will
Passing @e wxFS_READ | wxFS_SEEKABLE for @a flags will
back a stream that is not natively seekable with memory or a file
and return a stream that is always seekable.
*/
@@ -158,15 +154,12 @@ public:
@param stream
The input stream that will be used to access data
@param location
The full location (aka filename) of the file
@param mimetype
MIME type of this file. It may be left empty, in which
case the type will be determined from file's extension (location must
not be empty in this case).
@param anchor
Anchor. See GetAnchor() for details.
*/
@@ -185,6 +178,7 @@ public:
/**
Returns anchor (if present). The term of @b anchor can be easily
explained using few examples:
Usually an anchor is presented only if the MIME type is 'text/html'.
But it may have some meaning with other files;
for example myanim.avi#200 may refer to position in animation
@@ -260,16 +254,16 @@ public:
Returns @true if the handler is able to open this file. This function doesn't
check whether the file exists or not, it only checks if it knows the protocol.
Example:
Must be overridden in derived handlers.
*/
virtual bool CanOpen(const wxString& location);
/**
Works like wxFindFirstFile. Returns name of the first
filename (within filesystem's current path) that matches @e wildcard. @e flags
filename (within filesystem's current path) that matches @e wildcard. @a flags
may be one of
wxFILE (only files), wxDIR (only directories) or 0 (both).
This method is only called if CanOpen() returns @true.
*/
virtual wxString FindFirst(const wxString& wildcard,
@@ -277,7 +271,6 @@ public:
/**
Returns next filename that matches parameters passed to wxFileSystem::FindFirst.
This method is only called if CanOpen() returns @true and FindFirst
returned a non-empty string.
*/
@@ -286,16 +279,13 @@ public:
/**
Returns the anchor if present in the location.
See @ref wxFSFile::getanchor wxFSFile for details.
Example: GetAnchor("index.htm#chapter2") == "chapter2"
@b Note: the anchor is NOT part of the left location.
*/
wxString GetAnchor(const wxString& location);
/**
Returns the left location string extracted from @e location.
Example: GetLeftLocation("file:myzipfile.zip#zip:index.htm") ==
"file:myzipfile.zip"
*/
@@ -305,34 +295,29 @@ public:
Returns the MIME type based on @b extension of @e location. (While
wxFSFile::GetMimeType
returns real MIME type - either extension-based or queried from HTTP.)
Example : GetMimeTypeFromExt("index.htm") == "text/html"
*/
wxString GetMimeTypeFromExt(const wxString& location);
/**
Returns the protocol string extracted from @e location.
Example: GetProtocol("file:myzipfile.zip#zip:index.htm") == "zip"
*/
wxString GetProtocol(const wxString& location);
/**
Returns the right location string extracted from @e location.
Example : GetRightLocation("file:myzipfile.zip#zip:index.htm") == "index.htm"
*/
wxString GetRightLocation(const wxString& location);
/**
Opens the file and returns wxFSFile pointer or @NULL if failed.
Must be overridden in derived handlers.
@param fs
Parent FS (the FS from that OpenFile was called). See ZIP handler
for details of how to use it.
@param location
The absolute location of file.
*/

View File

@@ -41,7 +41,7 @@
wxSWISS_FONT
@seealso
@ref overview_wxfontoverview "wxFont overview", wxDC::SetFont, wxDC::DrawText,
@ref overview_wxfontoverview, wxDC::SetFont, wxDC::DrawText,
wxDC::GetTextExtent, wxFontDialog, wxSystemSettings
*/
class wxFont : public wxGDIObject
@@ -53,133 +53,225 @@ public:
@param pointSize
Size in points.
@param pixelSize
Size in pixels: this is directly supported only under MSW
currently where this constructor can be used directly, under other platforms a
currently where this constructor can be used directly, under other
platforms a
font with the closest size to the given one is found using binary search and
the static New method must be used.
@param family
Font family, a generic way of referring to fonts without specifying actual
facename. One of:
wxFONTFAMILY_DEFAULT
Chooses a default font.
wxFONTFAMILY_DECORATIVE
A decorative font.
wxFONTFAMILY_ROMAN
A formal, serif font.
wxFONTFAMILY_SCRIPT
A handwriting font.
wxFONTFAMILY_SWISS
A sans-serif font.
wxFONTFAMILY_MODERN
A fixed pitch font.
wxFONTFAMILY_TELETYPE
A teletype font.
A teletype font.
@param style
One of wxFONTSTYLE_NORMAL, wxFONTSTYLE_SLANT and wxFONTSTYLE_ITALIC.
@param weight
Font weight, sometimes also referred to as font boldness. One of:
wxFONTWEIGHT_NORMAL
Normal font.
wxFONTWEIGHT_LIGHT
Light font.
wxFONTWEIGHT_BOLD
Bold font.
@param underline
The value can be @true or @false. At present this has an effect on Windows and
Motif 2.x only.
The value can be @true or @false. At present this has an effect on Windows
and Motif 2.x only.
@param faceName
An optional string specifying the actual typeface to be used. If it is an empty
string,
An optional string specifying the actual typeface to be used. If it is an
empty string,
a default typeface will be chosen based on the family.
@param encoding
An encoding which may be one of
wxFONTENCODING_SYSTEM
Default system encoding.
wxFONTENCODING_DEFAULT
Default application encoding: this
is the encoding set by calls to
SetDefaultEncoding and which may be set to,
say, KOI8 to create all fonts by default with KOI8 encoding. Initially, the
default application encoding is the same as default system encoding.
wxFONTENCODING_ISO8859_1...15
ISO8859 encodings.
wxFONTENCODING_KOI8
The standard Russian encoding for Internet.
wxFONTENCODING_CP1250...1252
Windows encodings similar to ISO8859 (but not identical).
If the specified encoding isn't available, no font is created
(see also font encoding overview).
@remarks If the desired font does not exist, the closest match will be
chosen. Under Windows, only scalable TrueType fonts
are used.
chosen. Under Windows, only scalable TrueType fonts are
used.
*/
wxFont();
wxFont(const wxFont& font);
wxFont(int pointSize, wxFontFamily family, int style,
wxFontWeight weight,
const bool underline = @false,
const bool underline = false,
const wxString& faceName = "",
wxFontEncoding encoding = wxFONTENCODING_DEFAULT);
wxFont(const wxSize& pixelSize, wxFontFamily family,
int style, wxFontWeight weight,
const bool underline = @false,
const bool underline = false,
const wxString& faceName = "",
wxFontEncoding encoding = wxFONTENCODING_DEFAULT);
//@}
@@ -190,19 +282,17 @@ public:
more info.
@remarks Although all remaining fonts are deleted when the application
exits, the application should try to clean up all
fonts itself. This is because wxWidgets cannot know
if a pointer to the font object is stored in an
application data structure, and there is a risk of
double deletion.
exits, the application should try to clean up all fonts
itself. This is because wxWidgets cannot know if a
pointer to the font object is stored in an application
data structure, and there is a risk of double deletion.
*/
~wxFont();
/**
Returns the current application's default encoding.
@sa @ref overview_wxfontencodingoverview "Font encoding overview",
SetDefaultEncoding()
@see @ref overview_wxfontencodingoverview, SetDefaultEncoding()
*/
static wxFontEncoding GetDefaultEncoding();
@@ -211,7 +301,7 @@ public:
there is no
typeface information.
@sa SetFaceName()
@see SetFaceName()
*/
wxString GetFaceName();
@@ -219,7 +309,7 @@ public:
Gets the font family. See SetFamily() for a list of valid
family identifiers.
@sa SetFamily()
@see SetFamily()
*/
wxFontFamily GetFamily();
@@ -230,7 +320,7 @@ public:
typical
use of this function is for serializing in string-form a wxFont object.
@sa SetNativeFontInfo(),GetNativeFontInfoUserDesc()
@see SetNativeFontInfo(),GetNativeFontInfoUserDesc()
*/
wxString GetNativeFontInfoDesc();
@@ -240,14 +330,14 @@ public:
Some examples of the formats of returned strings (which are platform-dependent)
are in SetNativeFontInfoUserDesc().
@sa GetNativeFontInfoDesc()
@see GetNativeFontInfoDesc()
*/
wxString GetNativeFontInfoUserDesc();
/**
Gets the point size.
@sa SetPointSize()
@see SetPointSize()
*/
int GetPointSize();
@@ -255,14 +345,14 @@ public:
Gets the font style. See wxFont() for a list of valid
styles.
@sa SetStyle()
@see SetStyle()
*/
int GetStyle();
/**
Returns @true if the font is underlined, @false otherwise.
@sa SetUnderlined()
@see SetUnderlined()
*/
bool GetUnderlined();
@@ -270,7 +360,7 @@ public:
Gets the font weight. See wxFont() for a list of valid
weight identifiers.
@sa SetWeight()
@see SetWeight()
*/
wxFontWeight GetWeight();
@@ -283,20 +373,18 @@ public:
/**
Returns @true if this object is a valid font, @false otherwise.
*/
#define bool IsOk() /* implementation is private */
bool IsOk();
//@{
/**
These functions take the same parameters as @ref ctor() wxFont
constructor and return a new font object allocated on the heap.
Using @c New() is currently the only way to directly create a font with
the given size in pixels on platforms other than wxMSW.
*/
static wxFont * New(int pointSize, wxFontFamily family,
int style,
static wxFont* New(int pointSize, wxFontFamily family, int style,
wxFontWeight weight,
const bool underline = @false,
const bool underline = false,
const wxString& faceName = "",
wxFontEncoding encoding = wxFONTENCODING_DEFAULT);
static wxFont* New(int pointSize, wxFontFamily family,
@@ -307,7 +395,7 @@ public:
wxFontFamily family,
int style,
wxFontWeight weight,
const bool underline = @false,
const bool underline = false,
const wxString& faceName = "",
wxFontEncoding encoding = wxFONTENCODING_DEFAULT);
static wxFont* New(const wxSize& pixelSize,
@@ -320,8 +408,7 @@ public:
/**
Sets the default font encoding.
@sa @ref overview_wxfontencodingoverview "Font encoding overview",
GetDefaultEncoding()
@see @ref overview_wxfontencodingoverview, GetDefaultEncoding()
*/
static void SetDefaultEncoding(wxFontEncoding encoding);
@@ -336,10 +423,10 @@ public:
but specify the font family instead or as well. A
suitable font will be found on the end-user's system.
If both the family and the facename are specified,
wxWidgets will first search for the specific face,
and then for a font belonging to the same family.
wxWidgets will first search for the specific face, and
then for a font belonging to the same family.
@sa GetFaceName(), SetFamily()
@see GetFaceName(), SetFamily()
*/
bool SetFaceName(const wxString& faceName);
@@ -350,42 +437,85 @@ public:
One of:
wxFONTFAMILY_DEFAULT
Chooses a default font.
wxFONTFAMILY_DECORATIVE
A decorative font.
wxFONTFAMILY_ROMAN
A formal, serif font.
wxFONTFAMILY_SCRIPT
A handwriting font.
wxFONTFAMILY_SWISS
A sans-serif font.
wxFONTFAMILY_MODERN
A fixed pitch font.
wxFONTFAMILY_TELETYPE
A teletype font.
@sa GetFamily(), SetFaceName()
@see GetFamily(), SetFaceName()
*/
void SetFamily(wxFontFamily family);
@@ -399,7 +529,7 @@ public:
a wxFont
object previously saved in a string-form.
@sa SetNativeFontInfoUserDesc()
@see SetNativeFontInfoUserDesc()
*/
bool SetNativeFontInfo(const wxString& info);
@@ -411,31 +541,26 @@ public:
strings which are user-friendly.
Examples of accepted string formats are:
Generic syntax
Example
on @b wxGTK2: @c [FACE-NAME] [bold] [oblique|italic] [POINTSIZE]
Monospace bold 10
on @b wxMSW: @c [light|bold] [italic] [FACE-NAME] [POINTSIZE] [ENCODING]
Tahoma 10 WINDOWS-1252
on @b wxMac: FIXME
FIXME
For more detailed information about the allowed syntaxes you can look at the
documentation of the native API used for font-rendering (e.g. pango_font_description_from_string).
@sa SetNativeFontInfo()
@see SetNativeFontInfo()
*/
bool SetNativeFontInfoUserDesc(const wxString& info);
@@ -445,7 +570,7 @@ public:
@param pointSize
Size in points.
@sa GetPointSize()
@see GetPointSize()
*/
void SetPointSize(int pointSize);
@@ -455,7 +580,7 @@ public:
@param style
One of wxFONTSTYLE_NORMAL, wxFONTSTYLE_SLANT and wxFONTSTYLE_ITALIC.
@sa GetStyle()
@see GetStyle()
*/
void SetStyle(int style);
@@ -465,7 +590,7 @@ public:
@param underlining
@true to underline, @false otherwise.
@sa GetUnderlined()
@see GetUnderlined()
*/
void SetUnderlined(const bool underlined);
@@ -476,22 +601,41 @@ public:
One of:
wxFONTWEIGHT_NORMAL
Normal font.
wxFONTWEIGHT_LIGHT
Light font.
wxFONTWEIGHT_BOLD
Bold font.
@sa GetWeight()
@see GetWeight()
*/
void SetWeight(wxFontWeight weight);

View File

@@ -56,7 +56,6 @@ public:
/**
Shows the dialog, returning @c wxID_OK if the user pressed Ok, and
@c wxID_CANCEL otherwise.
If the user cancels the dialog (ShowModal returns @c wxID_CANCEL), no font
will be created. If the user presses OK, a new wxFont will be created and
stored in the font dialog's wxFontData structure.
@@ -76,10 +75,8 @@ public:
@param parent
The parent window for the font selection dialog
@param fontInit
If given, this will be the font initially selected in the dialog.
@param caption
If given, this will be used for the dialog caption.
*/

View File

@@ -27,8 +27,8 @@
@category{FIXME}
@seealso
@ref overview_wxfontencodingoverview "Font encoding overview", @ref
overview_samplefont "Font sample", wxFont, wxFontMapper
@ref overview_wxfontencodingoverview, @ref overview_samplefont "Font sample",
wxFont, wxFontMapper
*/
class wxFontEnumerator
{
@@ -36,20 +36,19 @@ public:
/**
Call OnFontEncoding() for each
encoding supported by the given font - or for each encoding supported by at
least some font if @e font is not specified.
least some font if @a font is not specified.
*/
virtual bool EnumerateEncodings(const wxString& font = "");
/**
Call OnFacename() for each font which
supports given encoding (only if it is not wxFONTENCODING_SYSTEM) and is of
fixed width (if @e fixedWidthOnly is @true).
fixed width (if @a fixedWidthOnly is @true).
Calling this function with default arguments will result in enumerating all
fonts available on the system.
*/
virtual bool EnumerateFacenames(wxFontEncoding encoding = wxFONTENCODING_SYSTEM,
bool fixedWidthOnly = @false);
bool fixedWidthOnly = false);
/**
Return array of strings containing all encodings found by
@@ -62,7 +61,7 @@ public:
EnumerateFacenames().
*/
static wxArrayString GetFacenames(wxFontEncoding encoding = wxFONTENCODING_SYSTEM,
bool fixedWidthOnly = @false);
bool fixedWidthOnly = false);
/**
Returns @true if the given string is valid face name, i.e. it's the face name

View File

@@ -51,8 +51,7 @@ public:
/**
Returns the encoding for the given charset (in the form of RFC 2046) or
@c wxFONTENCODING_SYSTEM if couldn't decode it.
Be careful when using this function with @e interactive set to @true
Be careful when using this function with @a interactive set to @true
(default value) as the function then may show a dialog box to the user which
may lead to unexpected reentrancies and may also take a significantly longer
time than a simple function call. For these reasons, it is almost always a bad
@@ -60,15 +59,15 @@ public:
events such as @c EVT_PAINT.
*/
wxFontEncoding CharsetToEncoding(const wxString& charset,
bool interactive = @true);
bool interactive = true);
/**
Get the current font mapper object. If there is no current object, creates
one.
@sa Set()
@see Set()
*/
#define static wxFontMapper * Get() /* implementation is private */
static wxFontMapper* Get();
/**
Returns the array of all possible names for the given encoding. The array is
@@ -84,7 +83,6 @@ public:
available on this system). If successful, return @true and fill info
structure with the parameters required to create the font, otherwise
return @false.
The first form is for wxWidgets' internal use while the second one
is better suitable for general use -- it returns wxFontEncoding which
can consequently be passed to wxFont constructor.
@@ -92,11 +90,11 @@ public:
bool GetAltForEncoding(wxFontEncoding encoding,
wxNativeEncodingInfo* info,
const wxString& facename = wxEmptyString,
bool interactive = @true);
bool interactive = true);
bool GetAltForEncoding(wxFontEncoding encoding,
wxFontEncoding* alt_encoding,
const wxString& facename = wxEmptyString,
bool interactive = @true);
bool interactive = true);
//@}
/**
@@ -126,7 +124,7 @@ public:
Return internal string identifier for the encoding (see also
wxFontMapper::GetEncodingDescription)
@sa GetEncodingFromName()
@see GetEncodingFromName()
*/
static wxString GetEncodingName(wxFontEncoding encoding);
@@ -149,13 +147,12 @@ public:
This method is only useful if you want to plug-in an alternative font mapper
into wxWidgets.
@sa Get()
@see Get()
*/
#define static wxFontMapper * Set(wxFontMapper * mapper) /* implementation is private */
static wxFontMapper* Set(wxFontMapper* mapper);
/**
Set the config object to use (may be @NULL to use default).
By default, the global one (from wxConfigBase::Get() will be used)
and the default root path for the config settings is the string returned by
GetDefaultConfigPath().

View File

@@ -61,26 +61,19 @@ public:
/**
@param parent
Parent window, must not be non-@NULL.
@param id
The identifier for the control.
@param font
The initial font shown in the control. If wxNullFont
is given, the default font is used.
@param pos
Initial position.
@param size
Initial size.
@param style
The window style, see wxFNTP_* flags.
@param validator
Validator which can be used for additional date checks.
@param name
Control name.

View File

@@ -95,24 +95,20 @@ public:
@param parent
The window parent. This may be @NULL. If it is non-@NULL, the frame will
always be displayed on top of the parent window on Windows.
@param id
The window identifier. It may take a value of -1 to indicate a default value.
The window identifier. It may take a value of -1 to indicate a default
value.
@param title
The caption to be displayed on the frame's title bar.
@param pos
The window position. The value wxDefaultPosition indicates a default position, chosen by
The window position. The value wxDefaultPosition indicates a default position,
chosen by
either the windowing system or wxWidgets, depending on platform.
@param size
The window size. The value wxDefaultSize indicates a default size, chosen by
either the windowing system or wxWidgets, depending on platform.
@param style
The window style. See wxFrame.
@param name
The name of the window. This parameter is used to associate a name with the
item,
@@ -123,7 +119,7 @@ public:
any window styles to work (otherwise all styles take
effect).
@sa Create()
@see Create()
*/
wxFrame();
wxFrame(wxWindow* parent, wxWindowID id,
@@ -164,15 +160,12 @@ public:
@param number
The number of fields to create. Specify a
value greater than 1 to create a multi-field status bar.
@param style
The status bar style. See wxStatusBar for a list
of valid styles.
@param id
The status bar window identifier. If -1, an identifier will be chosen by
wxWidgets.
@param name
The status bar window name.
@@ -180,11 +173,10 @@ public:
otherwise.
@remarks The width of the status bar is the whole width of the frame
(adjusted automatically when resizing), and the
height and text size are chosen by the host windowing
system.
(adjusted automatically when resizing), and the height
and text size are chosen by the host windowing system.
@sa SetStatusText(), OnCreateStatusBar(), GetStatusBar()
@see SetStatusText(), OnCreateStatusBar(), GetStatusBar()
*/
virtual wxStatusBar* CreateStatusBar(int number = 1,
long style = 0,
@@ -197,11 +189,9 @@ public:
@param style
The toolbar style. See wxToolBar for a list
of valid styles.
@param id
The toolbar window identifier. If -1, an identifier will be chosen by
wxWidgets.
@param name
The toolbar window name.
@@ -213,7 +203,7 @@ public:
platform, such as wxToolBar95). To use a different
class, override OnCreateToolBar().
@sa CreateStatusBar(), OnCreateToolBar(), SetToolBar(),
@see CreateStatusBar(), OnCreateToolBar(), SetToolBar(),
GetToolBar()
*/
virtual wxToolBar* CreateToolBar(long style = wxBORDER_NONE | wxTB_HORIZONTAL,
@@ -229,7 +219,7 @@ public:
/**
Returns a pointer to the menubar currently associated with the frame (if any).
@sa SetMenuBar(), wxMenuBar, wxMenu
@see SetMenuBar(), wxMenuBar, wxMenu
*/
wxMenuBar* GetMenuBar();
@@ -237,21 +227,21 @@ public:
Returns a pointer to the status bar currently associated with the frame (if
any).
@sa CreateStatusBar(), wxStatusBar
@see CreateStatusBar(), wxStatusBar
*/
wxStatusBar* GetStatusBar();
/**
Returns the status bar pane used to display menu and toolbar help.
@sa SetStatusBarPane()
@see SetStatusBarPane()
*/
int GetStatusBarPane();
/**
Returns a pointer to the toolbar currently associated with the frame (if any).
@sa CreateToolBar(), wxToolBar, SetToolBar()
@see CreateToolBar(), wxToolBar, SetToolBar()
*/
wxToolBar* GetToolBar();
@@ -260,25 +250,22 @@ public:
@param number
The number of fields to create.
@param style
The window style. See wxStatusBar for a list
of valid styles.
@param id
The window identifier. If -1, an identifier will be chosen by
wxWidgets.
@param name
The window name.
@returns A status bar object.
@remarks An application can override this function to return a different
kind of status bar. The default implementation
returns an instance of wxStatusBar.
kind of status bar. The default implementation returns
an instance of wxStatusBar.
@sa CreateStatusBar(), wxStatusBar.
@see CreateStatusBar(), wxStatusBar.
*/
virtual wxStatusBar* OnCreateStatusBar(int number, long style,
wxWindowID id,
@@ -290,21 +277,19 @@ public:
@param style
The toolbar style. See wxToolBar for a list
of valid styles.
@param id
The toolbar window identifier. If -1, an identifier will be chosen by
wxWidgets.
@param name
The toolbar window name.
@returns A toolbar object.
@remarks An application can override this function to return a different
kind of toolbar. The default implementation returns
an instance of wxToolBar.
kind of toolbar. The default implementation returns an
instance of wxToolBar.
@sa CreateToolBar(), wxToolBar.
@see CreateToolBar(), wxToolBar.
*/
virtual wxToolBar* OnCreateToolBar(long style, wxWindowID id,
const wxString& name);
@@ -322,7 +307,6 @@ public:
forcing it to reevaluate its children positions. It is sometimes useful to call
this function after adding or deleting a children after the frame creation or
if a child size changes.
Note that if the frame is using either sizers or constraints for the children
layout, it is enough to call wxWindow::Layout directly and
this function should not be used in this case.
@@ -337,17 +321,17 @@ public:
@remarks If the frame is destroyed, the menu bar and its menus will be
destroyed also, so do not delete the menu bar
explicitly (except by resetting the frame's menu bar
to another frame or @NULL).
explicitly (except by resetting the frame's menu bar to
another frame or @NULL).
@sa GetMenuBar(), wxMenuBar, wxMenu.
@see GetMenuBar(), wxMenuBar, wxMenu.
*/
void SetMenuBar(wxMenuBar* menuBar);
/**
Associates a status bar with the frame.
@sa CreateStatusBar(), wxStatusBar, GetStatusBar()
@see CreateStatusBar(), wxStatusBar, GetStatusBar()
*/
void SetStatusBar(wxStatusBar* statusBar);
@@ -362,13 +346,12 @@ public:
@param text
The text for the status field.
@param number
The status field (starting from zero).
@remarks Use an empty string to clear the status bar.
@sa CreateStatusBar(), wxStatusBar
@see CreateStatusBar(), wxStatusBar
*/
virtual void SetStatusText(const wxString& text, int number = 0);
@@ -378,17 +361,17 @@ public:
@param n
The number of fields in the status bar. It must be the
same used in CreateStatusBar.
@param widths
Must contain an array of n integers, each of which is a status field width
in pixels. A value of -1 indicates that the field is variable width; at least
one
field must be -1. You should delete this array after calling SetStatusWidths.
in pixels. A value of -1 indicates that the field is variable width; at
least one
field must be -1. You should delete this array after calling
SetStatusWidths.
@remarks The widths of the variable fields are calculated from the total
width of all fields, minus the sum of widths of the
non-variable fields, divided by the number of
variable fields.
non-variable fields, divided by the number of variable
fields.
*/
virtual void SetStatusWidths(int n, int* widths);

View File

@@ -78,13 +78,12 @@ public:
data (bitmap, text or raw data)
will be copied into private memory stream and available under
name "memory:" + @e filename.
The @e type argument is one of @c wxBITMAP_TYPE_XXX constants.
Note that you must use a @e type value (aka image format)
The @a type argument is one of @c wxBITMAP_TYPE_XXX constants.
Note that you must use a @a type value (aka image format)
that wxWidgets can save (e.g. JPG, PNG, see wxImage
documentation)!
@sa AddFileWithMimeType()
@see AddFileWithMimeType()
*/
static void AddFile(const wxString& filename, wxImage& image,
long type);
@@ -98,10 +97,9 @@ public:
Like AddFile(), but lets you explicitly
specify added file's MIME type. This version should be used whenever you know
the MIME type, because it makes accessing the files faster.
This function is new since wxWidgets version 2.8.5
@sa AddFile()
@see AddFile()
*/
static void AddFileWithMimeType(const wxString& filename,
const wxString& textdata,

View File

@@ -52,27 +52,21 @@ public:
@param parent
Window parent.
@param id
Window identifier.
@param range
Integer range (maximum value) of the gauge. It is ignored when the gauge is
used in indeterminate mode.
@param pos
Window position.
@param size
Window size.
@param style
Gauge style. See wxGauge.
@param name
Window name.
@sa Create()
@see Create()
*/
wxGauge();
wxGauge(wxWindow* parent, wxWindowID id, int range,
@@ -104,14 +98,14 @@ public:
@remarks This method is not implemented (returns 0) for most platforms.
@sa SetBezelFace()
@see SetBezelFace()
*/
int GetBezelFace();
/**
Returns the maximum position of the gauge.
@sa SetRange()
@see SetRange()
*/
int GetRange();
@@ -120,14 +114,14 @@ public:
@remarks This method is not implemented (returns 0) for most platforms.
@sa SetShadowWidth()
@see SetShadowWidth()
*/
int GetShadowWidth();
/**
Returns the current position of the gauge.
@sa SetValue()
@see SetValue()
*/
int GetValue();
@@ -140,7 +134,6 @@ public:
/**
Switch the gauge to indeterminate mode (if required) and makes the gauge move
a bit to indicate the user that some progress has been made.
Note that after calling this function the value returned by GetValue()
is undefined and thus you need to explicitely call SetValue() if you
want to restore the determinate mode.
@@ -153,7 +146,7 @@ public:
@remarks This method is not implemented (doesn't do anything) for most
platforms.
@sa GetBezelFace()
@see GetBezelFace()
*/
void SetBezelFace(int width);
@@ -161,7 +154,7 @@ public:
Sets the range (maximum value) of the gauge.
This function makes the gauge switch to determinate mode, if it's not already.
@sa GetRange()
@see GetRange()
*/
void SetRange(int range);
@@ -174,16 +167,15 @@ public:
void SetShadowWidth(int width);
/**
Sets the position of the gauge. The @e pos must be between 0 and the gauge
Sets the position of the gauge. The @a pos must be between 0 and the gauge
range as returned by GetRange(), inclusive.
This function makes the gauge switch to determinate mode, if it was in
indeterminate mode before.
@param pos
Position for the gauge level.
@sa GetValue()
@see GetValue()
*/
void SetValue(int pos);
};

View File

@@ -92,18 +92,18 @@ public:
const wxGBSpan& span = wxDefaultSpan,
int flag = 0,
int border = 0,
wxObject* userData = @NULL);
wxObject* userData = NULL);
wxSizerItem* Add(wxSizer* sizer, const wxGBPosition& pos,
const wxGBSpan& span = wxDefaultSpan,
int flag = 0,
int border = 0,
wxObject* userData = @NULL);
wxObject* userData = NULL);
wxSizerItem* Add(int width, int height,
const wxGBPosition& pos,
const wxGBSpan& span = wxDefaultSpan,
int flag = 0,
int border = 0,
wxObject* userData = @NULL);
wxObject* userData = NULL);
wxSizerItem* Add(wxGBSizerItem* item);
//@}
@@ -121,10 +121,10 @@ public:
example it may be the item we are checking the position of.
*/
bool CheckForIntersection(wxGBSizerItem* item,
wxGBSizerItem* excludeItem = @NULL);
wxGBSizerItem* excludeItem = NULL);
bool CheckForIntersection(const wxGBPosition& pos,
const wxGBSpan& span,
wxGBSizerItem* excludeItem = @NULL);
wxGBSizerItem* excludeItem = NULL);
//@}
//@{

View File

@@ -26,11 +26,8 @@ public:
//@{
/**
Create a point.
double x
double y
Members of the @b wxRealPoint object.
*/
wxRealPoint();
@@ -69,7 +66,7 @@ public:
/**
Returns the rectangle having the same size as this one but centered relatively
to the given rectangle @e r. By default, rectangle is centred in both
directions but if @e dir includes only @c wxVERTICAL or only
directions but if @a dir includes only @c wxVERTICAL or only
@c wxHORIZONTAL flag, then it is only centered in this direction while
the other component of its position remains unchanged.
*/
@@ -90,12 +87,11 @@ public:
//@{
/**
Decrease the rectangle size.
This method is the opposite from Inflate():
Deflate(a, b) is equivalent to Inflate(-a, -b).
Please refer to Inflate() for full description.
@sa Inflate()
@see Inflate()
*/
void Deflate(wxCoord dx, wxCoord dy);
void Deflate(const wxSize& diff);
@@ -141,7 +137,7 @@ public:
/**
Gets the size.
@sa SetSize()
@see SetSize()
*/
wxSize GetSize();
@@ -169,38 +165,32 @@ public:
/**
Gets the x member.
*/
#define int GetX() /* implementation is private */
int GetX();
/**
Gets the y member.
*/
#define int GetY() /* implementation is private */
int GetY();
//@{
/**
Increases the size of the rectangle.
The second form uses the same @e diff for both @e dx and @e dy.
The second form uses the same @a diff for both @a dx and @e dy.
The first two versions modify the rectangle in place, the last one returns a
new rectangle leaving this one unchanged.
The left border is moved farther left and the right border is moved farther
right by @e dx. The upper border is moved farther up and the bottom border
is moved farther down by @e dy. (Note the the width and height of the
rectangle thus change by 2*@e dx and 2*@e dy, respectively.) If one or
both of @e dx and @e dy are negative, the opposite happens: the rectangle
rectangle thus change by 2*@a dx and 2*@e dy, respectively.) If one or
both of @a dx and @a dy are negative, the opposite happens: the rectangle
size decreases in the respective direction.
Inflating and deflating behaves "naturally''. Defined more precisely, that
means:
"Real'' inflates (that is, @e dx and/or @e dy = 0) are not
"Real'' inflates (that is, @a dx and/or @a dy = 0) are not
constrained. Thus inflating a rectangle can cause its upper left corner
to move into the negative numbers. (the versions prior to 2.5.4 forced
the top left coordinate to not fall below (0, 0), which implied a
forced move of the rectangle.)
Deflates are clamped to not reduce the width or height of the
rectangle below zero. In such cases, the top-left corner is nonetheless
handled properly. For example, a rectangle at (10, 10) with size (20,
@@ -210,7 +200,7 @@ public:
whereas the height is reduced by the full 30 (rather than also stopping
at 20, when the width reached zero).
@sa Deflate()
@see Deflate()
*/
void Inflate(wxCoord dx, wxCoord dy);
void Inflate(const wxSize& diff);
@@ -230,7 +220,7 @@ public:
/**
Returns @true if this rectangle has a non-empty intersection with the
rectangle @e rect and @false otherwise.
rectangle @a rect and @false otherwise.
*/
bool Intersects(const wxRect& rect);
@@ -242,8 +232,8 @@ public:
//@{
/**
Moves the rectangle by the specified offset. If @e dx is positive, the
rectangle is moved to the right, if @e dy is positive, it is moved to the
Moves the rectangle by the specified offset. If @a dx is positive, the
rectangle is moved to the right, if @a dy is positive, it is moved to the
bottom, otherwise it is moved to the left or top respectively.
*/
void Offset(wxCoord dx, wxCoord dy);
@@ -258,7 +248,7 @@ public:
/**
Sets the size.
@sa GetSize()
@see GetSize()
*/
void SetSize(const wxSize& s);
@@ -270,12 +260,12 @@ public:
/**
Sets the x position.
*/
#define void SetX(int x) /* implementation is private */
void SetX(int x);
/**
Sets the y position.
*/
#define void SetY(int y) /* implementation is private */
void SetY(int y);
//@{
/**
@@ -289,7 +279,6 @@ public:
/**
int height
Height member.
*/
@@ -318,21 +307,18 @@ public:
/**
int width
Width member.
*/
/**
int x
x coordinate of the top-level corner of the rectangle.
*/
/**
int y
y coordinate of the top-level corner of the rectangle.
*/
};
@@ -366,7 +352,6 @@ public:
@param colour
Colour object.
@param style
Brush style. See wxBrush::SetStyle for a list of styles.
*/
@@ -423,14 +408,12 @@ public:
/**
int x
x member.
*/
/**
int y
y member.
*/
};
@@ -468,7 +451,6 @@ public:
/**
Adds a colour to the database. If a colour with the same name already exists,
it is replaced.
Please note that the overload taking a pointer is deprecated and will be
removed in the next wxWidgets version, please don't use it.
*/
@@ -528,8 +510,8 @@ public:
*/
wxFont* FindOrCreateFont(int point_size, int family, int style,
int weight,
bool underline = @false,
const wxString& facename = @NULL,
bool underline = false,
const wxString& facename = NULL,
wxFontEncoding encoding = wxFONTENCODING_DEFAULT);
};
@@ -570,12 +552,11 @@ public:
//@{
/**
Decreases the size in x- and y- directions
By @e size.x and @e size.y for the first overload
By @e dx and @e dy for the second one
By @e d and @e d for the third one
By @a dx and @a dy for the second one
By @a d and @a d for the third one
@sa IncBy()
@see IncBy()
*/
void DecBy(const wxSize& size);
void DecBy(int dx, int dy);
@@ -586,7 +567,7 @@ public:
Decrements this object so that both of its dimensions are not greater than the
corresponding dimensions of the @e size.
@sa IncTo()
@see IncTo()
*/
void DecTo(const wxSize& size);
@@ -603,12 +584,11 @@ public:
//@{
/**
Increases the size in x- and y- directions
By @e size.x and @e size.y for the first overload
By @e dx and @e dy for the second one
By @e d and @e d for the third one
By @a dx and @a dy for the second one
By @a d and @a d for the third one
@sa DecBy()
@see DecBy()
*/
void IncBy(const wxSize& size);
void IncBy(int dx, int dy);
@@ -619,7 +599,7 @@ public:
Increments this object so that both of its dimensions are not less than the
corresponding dimensions of the @e size.
@sa DecTo()
@see DecTo()
*/
void IncTo(const wxSize& size);
@@ -627,7 +607,6 @@ public:
Returns @true if neither of the size object components is equal to -1, which
is used as default for the size values in wxWidgets (hence the predefined
@c wxDefaultSize has both of its components equal to -1).
This method is typically used before calling
SetDefaults().
*/
@@ -656,7 +635,6 @@ public:
Scales the dimensions of this object by the given factors.
If you want to scale both dimensions by the same factor you can also use
the @ref operators() "operator *="
Returns a reference to this object (so that you can concatenate other
operations in the same line).
*/
@@ -665,14 +643,14 @@ public:
/**
Sets the width and height members.
*/
#define void Set(int width, int height) /* implementation is private */
void Set(int width, int height);
/**
Combine this size object with another one replacing the default (i.e. equal
to -1) components of this object with those of the other. It is typically
used like this:
@sa IsFullySpecified()
@see IsFullySpecified()
*/
void SetDefaults(const wxSize& sizeDefault);
@@ -742,13 +720,10 @@ public:
@param colour
Colour object.
@param colourName
Colour name, which should be in the colour database.
@param width
Width of pen.
@param style
Pen style. See wxPen::wxPen for a list of styles.
*/
@@ -797,9 +772,9 @@ wxSize wxGetDisplaySizeMM();
for which they exist, i.e. Windows and OS2) or from an XPM file. It allows to
avoid using @c #ifdefs when creating icons.
@sa @ref overview_wxbitmapoverview "Bitmaps and icons overview", wxBITMAP
@see @ref overview_wxbitmapoverview, wxBITMAP
*/
#define wxICON() /* implementation is private */
wxICON();
/**
Returns @true if the display is colour, @false otherwise.
@@ -811,7 +786,7 @@ bool wxColourDisplay();
for which they exist, i.e. Windows and OS2) or from an XPM file. It allows to
avoid using @c #ifdefs when creating bitmaps.
@sa @ref overview_wxbitmapoverview "Bitmaps and icons overview", wxICON
@see @ref overview_wxbitmapoverview, wxICON
*/
#define wxBITMAP() /* implementation is private */

View File

@@ -48,24 +48,22 @@ public:
Constructor.
@param win
The canvas that is used to initialize this context. This parameter is needed
only temporarily,
The canvas that is used to initialize this context. This parameter is
needed only temporarily,
and the caller may do anything with it (e.g. destroy the window) after the
constructor returned.
It will be possible to bind (make current) this context to any other wxGLCanvas
that has been created
It will be possible to bind (make current) this context to any other
wxGLCanvas that has been created
with equivalent attributes as win.
@param other
Context to share display lists with or @NULL (the default) for no sharing.
*/
wxGLContext(wxGLCanvas* win, const wxGLContext* other=@NULL);
wxGLContext(wxGLCanvas* win, const wxGLContext* other = NULL);
/**
Makes the OpenGL state that is represented by this rendering context current
with the wxGLCanvas @e win.
Note that @e win can be a different wxGLCanvas window than the one that was
Note that @a win can be a different wxGLCanvas window than the one that was
passed to the constructor of this rendering context.
If @e RC is an object of type wxGLContext, the statements @e
RC.SetCurrent(win); and @e win.SetCurrent(RC); are equivalent,
@@ -123,48 +121,42 @@ public:
/**
Creates a window with the given parameters. Notice that you need to create and
use a wxGLContext to output to this window.
If
@param attribList is not specified, double buffered RGBA mode is used.
parent
Pointer to a parent window.
@param id
Window identifier. If -1, will automatically create an identifier.
@param pos
Window position. wxDefaultPosition is (-1, -1) which indicates that wxWidgets
Window position. wxDefaultPosition is (-1, -1) which indicates that
wxWidgets
should generate a default position for the window.
@param size
Window size. wxDefaultSize is (-1, -1) which indicates that wxWidgets should
generate a default size for the window. If no suitable size can be found, the
window will be sized to 20x20 pixels so that the window is visible but obviously not correctly sized.
generate a default size for the window. If no suitable size can be found,
the window will be sized to 20x20 pixels so that the window is visible but obviously not correctly sized.
@param style
Window style.
@param name
Window name.
@param attribList
Array of integers. With this parameter you can set the device context
attributes associated to this window.
This array is zero-terminated: it should be set up with constants described in
the table above.
If a constant should be followed by a value, put it in the next array position.
This array is zero-terminated: it should be set up with constants described
in the table above.
If a constant should be followed by a value, put it in the next array
position.
For example, the WX_GL_DEPTH_SIZE should be followed by the value that
indicates the number of
bits for the depth buffer, so:
@param palette
Palette for indexed colour (i.e. non WX_GL_RGBA) mode.
Ignored under most platforms.
*/
wxGLCanvas(wxWindow* parent, wxWindowID id = wxID_ANY,
const int* attribList = @NULL,
const int* attribList = NULL,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
long style = 0,
@@ -173,13 +165,12 @@ public:
/**
Determines if a canvas having the specified attributes is available.
Returns @true if attributes are supported.
@param attribList
See attribList for wxGLCanvas().
*/
static bool IsDisplaySupported(const int * attribList = @NULL);
static bool IsDisplaySupported(const int* attribList = NULL);
/**
Sets the current colour for this window (using @c glcolor3f()), using the
@@ -189,15 +180,12 @@ public:
/**
Makes the OpenGL state that is represented by the OpenGL rendering context
@e context current, i.e. it will be used by all subsequent OpenGL calls.
@a context current, i.e. it will be used by all subsequent OpenGL calls.
This is equivalent to wxGLContext::SetCurrent
called with this window as parameter.
Note that this function may only be called when the window is shown on screen,
in particular it can't usually be called from the constructor as the window
isn't yet shown at this moment.
Returns @false if an error occurred.
*/
bool SetCurrent(const wxGLContext context);
@@ -206,7 +194,6 @@ public:
Swaps the double-buffer of this window, making the back-buffer the front-buffer
and vice versa,
so that the output of the previous OpenGL commands is displayed on the window.
Returns @false if an error occurred.
*/
bool SwapBuffers();

View File

@@ -221,7 +221,7 @@ public:
/**
Creates a wxGraphicsContext from a wxWindow.
@sa wxGraphicsRenderer:: CreateContext
@see wxGraphicsRenderer:: CreateContext
*/
wxGraphicsContext* Create(const wxWindowDC& dc);
wxGraphicsContext* Create(wxWindow* window);
@@ -245,12 +245,12 @@ public:
Creates a wxGraphicsContext from a native window.
@sa wxGraphicsRenderer:: CreateContextFromNativeContext
@see wxGraphicsRenderer:: CreateContextFromNativeContext
*/
wxGraphicsContext* CreateFromNative(void* context);
/**
@sa wxGraphicsRenderer:: CreateContextFromNativeWindow
@see wxGraphicsRenderer:: CreateContextFromNativeWindow
*/
wxGraphicsContext* CreateFromNativeWindow(void* window);
@@ -362,8 +362,8 @@ public:
void* GetNativeContext();
/**
Fills the @e widths array with the widths from the beginning of
@e text to the corresponding character of @e text.
Fills the @a widths array with the widths from the beginning of
@a text to the corresponding character of @e text.
*/
void GetPartialTextExtents(const wxString& text,
wxArrayDouble& widths);
@@ -371,9 +371,9 @@ public:
/**
Gets the dimensions of the string using the currently selected font.
@e string is the text string to measure, @e w and @e h are
the total width and height respectively, @e descent is the
the total width and height respectively, @a descent is the
dimension from the baseline of the font to the bottom of the
descender, and @e externalLeading is any extra vertical space added
descender, and @a externalLeading is any extra vertical space added
to the font by the font designer (usually is zero).
*/
void GetTextExtent(const wxString& text, wxDouble* width,
@@ -621,9 +621,9 @@ public:
/**
Returns the component values of the matrix via the argument pointers.
*/
#define void Get(wxDouble* a=@NULL, wxDouble* b=@NULL, wxDouble* c=@NULL,
wxDouble* d=@NULL, wxDouble* tx=@NULL,
wxDouble* ty=@NULL) /* implementation is private */
void Get(wxDouble* a = NULL, wxDouble* b = NULL, wxDouble* c = NULL,
wxDouble* d = NULL, wxDouble* tx = NULL,
wxDouble* ty = NULL);
/**
Returns the native representation of the matrix. For CoreGraphics this is a
@@ -660,9 +660,9 @@ public:
Sets the matrix to the respective values (default values are the identity
matrix)
*/
#define void Set(wxDouble a = 1.0, wxDouble b = 0.0, wxDouble c = 0.0,
void Set(wxDouble a = 1.0, wxDouble b = 0.0, wxDouble c = 0.0,
wxDouble d = 1.0, wxDouble tx = 0.0,
wxDouble ty = 0.0) /* implementation is private */
wxDouble ty = 0.0);
/**
Applies this matrix to a distance (ie. performs all transforms except

Some files were not shown because too many files have changed in this diff Show More