PIPS
|
#include <stdio.h>
#include <sys/time.h>
#include <sys/resource.h>
#include <xview/xview.h>
#include <xview/panel.h>
#include <xview/notice.h>
#include <xview/notify.h>
#include "genC.h"
#include "misc.h"
#include "wpips.h"
Go to the source code of this file.
Functions | |
static void | mchoose_help_notify (Panel_item item, Event *event) |
static void | mchoose_ok_notify (Panel_item item, Event *event) |
static void | mchoose_cancel_notify (Panel_item item, Event *event) |
static void | mchoose_frame_done_proc (Frame frame) |
Avoid the mchoose_frame destruction and act as cancel: More... | |
static int | mchoose_notify (Panel_item item, char *item_string, Xv_opaque client_data, Panel_list_op op, Event *event, int row) |
Function used to update the text panel according to the list panel: More... | |
static void | mchoose_de_select_all_notify (Panel_item item, Event *event) |
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 Panel_item | mchoices |
Multiple choices handling. More... | |
static Panel_item | choices |
static Panel_item | ok |
static Panel_item | cancel |
static Panel_item | help |
static void(* | apply_on_mchoices )(gen_array_t) = NULL |
static void(* | cancel_on_mchoices )(void) = NULL |
void create_mchoose_window | ( | ) |
Carriage return enable for "OK". RK, 19/05/1993.
PANEL_NOTIFY_PROC, mchoose_ok_notify,
Avoid the mchoose_frame destruction:
Definition at line 290 of file xv_mchoose.c.
References cancel, choices, help, mchoices, mchoose_cancel_notify(), mchoose_de_select_all_notify(), mchoose_frame, mchoose_frame_done_proc(), mchoose_help_notify(), mchoose_notify(), mchoose_ok_notify(), mchoose_panel, and ok.
void mchoose | ( | char * | title, |
gen_array_t | array, | ||
void(*)(gen_array_t) | function_ok, | ||
void(*)(void) | function_cancel | ||
) |
reset the choice set to empty
Delete all the rows, ie nchoices rows from row 0:
move the pointer to the center of the query window
The OK button becomes active through RETURN:
Definition at line 253 of file xv_mchoose.c.
References apply_on_mchoices, array, cancel_on_mchoices, choices, gen_array_item(), gen_array_nitems(), int, mchoices, mchoose_frame, mchoose_ok_notify(), mchoose_panel, ok, pointer_in_center_of_frame(), and unhide_window().
|
static |
The OK button becomes inactive through RETURN:
Delete all the rows, ie nchoices rows from row 0:
Definition at line 126 of file xv_mchoose.c.
References choices, hide_window(), mchoices, mchoose_frame, and mchoose_panel.
Referenced by create_mchoose_window(), and mchoose_frame_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 229 of file xv_mchoose.c.
References choices, int, and mchoose_notify().
Referenced by create_mchoose_window().
|
static |
Avoid the mchoose_frame destruction and act as cancel:
Definition at line 150 of file xv_mchoose.c.
References mchoose_cancel_notify().
Referenced by create_mchoose_window().
|
static |
Definition at line 49 of file xv_mchoose.c.
References display_help().
Referenced by create_mchoose_window().
|
static |
Function used to update the text panel according to the list panel:
Now it is mchoices_notify_buffer which is used for the selection. No size verification implemented yet... :-) RK, 19/05/1993.
Make the PANEL_VALUE of mchoices a string that is all the names of the selected files:
Avoid deletion and insertion with the edit menu of button 3:
Accept the operation by default:
Definition at line 177 of file xv_mchoose.c.
References choices, concatenate(), int, mchoices, and pips_assert.
Referenced by create_mchoose_window(), and mchoose_de_select_all_notify().
|
static |
Upperbound size for the scanf buffer:
At least on item selected, and in the list. RK, 21/05/1993.
The OK button becomes inactive through RETURN:
Delay the graphics transformations. RK, 21/05/1993.
Delete all the rows, ie nchoices rows from row 0:
Definition at line 57 of file xv_mchoose.c.
References buffer, choices, free(), gen_array_dupaddto(), gen_array_full_free(), gen_array_make(), hide_window(), int, malloc(), mchoices, mchoose_frame, mchoose_panel, prompt_user(), and strdup().
Referenced by create_mchoose_window(), and mchoose().
|
static |
Definition at line 46 of file xv_mchoose.c.
Referenced by mchoose().
|
static |
Definition at line 44 of file xv_mchoose.c.
Referenced by create_mchoose_window(), and loop_chunk_size_and_strip_mine().
|
static |
Definition at line 47 of file xv_mchoose.c.
Referenced by mchoose().
|
static |
Definition at line 44 of file xv_mchoose.c.
Referenced by create_mchoose_window(), mchoose(), mchoose_cancel_notify(), mchoose_de_select_all_notify(), mchoose_notify(), and mchoose_ok_notify().
|
static |
Definition at line 44 of file xv_mchoose.c.
Referenced by create_mchoose_window().
|
static |
Multiple choices handling.
Definition at line 44 of file xv_mchoose.c.
Referenced by create_mchoose_window(), mchoose(), mchoose_cancel_notify(), mchoose_notify(), and mchoose_ok_notify().
|
static |
Definition at line 44 of file xv_mchoose.c.
Referenced by create_mchoose_window(), and mchoose().