annotate src/gtk/gftp-gtk.h @ 506:5944bd059ae0

2004-7-19 Brian Masney <masneyb@gftp.org> * src/gtk/delete_dialog.c src/gtk/transfer.c src/gtk/gftp-gtk.h - added gftp_gtk_get_subdirs() to get the list of subdirectories in a child thread
author masneyb
date Mon, 19 Jul 2004 23:09:23 +0000
parents c89019945241
children 7262851e3ae8
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 */
255
2ad324cf4930 2003-8-11 Brian Masney <masneyb@gftp.org>
masneyb
parents: 233
diff changeset
3 /* Copyright (C) 1998-2003 Brian Masney <masneyb@gftp.org> */
1
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"
341
eedc2c5727fa 2003-12-28 Brian Masney <masneyb@gftp.org>
masneyb
parents: 338
diff changeset
26 #include "../uicommon/gftpui.h"
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
27 #include <gtk/gtk.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
28 #include <gdk/gdkkeysyms.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
29 #include <pthread.h>
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
30
505
c89019945241 2004-7-19 Brian Masney <masneyb@gftp.org>
masneyb
parents: 496
diff changeset
31 #define GFTP_MENU_ITEM_ASCII 1
c89019945241 2004-7-19 Brian Masney <masneyb@gftp.org>
masneyb
parents: 496
diff changeset
32 #define GFTP_MENU_ITEM_BINARY 2
c89019945241 2004-7-19 Brian Masney <masneyb@gftp.org>
masneyb
parents: 496
diff changeset
33 #define GFTP_MENU_ITEM_WIN1 3
c89019945241 2004-7-19 Brian Masney <masneyb@gftp.org>
masneyb
parents: 496
diff changeset
34 #define GFTP_MENU_ITEM_WIN2 4
c89019945241 2004-7-19 Brian Masney <masneyb@gftp.org>
masneyb
parents: 496
diff changeset
35
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
36 #define IS_ONE_SELECTED(wdata) (GTK_CLIST ((wdata)->listbox)->selection && GTK_CLIST ((wdata)->listbox)->selection->next == NULL)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
37 #define IS_NONE_SELECTED(wdata) (GTK_CLIST ((wdata)->listbox)->selection == NULL)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
38
297
6d088dfece0b 2003-10-26 Brian Masney <masneyb@gftp.org>
masneyb
parents: 294
diff changeset
39 #define GFTP_IS_SAME_HOST_START_TRANS(wdata,trequest) \
6d088dfece0b 2003-10-26 Brian Masney <masneyb@gftp.org>
masneyb
parents: 294
diff changeset
40 ((wdata) != NULL && (wdata)->request != NULL && \
6d088dfece0b 2003-10-26 Brian Masney <masneyb@gftp.org>
masneyb
parents: 294
diff changeset
41 (wdata)->request->datafd > 0 && !(wdata)->request->always_connected && \
6d088dfece0b 2003-10-26 Brian Masney <masneyb@gftp.org>
masneyb
parents: 294
diff changeset
42 !(wdata)->request->stopable && \
6d088dfece0b 2003-10-26 Brian Masney <masneyb@gftp.org>
masneyb
parents: 294
diff changeset
43 compare_request (trequest, (wdata)->request, 0))
6d088dfece0b 2003-10-26 Brian Masney <masneyb@gftp.org>
masneyb
parents: 294
diff changeset
44
6d088dfece0b 2003-10-26 Brian Masney <masneyb@gftp.org>
masneyb
parents: 294
diff changeset
45 #define GFTP_IS_SAME_HOST_STOP_TRANS(wdata,trequest) \
6d088dfece0b 2003-10-26 Brian Masney <masneyb@gftp.org>
masneyb
parents: 294
diff changeset
46 ((wdata) != NULL && (wdata)->request != NULL && \
6d088dfece0b 2003-10-26 Brian Masney <masneyb@gftp.org>
masneyb
parents: 294
diff changeset
47 (wdata)->request->datafd < 0 && !(wdata)->request->always_connected && \
6d088dfece0b 2003-10-26 Brian Masney <masneyb@gftp.org>
masneyb
parents: 294
diff changeset
48 (wdata)->request->cached && !(wdata)->request->stopable && \
6d088dfece0b 2003-10-26 Brian Masney <masneyb@gftp.org>
masneyb
parents: 294
diff changeset
49 trequest->datafd > 0 && !trequest->always_connected && \
6d088dfece0b 2003-10-26 Brian Masney <masneyb@gftp.org>
masneyb
parents: 294
diff changeset
50 compare_request (trequest, (wdata)->request, 0))
6d088dfece0b 2003-10-26 Brian Masney <masneyb@gftp.org>
masneyb
parents: 294
diff changeset
51
45
311e29c40ed6 2002-10-31 Brian Masney <masneyb@gftp.org>
masneyb
parents: 42
diff changeset
52 #if GTK_MAJOR_VERSION == 1
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
53 #define gtk_widget_set_size_request(widget, width, height) \
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
54 gtk_widget_set_usize (widget, width, height)
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
55 #endif
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
56
19
3b2dcdefc7e9 2002-09-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 14
diff changeset
57 /* 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
58 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
59 supported */
3b2dcdefc7e9 2002-09-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 14
diff changeset
60
3b2dcdefc7e9 2002-09-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 14
diff changeset
61 #if GTK_MAJOR_VERSION < 2
3b2dcdefc7e9 2002-09-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 14
diff changeset
62 #define MS_(a) NULL
3b2dcdefc7e9 2002-09-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 14
diff changeset
63 #define MN_(a) a
3b2dcdefc7e9 2002-09-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 14
diff changeset
64 #else
3b2dcdefc7e9 2002-09-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 14
diff changeset
65 #define MS_(a) "<StockItem>",a
3b2dcdefc7e9 2002-09-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 14
diff changeset
66 #define MN_(a) a,NULL
3b2dcdefc7e9 2002-09-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 14
diff changeset
67 #endif
3b2dcdefc7e9 2002-09-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 14
diff changeset
68
3b2dcdefc7e9 2002-09-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 14
diff changeset
69 /* 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
70 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
71
3b2dcdefc7e9 2002-09-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 14
diff changeset
72 typedef enum gftp_dialog_button_tag
3b2dcdefc7e9 2002-09-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 14
diff changeset
73 {
3b2dcdefc7e9 2002-09-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 14
diff changeset
74 gftp_dialog_button_create,
3b2dcdefc7e9 2002-09-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 14
diff changeset
75 gftp_dialog_button_change,
3b2dcdefc7e9 2002-09-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 14
diff changeset
76 gftp_dialog_button_connect,
3b2dcdefc7e9 2002-09-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 14
diff changeset
77 gftp_dialog_button_rename,
3b2dcdefc7e9 2002-09-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 14
diff changeset
78 gftp_dialog_button_ok
3b2dcdefc7e9 2002-09-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 14
diff changeset
79 } gftp_dialog_button;
3b2dcdefc7e9 2002-09-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 14
diff changeset
80
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
81 typedef struct gftp_window_data_tag
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
82 {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
83 GtkWidget *combo, /* Entry widget/history for the user to enter
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
84 a directory */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
85 *hoststxt, /* Show which directory we're in */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
86 *listbox; /* Our listbox showing the files */
37
5a178bd04ca5 2002-10-13 Brian Masney <masneyb@gftp.org>
masneyb
parents: 33
diff changeset
87 unsigned int sorted : 1, /* Is the output sorted? */
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
88 show_selected : 1, /* Show only selected files */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
89 *histlen; /* Pointer to length of history */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
90 char *filespec; /* Filespec for the listbox */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
91 gftp_request * request; /* The host that we are connected to */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
92 GList * files, /* Files in the listbox */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
93 ** history; /* History of the directories */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
94 GtkItemFactory *ifactory; /* This is for the menus that will
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
95 come up when you right click */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
96 pthread_t tid; /* Thread for the stop button */
129
fe0b21c006f6 2003-4-13 Brian Masney <masneyb@gftp.org>
masneyb
parents: 63
diff changeset
97 char *prefix_col_str;
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
98 } gftp_window_data;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
99
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
100
355
60d3da6ab336 2003-1-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 341
diff changeset
101 typedef struct _gftpui_gtk_thread_data
60d3da6ab336 2003-1-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 341
diff changeset
102 {
60d3da6ab336 2003-1-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 341
diff changeset
103 void * (*func) (void *);
60d3da6ab336 2003-1-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 341
diff changeset
104 gftpui_callback_data * cdata;
60d3da6ab336 2003-1-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 341
diff changeset
105 } gftpui_gtk_thread_data;
60d3da6ab336 2003-1-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 341
diff changeset
106
60d3da6ab336 2003-1-5 Brian Masney <masneyb@gftp.org>
masneyb
parents: 341
diff changeset
107
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
108 typedef struct gftp_graphic_tag
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
109 {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
110 char * filename;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
111 GdkPixmap * pixmap;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
112 GdkBitmap * bitmap;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
113 } gftp_graphic;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
114
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
115
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
116 typedef struct gftp_dialog_data_tag
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
117 {
19
3b2dcdefc7e9 2002-09-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 14
diff changeset
118 GtkWidget * dialog,
3b2dcdefc7e9 2002-09-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 14
diff changeset
119 * checkbox,
3b2dcdefc7e9 2002-09-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 14
diff changeset
120 * edit;
3b2dcdefc7e9 2002-09-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 14
diff changeset
121
3b2dcdefc7e9 2002-09-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 14
diff changeset
122 void (*yesfunc) ();
3b2dcdefc7e9 2002-09-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 14
diff changeset
123 gpointer yespointer;
3b2dcdefc7e9 2002-09-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 14
diff changeset
124
3b2dcdefc7e9 2002-09-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 14
diff changeset
125 void (*nofunc) ();
3b2dcdefc7e9 2002-09-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 14
diff changeset
126 gpointer nopointer;
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
127 } gftp_dialog_data;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
128
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
129
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
130 typedef struct gftp_viewedit_data_tag
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
131 {
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
132 char *filename, /* File we are viewing/editing currently */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
133 *remote_filename; /* The filename on the remote computer */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
134 struct stat st; /* Vital file statistics */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
135 pid_t pid; /* Our process id */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
136 char **argv; /* Our arguments we passed to execvp. We will
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
137 free it when the process terminates. This
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
138 is the safest place to free this */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
139 unsigned int view : 1, /* View or edit this file */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
140 rm : 1, /* Delete this file after we're done with it */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
141 dontupload : 1; /* Don't upload this file after we're done
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
142 editing it */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
143 gftp_window_data * fromwdata, /* The window we are viewing this file in */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
144 * towdata;
294
4747f621b79b 2003-10-25 Brian Masney <masneyb@gftp.org>
masneyb
parents: 255
diff changeset
145 gftp_request * torequest;
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
146 } gftp_viewedit_data;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
147
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
148
14
83090328581e * More largefile support. Hopefully all that is left is the configure stuff
masneyb
parents: 7
diff changeset
149 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
150 {
83090328581e * More largefile support. Hopefully all that is left is the configure stuff
masneyb
parents: 7
diff changeset
151 GtkWidget * filew;
83090328581e * More largefile support. Hopefully all that is left is the configure stuff
masneyb
parents: 7
diff changeset
152 gftp_window_data * wdata;
83090328581e * More largefile support. Hopefully all that is left is the configure stuff
masneyb
parents: 7
diff changeset
153 } gftp_save_dir_struct;
83090328581e * More largefile support. Hopefully all that is left is the configure stuff
masneyb
parents: 7
diff changeset
154
83090328581e * More largefile support. Hopefully all that is left is the configure stuff
masneyb
parents: 7
diff changeset
155
136
84b3e69807a2 2003-4-18 Brian Masney <masneyb@gftp.org>
masneyb
parents: 129
diff changeset
156 typedef struct gftp_textcomboedt_widget_data_tag
84b3e69807a2 2003-4-18 Brian Masney <masneyb@gftp.org>
masneyb
parents: 129
diff changeset
157 {
84b3e69807a2 2003-4-18 Brian Masney <masneyb@gftp.org>
masneyb
parents: 129
diff changeset
158 GtkWidget * combo,
84b3e69807a2 2003-4-18 Brian Masney <masneyb@gftp.org>
masneyb
parents: 129
diff changeset
159 * text;
84b3e69807a2 2003-4-18 Brian Masney <masneyb@gftp.org>
masneyb
parents: 129
diff changeset
160 gftp_config_vars * cv;
139
c363b08e0118 2003-4-21 Brian Masney <masneyb@gftp.org>
masneyb
parents: 136
diff changeset
161 char * custom_edit_value;
136
84b3e69807a2 2003-4-18 Brian Masney <masneyb@gftp.org>
masneyb
parents: 129
diff changeset
162 } gftp_textcomboedt_widget_data;
84b3e69807a2 2003-4-18 Brian Masney <masneyb@gftp.org>
masneyb
parents: 129
diff changeset
163
84b3e69807a2 2003-4-18 Brian Masney <masneyb@gftp.org>
masneyb
parents: 129
diff changeset
164
84b3e69807a2 2003-4-18 Brian Masney <masneyb@gftp.org>
masneyb
parents: 129
diff changeset
165 typedef struct gftp_options_dialog_data_tag
84b3e69807a2 2003-4-18 Brian Masney <masneyb@gftp.org>
masneyb
parents: 129
diff changeset
166 {
84b3e69807a2 2003-4-18 Brian Masney <masneyb@gftp.org>
masneyb
parents: 129
diff changeset
167 GtkWidget * dialog,
84b3e69807a2 2003-4-18 Brian Masney <masneyb@gftp.org>
masneyb
parents: 129
diff changeset
168 * notebook,
84b3e69807a2 2003-4-18 Brian Masney <masneyb@gftp.org>
masneyb
parents: 129
diff changeset
169 * box,
84b3e69807a2 2003-4-18 Brian Masney <masneyb@gftp.org>
masneyb
parents: 129
diff changeset
170 * table;
84b3e69807a2 2003-4-18 Brian Masney <masneyb@gftp.org>
masneyb
parents: 129
diff changeset
171 int tbl_col_num,
84b3e69807a2 2003-4-18 Brian Masney <masneyb@gftp.org>
masneyb
parents: 129
diff changeset
172 tbl_row_num;
84b3e69807a2 2003-4-18 Brian Masney <masneyb@gftp.org>
masneyb
parents: 129
diff changeset
173 gftp_option_type_enum last_option;
229
35ae2e80962e 2003-7-22 Brian Masney <masneyb@gftp.org>
masneyb
parents: 227
diff changeset
174 gftp_bookmarks_var * bm;
136
84b3e69807a2 2003-4-18 Brian Masney <masneyb@gftp.org>
masneyb
parents: 129
diff changeset
175 } gftp_options_dialog_data;
84b3e69807a2 2003-4-18 Brian Masney <masneyb@gftp.org>
masneyb
parents: 129
diff changeset
176
84b3e69807a2 2003-4-18 Brian Masney <masneyb@gftp.org>
masneyb
parents: 129
diff changeset
177
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
178 extern gftp_window_data window1, window2, * other_wdata, * current_wdata;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
179 extern GtkWidget * stop_btn, * hostedit, * useredit, * passedit,
341
eedc2c5727fa 2003-12-28 Brian Masney <masneyb@gftp.org>
masneyb
parents: 338
diff changeset
180 * portedit, * logwdw, * dlwdw, * protocol_menu, * optionmenu,
eedc2c5727fa 2003-12-28 Brian Masney <masneyb@gftp.org>
masneyb
parents: 338
diff changeset
181 * gftpui_command_widget;
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
182 extern GtkAdjustment * logwdw_vadj;
45
311e29c40ed6 2002-10-31 Brian Masney <masneyb@gftp.org>
masneyb
parents: 42
diff changeset
183 #if GTK_MAJOR_VERSION > 1
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
184 extern GtkTextMark * logwdw_textmark;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
185 #endif
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
186 extern int local_start, remote_start, trans_start, log_start, tools_start;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
187 extern GHashTable * graphic_hash_table;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
188 extern GtkItemFactoryEntry * menus;
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
189 extern GtkItemFactory * factory;
367
d5409bf03ff1 2003-1-18 Brian Masney <masneyb@gftp.org>
masneyb
parents: 355
diff changeset
190 extern pthread_mutex_t log_mutex;
19
3b2dcdefc7e9 2002-09-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 14
diff changeset
191 extern gftp_graphic * gftp_icon;
56
a12bcbc2fce4 2002-11-11 Brian Masney <masneyb@gftp.org>
masneyb
parents: 45
diff changeset
192 extern pthread_t main_thread_id;
129
fe0b21c006f6 2003-4-13 Brian Masney <masneyb@gftp.org>
masneyb
parents: 63
diff changeset
193 extern GList * viewedit_processes;
fe0b21c006f6 2003-4-13 Brian Masney <masneyb@gftp.org>
masneyb
parents: 63
diff changeset
194
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
195
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
196 /* bookmarks.c */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
197 void run_bookmark ( gpointer data );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
198
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
199 void add_bookmark ( gpointer data );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
200
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
201 void edit_bookmarks ( gpointer data );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
202
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
203 void build_bookmarks_menu ( void );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
204
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
205 /* chmod_dialog.c */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
206 void chmod_dialog ( gpointer data );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
207
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
208 /* delete_dialog.c */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
209 void delete_dialog ( gpointer data );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
210
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
211 /* dnd.c */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
212 void openurl_get_drag_data ( GtkWidget * widget,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
213 GdkDragContext * context,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
214 gint x,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
215 gint y,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
216 GtkSelectionData * selection_data,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
217 guint info,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
218 guint32 clk_time,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
219 gpointer data );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
220
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
221 void listbox_drag ( GtkWidget * widget,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
222 GdkDragContext * context,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
223 GtkSelectionData * selection_data,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
224 guint info,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
225 guint32 clk_time,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
226 gpointer data );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
227
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
228 void listbox_get_drag_data ( GtkWidget * widget,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
229 GdkDragContext * context,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
230 gint x,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
231 gint y,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
232 GtkSelectionData * selection_data,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
233 guint info,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
234 guint32 clk_time,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
235 gpointer data );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
236
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
237 /* gftp-gtk.c */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
238 void toolbar_hostedit ( GtkWidget * widget,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
239 gpointer data );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
240
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
241 void sortrows ( GtkCList * clist,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
242 gint column,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
243 gpointer data );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
244
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
245 void stop_button ( GtkWidget * widget,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
246 gpointer data );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
247
341
eedc2c5727fa 2003-12-28 Brian Masney <masneyb@gftp.org>
masneyb
parents: 338
diff changeset
248 void gftpui_show_or_hide_command ( void );
eedc2c5727fa 2003-12-28 Brian Masney <masneyb@gftp.org>
masneyb
parents: 338
diff changeset
249
eedc2c5727fa 2003-12-28 Brian Masney <masneyb@gftp.org>
masneyb
parents: 338
diff changeset
250 /* gtkui.c */
eedc2c5727fa 2003-12-28 Brian Masney <masneyb@gftp.org>
masneyb
parents: 338
diff changeset
251 void gftpui_run_command ( GtkWidget * widget,
eedc2c5727fa 2003-12-28 Brian Masney <masneyb@gftp.org>
masneyb
parents: 338
diff changeset
252 gpointer data );
eedc2c5727fa 2003-12-28 Brian Masney <masneyb@gftp.org>
masneyb
parents: 338
diff changeset
253
eedc2c5727fa 2003-12-28 Brian Masney <masneyb@gftp.org>
masneyb
parents: 338
diff changeset
254 void gftpui_run_function_callback ( gftp_window_data * wdata,
eedc2c5727fa 2003-12-28 Brian Masney <masneyb@gftp.org>
masneyb
parents: 338
diff changeset
255 gftp_dialog_data * ddata );
eedc2c5727fa 2003-12-28 Brian Masney <masneyb@gftp.org>
masneyb
parents: 338
diff changeset
256
eedc2c5727fa 2003-12-28 Brian Masney <masneyb@gftp.org>
masneyb
parents: 338
diff changeset
257 void gftpui_run_function_cancel_callback ( gftp_window_data * wdata,
eedc2c5727fa 2003-12-28 Brian Masney <masneyb@gftp.org>
masneyb
parents: 338
diff changeset
258 gftp_dialog_data * ddata );
eedc2c5727fa 2003-12-28 Brian Masney <masneyb@gftp.org>
masneyb
parents: 338
diff changeset
259
eedc2c5727fa 2003-12-28 Brian Masney <masneyb@gftp.org>
masneyb
parents: 338
diff changeset
260 void gftpui_mkdir_dialog ( gpointer data );
eedc2c5727fa 2003-12-28 Brian Masney <masneyb@gftp.org>
masneyb
parents: 338
diff changeset
261
eedc2c5727fa 2003-12-28 Brian Masney <masneyb@gftp.org>
masneyb
parents: 338
diff changeset
262 void gftpui_rename_dialog ( gpointer data );
eedc2c5727fa 2003-12-28 Brian Masney <masneyb@gftp.org>
masneyb
parents: 338
diff changeset
263
eedc2c5727fa 2003-12-28 Brian Masney <masneyb@gftp.org>
masneyb
parents: 338
diff changeset
264 void gftpui_site_dialog ( gpointer data );
eedc2c5727fa 2003-12-28 Brian Masney <masneyb@gftp.org>
masneyb
parents: 338
diff changeset
265
eedc2c5727fa 2003-12-28 Brian Masney <masneyb@gftp.org>
masneyb
parents: 338
diff changeset
266 int gftpui_run_chdir ( gpointer uidata,
eedc2c5727fa 2003-12-28 Brian Masney <masneyb@gftp.org>
masneyb
parents: 338
diff changeset
267 char *directory );
eedc2c5727fa 2003-12-28 Brian Masney <masneyb@gftp.org>
masneyb
parents: 338
diff changeset
268
eedc2c5727fa 2003-12-28 Brian Masney <masneyb@gftp.org>
masneyb
parents: 338
diff changeset
269 void gftpui_chdir_dialog ( gpointer data );
eedc2c5727fa 2003-12-28 Brian Masney <masneyb@gftp.org>
masneyb
parents: 338
diff changeset
270
397
14ef37b62c20 2004-2-8 Brian Masney <masneyb@gftp.org>
masneyb
parents: 380
diff changeset
271 char * gftpui_gtk_get_utf8_file_pos ( gftp_file * fle );
14ef37b62c20 2004-2-8 Brian Masney <masneyb@gftp.org>
masneyb
parents: 380
diff changeset
272
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
273 /* menu_items.c */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
274 void change_filespec ( gpointer data );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
275
14
83090328581e * More largefile support. Hopefully all that is left is the configure stuff
masneyb
parents: 7
diff changeset
276 void save_directory_listing ( gpointer data );
83090328581e * More largefile support. Hopefully all that is left is the configure stuff
masneyb
parents: 7
diff changeset
277
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
278 void show_selected ( gpointer data );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
279
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
280 void selectall ( gpointer data );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
281
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
282 void selectallfiles ( gpointer data );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
283
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
284 void deselectall ( gpointer data );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
285
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
286 int chdir_edit ( GtkWidget * widget,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
287 gpointer data );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
288
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
289 void clearlog ( gpointer data );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
290
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
291 void viewlog ( gpointer data );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
292
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
293 void savelog ( gpointer data );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
294
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
295 void clear_cache ( gpointer data );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
296
227
a85a097bbb02 2003-7-20 Brian Masney <masneyb@gftp.org>
masneyb
parents: 218
diff changeset
297 void compare_windows ( gpointer data );
a85a097bbb02 2003-7-20 Brian Masney <masneyb@gftp.org>
masneyb
parents: 218
diff changeset
298
a85a097bbb02 2003-7-20 Brian Masney <masneyb@gftp.org>
masneyb
parents: 218
diff changeset
299 void about_dialog ( gpointer data );
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
300
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
301 /* misc-gtk.c */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
302 void fix_display ( void );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
303
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
304 void remove_files_window ( gftp_window_data * wdata );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
305
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
306 void ftp_log ( gftp_logging_level level,
186
13ca1defdc75 2003-6-16 Brian Masney <masneyb@gftp.org>
masneyb
parents: 139
diff changeset
307 gftp_request * request,
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
308 const char *string,
338
0f34108f27b7 2003-12-10 Brian Masney <masneyb@gftp.org>
masneyb
parents: 303
diff changeset
309 ... ) GFTP_LOG_FUNCTION_ATTRIBUTES;
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
310
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
311 void update_window_info ( void );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
312
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
313 void update_window ( gftp_window_data * wdata );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
314
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
315 GtkWidget * toolbar_pixmap ( GtkWidget * widget,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
316 char *filename );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
317
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
318 gftp_graphic * open_xpm ( GtkWidget * widget,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
319 char *filename );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
320
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
321 void gftp_free_pixmap ( char *filename );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
322
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
323 void gftp_get_pixmap ( GtkWidget * widget,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
324 char *filename,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
325 GdkPixmap ** pix,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
326 GdkBitmap ** bitmap );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
327
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
328 int check_status ( char *name,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
329 gftp_window_data * wdata,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
330 int check_other_stop,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
331 int only_one,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
332 int at_least_one,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
333 int func );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
334
7
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
335 GtkItemFactory *item_factory_new ( GtkType container_type,
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
336 const char *path,
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
337 GtkAccelGroup *accel_group,
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
338 const char *strip_prefix );
5551ab2301fe * Fixed a DND crash
masneyb
parents: 1
diff changeset
339
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
340 void create_item_factory ( GtkItemFactory * ifactory,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
341 guint n_entries,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
342 GtkItemFactoryEntry * entries,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
343 gpointer callback_data );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
344
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
345 void add_history ( GtkWidget * widget,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
346 GList ** history,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
347 unsigned int *histlen,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
348 const char *str );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
349
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
350 int check_reconnect ( gftp_window_data * wdata );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
351
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
352 void add_file_listbox ( gftp_window_data * wdata,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
353 gftp_file * fle );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
354
425
8fc4efa3f72d 2004-3-16 Brian Masney <masneyb@gftp.org>
masneyb
parents: 397
diff changeset
355 void destroy_dialog ( gftp_dialog_data * ddata );
8fc4efa3f72d 2004-3-16 Brian Masney <masneyb@gftp.org>
masneyb
parents: 397
diff changeset
356
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
357 void MakeEditDialog ( char *diagtxt,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
358 char *infotxt,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
359 char *deftext,
19
3b2dcdefc7e9 2002-09-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 14
diff changeset
360 int passwd_item,
3b2dcdefc7e9 2002-09-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 14
diff changeset
361 char *checktext,
3b2dcdefc7e9 2002-09-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 14
diff changeset
362 gftp_dialog_button okbutton,
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
363 void (*okfunc) (),
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
364 void *okptr,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
365 void (*cancelfunc) (),
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
366 void *cancelptr );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
367
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
368 void MakeYesNoDialog ( char *diagtxt,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
369 char *infotxt,
19
3b2dcdefc7e9 2002-09-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 14
diff changeset
370 void (*yesfunc) (),
3b2dcdefc7e9 2002-09-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 14
diff changeset
371 gpointer yespointer,
3b2dcdefc7e9 2002-09-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 14
diff changeset
372 void (*nofunc) (),
3b2dcdefc7e9 2002-09-15 Brian Masney <masneyb@gftp.org>
masneyb
parents: 14
diff changeset
373 gpointer nopointer );
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
374
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
375 void update_directory_download_progress ( gftp_transfer * transfer );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
376
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
377 int progress_timeout ( gpointer data );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
378
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
379 void display_cached_logs ( void );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
380
201
0098dae654a5 2003-6-25 Brian Masney <masneyb@gftp.org>
masneyb
parents: 186
diff changeset
381 char * get_xpm_path ( char *filename,
0098dae654a5 2003-6-25 Brian Masney <masneyb@gftp.org>
masneyb
parents: 186
diff changeset
382 int quit_on_err );
0098dae654a5 2003-6-25 Brian Masney <masneyb@gftp.org>
masneyb
parents: 186
diff changeset
383
227
a85a097bbb02 2003-7-20 Brian Masney <masneyb@gftp.org>
masneyb
parents: 218
diff changeset
384 /* options_dialog.c */
a85a097bbb02 2003-7-20 Brian Masney <masneyb@gftp.org>
masneyb
parents: 218
diff changeset
385 void options_dialog ( gpointer data );
a85a097bbb02 2003-7-20 Brian Masney <masneyb@gftp.org>
masneyb
parents: 218
diff changeset
386
229
35ae2e80962e 2003-7-22 Brian Masney <masneyb@gftp.org>
masneyb
parents: 227
diff changeset
387 void gftp_gtk_setup_bookmark_options ( GtkWidget * notebook,
35ae2e80962e 2003-7-22 Brian Masney <masneyb@gftp.org>
masneyb
parents: 227
diff changeset
388 gftp_bookmarks_var * bm );
227
a85a097bbb02 2003-7-20 Brian Masney <masneyb@gftp.org>
masneyb
parents: 218
diff changeset
389
229
35ae2e80962e 2003-7-22 Brian Masney <masneyb@gftp.org>
masneyb
parents: 227
diff changeset
390 void gftp_gtk_save_bookmark_options ( gftp_bookmarks_var * bm );
227
a85a097bbb02 2003-7-20 Brian Masney <masneyb@gftp.org>
masneyb
parents: 218
diff changeset
391
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
392 /* transfer.c */
496
937f2b75bbee 2004-7-11 Brian Masney <masneyb@gftp.org>
masneyb
parents: 470
diff changeset
393 int ftp_list_files ( gftp_window_data * wdata );
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
394
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
395 int ftp_connect ( gftp_window_data * wdata,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
396 gftp_request * request,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
397 int getdir );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
398
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
399 gint update_downloads ( gpointer data );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
400
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
401 void get_files ( gpointer data );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
402
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
403 void put_files ( gpointer data );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
404
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
405 void transfer_window_files ( gftp_window_data * fromwdata,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
406 gftp_window_data * towdata );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
407
506
5944bd059ae0 2004-7-19 Brian Masney <masneyb@gftp.org>
masneyb
parents: 505
diff changeset
408 int gftp_gtk_get_subdirs ( gftp_transfer * transfer,
5944bd059ae0 2004-7-19 Brian Masney <masneyb@gftp.org>
masneyb
parents: 505
diff changeset
409 pthread_t *tid );
5944bd059ae0 2004-7-19 Brian Masney <masneyb@gftp.org>
masneyb
parents: 505
diff changeset
410
1
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
411 void *do_getdir_thread ( void * data );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
412
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
413 void start_transfer ( gpointer data );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
414
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
415 void stop_transfer ( gpointer data );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
416
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
417 void skip_transfer ( gpointer data );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
418
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
419 void remove_file_transfer ( gpointer data );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
420
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
421 void move_transfer_up ( gpointer data );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
422
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
423 void move_transfer_down ( gpointer data );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
424
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
425 /* view_dialog.c */
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
426 void edit_dialog ( gpointer data );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
427
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
428 void view_dialog ( gpointer data );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
429
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
430 void view_file ( char *filename,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
431 int fd,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
432 int viewedit,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
433 int del_file,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
434 int start_pos,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
435 int dontupload,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
436 char *remote_filename,
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
437 gftp_window_data * wdata );
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
438
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
439 #endif
8b1883341c6f Initial revision
masneyb
parents:
diff changeset
440