PIPS
|
#include <stdlib.h>
#include <stdio.h>
#include <stdarg.h>
#include <errno.h>
#include <sys/time.h>
#include <sys/resource.h>
#include "genC.h"
#include "misc.h"
#include "linear.h"
#include "ri.h"
#include "ri-util.h"
#include "database.h"
#include "pipsdbm.h"
#include "top-level.h"
#include "properties.h"
#include <gtk/gtk.h>
#include "gpips.h"
Go to the source code of this file.
Macros | |
#define | MAXARGS 100 |
Functions | |
void | prompt_user (string a_printf_format,...) |
static void | insert_something_in_the_gpips_log_window (char *a_message) |
void | gpips_user_error_message (char error_buffer[]) |
void | gpips_user_warning_message (char warning_buffer[]) |
void | gpips_user_log (const char *fmt, va_list *args) |
void | open_log_subwindow (GtkWidget *widget, gpointer data) |
void | clear_log_subwindow (GtkWidget *widget, gpointer data) |
void | close_log_subwindow (GtkWidget *widget, gpointer data) |
void | create_log_menu () |
void | create_log_window () |
This works but it is cleaner to use textsw_reset() instead... More... | |
Variables | |
static GtkWidget * | log_text_view |
xview/newgen interaction More... | |
static GtkWidget * | open_or_front_menu_item |
static GtkWidget * | clear_menu_item |
static GtkWidget * | close_menu_item |
static GtkWidget * | scrolled_window_vadjustment |
void clear_log_subwindow | ( | GtkWidget * | widget, |
gpointer | data | ||
) |
Definition at line 161 of file gtk_log.c.
References buffer, clear_menu_item, end, log_text_view, and start.
Referenced by create_log_menu().
void close_log_subwindow | ( | GtkWidget * | widget, |
gpointer | data | ||
) |
Definition at line 172 of file gtk_log.c.
References close_menu_item, gpips_gtk_menu_item_set_label(), hide_window(), log_window, and open_or_front_menu_item.
Referenced by create_frames(), and create_log_menu().
void create_log_menu | ( | ) |
Definition at line 178 of file gtk_log.c.
References clear_log_subwindow(), clear_menu_item, close_log_subwindow(), close_menu_item, main_window_menu_bar, open_log_subwindow(), and open_or_front_menu_item.
Referenced by create_menus().
void create_log_window | ( | ) |
This works but it is cleaner to use textsw_reset() instead...
void recreate_log_window() { xv_destroy(log_textsw); log_textsw = (Xv_Window) xv_create(log_frame, TEXTSW, 0); }
Xv_Window window;
Definition at line 215 of file gtk_log.c.
References log_text_view, log_window, and scrolled_window_vadjustment.
Referenced by gpips_main(), and wpips_main().
void gpips_user_error_message | ( | char | error_buffer[] | ) |
prompt_user("Something went wrong. Check the log window");
terminate PIPS request
Definition at line 104 of file gtk_log.c.
References abort, exit, get_bool_property(), insert_something_in_the_gpips_log_window(), log_on_file(), log_window, show_message(), THROW, and user_exception_error.
void gpips_user_log | ( | const char * | fmt, |
va_list * | args | ||
) |
Display the "Message:" line in the main window
Definition at line 136 of file gtk_log.c.
References get_bool_property(), insert_something_in_the_gpips_log_window(), log_on_file(), show_message(), and SMALL_BUFFER_LENGTH.
Referenced by gpips_main().
void gpips_user_warning_message | ( | char | warning_buffer[] | ) |
François said a warning is not important enough... gtk_widget_show(log_window);
Definition at line 123 of file gtk_log.c.
References insert_something_in_the_gpips_log_window(), log_on_file(), and show_message().
|
static |
insert at the end:
Definition at line 81 of file gtk_log.c.
References buffer, clear_menu_item, gpips_gtk_adjustment_get_upper(), log_text_view, and scrolled_window_vadjustment.
Referenced by gpips_user_error_message(), gpips_user_log(), and gpips_user_warning_message().
void open_log_subwindow | ( | GtkWidget * | widget, |
gpointer | data | ||
) |
Definition at line 155 of file gtk_log.c.
References close_menu_item, gpips_gtk_menu_item_set_label(), log_window, and open_or_front_menu_item.
Referenced by create_log_menu().
void prompt_user | ( | string | a_printf_format, |
... | |||
) |
Definition at line 66 of file gtk_log.c.
References log_window, and SMALL_BUFFER_LENGTH.
Referenced by analyze_notify(), continue_create_workspace_notify(), edit_close_notify(), edit_notify(), end_directory_notify(), end_select_module_callback(), end_select_module_notify(), epips_select_module(), gpips_execute_and_display_something(), gpips_execute_and_display_something_from_alias(), gpips_file_view(), gpips_view_marked_busy(), hpfc_notify(), mchoose_ok_notify(), open_workspace_notify(), options_select(), prompt_user_not_allowed_to_change_directory(), schoose_ok_notify(), select_module_from_menubar_callback(), select_module_notify(), start_delete_workspace_notify(), transform_notify(), user_prompt_not_a_valid_workspace_name(), wpips_execute_and_display_something(), wpips_execute_and_display_something_from_alias(), wpips_file_view(), and wpips_view_marked_busy().
|
static |
Definition at line 63 of file gtk_log.c.
Referenced by clear_log_subwindow(), create_log_menu(), and insert_something_in_the_gpips_log_window().
|
static |
Definition at line 63 of file gtk_log.c.
Referenced by close_log_subwindow(), create_log_menu(), and open_log_subwindow().
|
static |
xview/newgen interaction
Definition at line 62 of file gtk_log.c.
Referenced by clear_log_subwindow(), create_log_window(), and insert_something_in_the_gpips_log_window().
|
static |
Definition at line 63 of file gtk_log.c.
Referenced by close_log_subwindow(), create_log_menu(), and open_log_subwindow().
|
static |
Definition at line 64 of file gtk_log.c.
Referenced by create_log_window(), and insert_something_in_the_gpips_log_window().