38 static GtkWidget *main_window;
42 static gint pulseProgressBar(gpointer);
43 static void CB_waitBoxCancel(GtkWidget*, gpointer);
44 static void waitBox(
bool,
const char *,
bool show_progress_bar =
true);
45 static bool wait_box_open;
46 static GtkWidget *wait_box_btn_cancel;
47 static GtkWidget *wait_box_label_text;
48 static bool wait_box_cancelled;
49 static double wait_box_progress;
53 static void setMainWindow(GtkWidget *mw) { WidgetUtils::main_window = mw; }
58 static void Alert(
const char * title,
const char * text, GtkMessageType type);
59 static void Alert(
const string,
const string, GtkMessageType type);
62 static void AlertWarning(
const char * title,
const char * text);
66 static void AlertError(
const char * title,
const char * text);
67 static void AlertError(
const string,
const string);
70 static bool Confirm(
const char * title,
const char * text, GtkMessageType type);
71 static bool Confirm(
const char * title,
const char * text);
72 static bool Confirm(
const string,
const string);
73 static bool Confirm(
const string,
const string, GtkMessageType type);
76 static void waitBoxShow(
const char * text,
bool progress =
true);