00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028 #ifndef fl_ask_H
00029 # define fl_ask_H
00030
00031 # include "Enumerations.H"
00032
00033 class Fl_Widget;
00035 enum {
00036 FL_BEEP_DEFAULT = 0,
00037 FL_BEEP_MESSAGE,
00038 FL_BEEP_ERROR,
00039 FL_BEEP_QUESTION,
00040 FL_BEEP_PASSWORD,
00041 FL_BEEP_NOTIFICATION
00042 };
00043
00044 # ifdef __GNUC__
00045 # define __fl_attr(x) __attribute__ (x)
00046 # else
00047 # define __fl_attr(x)
00048 # endif // __GNUC__
00049
00050 FL_EXPORT void fl_beep(int type = FL_BEEP_DEFAULT);
00051 FL_EXPORT void fl_message(const char *,...) __fl_attr((__format__ (__printf__, 1, 2)));
00052 FL_EXPORT void fl_alert(const char *,...) __fl_attr((__format__ (__printf__, 1, 2)));
00053
00054
00055
00056 FL_EXPORT int fl_ask(const char *,...) __fl_attr((__format__ (__printf__, 1, 2), __deprecated__));
00057 FL_EXPORT int fl_choice(const char *q,const char *b0,const char *b1,const char *b2,...) __fl_attr((__format__ (__printf__, 1, 5)));
00058 FL_EXPORT const char *fl_input(const char *label, const char *deflt = 0, ...) __fl_attr((__format__ (__printf__, 1, 3)));
00059 FL_EXPORT const char *fl_password(const char *label, const char *deflt = 0, ...) __fl_attr((__format__ (__printf__, 1, 3)));
00060
00061 FL_EXPORT Fl_Widget *fl_message_icon();
00062 extern FL_EXPORT Fl_Font fl_message_font_;
00063 extern FL_EXPORT Fl_Fontsize fl_message_size_;
00064 inline void fl_message_font(Fl_Font f, Fl_Fontsize s) {
00065 fl_message_font_ = f; fl_message_size_ = s;}
00066
00067
00068 extern FL_EXPORT const char* fl_no;
00069 extern FL_EXPORT const char* fl_yes;
00070 extern FL_EXPORT const char* fl_ok;
00071 extern FL_EXPORT const char* fl_cancel;
00072 extern FL_EXPORT const char* fl_close;
00073 #endif // !fl_ask_H
00074
00075
00076
00077