PIPS
|
#include <stdlib.h>
#include <stdio.h>
#include <stdarg.h>
#include <unistd.h>
#include <sys/time.h>
#include <sys/resource.h>
#include <gtk/gtk.h>
#include "genC.h"
#include "linear.h"
#include "ri.h"
#include "database.h"
#include "misc.h"
#include "ri-util.h"
#include "pipsdbm.h"
#include "gpips.h"
Go to the source code of this file.
Data Structures | |
struct | LabelEntryAndButton |
Enumerations | |
enum | { DECALAGE_STATUS = 100 } |
enum | { CPU_USAGE_LENGTH = 8 } |
Max number of digits displayed in the status panel: More... | |
Functions | |
void | display_memory_usage () |
void | show_directory () |
void | show_workspace () |
void | show_module () |
void | gpips_interrupt_button_blink () |
void | gpips_interrupt_button_restore () |
void | show_message (string message_buffer) |
static void | end_directory_notify_callback (GtkWidget *w, gpointer data __attribute__((unused))) |
static void | choose_dir_callback (GtkWidget *w __attribute__((unused)), gpointer data) |
void | open_or_create_workspace_callback (GtkWidget *w, gpointer data __attribute__((unused))) |
static GtkWidget * | create_dir_choose_entry (GtkWidget *vbox) |
static gboolean | regenerate_workspace_menu_callback (GtkWidget *w, GdkEventButton *ev, gpointer data) |
static gboolean | regenerate_module_menu_callback (GtkWidget *w, GdkEventButton *ev, gpointer data) |
static GtkWidget * | create_workspace_entry (GtkWidget *vbox) |
static GtkWidget * | create_module_entry (GtkWidget *vbox) |
void | create_status_subwindow () |
Variables | |
GtkWidget * | directory_name_entry |
GtkWidget * | directory_name_entry_button |
GtkWidget * | workspace_name_entry |
GtkWidget * | memory_name |
GtkWidget * | gmessage |
GtkWidget * | window_number |
GtkWidget * | module_name_entry |
GtkWidget * | cpu_usage_item |
char | etext |
Strange, "man end" says that end is a function! More... | |
char | edata |
char | end |
anonymous enum |
Enumerator | |
---|---|
DECALAGE_STATUS |
Definition at line 59 of file gtk_status.c.
anonymous enum |
Max number of digits displayed in the status panel:
Enumerator | |
---|---|
CPU_USAGE_LENGTH |
Definition at line 64 of file gtk_status.c.
|
static |
Definition at line 178 of file gtk_status.c.
References directory_name_entry, and main_window.
Referenced by create_dir_choose_entry().
|
static |
Definition at line 206 of file gtk_status.c.
References choose_dir_callback(), and end_directory_notify_callback().
Referenced by create_status_subwindow().
|
static |
Definition at line 297 of file gtk_status.c.
References end_select_module_callback(), and regenerate_module_menu_callback().
Referenced by create_status_subwindow().
void create_status_subwindow | ( | ) |
Definition at line 331 of file gtk_status.c.
References cpu_usage_item, create_dir_choose_entry(), create_module_entry(), create_workspace_entry(), directory_name_entry, display_memory_usage(), gmessage, main_window_vbox, memory_name, module_name_entry, show_directory(), show_module(), show_workspace(), status_frame, and workspace_name_entry.
Referenced by gpips_main(), and wpips_main().
|
static |
Definition at line 263 of file gtk_status.c.
References open_or_create_workspace_callback(), and regenerate_workspace_menu_callback().
Referenced by create_status_subwindow().
void display_memory_usage | ( | ) |
etext, edata and end are only address symbols...
getrusage() failed:
Definition at line 84 of file gtk_status.c.
References cpu_usage_item, CPU_USAGE_LENGTH, debug(), edata, end, etext, intptr_t, and memory_name.
Referenced by close_workspace_notify(), create_status_subwindow(), edit_close_notify(), end_create_workspace_notify(), end_delete_workspace_notify(), end_open_workspace_notify(), end_select_module_callback(), end_select_module_notify(), execute_gpips_execute_and_display_something_outside_the_notifier(), execute_safe_apply_outside_the_notifier(), execute_safe_apply_outside_the_notifyer(), execute_workspace_creation_and_so_on_given_with_options(), execute_wpips_execute_and_display_something_outside_the_notifyer(), gpips_file_view(), gpips_main(), gpips_view_marked_busy(), show_directory(), show_message(), show_module(), show_workspace(), transform_notify(), update_options(), wpips_file_view(), wpips_main(), and wpips_view_marked_busy().
|
static |
Definition at line 173 of file gtk_status.c.
References end_directory_notify().
Referenced by create_dir_choose_entry().
void gpips_interrupt_button_blink | ( | ) |
Definition at line 145 of file gtk_status.c.
Referenced by deal_with_gpips_events_during_pipsmake().
void gpips_interrupt_button_restore | ( | ) |
Definition at line 156 of file gtk_status.c.
Referenced by gpips_main_loop().
void open_or_create_workspace_callback | ( | GtkWidget * | w, |
gpointer data | __attribute__(unused) | ||
) |
Definition at line 198 of file gtk_status.c.
References open_or_create_workspace().
Referenced by create_workspace_entry().
|
static |
Definition at line 246 of file gtk_status.c.
References generate_module_menu().
Referenced by create_module_entry().
|
static |
Definition at line 232 of file gtk_status.c.
References generate_workspace_menu().
Referenced by create_workspace_entry().
void show_directory | ( | ) |
Definition at line 118 of file gtk_status.c.
References directory_name_entry, display_memory_usage(), and get_cwd().
Referenced by create_status_subwindow(), end_directory_notify(), and prompt_user_not_allowed_to_change_directory().
void show_message | ( | string | message_buffer | ) |
va_list some_arguments; static char message_buffer[SMALL_BUFFER_LENGTH];
va_start(some_arguments, a_printf_format);
(void) vsprintf(message_buffer, a_printf_format, some_arguments);
message_buffer | ... |
Definition at line 161 of file gtk_status.c.
References display_memory_usage().
void show_module | ( | ) |
Definition at line 134 of file gtk_status.c.
References db_get_current_module_name(), and display_memory_usage().
Referenced by close_workspace_notify(), create_status_subwindow(), end_select_module_callback(), end_select_module_notify(), execute_workspace_creation_and_so_on_given_with_options(), and select_a_module_by_default().
void show_workspace | ( | ) |
Definition at line 123 of file gtk_status.c.
References db_get_current_workspace_name(), and display_memory_usage().
Referenced by cancel_create_workspace_notify(), cancel_open_workspace_notify(), close_workspace_notify(), create_status_subwindow(), end_create_workspace_notify(), end_open_workspace_notify(), execute_workspace_creation_and_so_on_given_with_options(), and open_or_create_workspace().
GtkWidget* cpu_usage_item |
Definition at line 77 of file gtk_status.c.
Referenced by create_status_subwindow(), and display_memory_usage().
GtkWidget* directory_name_entry |
Definition at line 74 of file gtk_status.c.
Referenced by choose_dir_callback(), create_status_subwindow(), disable_change_directory(), enable_change_directory(), and show_directory().
GtkWidget * directory_name_entry_button |
Definition at line 74 of file gtk_status.c.
char edata |
Definition at line 82 of file gtk_status.c.
Referenced by display_memory_usage().
char end |
Definition at line 82 of file gtk_status.c.
Referenced by attach_to_sentence_list(), C_comment_p(), clear_log_subwindow(), discard_a_control_sequence_without_its_statements(), display_memory_usage(), fun_completion(), generate_a_statement_list_from_a_control_sequence(), gfc2pips_array_ref2indices(), hash_table_clear(), last_word_of_sentence(), local_strnlen(), main(), module_entity_to_compilation_unit_entity(), outliner_patch_parameters(), output_an_attachment(), partition_successor_p(), printf_time_delta(), printf_usage_delta(), save_edited_file(), seq_rwt(), str_sub(), strnlen(), two_addresses_code_generator(), VASNPRINTF(), and write_string().
|
extern |
Strange, "man end" says that end is a function!
Referenced by display_memory_usage().
GtkWidget * gmessage |
Definition at line 75 of file gtk_status.c.
Referenced by create_status_subwindow().
GtkWidget * memory_name |
Definition at line 75 of file gtk_status.c.
Referenced by create_status_subwindow(), and display_memory_usage().
GtkWidget* module_name_entry |
Definition at line 76 of file gtk_status.c.
Referenced by create_status_subwindow(), disable_module_selection(), enable_module_selection(), and select_module_from_status_menu_callback().
GtkWidget * window_number |
Definition at line 75 of file gtk_status.c.
Referenced by compute_title_string(), gpips_file_view(), gpips_view_marked_busy(), wpips_file_view(), and wpips_view_marked_busy().
GtkWidget* workspace_name_entry |
Definition at line 75 of file gtk_status.c.
Referenced by continue_create_workspace_notify(), create_status_subwindow(), disable_workspace_create_or_open(), disable_workspace_delete_or_open(), enable_workspace_create_or_open(), enable_workspace_delete_or_open(), end_create_workspace_notify(), and select_workspace_notify().