ARB
aw_advice.hxx
Go to the documentation of this file.
1 // ==================================================================== //
2 // //
3 // File : aw_advice.hxx //
4 // Purpose : general user advices //
5 // //
6 // //
7 // Coded by Ralf Westram (coder@reallysoft.de) in May 2002 //
8 // Copyright Department of Microbiology (Technical University Munich) //
9 // //
10 // Visit our web site at: http://www.arb-home.de/ //
11 // //
12 // //
13 // ==================================================================== //
14 
15 #ifndef AW_ADVICE_HXX
16 #define AW_ADVICE_HXX
17 
18 #ifndef AW_BASE_HXX
19 #include "aw_base.hxx"
20 #endif
21 
22 
25  AW_ADVICE_SIMPLE = 0, // nothing of the following
26  AW_ADVICE_TOGGLE = 1, // visible toggle to switch off advice (otherwise advice appears only once)
27  AW_ADVICE_HELP = 2, // advice has corresponding help file
28  AW_ADVICE_HELP_POPUP = 4, // this helpfile should popup immediately
29 
30  // convenience defs:
32 };
33 
35 void init_Advisor(AW_root *awr);
36 
44 void AW_advice(const char *message,
46  const char *title = NULp,
47  const char *corresponding_help = NULp);
48 
51 
52 
53 #else
54 #error aw_advice.hxx included twice
55 #endif // AW_ADVICE_HXX
56 
GB_TYPES type
const char * title
Definition: readseq.c:22
void AW_reactivate_all_advices(AW_window *)
reactivates all advices which were disabled by the user
Definition: AW_advice.cxx:137
void message(char *errortext)
AW_Advice_Type
define type of AW_advice by or-ing values
Definition: aw_advice.hxx:24
void AW_advice(const char *message, AW_Advice_Type type=AW_ADVICE_SIMPLE, const char *title=NULp, const char *corresponding_help=NULp)
Show a message box with an advice for the user.
Definition: AW_advice.cxx:160
#define NULp
Definition: cxxforward.h:116
void init_Advisor(AW_root *awr)
has to be called one time (before calling AW_advice)
Definition: AW_advice.cxx:41