annotate src/gtk/gftp-gtk.h @ 51:33a0ba7f52d1

2002-11-6 Brian Masney <masneyb@gftp.org> * src/gtk/gftp-gtk.c - connect to the select_row signal in the file listbox to grab the double click event
author masneyb
date Thu, 07 Nov 2002 02:38:34 +0000
parents 311e29c40ed6
children a12bcbc2fce4
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
1 /*****************************************************************************/
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
2 /* gftp-gtk.h - include file for the gftp gtk+ 1.2 port */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
3 /* Copyright (C) 1998-2002 Brian Masney <masneyb@gftp.org> */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
4 /* */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
5 /* This program is free software; you can redistribute it and/or modify */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
6 /* it under the terms of the GNU General Public License as published by */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
7 /* the Free Software Foundation; either version 2 of the License, or */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
8 /* (at your option) any later version. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
9 /* */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
10 /* This program is distributed in the hope that it will be useful, */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
11 /* but WITHOUT ANY WARRANTY; without even the implied warranty of */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
12 /* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
13 /* GNU General Public License for more details. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
14 /* */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
15 /* You should have received a copy of the GNU General Public License */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
16 /* along with this program; if not, write to the Free Software */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
17 /* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
18 /*****************************************************************************/
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
19
33
c8ec7877432e 2002-10-06 Brian Masney <masneyb@gftp.org>
masneyb
parents: 19
diff changeset
20 /* $Id$ */
c8ec7877432e 2002-10-06 Brian Masney <masneyb@gftp.org>
masneyb
parents: 19
diff changeset
21
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
22 #ifndef __GFTP_GTK_H
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
23 #define __GFTP_GTK_H
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
24
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
25 #include "../../lib/gftp.h"
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
26 #include <gtk/gtk.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
27 #include <gdk/gdkkeysyms.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
28 #include <pthread.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
29
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
30 #define IS_ONE_SELECTED(wdata) (GTK_CLIST ((wdata)->listbox)->selection && GTK_CLIST ((wdata)->listbox)->selection->next == NULL)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
31 #define IS_NONE_SELECTED(wdata) (GTK_CLIST ((wdata)->listbox)->selection == NULL)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
32
45
311e29c40ed6 2002-10-31 Brian Masney <masneyb@gftp.org>
masneyb
parents: 42
diff changeset
33 #if GTK_MAJOR_VERSION == 1
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
34 #define gtk_widget_set_size_request(widget, width, height) \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
35 gtk_widget_set_usize (widget, width, height)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
36 #endif
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
37
19
3b2dcdefc7e9 2002-09-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 14
diff changeset
38 /* These 2 defines are for creating menu items with stock icons in GTK+ 2.0.
3b2dcdefc7e9 2002-09-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 14
diff changeset
39 If we are using version 1.2, it will disable the stock items since it's not
3b2dcdefc7e9 2002-09-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 14
diff changeset
40 supported */
3b2dcdefc7e9 2002-09-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 14
diff changeset
41
3b2dcdefc7e9 2002-09-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 14
diff changeset
42 #if GTK_MAJOR_VERSION < 2
3b2dcdefc7e9 2002-09-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 14
diff changeset
43 #define MS_(a) NULL
3b2dcdefc7e9 2002-09-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 14
diff changeset
44 #define MN_(a) a
3b2dcdefc7e9 2002-09-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 14
diff changeset
45 #else
3b2dcdefc7e9 2002-09-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 14
diff changeset
46 #define MS_(a) "<StockItem>",a
3b2dcdefc7e9 2002-09-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 14
diff changeset
47 #define MN_(a) a,NULL
3b2dcdefc7e9 2002-09-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 14
diff changeset
48 #endif
3b2dcdefc7e9 2002-09-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 14
diff changeset
49
3b2dcdefc7e9 2002-09-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 14
diff changeset
50 /* These are used for the MakeEditDialog function. I have these types to make
3b2dcdefc7e9 2002-09-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 14
diff changeset
51 it easier for creating dialogs with GTK+ 1.2 and GTK+ 2.0 */
3b2dcdefc7e9 2002-09-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 14
diff changeset
52
3b2dcdefc7e9 2002-09-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 14
diff changeset
53 typedef enum gftp_dialog_button_tag
3b2dcdefc7e9 2002-09-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 14
diff changeset
54 {
3b2dcdefc7e9 2002-09-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 14
diff changeset
55 gftp_dialog_button_create,
3b2dcdefc7e9 2002-09-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 14
diff changeset
56 gftp_dialog_button_change,
3b2dcdefc7e9 2002-09-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 14
diff changeset
57 gftp_dialog_button_connect,
3b2dcdefc7e9 2002-09-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 14
diff changeset
58 gftp_dialog_button_rename,
3b2dcdefc7e9 2002-09-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 14
diff changeset
59 gftp_dialog_button_ok
3b2dcdefc7e9 2002-09-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 14
diff changeset
60 } gftp_dialog_button;
3b2dcdefc7e9 2002-09-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 14
diff changeset
61
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
62 typedef struct gftp_window_data_tag
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
63 {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
64 GtkWidget *combo, /* Entry widget/history for the user to enter
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
65 a directory */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
66 *hoststxt, /* Show which directory we're in */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
67 *listbox; /* Our listbox showing the files */
37
5a178bd04ca5 2002-10-13 Brian Masney <masneyb@gftp.org>
masneyb
parents: 33
diff changeset
68 unsigned int *sortcol, /* Which column we are sorting by */
5a178bd04ca5 2002-10-13 Brian Masney <masneyb@gftp.org>
masneyb
parents: 33
diff changeset
69 *sortasds; /* Sorted ascending or descending */
5a178bd04ca5 2002-10-13 Brian Masney <masneyb@gftp.org>
masneyb
parents: 33
diff changeset
70 unsigned int sorted : 1, /* Is the output sorted? */
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
71 show_selected : 1, /* Show only selected files */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
72 *histlen; /* Pointer to length of history */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
73 char *filespec; /* Filespec for the listbox */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
74 gftp_request * request; /* The host that we are connected to */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
75 GList * files, /* Files in the listbox */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
76 ** history; /* History of the directories */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
77 GtkItemFactory *ifactory; /* This is for the menus that will
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
78 come up when you right click */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
79 pthread_t tid; /* Thread for the stop button */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
80 unsigned long gotbytes;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
81 } gftp_window_data;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
82
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
83
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
84 typedef struct gftp_graphic_tag
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
85 {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
86 char * filename;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
87 GdkPixmap * pixmap;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
88 GdkBitmap * bitmap;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
89 } gftp_graphic;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
90
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
91
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
92 typedef struct gftp_dialog_data_tag
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
93 {
19
3b2dcdefc7e9 2002-09-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 14
diff changeset
94 GtkWidget * dialog,
3b2dcdefc7e9 2002-09-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 14
diff changeset
95 * checkbox,
3b2dcdefc7e9 2002-09-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 14
diff changeset
96 * edit;
3b2dcdefc7e9 2002-09-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 14
diff changeset
97
3b2dcdefc7e9 2002-09-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 14
diff changeset
98 void (*yesfunc) ();
3b2dcdefc7e9 2002-09-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 14
diff changeset
99 gpointer yespointer;
3b2dcdefc7e9 2002-09-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 14
diff changeset
100
3b2dcdefc7e9 2002-09-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 14
diff changeset
101 void (*nofunc) ();
3b2dcdefc7e9 2002-09-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 14
diff changeset
102 gpointer nopointer;
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
103 } gftp_dialog_data;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
104
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
105
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
106 typedef struct gftp_viewedit_data_tag
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
107 {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
108 char *filename, /* File we are viewing/editing currently */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
109 *remote_filename; /* The filename on the remote computer */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
110 struct stat st; /* Vital file statistics */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
111 pid_t pid; /* Our process id */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
112 char **argv; /* Our arguments we passed to execvp. We will
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
113 free it when the process terminates. This
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
114 is the safest place to free this */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
115 unsigned int view : 1, /* View or edit this file */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
116 rm : 1, /* Delete this file after we're done with it */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
117 dontupload : 1; /* Don't upload this file after we're done
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
118 editing it */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
119 gftp_window_data * fromwdata, /* The window we are viewing this file in */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
120 * towdata;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
121 } gftp_viewedit_data;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
122
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
123
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
124 typedef struct gftp_curtrans_data_tag
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
125 {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
126 gftp_transfer * transfer;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
127 GList * curfle;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
128 } gftp_curtrans_data;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
129
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
130
14
83090328581e * More largefile support. Hopefully all that is left is the configure stuff
masneyb
parents: 7
diff changeset
131 typedef struct gftp_save_dir_struct_tag
83090328581e * More largefile support. Hopefully all that is left is the configure stuff
masneyb
parents: 7
diff changeset
132 {
83090328581e * More largefile support. Hopefully all that is left is the configure stuff
masneyb
parents: 7
diff changeset
133 GtkWidget * filew;
83090328581e * More largefile support. Hopefully all that is left is the configure stuff
masneyb
parents: 7
diff changeset
134 gftp_window_data * wdata;
83090328581e * More largefile support. Hopefully all that is left is the configure stuff
masneyb
parents: 7
diff changeset
135 } gftp_save_dir_struct;
83090328581e * More largefile support. Hopefully all that is left is the configure stuff
masneyb
parents: 7
diff changeset
136
83090328581e * More largefile support. Hopefully all that is left is the configure stuff
masneyb
parents: 7
diff changeset
137
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
138 extern gftp_window_data window1, window2, * other_wdata, * current_wdata;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
139 extern GtkWidget * stop_btn, * hostedit, * useredit, * passedit,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
140 * portedit, * logwdw, * dlwdw, * protocol_menu, * optionmenu;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
141 extern GtkAdjustment * logwdw_vadj;
45
311e29c40ed6 2002-10-31 Brian Masney <masneyb@gftp.org>
masneyb
parents: 42
diff changeset
142 #if GTK_MAJOR_VERSION > 1
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
143 extern GtkTextMark * logwdw_textmark;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
144 #endif
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
145 extern int local_start, remote_start, trans_start, log_start, tools_start;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
146 extern GHashTable * graphic_hash_table;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
147 extern GtkItemFactoryEntry * menus;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
148 extern GtkItemFactory * factory;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
149 extern pthread_mutex_t transfer_mutex, log_mutex;
19
3b2dcdefc7e9 2002-09-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 14
diff changeset
150 extern gftp_graphic * gftp_icon;
33
c8ec7877432e 2002-10-06 Brian Masney <masneyb@gftp.org>
masneyb
parents: 19
diff changeset
151 extern int gftp_is_started;
42
cd169e4789df 2002-10-29 Brian Masney <masneyb@gftp.org>
masneyb
parents: 37
diff changeset
152 extern sigjmp_buf jmp_environment;
cd169e4789df 2002-10-29 Brian Masney <masneyb@gftp.org>
masneyb
parents: 37
diff changeset
153 extern volatile int use_jmp_environment;
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
154
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
155 /* bookmarks.c */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
156 void run_bookmark ( gpointer data );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
157
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
158 void add_bookmark ( gpointer data );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
159
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
160 void edit_bookmarks ( gpointer data );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
161
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
162 void build_bookmarks_menu ( void );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
163
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
164 /* chmod_dialog.c */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
165 void chmod_dialog ( gpointer data );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
166
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
167 /* delete_dialog.c */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
168 void delete_dialog ( gpointer data );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
169
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
170 /* dnd.c */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
171 void openurl_get_drag_data ( GtkWidget * widget,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
172 GdkDragContext * context,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
173 gint x,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
174 gint y,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
175 GtkSelectionData * selection_data,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
176 guint info,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
177 guint32 clk_time,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
178 gpointer data );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
179
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
180 void listbox_drag ( GtkWidget * widget,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
181 GdkDragContext * context,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
182 GtkSelectionData * selection_data,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
183 guint info,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
184 guint32 clk_time,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
185 gpointer data );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
186
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
187 void listbox_get_drag_data ( GtkWidget * widget,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
188 GdkDragContext * context,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
189 gint x,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
190 gint y,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
191 GtkSelectionData * selection_data,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
192 guint info,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
193 guint32 clk_time,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
194 gpointer data );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
195
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
196 /* gftp-gtk.c */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
197 void toolbar_hostedit ( GtkWidget * widget,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
198 gpointer data );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
199
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
200 void sortrows ( GtkCList * clist,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
201 gint column,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
202 gpointer data );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
203
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
204 void stop_button ( GtkWidget * widget,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
205 gpointer data );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
206
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
207 /* menu_items.c */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
208 void change_setting ( gftp_window_data *wdata,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
209 int menuitem,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
210 GtkWidget * checkmenu );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
211
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
212 void tb_openurl_dialog ( gpointer data );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
213
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
214 void openurl_dialog ( gpointer data );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
215
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
216 void disconnect ( gpointer data );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
217
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
218 void change_filespec ( gpointer data );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
219
14
83090328581e * More largefile support. Hopefully all that is left is the configure stuff
masneyb
parents: 7
diff changeset
220 void save_directory_listing ( gpointer data );
83090328581e * More largefile support. Hopefully all that is left is the configure stuff
masneyb
parents: 7
diff changeset
221
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
222 void show_selected ( gpointer data );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
223
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
224 void selectall ( gpointer data );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
225
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
226 void selectallfiles ( gpointer data );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
227
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
228 void deselectall ( gpointer data );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
229
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
230 void site_dialog ( gpointer data );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
231
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
232 int chdir_edit ( GtkWidget * widget,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
233 gpointer data );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
234
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
235 int chdir_dialog ( gpointer data );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
236
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
237 void clearlog ( gpointer data );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
238
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
239 void viewlog ( gpointer data );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
240
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
241 void savelog ( gpointer data );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
242
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
243 void clear_cache ( gpointer data );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
244
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
245 void options_dialog (gpointer data);
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
246 void compare_windows (gpointer data);
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
247 void about_dialog (gpointer data);
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
248
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
249 /* misc-gtk.c */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
250 void fix_display ( void );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
251
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
252 void remove_files_window ( gftp_window_data * wdata );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
253
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
254 void ftp_log ( gftp_logging_level level,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
255 void *ptr,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
256 const char *string,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
257 ... );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
258
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
259 void refresh ( gftp_window_data * wdata );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
260
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
261 void update_window_info ( void );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
262
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
263 void update_window ( gftp_window_data * wdata );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
264
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
265 GtkWidget * toolbar_pixmap ( GtkWidget * widget,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
266 char *filename );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
267
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
268 gftp_graphic * open_xpm ( GtkWidget * widget,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
269 char *filename );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
270
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
271 void gftp_free_pixmap ( char *filename );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
272
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
273 void gftp_get_pixmap ( GtkWidget * widget,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
274 char *filename,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
275 GdkPixmap ** pix,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
276 GdkBitmap ** bitmap );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
277
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
278 int check_status ( char *name,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
279 gftp_window_data * wdata,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
280 int check_other_stop,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
281 int only_one,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
282 int at_least_one,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
283 int func );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
284
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
285 GtkItemFactory *item_factory_new ( GtkType container_type,
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
286 const char *path,
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
287 GtkAccelGroup *accel_group,
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
288 const char *strip_prefix );
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
289
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
290 void create_item_factory ( GtkItemFactory * ifactory,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
291 guint n_entries,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
292 GtkItemFactoryEntry * entries,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
293 gpointer callback_data );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
294
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
295 GList * get_next_selection ( GList * selection,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
296 GList ** list,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
297 int *curnum );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
298
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
299 void add_history ( GtkWidget * widget,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
300 GList ** history,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
301 unsigned int *histlen,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
302 const char *str );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
303
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
304 int check_reconnect ( gftp_window_data * wdata );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
305
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
306 void add_file_listbox ( gftp_window_data * wdata,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
307 gftp_file * fle );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
308
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
309 void MakeEditDialog ( char *diagtxt,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
310 char *infotxt,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
311 char *deftext,
19
3b2dcdefc7e9 2002-09-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 14
diff changeset
312 int passwd_item,
3b2dcdefc7e9 2002-09-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 14
diff changeset
313 char *checktext,
3b2dcdefc7e9 2002-09-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 14
diff changeset
314 gftp_dialog_button okbutton,
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
315 void (*okfunc) (),
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
316 void *okptr,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
317 void (*cancelfunc) (),
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
318 void *cancelptr );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
319
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
320 void MakeYesNoDialog ( char *diagtxt,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
321 char *infotxt,
19
3b2dcdefc7e9 2002-09-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 14
diff changeset
322 void (*yesfunc) (),
3b2dcdefc7e9 2002-09-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 14
diff changeset
323 gpointer yespointer,
3b2dcdefc7e9 2002-09-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 14
diff changeset
324 void (*nofunc) (),
3b2dcdefc7e9 2002-09-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 14
diff changeset
325 gpointer nopointer );
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
326
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
327 void update_directory_download_progress ( gftp_transfer * transfer );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
328
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
329 void *generic_thread ( void * (*func)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
330 (void *),
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
331 gftp_window_data * wdata );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
332
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
333 int progress_timeout ( gpointer data );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
334
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
335 void display_cached_logs ( void );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
336
42
cd169e4789df 2002-10-29 Brian Masney <masneyb@gftp.org>
masneyb
parents: 37
diff changeset
337 RETSIGTYPE signal_handler (int signo);
cd169e4789df 2002-10-29 Brian Masney <masneyb@gftp.org>
masneyb
parents: 37
diff changeset
338
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
339 /* mkdir_dialog.c */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
340 void mkdir_dialog ( gpointer data );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
341
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
342 /* rename_dialog.c */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
343 void rename_dialog ( gpointer data );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
344
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
345 /* transfer.c */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
346 int ftp_list_files ( gftp_window_data * wdata,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
347 int usecache );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
348
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
349 int ftp_connect ( gftp_window_data * wdata,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
350 gftp_request * request,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
351 int getdir );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
352
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
353 gint update_downloads ( gpointer data );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
354
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
355 void * gftp_gtk_transfer_files ( void *data );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
356
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
357 void get_files ( gpointer data );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
358
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
359 void put_files ( gpointer data );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
360
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
361 void transfer_window_files ( gftp_window_data * fromwdata,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
362 gftp_window_data * towdata );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
363
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
364 void *do_getdir_thread ( void * data );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
365
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
366 void add_file_transfer ( gftp_request * fromreq,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
367 gftp_request * toreq,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
368 gftp_window_data * fromwdata,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
369 gftp_window_data * towdata,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
370 GList * files,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
371 int copy_req );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
372
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
373 void start_transfer ( gpointer data );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
374
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
375 void stop_transfer ( gpointer data );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
376
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
377 void skip_transfer ( gpointer data );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
378
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
379 void remove_file_transfer ( gpointer data );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
380
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
381 void move_transfer_up ( gpointer data );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
382
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
383 void move_transfer_down ( gpointer data );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
384
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
385 void gftp_gtk_ask_transfer ( gftp_transfer * tdata );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
386
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
387 /* view_dialog.c */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
388 void edit_dialog ( gpointer data );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
389
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
390 void view_dialog ( gpointer data );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
391
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
392 void view_file ( char *filename,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
393 int fd,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
394 int viewedit,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
395 int del_file,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
396 int start_pos,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
397 int dontupload,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
398 char *remote_filename,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
399 gftp_window_data * wdata );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
400
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
401 #endif
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
402