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 | { M_AVAILABLE_CHOICES_COLUMN_ID , M_COLUMNS_NUMBER } |
Functions | |
static void | mchoose_ok_notify (GtkWidget *widget __attribute__((unused)), gpointer data __attribute__((unused))) |
static void | mchoose_cancel_notify (GtkWidget *widget __attribute__((unused)), gpointer data __attribute__((unused))) |
static void | mchoose_window_done_proc (GtkWidget *window __attribute__((unused)), gpointer data __attribute__((unused))) |
Avoid the mchoose_frame destruction and act as cancel: More... | |
static void | concat_labels (gpointer _row, gpointer _label) |
static void | mchoose_callback (GtkTreeSelection *selection, gpointer data __attribute__((unused))) |
Function used to update the text panel according to the list panel: More... | |
static void | mchoose_de_select_all_notify (GtkWidget *widget __attribute__((unused)), gpointer data __attribute__((unused))) |
When we press on the "(De)Select" all button, select or deselect all the items. More... | |
void | mchoose (char *title, gen_array_t array, void(*function_ok)(gen_array_t), void(*function_cancel)(void)) |
void | create_mchoose_window () |
Variables | |
static GtkWidget * | mchoices_label |
Multiple choices handling. More... | |
static GtkWidget * | choices_list |
static GtkWidget * | ok_button |
static GtkWidget * | cancel_button |
static GtkWidget * | help_button |
static GtkListStore * | choices |
static void(* | apply_on_mchoices )(gen_array_t) = NULL |
static void(* | cancel_on_mchoices )(void) = NULL |
anonymous enum |
Enumerator | |
---|---|
M_AVAILABLE_CHOICES_COLUMN_ID | |
M_COLUMNS_NUMBER |
Definition at line 47 of file gtk_mchoose.c.
|
static |
Definition at line 149 of file gtk_mchoose.c.
References choices, concatenate(), M_AVAILABLE_CHOICES_COLUMN_ID, and strdup().
Referenced by mchoose_callback().
void create_mchoose_window | ( | ) |
Definition at line 242 of file gtk_mchoose.c.
References cancel_button, choices, choices_list, help_button, M_AVAILABLE_CHOICES_COLUMN_ID, M_COLUMNS_NUMBER, mchoices_label, mchoose_callback(), mchoose_cancel_notify(), mchoose_de_select_all_notify(), mchoose_frame, mchoose_ok_notify(), mchoose_window, mchoose_window_done_proc(), and ok_button.
Referenced by gpips_main(), and wpips_main().
void mchoose | ( | char * | title, |
gen_array_t | array, | ||
void(*)(gen_array_t) | function_ok, | ||
void(*)(void) | function_cancel | ||
) |
move the pointer to the center of the query window
Definition at line 212 of file gtk_mchoose.c.
References apply_on_mchoices, array, cancel_on_mchoices, choices, gen_array_item(), gen_array_nitems(), M_AVAILABLE_CHOICES_COLUMN_ID, and mchoose_window.
Referenced by continue_create_workspace_notify().
|
static |
Function used to update the text panel according to the list panel:
Make the PANEL_VALUE of mchoices a string that is all the names of the selected files:
Definition at line 171 of file gtk_mchoose.c.
References choices, choices_list, concat_labels(), mchoices_label, and strdup().
Referenced by create_mchoose_window(), and mchoose_de_select_all_notify().
|
static |
Definition at line 128 of file gtk_mchoose.c.
References choices, hide_window(), mchoices_label, and mchoose_window.
Referenced by create_mchoose_window(), and mchoose_window_done_proc().
|
static |
When we press on the "(De)Select" all button, select or deselect all the items.
Update the "Current choices":
Next time we press this button, do the opposite:
Definition at line 192 of file gtk_mchoose.c.
References choices_list, and mchoose_callback().
Referenced by create_mchoose_window().
|
static |
Upperbound size for the scanf buffer:
Delay the graphics transformations. RK, 21/05/1993.
Definition at line 60 of file gtk_mchoose.c.
References buffer, choices, choices_list, gen_array_dupaddto(), gen_array_full_free(), gen_array_make(), hide_window(), malloc(), mchoices_label, mchoose_window, prompt_user(), and strdup().
Referenced by create_mchoose_window().
|
static |
Avoid the mchoose_frame destruction and act as cancel:
Definition at line 145 of file gtk_mchoose.c.
References mchoose_cancel_notify().
Referenced by create_mchoose_window().
|
static |
Definition at line 51 of file gtk_mchoose.c.
Referenced by mchoose().
|
static |
Definition at line 43 of file gtk_mchoose.c.
Referenced by create_mchoose_window().
|
static |
Definition at line 52 of file gtk_mchoose.c.
Referenced by mchoose().
|
static |
Definition at line 45 of file gtk_mchoose.c.
Referenced by concat_labels(), create_mchoose_window(), mchoose(), mchoose_callback(), mchoose_cancel_notify(), and mchoose_ok_notify().
|
static |
Definition at line 43 of file gtk_mchoose.c.
Referenced by create_mchoose_window(), mchoose_callback(), mchoose_de_select_all_notify(), and mchoose_ok_notify().
|
static |
Definition at line 44 of file gtk_mchoose.c.
Referenced by create_mchoose_window(), and create_query_window().
|
static |
Multiple choices handling.
Definition at line 43 of file gtk_mchoose.c.
Referenced by create_mchoose_window(), mchoose_callback(), mchoose_cancel_notify(), and mchoose_ok_notify().
|
static |
Definition at line 43 of file gtk_mchoose.c.
Referenced by create_mchoose_window(), and create_query_window().