6 #include "mainerror.inc"
10 // This is needed for errors which are too verbose to fit in the
13 // Once created, it accumulates errors in a listbox until it's closed.
17 class MainErrorGUI
: public BC_Window
20 MainErrorGUI(MWindow
*mwindow
, MainError
*thread
, int x
, int y
);
23 void create_objects();
24 int resize_event(int w
, int h
);
33 class MainError
: public BC_DialogThread
36 MainError(MWindow
*mwindow
);
39 friend class MainErrorGUI
;
44 // Display error message to command line or GUI, depending on what exists.
45 static void show_error(char *string
);
49 void show_error_local(char *string
);
51 // Split errors into multiple lines based on carriage returns.
52 void append_error(char *string
);
56 ArrayList
<BC_ListBoxItem
*> errors
;
59 // Main error dialog. Won't exist if no GUI.
60 static MainError
*main_error
;