From: Robert Roebling Date: Sat, 4 Dec 1999 13:28:26 +0000 (+0000) Subject: Documented wxStopWatch and wxToolBar::AddControl(). X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/5f445b310b239ea4d26996d4384899c66aa833c5 Documented wxStopWatch and wxToolBar::AddControl(). git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4816 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/docs/gtk/changes.txt b/docs/gtk/changes.txt index f50059eae2..01d1c80132 100644 --- a/docs/gtk/changes.txt +++ b/docs/gtk/changes.txt @@ -1,6 +1,30 @@ 20th November '99: wxWindows 2.1.12 released +Who has a BigEndian computer (e.g. Sparc) that runs a 15 and/or +16 bit colour mode. I need this for testing purposes, i.e. this +person could help me by running a small testprogram and sending +me the output. + +Added wxStopWatch class. + +wxBitmap now derives from wxGDIObject. + +Added inlined classes for 2D geometry calculations. + +wxSpinCtrl now has its own event, intercepted using EVT_SPINCTRL. + +The ODBC classes can now be configured at run-time if they +are to use forward-only cursors or not. + +Added wxDateTime class. + +Rewritten wxThread to have a flag controlling if the +thread will delete its C++ class itself ("delete this") or +if the main thread must delete the C++ class. + +Added TIFF reading code. + Minor compile and build fixes for different architectures. Added more flags to wxSizer for proportional sizing and @@ -24,6 +48,11 @@ Some minor updates to wxSockets. Speed-up for new encoding related font code. +Change wxListCtrl to send deferred events, i.e. events emitted by +the list ctrl won't get processed before the next idle message. + +Some more minor changes. + 7st November '99: wxWindows 2.1.11 released There is still an unresolved problem with bitmap to image diff --git a/docs/latex/wx/category.tex b/docs/latex/wx/category.tex index 806ffb90b7..be71c5c4a4 100644 --- a/docs/latex/wx/category.tex +++ b/docs/latex/wx/category.tex @@ -417,6 +417,7 @@ libraries, and to provide enhanced functionality. \twocolitem{\helpref{wxLayoutAlgorithm}{wxlayoutalgorithm}}{An alternative window layout facility} \twocolitem{\helpref{wxProcess}{wxprocess}}{Process class} \twocolitem{\helpref{wxTimer}{wxtimer}}{Timer class} +\twocolitem{\helpref{wxStopWatch}{wxstopwatch}}{Stop watch class} \twocolitem{\helpref{wxSystemSettings}{wxsystemsettings}}{System settings class} \end{twocollist} diff --git a/docs/latex/wx/timer.tex b/docs/latex/wx/timer.tex index a3d297137c..4560342c9d 100644 --- a/docs/latex/wx/timer.tex +++ b/docs/latex/wx/timer.tex @@ -15,7 +15,7 @@ Stop}, it's as simple as that. \wxheading{See also} -\helpref{::wxStartTimer}{wxstarttimer}, \helpref{::wxGetElapsedTime}{wxgetelapsedtime} +\helpref{::wxStartTimer}{wxstarttimer}, \helpref{::wxGetElapsedTime}{wxgetelapsedtime}, \helpref{wxStopWatch}{wxstopwatch} \latexignore{\rtfignore{\wxheading{Members}}} @@ -60,4 +60,48 @@ called. If TRUE, Notify will be called only once. Stops the timer. +\section{\class{wxStopWatch}}\label{wxstopwatch} +The wxStopWatch class allow you to measure time intervalls. + +\wxheading{Include files} + + + +\wxheading{See also} + +\helpref{::wxStartTimer}{wxstarttimer}, \helpref{::wxGetElapsedTime}{wxgetelapsedtime}, \helpref{wxTimer}{wxtimer} + +\latexignore{\rtfignore{\wxheading{Members}}} + +\membersection{wxStopWatch::wxStopWatch} + +\func{}{wxStopWatch}{\void} + +Constructor. This starts the stop watch. + +\membersection{wxStopWatch::Pause}\label{wxstopwatchpause} + +\func{void}{Pause}{\void} + +Pauses the stop watch. Call \helpref{wxStopWatch::Resume}{wxstopwatchresume} to resume +time measuring again. + +\membersection{wxStopWatch::Start} + +\func{void}{Start}{\param{long}{ milliseconds = 0}} + +(Re)starts the stop watch with a given initial value. + +\membersection{wxStopWatch::Resume}\label{wxstopwatchresume} + +\func{void}{Resume}{\void} + +Resumes the stop watch after having been paused with \helpref{wxStopWatch::Pause}{wxstopwatchpause}. + +\membersection{wxStopWatch::Time} + +\func{long}{Time}{\void}\label{wxstopwatchtime} + +Returns the time in milliseconds since the start (or restart) or the last call of +\helpref{wxStopWatch::Pause}{wxstopwatchpause}. diff --git a/docs/latex/wx/toolbar.tex b/docs/latex/wx/toolbar.tex index c348cf28c8..1c4942264c 100644 --- a/docs/latex/wx/toolbar.tex +++ b/docs/latex/wx/toolbar.tex @@ -11,7 +11,7 @@ Used on platforms with no native toolbar control, or where scrolling is required \end{itemize} Note that the base class {\bf wxToolBarBase} defines -automatic scrolling management functionality which is identical +automatic scrolling management functionality which is similar to \helpref{wxScrolledWindow}{wxscrolledwindow}, so please refer to this class also. Not all toolbars support scrolling, but wxToolBarSimple does. @@ -36,10 +36,15 @@ wxToolBarBase\\ You may also create a toolbar that is managed by the frame, by calling \helpref{wxFrame::CreateToolBar}{wxframecreatetoolbar}. +Due to the use of native toolbars on the various platforms, certain adaptions will +often have to be made in order to get optimal look on all platforms as some platforms +ignore the values for explicit placement and use their own layout and the meaning +of a "separator" is a vertical line under Windows95 vs. simple space under GTK etc. + {\bf wxToolBar95:} Note that this toolbar paints tools to reflect user-selected colours. The toolbar orientation must always be {\bf wxHORIZONTAL}. -{\bf wxToolBarGtk:} The toolbar orientation is ignored and is always {\bf wxHORIZONTAL}. +{\bf wxToolBarGtk:} The toolbar orientation is ignored and is always {\bf wxHORIZONTAL}. \wxheading{Window styles} @@ -143,6 +148,14 @@ calling \helpref{wxFrame::CreateToolBar}{wxframecreatetoolbar}. Toolbar destructor. +\membersection{wxToolBar::AddControl}\label{wxtoolbaraddcontrol} + +\func{bool}{AddControl}{\param{wxControl*}{ control}} + +Adds any control to the toolbar, typically e.g. a combobox. + +\docparam{control}{The control to be added.} + \membersection{wxToolBar::AddSeparator}\label{wxtoolbaraddseparator} \func{void}{AddSeparator}{\void}