PIPS
|
#include <stdio.h>
#include <sys/time.h>
#include <sys/resource.h>
#include "genC.h"
#include "misc.h"
#include <gtk/gtk.h>
#include "gpips.h"
Go to the source code of this file.
Enumerations | |
enum | { SC2_AVAILABLE_CHOICES_COLUMN_ID , SC2_COLUMNS_NUMBER } |
Functions | |
static void | schoose_ok_notify (GtkWidget *widget, gpointer data) |
called when the "ok button" is clicked to validate an entry or when you select something with the menu associated to the beforementionned entry. More... | |
void | schoose_close () |
schoose_close() can be called even when schoose window is already closed. More... | |
void | schoose_cancel_notify (GtkWidget *widget, gpointer data) |
static void | schoose_choice_callback (GtkTreeSelection *selection, gpointer data) |
Function used to update the text panel according to the list panel: More... | |
static void | schoose_window_done_callback (GtkWidget *window, GdkEvent *ev, gpointer data) |
Avoid the schoose_frame destruction and act as cancel: More... | |
void | schoose (char *title, gen_array_t array, char *initial_choice, void(*function_for_ok)(const char *), void(*function_for_cancel)(void)) |
void | create_schoose_window () |
Variables | |
static GtkWidget * | choice_label |
Single choice handling. More... | |
static GtkWidget * | choices_list |
static GtkWidget * | ok_button |
static GtkWidget * | help |
static GtkWidget * | cancel_button |
static GtkListStore * | choices |
static void(* | apply_on_choice )(const char *) |
static void(* | apply_on_cancel )(void) |
anonymous enum |
Enumerator | |
---|---|
SC2_AVAILABLE_CHOICES_COLUMN_ID | |
SC2_COLUMNS_NUMBER |
Definition at line 56 of file gtk_schoose2.c.
void create_schoose_window | ( | ) |
Definition at line 189 of file gtk_schoose2.c.
References cancel_button, choice_label, choices, choices_list, help, ok_button, SC2_AVAILABLE_CHOICES_COLUMN_ID, SC2_COLUMNS_NUMBER, schoose_cancel_notify(), schoose_choice_callback(), schoose_ok_notify(), schoose_window, and schoose_window_done_callback().
Referenced by gpips_main(), and wpips_main().
void schoose | ( | char * | title, |
gen_array_t | array, | ||
char * | initial_choice, | ||
void(*)(const char *) | function_for_ok, | ||
void(*)(void) | function_for_cancel | ||
) |
move the pointer to the center of the query window
Definition at line 150 of file gtk_schoose2.c.
References apply_on_cancel, apply_on_choice, array, choices, choices_list, gen_array_item(), gen_array_nitems(), SC2_AVAILABLE_CHOICES_COLUMN_ID, and schoose_window.
Referenced by open_workspace_notify(), select_module_from_menubar_callback(), select_module_notify(), and start_delete_workspace_notify().
void schoose_cancel_notify | ( | GtkWidget * | widget, |
gpointer | data | ||
) |
Definition at line 119 of file gtk_schoose2.c.
References schoose_close().
Referenced by create_schoose_window().
|
static |
Function used to update the text panel according to the list panel:
Definition at line 125 of file gtk_schoose2.c.
References choice_label, and SC2_AVAILABLE_CHOICES_COLUMN_ID.
Referenced by create_schoose_window().
void schoose_close | ( | ) |
schoose_close() can be called even when schoose window is already closed.
Definition at line 113 of file gtk_schoose2.c.
References choice_label, choices, hide_window(), and schoose_window.
Referenced by end_delete_workspace_notify(), end_open_workspace_notify(), schoose_cancel_notify(), and schoose_ok_notify().
|
static |
called when the "ok button" is clicked to validate an entry or when you select something with the menu associated to the beforementionned entry.
Definition at line 71 of file gtk_schoose2.c.
References choice_label, choices_list, prompt_user(), schoose_close(), and strdup().
Referenced by create_schoose_window().
|
static |
Avoid the schoose_frame destruction and act as cancel:
Definition at line 144 of file gtk_schoose2.c.
References hide_window().
Referenced by create_schoose_window().
|
static |
Definition at line 61 of file gtk_schoose2.c.
Referenced by schoose().
|
static |
Definition at line 60 of file gtk_schoose2.c.
Referenced by schoose().
|
static |
Definition at line 53 of file gtk_schoose2.c.
Referenced by create_schoose_window().
|
static |
Single choice handling.
Difference with previous release: 1/ schoose_close() must be called in order to close the schoose window. 2/ schoose() has one more argument, because cancel button is created. bb 04.06.91
Definition at line 52 of file gtk_schoose2.c.
Referenced by create_schoose_window(), schoose_choice_callback(), schoose_close(), and schoose_ok_notify().
|
static |
Definition at line 54 of file gtk_schoose2.c.
Referenced by create_schoose_window(), schoose(), and schoose_close().
|
static |
Definition at line 52 of file gtk_schoose2.c.
Referenced by create_schoose_window(), schoose(), and schoose_ok_notify().
|
static |
Definition at line 52 of file gtk_schoose2.c.
Referenced by create_schoose_window().
|
static |
Definition at line 52 of file gtk_schoose2.c.
Referenced by create_schoose_window().