PIPS
|
#include <stdio.h>
#include <sys/time.h>
#include <sys/resource.h>
#include "genC.h"
#include "constants.h"
#include "misc.h"
#include "linear.h"
#include "ri.h"
#include "ri-util.h"
#include "top-level.h"
#include "database.h"
#include "pipsmake.h"
#include "pipsdbm.h"
#include <gtk/gtk.h>
#include "gpips.h"
#include "gpips-labels.h"
#include "resources.h"
#include "phases.h"
#include "wpips_transform_menu_layout.h"
Go to the source code of this file.
Functions | |
static void | apply_on_each_transform_menu_item (GtkWidget *widget, gpointer _func) |
void | apply_on_each_transform_item (void(*function_to_apply_on_each_menu_item)(GtkWidget *)) |
void | disable_transform_selection () |
void | enable_transform_selection () |
void | execute_safe_apply_outside_the_notifier () |
void | safe_apply_outside_the_notifyer (string transformation_name_to_apply, string module_name) |
static void | transform_notify (GtkWidget *menu_item, gpointer data __attribute__((unused))) |
void | create_transform_menu () |
Variables | |
gpips_transform_menu_layout_line | gpips_transform_menu_layout [] |
Include the label names: More... | |
static string | execute_safe_apply_outside_the_notifyer_transformation_name_to_apply |
To pass arguments to execute_safe_apply_outside_the_notifyer(): More... | |
static string | execute_safe_apply_outside_the_notifyer_module_name = NULL |
GtkWidget * | transform_menu |
The transform menu: More... | |
GtkWidget * | transform_menu_item |
void apply_on_each_transform_item | ( | void(*)(GtkWidget *) | function_to_apply_on_each_menu_item | ) |
Definition at line 84 of file gtk_transform.c.
References apply_on_each_transform_menu_item(), and transform_menu.
Referenced by disable_transform_selection(), and enable_transform_selection().
|
static |
Definition at line 77 of file gtk_transform.c.
Referenced by apply_on_each_transform_item().
void create_transform_menu | ( | ) |
Now add all the transformation entries:
Add the Edit entry as the last one:
Definition at line 149 of file gtk_transform.c.
References edit_menu_item, edit_notify(), EDIT_VIEW, GPIPS_MENU_SEPARATOR_ID, gpips_transform_menu_layout, main_window_menu_bar, gpips_transform_menu_layout_line::menu_entry_string, transform_menu, transform_menu_item, and transform_notify().
Referenced by create_menus().
void disable_transform_selection | ( | ) |
Definition at line 91 of file gtk_transform.c.
References apply_on_each_transform_item(), and disable_item().
Referenced by disable_module_selection(), gpips_main(), and wpips_main().
void enable_transform_selection | ( | ) |
Definition at line 95 of file gtk_transform.c.
References apply_on_each_transform_item(), and enable_item().
Referenced by enable_module_selection().
void execute_safe_apply_outside_the_notifier | ( | ) |
Definition at line 99 of file gtk_transform.c.
References display_memory_usage(), execute_safe_apply_outside_the_notifyer_module_name, execute_safe_apply_outside_the_notifyer_transformation_name_to_apply, free(), and safe_apply().
Referenced by gpips_main_loop().
Ask to execute the execute_safe_apply_outside_the_notifyer():
I guess the function above does not return...
Definition at line 109 of file gtk_transform.c.
References execute_main_loop_command(), execute_safe_apply_outside_the_notifyer_module_name, execute_safe_apply_outside_the_notifyer_transformation_name_to_apply, GPIPS_SAFE_APPLY, module_name(), and strdup().
Referenced by hpfc_notify(), and transform_notify().
|
static |
FI: borrowed from edit_notify()
Find the transformation to apply:
Apply the transformation:
I guess the function above does not return...
Definition at line 119 of file gtk_transform.c.
References db_get_current_module_name(), display_memory_usage(), gpips_gtk_menu_item_get_label(), gpips_transform_menu_layout, gpips_transform_menu_layout_line::menu_entry_string, pips_user_error, prompt_user(), safe_apply_outside_the_notifyer(), and gpips_transform_menu_layout_line::transformation_name_to_apply.
Referenced by create_transform_menu().
|
static |
Definition at line 72 of file gtk_transform.c.
Referenced by execute_safe_apply_outside_the_notifier(), and safe_apply_outside_the_notifyer().
|
static |
To pass arguments to execute_safe_apply_outside_the_notifyer():
Definition at line 70 of file gtk_transform.c.
Referenced by execute_safe_apply_outside_the_notifier(), and safe_apply_outside_the_notifyer().
gpips_transform_menu_layout_line gpips_transform_menu_layout[] |
Include the label names:
Definition at line 63 of file gtk_transform.c.
Referenced by create_transform_menu(), and transform_notify().
GtkWidget* transform_menu |
The transform menu:
Definition at line 75 of file gtk_transform.c.
Referenced by apply_on_each_transform_item(), and create_transform_menu().
GtkWidget * transform_menu_item |
Definition at line 75 of file gtk_transform.c.
Referenced by create_transform_menu().