File: callbacks.h

package info (click to toggle)
gpr 0.12deb1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 1,568 kB
  • ctags: 250
  • sloc: sh: 6,138; ansic: 3,684; makefile: 86; sed: 16
file content (85 lines) | stat: -rw-r--r-- 3,349 bytes parent folder | download | duplicates (3)
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
/*
 * GPR
 * Copyright (C) 2000 CompuMetric Labs, Inc.
 *
 * For more information contact:
 *        Thomas Hubbell
 *        CompuMetric Labs, Inc.
 *        5920 Grelot Road, Suite C-2
 *        Mobile, AL 36609
 * 
 * Voice: (334) 342-2220
 *   Fax: (334) 343-2261
 * Email: thubbell@compumetric.com
 *   Web: http://www.compumetric.com
 *
 * 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.
 *    
 *        File: Callbacks.h
 * 
 * Description:
 */

#ifdef USE_GNOME
#include <gnome.h>
#else
#include <gtk/gtk.h>
#endif
#include <ppd.h>

/* Initialization and control callbacks */

void grab_file_to_print(GtkWidget * entrybox, gpointer ppd);
void update_ppd_path(GtkWidget * fileentry, gpointer ppd);
void grab_ppd_file(GtkWidget * entrybox, gpointer ppd);
void grab_default_ppd(GtkWidget * menu_item, gpointer ppd);
void init_ppd(GtkButton * button, gpointer ppd);
void set_spool_dir(GtkWidget * menu_item, gpointer ppd);
void set_printer_name(GtkWidget * menu_item, gpointer ppd);
void send_print(GtkWidget * button, gpointer ppd);

gboolean if_no_errors_quit(GtkWidget * main, gpointer data);
void clean_up(GtkWidget * button, gpointer ppd);

/* Advanced/PPD option callbacks */
void fill_option_menus(GtkWidget * button, gpointer ppd);
void select_option_choice(GtkWidget * combo_item, gpointer ppd);
void select_inst_option_choice(GtkWidget * combo_item, gpointer ppd);
void choice_process(PpdOption * option, PpdChoice * choice, GtkWidget * combo,
		    int interator, int inst_opt, GtkWidget * combo_item,
		    int count, gpointer ppd);

/* saved settings callbacks */
void save_sett(GtkWidget * button, gpointer ppd);
void retrieve_sett(GtkWidget * menuitem, gpointer ppd);

/* Common Option callbacks */
void update_num_copies(GtkSpinButton * spinbutton, gpointer ppd);
void update_pageset_all(GtkWidget * radiobutton, gpointer ppd);
void update_pageset_odd(GtkWidget * radiobutton, gpointer ppd);
void update_pageset_even(GtkWidget * radiobutton, gpointer ppd);
void update_range_from(GtkWidget * entrybox, gpointer ppd);
void update_range_to(GtkWidget * entrybox, gpointer ppd);
void update_collate_yes(GtkWidget * radiobutton, gpointer ppd);
void update_collate_no(GtkWidget * radiobutton, gpointer ppd);
void update_revordr_yes(GtkWidget * radiobutton, gpointer ppd);
void update_revordr_no(GtkWidget * radiobutton, gpointer ppd);
void update_nup_1up(GtkWidget * radiobutton, gpointer ppd);
void update_nup_2up(GtkWidget * radiobutton, gpointer ppd);
void update_nup_4up(GtkWidget * radiobutton, gpointer ppd);

/* UI Modification callbacks */
void ungrey_entrybox(GtkWidget * button, gpointer entrybox);
void regrey_entrybox(GtkWidget * button, gpointer entrybox);