view src/dialog.hh @ 1494:9225a90ad7dd

make Doctree a non-virtual class Doctree now is a proper class with it's own implementation. StyleEngine no longer needs to provide the Doctree interface itself. This hopefully make the code easier to understand and should also be a bit faster as no virtual methods are involved.
author Johannes Hofmann <Johannes.Hofmann@gmx.de>
date Thu, 07 Jan 2010 16:23:05 +0100
parents b01e80ee7c88
children 2307d3f8e41b
line wrap: on
line source
#ifndef __DIALOG_HH__
#define __DIALOG_HH__

#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */

typedef void (*UserPasswordCB)(const char *user, const char *password,
                               void *vp);

void a_Dialog_msg(const char *msg);
int a_Dialog_choice3(const char *msg,
                     const char *b0, const char *b1, const char *b2);
int a_Dialog_choice5(const char *QuestionTxt,
                     const char *alt1, const char *alt2, const char *alt3,
                     const char *alt4, const char *alt5);
int a_Dialog_user_password(const char *message, UserPasswordCB cb, void *vp);
const char *a_Dialog_input(const char *msg);
const char *a_Dialog_passwd(const char *msg);
const char *a_Dialog_save_file(const char *msg,
                               const char *pattern, const char *fname);
const char *a_Dialog_select_file(const char *msg,
                                 const char *pattern, const char *fname);
char *a_Dialog_open_file(const char *msg,
                         const char *pattern, const char *fname);
void *a_Dialog_make_text_window(const char *txt, const char *title);
void a_Dialog_show_text_window(void *vWindow);

#ifdef __cplusplus
}
#endif /* __cplusplus */

#endif // __DIALOG_HH__