2015-10-22 20:23:24 +02:00
|
|
|
#ifndef GUI_H
|
|
|
|
#define GUI_H
|
|
|
|
#include <gtk/gtk.h>
|
|
|
|
#include <string.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
|
2015-10-23 20:47:21 +02:00
|
|
|
// #define MESSAGE_INFO 0 // NYI!
|
|
|
|
#define MESSAGE_ERROR 1
|
|
|
|
#define MESSAGE_INPUT 32
|
|
|
|
#define MESSAGE_IS_INPUT(msg) ((msg >= 32) && (msg < 64))
|
|
|
|
|
2015-10-22 20:23:24 +02:00
|
|
|
int gui_init(int *argc, char ***argv);
|
|
|
|
int showMessage(int message_type, char *text, char *defaultText, char **reply);
|
|
|
|
|
|
|
|
// Slots
|
|
|
|
static void okay( GtkWidget *widget, gpointer data );
|
2015-10-23 20:47:21 +02:00
|
|
|
static void cancel ( GtkWidget *widget, gpointer data );
|
2015-10-22 20:23:24 +02:00
|
|
|
|
|
|
|
#endif // GUI_H
|