summaryrefslogtreecommitdiff
path: root/src/fl_ask.cxx
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2020-07-01 18:03:10 +0200
committerAlbrecht Schlosser <albrechts.fltk@online.de>2020-07-06 20:28:20 +0200
commitf09e17c3c564e8310125a10c03397cbf473ff643 (patch)
tree8d0fd4a28e3686c33aaa140d07ddba26ab28bdc2 /src/fl_ask.cxx
parentb0e0c355edaa2e23148cb0260ada907aec930f05 (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 'src/fl_ask.cxx')
-rw-r--r--src/fl_ask.cxx52
1 files changed, 23 insertions, 29 deletions
diff --git a/src/fl_ask.cxx b/src/fl_ask.cxx
index 8943468a1..ecd853bd5 100644
--- a/src/fl_ask.cxx
+++ b/src/fl_ask.cxx
@@ -1,6 +1,4 @@
//
-// "$Id$"
-//
// Standard dialog functions for the Fast Light Tool Kit (FLTK).
//
// Copyright 1998-2020 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:
//
-// https://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:
//
-// https://www.fltk.org/str.php
+// https://www.fltk.org/bugs.php
//
/**
@@ -127,12 +125,12 @@ static Fl_Window *makeform() {
*/
static void resizeform() {
- int i;
- int message_w, message_h;
- int text_height;
- int button_w[3], button_h[3];
- int x, w, h, max_w, max_h;
- const int icon_size = 50;
+ int i;
+ int message_w, message_h;
+ int text_height;
+ int button_w[3], button_h[3];
+ int x, w, h, max_w, max_h;
+ const int icon_size = 50;
message_form->size(410,103);
@@ -197,7 +195,7 @@ static void resizeform() {
// printf("button %d (%s) is %dx%d+%d,%d\n", i, button[i]->label(),
// button[i]->w(), button[i]->h(),
-// button[i]->x(), button[i]->y());
+// button[i]->x(), button[i]->y());
}
message_form->init_sizes();
}
@@ -457,7 +455,7 @@ int fl_choice(const char*fmt,const char *b0,const char *b1,const char *b2,...){
Fl_Widget *fl_message_icon() {makeform(); return icon;}
static const char* input_innards(const char* fmt, va_list ap,
- const char* defstr, uchar type) {
+ const char* defstr, uchar type) {
makeform();
message_form->size(410,103);
message->position(60,10);
@@ -537,8 +535,8 @@ const char *fl_password(const char *fmt, const char *defstr, ...) {
\note \#include <FL/fl_ask.H>
- \param[in] x Preferred X position
- \param[in] y Preferred Y position
+ \param[in] x Preferred X position
+ \param[in] y Preferred Y position
\param[in] center 1 = centered, 0 = absolute
\see int fl_message_position(int *x, int *y)
@@ -561,7 +559,7 @@ void fl_message_position(const int x, const int y, const int center) {
\note \#include <FL/fl_ask.H>
- \param[in] widget Widget or window to position the message box over.
+ \param[in] widget Widget or window to position the message box over.
\see int fl_message_position(int x, int y, int center)
*/
@@ -580,10 +578,10 @@ void fl_message_position(Fl_Widget *widget) {
\param[out] x Preferred X position, returns -1 if not set
\param[out] y Preferred Y position, returns -1 if not set
- \returns whether position is currently set or not
- \retval 0 position is not set (may be hotspot or not)
- \retval 1 position is set (window position)
- \retval 2 position is set (message box centered)
+ \returns whether position is currently set or not
+ \retval 0 position is not set (may be hotspot or not)
+ \retval 1 position is set (window position)
+ \retval 2 position is set (message box centered)
\see fl_message_position(int, int)
\see fl_message_hotspot(int)
@@ -605,8 +603,8 @@ int fl_message_position(int *x, int *y) {
The default is \e enabled, so that the default button is the
hotspot and appears at the mouse position.
\note \#include <FL/fl_ask.H>
- \param[in] enable non-zero enables hotspot behavior,
- 0 disables hotspot
+ \param[in] enable non-zero enables hotspot behavior,
+ 0 disables hotspot
*/
void fl_message_hotspot(int enable) {
enableHotspot = enable ? 1 : 0;
@@ -617,7 +615,7 @@ void fl_message_hotspot(int enable) {
fl_ask(), fl_choice(), fl_input(), fl_password() to follow
the mouse pointer.
\note \#include <FL/fl_ask.H>
- \return 0 if disable, non-zero otherwise
+ \return 0 if disable, non-zero otherwise
\see fl_message_hotspot(int)
*/
int fl_message_hotspot(void) {
@@ -637,7 +635,7 @@ int fl_message_hotspot(void) {
that call.
\note \#include <FL/fl_ask.H>
- \param[in] title window label, string copied internally
+ \param[in] title window label, string copied internally
*/
void fl_message_title(const char *title) {
makeform();
@@ -658,7 +656,7 @@ void fl_message_title(const char *title) {
local variable or free the string immediately after this call.
\note \#include <FL/fl_ask.H>
- \param[in] title default window label, string copied internally
+ \param[in] title default window label, string copied internally
*/
void fl_message_title_default(const char *title) {
if (message_title_default) {
@@ -670,7 +668,3 @@ void fl_message_title_default(const char *title) {
}
/** @} */
-
-//
-// End of "$Id$".
-//