1 2 /* 3 * Ump - Unnamed Math Program 4 * Copyright (c) 2003-2006 by Mattias Hultgren <mattias_hultgren@tele2.se> 5 * 6 * See main.cpp 7 */ 8 9 #ifndef MAIN_H_ 10 #define MAIN_H_ 11 12 #include "vartypes.h" 13 #include "keyfile.h" 14 #include "math2.h" 15 #include "utf8_string.h" 16 17 #define PRG_NAME "Ump" 18 #define PRG_VERSION "v0.8.6" 19 #define PRG_DATE "2003-2007" 20 21 const char *get_start_message(void); 22 23 extern void (*TEXTVIEW_FUNCTION)(const utf8_string &string); 24 25 extern utf8_string language_filename; 26 27 #ifndef NO_GTK 28 void UMP_gtk_quit(void); 29 30 31 extern const char *dialog_title_save_as, *dialog_title_open_file; 32 33 extern const char *menu_file, *menu_file_new, *menu_file_open, *menu_file_save, 34 *menu_file_save_as, *menu_file_close, *menu_file_quit; 35 extern const char *menu_tools, *menu_tools_advanced, *menu_tools_editor, 36 *menu_tools_simple, *menu_tools_graphtool, *menu_tools_matrixedit; 37 extern const char *menu_about, *menu_pref; 38 39 extern const char *button_ok, *button_cancel, *button_close; 40 41 extern const char *edit_edit, *edit_edit_cut, *edit_edit_copy, *edit_edit_paste, 42 *edit_edit_delete, *edit_edit_select_all; 43 44 extern const char *filter_ump_files, *filter_all_files, *filter_picture_files, 45 *filter_pcx_files, *filter_ppm_files; 46 47 extern uint32 open_windows; 48 const uint32 ADVANCED_WIN = 1; 49 const uint32 SIMPLE_WIN = 2; 50 const uint32 EDITOR_WIN = 4; 51 const uint32 GRAPHTOOL_WIN = 8; 52 const uint32 MATRIX_EDITOR_WIN = 16; 53 54 extern utf8_string default_start_window; 55 56 #endif 57 58 void update_translation(utf8_string translation_filename, bool window_updating = true); 59 60 void hexstring_to_colorrgb(const char *str, picture_h::colorrgb &color) throw(error_obj); 61 void hexstring_to_colorrgbs(const char *str, Vector<picture_h::colorrgb> &colors) throw(error_obj); 62 63 extern Format format; 64 extern math::CodeBlock calc_function; 65 66 extern keyfile setup_file; 67 68 #endif 69