File: task.h

package info (click to toggle)
evms 1.0.0-3
  • links: PTS
  • area: main
  • in suites: woody
  • size: 9,168 kB
  • ctags: 5,853
  • sloc: ansic: 87,317; makefile: 691; sh: 238
file content (64 lines) | stat: -rw-r--r-- 2,794 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
/*
 *
 *   Copyright (c) International Business Machines  Corp., 2001
 *
 *   This program is free software;  you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation; either version 2 of the License, or 
 *   (at your option) any later version.
 * 
 *   This program is distributed in the hope that it will be useful,
 *   but WITHOUT ANY WARRANTY;  without even the implied warranty of
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See
 *   the GNU General Public License for more details.
 *
 *   You should have received a copy of the GNU General Public License
 *   along with this program;  if not, write to the Free Software 
 *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
 *
 * Module: task.h
 */

#define MAX_RO_COLUMNS   4
#define RO_ICON_COLUMN   0
#define RO_SIZE_COLUMN   1
#define RO_TYPE_COLUMN   2
#define RO_NAME_COLUMN   3

#define MAX_DO_COLUMNS   3
#define DO_ICON_COLUMN   0
#define DO_NAME_COLUMN   1
#define DO_REASON_COLUMN 2

gchar* get_task_action_string (task_handle_t task);

void options_window_callout (option_widget_info_t *info, value_t value, 
                             task_effect_t set_side_effect);

void on_task_window_destroy (GtkWidget *widget, gpointer user_data);
 
void on_acceptable_objects_button_clicked (GtkButton *button, gpointer user_data);

void on_acceptable_objects_clist_realize (GtkWidget *widget, gpointer user_data);

void on_acceptable_objects_clist_select_row (GtkCList *clist, gint row, gint column,
                                             GdkEventButton *event, gpointer user_data);
                                             
void on_acceptable_objects_clist_unselect_row (GtkCList *clist, gint row, gint column,
                                               GdkEventButton *event, gpointer user_data);

void create_option_widget_list (task_handle_t handle, gint count, GSList **options, 
                                GSList **widgets, gboolean show_inactive);

GtkWidget* create_standard_task_window (gchar *window_title, char *next_button_text,
                                        GtkSignalFunc next_button_sighandler, 
                                        GtkSignalFunc prev_button_sighandler,
                                        GtkSignalFunc cancel_button_sighandler,
                                        task_handle_t handle);

inline void bind_option_list_to_toplevel_widget (GtkWidget *widget, GSList *options);
inline GSList* retrieve_option_list_from_toplevel_widget (GtkWidget *widget);

inline void bind_task_handle_to_toplevel_widget (GtkWidget *widget, task_handle_t task);
inline task_handle_t retrieve_task_handle_from_toplevel_widget (GtkWidget *widget);