Logo Search packages:      
Sourcecode: newt version File versions  Download package

dialogboxes.h

#ifndef H_DIALOGBOXES
#define H_DIALOGBOXES

#include "popt.h"

#define MSGBOX_MSG 0 
#define MSGBOX_YESNO 1
#define MSGBOX_INFO 2

#define FLAG_NOITEM           (1 << 0)
#define FLAG_NOCANCEL         (1 << 1)
#define FLAG_SCROLL_TEXT      (1 << 2)
#define FLAG_DEFAULT_NO       (1 << 3)
#define FLAG_PASSWORD         (1 << 4)
#define FLAG_NOTAGS           (1 << 5)

#define DLG_ERROR       -1
#define DLG_OKAY        0
#define DLG_CANCEL            1
#define DLG_ESCAPE            2

#define BUTTON_OK       0
#define BUTTON_CANCEL         1
#define BUTTON_YES            2
#define BUTTON_NO       3

int min(int a, int b);
int max(int a, int b);

int messageBox(const char * text, int height, int width, int type, int flags);
int checkList(const char * text, int height, int width, poptContext optCon,
            int useRadio, int flags, const char *** selections);
int listBox(const char * text, int height, int width, poptContext optCon,
            int flags, const char *default_item, const char ** result);
int inputBox(const char * text, int height, int width, poptContext optCon, 
            int flags, const char ** result);
int gauge(const char * text, int height, int width, poptContext optCon, int fd, 
            int flags);
void useFullButtons(int state);
void setButtonText(const char * text, int button);

#endif

Generated by  Doxygen 1.6.0   Back to index