diff options
| author | Albrecht Schlosser <albrechts.fltk@online.de> | 2020-07-01 18:03:10 +0200 |
|---|---|---|
| committer | Albrecht Schlosser <albrechts.fltk@online.de> | 2020-07-06 20:28:20 +0200 |
| commit | f09e17c3c564e8310125a10c03397cbf473ff643 (patch) | |
| tree | 8d0fd4a28e3686c33aaa140d07ddba26ab28bdc2 /FL/Fl_Clock.H | |
| parent | b0e0c355edaa2e23148cb0260ada907aec930f05 (diff) | |
Remove $Id$ tags, update URL's, and more
- remove obsolete svn '$Id$' tags from all source files
- update .fl files and generated files accordingly
- replace 'http://www.fltk.org' URL's with 'https://...'
- replace bug report URL 'str.php' with 'bugs.php'
- remove trailing whitespace
- fix other whitespace errors flagged by Git
- add and/or fix missing or wrong standard headers
- convert tabs to spaces in all source files
The only relevant code changes are in the fluid/ folder where
some .fl files and other source files were used to generate
the '$Id' headers and footers.
Diffstat (limited to 'FL/Fl_Clock.H')
| -rw-r--r-- | FL/Fl_Clock.H | 60 |
1 files changed, 27 insertions, 33 deletions
diff --git a/FL/Fl_Clock.H b/FL/Fl_Clock.H index 74c1ede63..aa29ec04a 100644 --- a/FL/Fl_Clock.H +++ b/FL/Fl_Clock.H @@ -1,6 +1,4 @@ // -// "$Id$" -// // Clock header file for the Fast Light Tool Kit (FLTK). // // Copyright 1998-2017 by Bill Spitzak and others. @@ -9,11 +7,11 @@ // the file "COPYING" which should have been included with this file. If this // file is missing or damaged, see the license at: // -// http://www.fltk.org/COPYING.php +// https://www.fltk.org/COPYING.php // -// Please report all bugs and problems on the following page: +// Please see the following page on how to report bugs and issues: // -// http://www.fltk.org/str.php +// https://www.fltk.org/bugs.php // /* \file @@ -30,12 +28,12 @@ // Please change doxygen documentation below (class Fl_Clock_Output) // accordingly as well when changing the following type values: -#define FL_SQUARE_CLOCK 0 /**< type() of Square Clock variant */ -#define FL_ROUND_CLOCK 1 /**< type() of Round Clock variant */ -#define FL_ANALOG_CLOCK FL_SQUARE_CLOCK /**< An analog clock is square */ +#define FL_SQUARE_CLOCK 0 /**< type() of Square Clock variant */ +#define FL_ROUND_CLOCK 1 /**< type() of Round Clock variant */ +#define FL_ANALOG_CLOCK FL_SQUARE_CLOCK /**< An analog clock is square */ #define FL_DIGITAL_CLOCK FL_SQUARE_CLOCK /**< Not yet implemented */ -// fabien: Please keep the horizontal formatting of both images in class desc, +// fabien: Please keep the horizontal formatting of both images in class desc, // don't lose vertical space for nothing! /** @@ -45,11 +43,11 @@ The time shown on the clock is not updated. To display the current time, use Fl_Clock instead. - \htmlonly <BR> <table align=CENTER border=1 cellpadding=5 > + \htmlonly <BR> <table align=CENTER border=1 cellpadding=5 > <caption align=bottom>type() FL_SQUARE_CLOCK and FL_ROUND_CLOCK </caption> <TR><TD> \endhtmlonly - \image html clock.png + \image html clock.png \htmlonly </TD> <TD> \endhtmlonly - \image html round_clock.png + \image html round_clock.png \htmlonly </TD> </TR> </table> \endhtmlonly \image latex clock.png "FL_SQUARE_CLOCK type" width=4cm \image latex round_clock.png "FL_ROUND_CLOCK type" width=4cm @@ -57,10 +55,10 @@ Values for clock type() (\#include \<FL/Clock.H\>): \code - #define FL_SQUARE_CLOCK 0 // Square Clock variant - #define FL_ROUND_CLOCK 1 // Round Clock variant - #define FL_ANALOG_CLOCK FL_SQUARE_CLOCK // An analog clock is square - #define FL_DIGITAL_CLOCK FL_SQUARE_CLOCK // Not yet implemented + #define FL_SQUARE_CLOCK 0 // Square Clock variant + #define FL_ROUND_CLOCK 1 // Round Clock variant + #define FL_ANALOG_CLOCK FL_SQUARE_CLOCK // An analog clock is square + #define FL_DIGITAL_CLOCK FL_SQUARE_CLOCK // Not yet implemented \endcode */ @@ -76,8 +74,8 @@ public: Fl_Clock_Output(int X, int Y, int W, int H, const char *L = 0); - void value(ulong v); // set to this Unix time - + void value(ulong v); // set to this Unix time + void value(int H, int m, int s); /** @@ -108,9 +106,9 @@ public: /** Returns the shadow drawing mode of the hands. - \returns shadow drawing mode of the hands - \retval 0 no shadows - \retval 1 draw shadows of hands (default) + \returns shadow drawing mode of the hands + \retval 0 no shadows + \retval 1 draw shadows of hands (default) */ int shadow() const {return shadow_;} @@ -124,7 +122,7 @@ public: The default is to draw the shadows (1). - \param[in] mode 1 = shadows (default), 0 = no shadows + \param[in] mode 1 = shadows (default), 0 = no shadows */ void shadow(int mode) { shadow_ = mode ? 1 : 0; } }; @@ -135,18 +133,18 @@ public: \class Fl_Clock \brief This widget provides a round analog clock display. - Fl_Clock is provided for Forms compatibility. + Fl_Clock is provided for Forms compatibility. It installs a 1-second timeout callback using Fl::add_timeout(). You can choose the rounded or square type of the clock with type(). Please see Fl_Clock_Output widget for applicable values. - \htmlonly <BR> <table align=CENTER border=1 cellpadding=5 > + \htmlonly <BR> <table align=CENTER border=1 cellpadding=5 > <caption align=bottom>type() FL_SQUARE_CLOCK and FL_ROUND_CLOCK </caption> <TR><TD> \endhtmlonly - \image html clock.png + \image html clock.png \htmlonly </TD> <TD> \endhtmlonly - \image html round_clock.png + \image html round_clock.png \htmlonly </TD> </TR> </table> \endhtmlonly - \image latex clock.png "FL_SQUARE_CLOCK type" width=4cm + \image latex clock.png "FL_SQUARE_CLOCK type" width=4cm \image latex round_clock.png "FL_ROUND_CLOCK type" width=4cm \see class Fl_Clock_Output @@ -156,14 +154,10 @@ public: int handle(int); Fl_Clock(int X, int Y, int W, int H, const char *L = 0); - + Fl_Clock(uchar t, int X, int Y, int W, int H, const char *L); - + ~Fl_Clock(); }; #endif - -// -// End of "$Id$". -// |
