Dillo v3.1.1-46-g8a360e32
Loading...
Searching...
No Matches
dialog.hh
Go to the documentation of this file.
1#ifndef __DIALOG_HH__
2#define __DIALOG_HH__
3
4#ifdef __cplusplus
5extern "C" {
6#endif /* __cplusplus */
7
8typedef void (*UserPasswordCB)(const char *user, const char *password,
9 void *vp);
10
11void a_Dialog_msg(const char *title, const char *msg);
12int a_Dialog_choice(const char *title, const char *msg, ...);
13int a_Dialog_user_password(const char *title, const char *msg,
14 UserPasswordCB cb, void *vp);
15const char *a_Dialog_input(const char *title, const char *msg);
16const char *a_Dialog_passwd(const char *title, const char *msg);
17const char *a_Dialog_save_file(const char *title,
18 const char *pattern, const char *fname);
19const char *a_Dialog_select_file(const char *title,
20 const char *pattern, const char *fname);
21char *a_Dialog_open_file(const char *title,
22 const char *pattern, const char *fname);
23void a_Dialog_text_window(const char *title, const char *txt);
24
25#ifdef __cplusplus
26}
27#endif /* __cplusplus */
28
29#endif // __DIALOG_HH__
char * a_Dialog_open_file(const char *title, const char *pattern, const char *fname)
Show the open file dialog.
Definition dialog.cc:271
int a_Dialog_choice(const char *title, const char *msg,...)
Make a question-dialog with a question and alternatives.
Definition dialog.cc:341
void a_Dialog_msg(const char *title, const char *msg)
Display a message in a popup window.
Definition dialog.cc:126
void(* UserPasswordCB)(const char *user, const char *password, void *vp)
Definition dialog.hh:8
const char * a_Dialog_save_file(const char *title, const char *pattern, const char *fname)
Show the save file dialog.
Definition dialog.cc:245
const char * a_Dialog_passwd(const char *title, const char *msg)
Dialog for password.
Definition dialog.cc:232
void a_Dialog_text_window(const char *title, const char *txt)
Show a new window with the provided text.
Definition dialog.cc:295
const char * a_Dialog_select_file(const char *title, const char *pattern, const char *fname)
Show the select file dialog.
Definition dialog.cc:256
int a_Dialog_user_password(const char *title, const char *msg, UserPasswordCB cb, void *vp)
Make a user/password dialog.
Definition dialog.cc:413
const char * a_Dialog_input(const char *title, const char *msg)
Dialog for one line of Input with a message.
Definition dialog.cc:150