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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
|
/*
Copyright (C) 2003 by Sean David Fleming
sean@ivec.org
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.
The GNU GPL can also be found at http://www.gnu.org
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "gdis.h"
#include "gui_shorts.h"
#include "dialog.h"
#include "scan.h"
#include "parse.h"
#include "interface.h"
extern struct sysenv_pak sysenv;
/*****************************/
/* the gdis configure dialog */
/*****************************/
void gui_setup_dialog(void)
{
gpointer dialog;
GtkWidget *window, *frame, *vbox, *table, *label;
dialog = dialog_request(SETUP, "Executable locations", NULL, NULL, NULL);
if (!dialog)
return;
window = dialog_window(dialog);
gtk_widget_set_size_request(window, 640, -1);
frame = gtk_frame_new(NULL);
gtk_box_pack_start(GTK_BOX(GTK_DIALOG(window)->vbox), frame, FALSE, FALSE, PANEL_SPACING);
gtk_container_set_border_width(GTK_CONTAINER(frame), PANEL_SPACING);
table = gtk_table_new(2, 6, FALSE);
gtk_container_add(GTK_CONTAINER(frame), table);
gtk_container_set_border_width(GTK_CONTAINER(table), PANEL_SPACING);
label = gtk_label_new("Babel");
gtk_misc_set_alignment(GTK_MISC(label), 0, 0);
gtk_table_attach_defaults(GTK_TABLE(table),label,0,1,0,1);
vbox = gtk_vbox_new(TRUE, 0);
gtk_table_attach_defaults(GTK_TABLE(table),vbox,1,2,0,1);
gui_text_entry(NULL, &sysenv.babel_path, TRUE, TRUE, vbox);
label = gtk_label_new("GAMESS");
gtk_misc_set_alignment(GTK_MISC(label), 0, 0);
gtk_table_attach_defaults(GTK_TABLE(table),label,0,1,1,2);
vbox = gtk_vbox_new(TRUE, 0);
gtk_table_attach_defaults(GTK_TABLE(table),vbox,1,2,1,2);
gui_text_entry(NULL, &sysenv.gamess_path, TRUE, TRUE, vbox);
label = gtk_label_new("GULP");
gtk_misc_set_alignment(GTK_MISC(label), 0, 0);
gtk_table_attach_defaults(GTK_TABLE(table),label,0,1,2,3);
vbox = gtk_vbox_new(TRUE, 0);
gtk_table_attach_defaults(GTK_TABLE(table),vbox,1,2,2,3);
gui_text_entry(NULL, &sysenv.gulp_path, TRUE, TRUE, vbox);
label = gtk_label_new("Monty");
gtk_misc_set_alignment(GTK_MISC(label), 0, 0);
gtk_table_attach_defaults(GTK_TABLE(table),label,0,1,3,4);
vbox = gtk_vbox_new(TRUE, 0);
gtk_table_attach_defaults(GTK_TABLE(table),vbox,1,2,3,4);
gui_text_entry(NULL, &sysenv.monty_path, TRUE, TRUE, vbox);
label = gtk_label_new("POVRay");
gtk_misc_set_alignment(GTK_MISC(label), 0, 0);
gtk_table_attach_defaults(GTK_TABLE(table),label,0,1,4,5);
vbox = gtk_vbox_new(TRUE, 0);
gtk_table_attach_defaults(GTK_TABLE(table),vbox,1,2,4,5);
gui_text_entry(NULL, &sysenv.povray_path, TRUE, TRUE, vbox);
label = gtk_label_new("Image viewer ");
gtk_misc_set_alignment(GTK_MISC(label), 0, 0);
gtk_table_attach_defaults(GTK_TABLE(table),label,0,1,5,6);
vbox = gtk_vbox_new(TRUE, 0);
gtk_table_attach_defaults(GTK_TABLE(table),vbox,1,2,5,6);
gui_text_entry(NULL, &sysenv.viewer_path, TRUE, TRUE, vbox);
/* termination */
gui_stock_button(GTK_STOCK_CLOSE, dialog_destroy, dialog,
GTK_DIALOG(window)->action_area);
gtk_widget_show_all(window);
}
|