]> git.lyx.org Git - features.git/blob - src/frontends/xforms/input_validators.h
Really dull and boring header shit
[features.git] / src / frontends / xforms / input_validators.h
1 // -*- C++ -*-
2 /**
3  * \file input_validators.h
4  * Copyright 1999-2001 Allan Rae
5  * Read the file COPYING
6  *
7  * \author Allan Rae
8  *
9  * Full author contact details are available in file CREDITS
10  */
11
12 /* Input validators and filters for xforms.
13  * A collection of input filtering and validating functions for use in
14  * XForms dialogs.  Mainly meant for filtering input boxes although may
15  * be extended to include other generally useful xforms-specific tools.
16  */
17
18 #ifndef INPUT_VALIDATORS_H
19 #define INPUT_VALIDATORS_H
20
21 #ifdef __GNUG__
22 #pragma interface
23 #endif
24
25 #if defined(__cplusplus)
26 extern "C"
27 {
28 #endif
29
30     /** Only allow integer numbers,
31         possibly preceeded by a +' or '-' sign */
32 int fl_int_filter(FL_OBJECT *, char const *, char const *, int);
33     /** Only allow integer numbers. No '+' or '-' signs. */
34 int fl_unsigned_int_filter(FL_OBJECT *, char const *, char const *, int);
35     /** Only allow floating point numbers,
36         possibly preceeded by a +' or '-' sign */
37 int fl_float_filter(FL_OBJECT *, char const *, char const *, int);
38     /** Only allow floating point numbers. No '+' or '-' signs. */
39 int fl_unsigned_float_filter(FL_OBJECT *, char const *, char const *, int);
40
41     /** Only allow lowercase letters. */
42 int fl_lowercase_filter(FL_OBJECT *, char const *, char const *, int);
43
44 #if defined(__cplusplus)
45 }
46 #endif
47
48 #endif