Commit ac7f16a2490f3ad59381a064f26adae8622ed725
1 parent
3d77f887
Exists in
master
and in
5 other branches
Atualizando makefiles em função da separação dos repositórios.
Showing
16 changed files
with
477 additions
and
439 deletions
Show diff stats
Makefile.in
@@ -251,12 +251,14 @@ cleanDebug: | @@ -251,12 +251,14 @@ cleanDebug: | ||
251 | @rm -fr $(OBJDBG) | 251 | @rm -fr $(OBJDBG) |
252 | @rm -fr $(BINDBG) | 252 | @rm -fr $(BINDBG) |
253 | @$(MAKE) -C modules/lib3270 $@ | 253 | @$(MAKE) -C modules/lib3270 $@ |
254 | + @$(MAKE) -C src/pw3270 $@ | ||
254 | 255 | ||
255 | cleanRelease: | 256 | cleanRelease: |
256 | 257 | ||
257 | @rm -fr $(OBJRLS) | 258 | @rm -fr $(OBJRLS) |
258 | @rm -fr $(BINRLS) | 259 | @rm -fr $(BINRLS) |
259 | @$(MAKE) -C modules/lib3270 $@ | 260 | @$(MAKE) -C modules/lib3270 $@ |
261 | + @$(MAKE) -C src/pw3270 $@ | ||
260 | 262 | ||
261 | 263 | ||
262 | 264 |
configure.ac
@@ -401,12 +401,13 @@ dnl --------------------------------------------------------------------------- | @@ -401,12 +401,13 @@ dnl --------------------------------------------------------------------------- | ||
401 | 401 | ||
402 | AC_ARG_WITH([libname], [AS_HELP_STRING([--with-libname], [Setup library name])], [ app_cv_libname="$withval" ],[ app_cv_libname="3270" ]) | 402 | AC_ARG_WITH([libname], [AS_HELP_STRING([--with-libname], [Setup library name])], [ app_cv_libname="$withval" ],[ app_cv_libname="3270" ]) |
403 | 403 | ||
404 | -AC_SUBST(LIB3270_LIBPATH,$ac_pwd/modules/lib3270/src/include) | 404 | +AC_SUBST(LIB3270_INCLUDEPATH,$ac_pwd/modules/lib3270/src/include/lib3270) |
405 | 405 | ||
406 | AC_SUBST(LIB3270_CFLAGS,-I$ac_pwd/modules/lib3270/src/include) | 406 | AC_SUBST(LIB3270_CFLAGS,-I$ac_pwd/modules/lib3270/src/include) |
407 | AC_SUBST(LIB3270_LIBS,-l$app_cv_libname) | 407 | AC_SUBST(LIB3270_LIBS,-l$app_cv_libname) |
408 | 408 | ||
409 | AC_SUBST(PW3270_CFLAGS,-I$ac_pwd/src/include) | 409 | AC_SUBST(PW3270_CFLAGS,-I$ac_pwd/src/include) |
410 | + | ||
410 | AC_SUBST(PW3270_LIBS,-l$PACKAGE_TARNAME) | 411 | AC_SUBST(PW3270_LIBS,-l$PACKAGE_TARNAME) |
411 | 412 | ||
412 | AC_DEFINE(LIB3270_NAME,$app_cv_libname) | 413 | AC_DEFINE(LIB3270_NAME,$app_cv_libname) |
src/include/pw3270/v3270.h
@@ -1,271 +0,0 @@ | @@ -1,271 +0,0 @@ | ||
1 | -/* | ||
2 | - * "Software pw3270, desenvolvido com base nos códigos fontes do WC3270 e X3270 | ||
3 | - * (Paul Mattes Paul.Mattes@usa.net), de emulação de terminal 3270 para acesso a | ||
4 | - * aplicativos mainframe. Registro no INPI sob o nome G3270. | ||
5 | - * | ||
6 | - * Copyright (C) <2008> <Banco do Brasil S.A.> | ||
7 | - * | ||
8 | - * Este programa é software livre. Você pode redistribuí-lo e/ou modificá-lo sob | ||
9 | - * os termos da GPL v.2 - Licença Pública Geral GNU, conforme publicado pela | ||
10 | - * Free Software Foundation. | ||
11 | - * | ||
12 | - * Este programa é distribuído na expectativa de ser útil, mas SEM QUALQUER | ||
13 | - * GARANTIA; sem mesmo a garantia implícita de COMERCIALIZAÇÃO ou de ADEQUAÇÃO | ||
14 | - * A QUALQUER PROPÓSITO EM PARTICULAR. Consulte a Licença Pública Geral GNU para | ||
15 | - * obter mais detalhes. | ||
16 | - * | ||
17 | - * Você deve ter recebido uma cópia da Licença Pública Geral GNU junto com este | ||
18 | - * programa; se não, escreva para a Free Software Foundation, Inc., 51 Franklin | ||
19 | - * St, Fifth Floor, Boston, MA 02110-1301 USA | ||
20 | - * | ||
21 | - * Este programa está nomeado como v3270.h e possui - linhas de código. | ||
22 | - * | ||
23 | - * Contatos: | ||
24 | - * | ||
25 | - * perry.werneck@gmail.com (Alexandre Perry de Souza Werneck) | ||
26 | - * erico.mendonca@gmail.com (Erico Mascarenhas Mendonça) | ||
27 | - * licinio@bb.com.br (Licínio Luis Branco) | ||
28 | - * kraucer@bb.com.br (Kraucer Fernandes Mazuco) | ||
29 | - * | ||
30 | - */ | ||
31 | - | ||
32 | -#ifndef V3270_H_INCLUDED | ||
33 | - | ||
34 | - #include <gtk/gtk.h> | ||
35 | - #include <lib3270.h> | ||
36 | - #include <lib3270/popup.h> | ||
37 | - #include <lib3270/filetransfer.h> | ||
38 | - | ||
39 | - #define V3270_H_INCLUDED 1 | ||
40 | - | ||
41 | - G_BEGIN_DECLS | ||
42 | - | ||
43 | - #define GTK_TYPE_V3270 (v3270_get_type ()) | ||
44 | - #define GTK_V3270(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_V3270, v3270)) | ||
45 | - #define GTK_V3270_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_V3270, v3270Class)) | ||
46 | - #define GTK_IS_V3270(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_V3270)) | ||
47 | - #define GTK_IS_V3270_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_V3270)) | ||
48 | - #define GTK_V3270_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_V3270, v3270Class)) | ||
49 | - | ||
50 | -#if ! GTK_CHECK_VERSION(3,0,0) | ||
51 | - #define GdkRGBA GdkColor | ||
52 | - #define gdk_cairo_set_source_rgba(cr,cl) gdk_cairo_set_source_color(cr,cl) | ||
53 | - #define gdk_rgba_parse(a,b) gdk_color_parse(b,a) | ||
54 | - #define gdk_rgba_to_string(c) gdk_color_to_string(c) | ||
55 | - #define gdk_rgba_equal(a,b) gdk_color_equal(a,b) | ||
56 | - #define gdk_rgba_to_string(c) gdk_color_to_string(c) | ||
57 | - #define gtk_color_selection_set_current_rgba(w,c) gtk_color_selection_set_current_color(w,c) | ||
58 | - #define gtk_color_selection_get_current_rgba(w,c) gtk_color_selection_get_current_color(w,c) | ||
59 | - #define gtk_color_selection_set_previous_rgba(w,c) gtk_color_selection_set_previous_color(w,c) | ||
60 | - #define gtk_color_selection_set_current_rgba(w,c) gtk_color_selection_set_current_color(w,c) | ||
61 | -#endif // !GTK(3,0,0) | ||
62 | - | ||
63 | - | ||
64 | - typedef struct _v3270 v3270; | ||
65 | - typedef struct _v3270Class v3270Class; | ||
66 | - | ||
67 | - /** | ||
68 | - * @brief Informações para desenho de fontes com o cairo. | ||
69 | - * | ||
70 | - */ | ||
71 | - typedef struct _v3270FontInfo { | ||
72 | - | ||
73 | - guint width; | ||
74 | - guint height; | ||
75 | - guint ascent; | ||
76 | - guint descent; | ||
77 | - | ||
78 | - guint spacing; | ||
79 | - | ||
80 | - guint left; | ||
81 | - guint top; | ||
82 | - | ||
83 | - gchar * family; | ||
84 | - cairo_font_weight_t weight; | ||
85 | - cairo_scaled_font_t * scaled; | ||
86 | - | ||
87 | - } v3270FontInfo; | ||
88 | - | ||
89 | - enum V3270_COLOR | ||
90 | - { | ||
91 | - V3270_COLOR_BACKGROUND, | ||
92 | - V3270_COLOR_BLUE, | ||
93 | - V3270_COLOR_RED, | ||
94 | - V3270_COLOR_PINK, | ||
95 | - V3270_COLOR_GREEN, | ||
96 | - V3270_COLOR_TURQUOISE, | ||
97 | - V3270_COLOR_YELLOW, | ||
98 | - V3270_COLOR_WHITE, | ||
99 | - V3270_COLOR_BLACK, | ||
100 | - V3270_COLOR_DARK_BLUE, | ||
101 | - V3270_COLOR_ORANGE, | ||
102 | - V3270_COLOR_PURPLE, | ||
103 | - V3270_COLOR_DARK_GREEN, | ||
104 | - V3270_COLOR_DARK_TURQUOISE, | ||
105 | - V3270_COLOR_MUSTARD, | ||
106 | - V3270_COLOR_GRAY, | ||
107 | - | ||
108 | - V3270_COLOR_FIELD, | ||
109 | - V3270_COLOR_FIELD_INTENSIFIED, | ||
110 | - V3270_COLOR_FIELD_PROTECTED, | ||
111 | - V3270_COLOR_FIELD_PROTECTED_INTENSIFIED, | ||
112 | - | ||
113 | - V3270_COLOR_SELECTED_BG, | ||
114 | - V3270_COLOR_SELECTED_FG, | ||
115 | - | ||
116 | - V3270_COLOR_CROSS_HAIR, | ||
117 | - | ||
118 | - // Oia Colors (Must be the last block) | ||
119 | - V3270_COLOR_OIA_BACKGROUND, | ||
120 | - V3270_COLOR_OIA_FOREGROUND, | ||
121 | - V3270_COLOR_OIA_SEPARATOR, | ||
122 | - V3270_COLOR_OIA_STATUS_OK, | ||
123 | - V3270_COLOR_OIA_STATUS_WARNING, | ||
124 | - V3270_COLOR_OIA_STATUS_INVALID, | ||
125 | - | ||
126 | - V3270_COLOR_COUNT | ||
127 | - }; | ||
128 | - | ||
129 | -// #define V3270_COLOR_OIA_STATUS_WARNING V3270_COLOR_OIA_STATUS_OK | ||
130 | - | ||
131 | - typedef enum _v3270_oia_field | ||
132 | - { | ||
133 | - V3270_OIA_UNDERA, /**< "A" underlined */ | ||
134 | - V3270_OIA_CONNECTION, /**< solid box if connected, "?" in a box if not */ | ||
135 | - V3270_OIA_MESSAGE, /**< message area */ | ||
136 | - V3270_OIA_SSL, /**< SSL Status */ | ||
137 | - /**< Meta indication ("M" or blank) */ | ||
138 | - V3270_OIA_ALT, /**< Alt indication ("A" or blank) */ | ||
139 | - /**< Compose indication ("C" or blank) */ | ||
140 | - /**< Compose first character */ | ||
141 | - V3270_OIA_SHIFT, /**< Shift Status */ | ||
142 | - V3270_OIA_TYPEAHEAD, /**< Typeahead indication ("T" or blank) */ | ||
143 | - V3270_OIA_INSERT, /**< Insert mode indication (Special symbol/"I" or blank) */ | ||
144 | - V3270_OIA_SCRIPT, /**< Script indication ("S" or blank) */ | ||
145 | - V3270_OIA_LUNAME, /**< LU Name */ | ||
146 | - V3270_OIA_SPINNER, /**< command timing spinner */ | ||
147 | - V3270_OIA_TIMER, /**< command timing (mmm:ss, or blank) */ | ||
148 | - V3270_OIA_CURSOR_POSITION, /**< cursor position (rrr/ccc or blank) */ | ||
149 | - | ||
150 | -// V3270_OIA_CAPS, /**< Caps indication ("A" or blank) */ | ||
151 | - | ||
152 | -#ifdef HAVE_PRINTER | ||
153 | - V3270_OIA_PRINTER, /**< Printer indication ("P" or blank) */ | ||
154 | -#endif // HAVE_PRINTER | ||
155 | - | ||
156 | - V3270_OIA_FIELD_COUNT | ||
157 | - | ||
158 | - } V3270_OIA_FIELD; | ||
159 | - | ||
160 | - #define V3270_OIA_FIELD_INVALID ((V3270_OIA_FIELD) -1) | ||
161 | - | ||
162 | - | ||
163 | - #define V3270_COLOR_OIA_SPINNER V3270_COLOR_OIA_FOREGROUND | ||
164 | - #define V3270_COLOR_OIA_LUNAME V3270_COLOR_OIA_FOREGROUND | ||
165 | - #define V3270_COLOR_OIA_INSERT V3270_COLOR_OIA_FOREGROUND | ||
166 | - | ||
167 | - #ifndef v3270char | ||
168 | - #define v3270char void | ||
169 | - #endif // v3270_char | ||
170 | - | ||
171 | - LIB3270_EXPORT GtkWidget * v3270_new(void); | ||
172 | - LIB3270_EXPORT GType v3270_get_type(void); | ||
173 | - | ||
174 | - LIB3270_EXPORT void v3270_reload(GtkWidget * widget); | ||
175 | - | ||
176 | - LIB3270_EXPORT void v3270_set_font_family(GtkWidget *widget, const gchar *name); | ||
177 | - LIB3270_EXPORT const gchar * v3270_get_font_family(GtkWidget *widget); | ||
178 | - | ||
179 | - LIB3270_EXPORT H3270 * v3270_get_session(GtkWidget *widget); | ||
180 | - LIB3270_EXPORT gboolean v3270_is_connected(GtkWidget *widget); | ||
181 | - | ||
182 | - LIB3270_EXPORT int v3270_connect(GtkWidget *widget); | ||
183 | - LIB3270_EXPORT void v3270_disconnect(GtkWidget *widget); | ||
184 | - | ||
185 | - LIB3270_EXPORT int v3270_set_host_charset(GtkWidget *widget, const gchar *name); | ||
186 | - | ||
187 | - LIB3270_EXPORT void v3270_set_auto_disconnect(GtkWidget *widget, guint minutes); | ||
188 | - LIB3270_EXPORT guint v3270_get_auto_disconnect(GtkWidget *widget); | ||
189 | - | ||
190 | - | ||
191 | - // Clipboard | ||
192 | - typedef enum _v3270_select_format | ||
193 | - { | ||
194 | - V3270_SELECT_TEXT, | ||
195 | - V3270_SELECT_TABLE, | ||
196 | - | ||
197 | - V3270_SELECT_MAX | ||
198 | - } V3270_SELECT_FORMAT; | ||
199 | - | ||
200 | - LIB3270_EXPORT void v3270_copy(GtkWidget *widget, V3270_SELECT_FORMAT mode, gboolean cut); | ||
201 | - LIB3270_EXPORT void v3270_copy_append(GtkWidget *widget); | ||
202 | - LIB3270_EXPORT gchar * v3270_get_selected(GtkWidget *widget, gboolean cut); | ||
203 | - LIB3270_EXPORT gchar * v3270_get_copy(GtkWidget *widget); | ||
204 | - LIB3270_EXPORT void v3270_set_copy(GtkWidget *widget, const gchar *text); | ||
205 | - | ||
206 | - LIB3270_EXPORT int v3270_run_script(GtkWidget *widget, const gchar *script); | ||
207 | - | ||
208 | - LIB3270_EXPORT gchar * v3270_get_text(GtkWidget *widget,int offset, int len); | ||
209 | - LIB3270_EXPORT gchar * v3270_get_region(GtkWidget *widget, gint start_pos, gint end_pos, gboolean all); | ||
210 | - | ||
211 | - LIB3270_EXPORT void v3270_set_string(GtkWidget *widget, const gchar *str); | ||
212 | - LIB3270_EXPORT void v3270_tab(GtkWidget *widget); | ||
213 | - LIB3270_EXPORT void v3270_backtab(GtkWidget *widget); | ||
214 | - | ||
215 | - // Cut & Paste | ||
216 | - LIB3270_EXPORT gboolean v3270_get_selection_bounds(GtkWidget *widget, gint *start, gint *end); | ||
217 | - LIB3270_EXPORT void v3270_unselect(GtkWidget *widget); | ||
218 | - LIB3270_EXPORT void v3270_select_all(GtkWidget *widget); | ||
219 | - LIB3270_EXPORT void v3270_paste(GtkWidget *widget); | ||
220 | - LIB3270_EXPORT void v3270_paste_string(GtkWidget *widget, const gchar *text, const gchar *encoding); | ||
221 | - LIB3270_EXPORT void v3270_select_region(GtkWidget *widget, gint start, gint end); | ||
222 | - | ||
223 | - // Colors | ||
224 | - LIB3270_EXPORT void v3270_set_colors(GtkWidget *widget, const gchar *); | ||
225 | - LIB3270_EXPORT void v3270_set_color_table(GdkRGBA *table, const gchar *colors); | ||
226 | - LIB3270_EXPORT const GdkRGBA * v3270_get_color_table(GtkWidget *widget); | ||
227 | - LIB3270_EXPORT void v3270_set_mono_color_table(GdkRGBA *table, const gchar *fg, const gchar *bg); | ||
228 | - LIB3270_EXPORT void v3270_draw_element(cairo_t *cr, unsigned char chr, unsigned short attr, H3270 *session, v3270FontInfo *font, GdkRectangle *rect, GdkRGBA *color); | ||
229 | - LIB3270_EXPORT void v3270_set_color(GtkWidget *widget, enum V3270_COLOR id, GdkRGBA *color); | ||
230 | - LIB3270_EXPORT GdkRGBA * v3270_get_color(GtkWidget *widget, enum V3270_COLOR id); | ||
231 | - | ||
232 | - // Misc | ||
233 | - LIB3270_EXPORT GtkIMContext * v3270_get_im_context(GtkWidget *widget); | ||
234 | - LIB3270_EXPORT gboolean v3270_get_toggle(GtkWidget *widget, LIB3270_TOGGLE ix); | ||
235 | - LIB3270_EXPORT void v3270_popup_message(GtkWidget *widget, LIB3270_NOTIFY type, const gchar *title, const gchar *message, const gchar *text); | ||
236 | - LIB3270_EXPORT const gchar * v3270_get_session_name(GtkWidget *widget); | ||
237 | - LIB3270_EXPORT void v3270_set_session_name(GtkWidget *widget, const gchar *name); | ||
238 | - LIB3270_EXPORT int v3270_set_script(GtkWidget *widget, const gchar id, gboolean on); | ||
239 | - LIB3270_EXPORT void v3270_set_scaled_fonts(GtkWidget *widget, gboolean on); | ||
240 | - LIB3270_EXPORT void v3270_set_session_options(GtkWidget *widget, LIB3270_OPTION options); | ||
241 | - LIB3270_EXPORT int v3270_set_session_color_type(GtkWidget *widget, unsigned short colortype); | ||
242 | - LIB3270_EXPORT int v3270_set_host_type(GtkWidget *widget, const char *name); | ||
243 | - LIB3270_EXPORT const gchar * v3270_set_url(GtkWidget *widget, const gchar *uri); | ||
244 | - LIB3270_EXPORT const gchar * v3270_get_hostname(GtkWidget *widget); | ||
245 | - LIB3270_EXPORT const char * v3270_get_luname(GtkWidget *widget); | ||
246 | - LIB3270_EXPORT GtkWidget * v3270_get_default_widget(void); | ||
247 | - | ||
248 | - LIB3270_EXPORT void v3270_remap_from_xml(GtkWidget *widget, const gchar *path); | ||
249 | - | ||
250 | - // Keyboard & Mouse special actions | ||
251 | - LIB3270_EXPORT gboolean v3270_set_keyboard_action(GtkWidget *widget, const gchar *key_name, GtkAction *action); | ||
252 | - LIB3270_EXPORT void v3270_set_scroll_action(GtkWidget *widget, GdkScrollDirection direction, GtkAction *action); | ||
253 | - | ||
254 | - // SSL & Security | ||
255 | - LIB3270_EXPORT const gchar * v3270_get_ssl_status_icon(GtkWidget *widget); | ||
256 | - LIB3270_EXPORT const gchar * v3270_get_ssl_status_text(GtkWidget *widget); | ||
257 | - LIB3270_EXPORT const gchar * v3270_get_ssl_status_message(GtkWidget *widget); | ||
258 | - LIB3270_EXPORT void v3270_popup_security_dialog(GtkWidget *widget); | ||
259 | - | ||
260 | - | ||
261 | - // File transfer | ||
262 | - LIB3270_EXPORT gint v3270_transfer_file(GtkWidget *widget, LIB3270_FT_OPTION options, const gchar *local, const gchar *remote, int lrecl, int blksize, int primspace, int secspace, int dft); | ||
263 | - | ||
264 | - // Auxiliary widgets | ||
265 | - LIB3270_EXPORT GtkWidget * v3270_host_select_new(GtkWidget *widget); | ||
266 | - LIB3270_EXPORT void v3270_select_host(GtkWidget *widget); | ||
267 | - | ||
268 | - | ||
269 | - G_END_DECLS | ||
270 | - | ||
271 | -#endif // V3270_H_INCLUDED |
src/include/pw3270/v3270ft.h
@@ -1,84 +0,0 @@ | @@ -1,84 +0,0 @@ | ||
1 | -/* | ||
2 | - * "Software pw3270, desenvolvido com base nos códigos fontes do WC3270 e X3270 | ||
3 | - * (Paul Mattes Paul.Mattes@usa.net), de emulação de terminal 3270 para acesso a | ||
4 | - * aplicativos mainframe. Registro no INPI sob o nome G3270. Registro no INPI sob | ||
5 | - * o nome G3270. | ||
6 | - * | ||
7 | - * Copyright (C) <2008> <Banco do Brasil S.A.> | ||
8 | - * | ||
9 | - * Este programa é software livre. Você pode redistribuí-lo e/ou modificá-lo sob | ||
10 | - * os termos da GPL v.2 - Licença Pública Geral GNU, conforme publicado pela | ||
11 | - * Free Software Foundation. | ||
12 | - * | ||
13 | - * Este programa é distribuído na expectativa de ser útil, mas SEM QUALQUER | ||
14 | - * GARANTIA; sem mesmo a garantia implícita de COMERCIALIZAÇÃO ou de ADEQUAÇÃO | ||
15 | - * A QUALQUER PROPÓSITO EM PARTICULAR. Consulte a Licença Pública Geral GNU para | ||
16 | - * obter mais detalhes. | ||
17 | - * | ||
18 | - * Você deve ter recebido uma cópia da Licença Pública Geral GNU junto com este | ||
19 | - * programa; se não, escreva para a Free Software Foundation, Inc., 51 Franklin | ||
20 | - * St, Fifth Floor, Boston, MA 02110-1301 USA | ||
21 | - * | ||
22 | - * Este programa está nomeado como v3270ft.h e possui - linhas de código. | ||
23 | - * | ||
24 | - * Contatos: | ||
25 | - * | ||
26 | - * perry.werneck@gmail.com (Alexandre Perry de Souza Werneck) | ||
27 | - * erico.mendonca@gmail.com (Erico Mascarenhas Mendonça) | ||
28 | - * | ||
29 | - */ | ||
30 | - | ||
31 | -#ifndef V3270FT_H_INCLUDED | ||
32 | - | ||
33 | - #define V3270FT_H_INCLUDED 1 | ||
34 | - | ||
35 | - #include <glib/gi18n.h> | ||
36 | - #include <gtk/gtk.h> | ||
37 | - #include <lib3270.h> | ||
38 | - #include <lib3270/filetransfer.h> | ||
39 | - | ||
40 | - G_BEGIN_DECLS | ||
41 | - | ||
42 | - #define GTK_TYPE_V3270FT (v3270ft_get_type ()) | ||
43 | - #define GTK_V3270FT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_V3270FT, v3270ft)) | ||
44 | - #define GTK_V3270FT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_V3270FT, v3270ftClass)) | ||
45 | - #define GTK_IS_V3270FT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_V3270FT)) | ||
46 | - #define GTK_IS_V3270FT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_V3270FT)) | ||
47 | - #define GTK_V3270FT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_V3270FT, v3270ftClass)) | ||
48 | - | ||
49 | - typedef struct _v3270ft v3270ft; | ||
50 | - typedef struct _v3270ftClass v3270ftClass; | ||
51 | - | ||
52 | - | ||
53 | - GtkWidget * v3270ft_new(void); | ||
54 | - GType v3270ft_get_type(void); | ||
55 | - void v3270ft_set_options(GtkWidget *widget, LIB3270_FT_OPTION opt); | ||
56 | - LIB3270_FT_OPTION v3270ft_get_options(GtkWidget *widget); | ||
57 | - void v3270ft_reset(GtkWidget *widget); | ||
58 | - gboolean v3270ft_is_valid(GtkWidget *widget); | ||
59 | - guint v3270ft_get_length(GtkWidget *widget); | ||
60 | - void v3270ft_select_first(GtkWidget *widget); | ||
61 | - void v3270ft_select_last(GtkWidget *widget); | ||
62 | - void v3270ft_select_previous(GtkWidget *widget); | ||
63 | - void v3270ft_select_next(GtkWidget *widget); | ||
64 | - void v3270ft_remove_selected(GtkWidget *widget); | ||
65 | - void v3270ft_remove_all(GtkWidget *widget); | ||
66 | - void v3270ft_save(GtkWidget *widget,const gchar *filename); | ||
67 | - void v3270ft_load(GtkWidget *widget,const gchar *filename); | ||
68 | - | ||
69 | - gboolean v3270ft_has_selected(GtkWidget *widget); | ||
70 | - gboolean v3270ft_has_next(GtkWidget *widget); | ||
71 | - | ||
72 | - const gchar * v3270ft_get_local_filename(GtkWidget *widget); | ||
73 | - const gchar * v3270ft_get_remote_filename(GtkWidget *widget); | ||
74 | - | ||
75 | - void v3270ft_append_file(GtkWidget *widget, const gchar *filename, gboolean text); | ||
76 | - guint v3270ft_append_selection(GtkWidget *widget, GtkSelectionData *data); | ||
77 | - | ||
78 | - gchar * v3270ft_select_file(v3270ft *dialog, const gchar *title, const gchar *button, GtkFileChooserAction action, const gchar *filename, const gchar *filter, ... ) G_GNUC_NULL_TERMINATED; | ||
79 | - | ||
80 | - gint v3270ft_transfer(GtkWidget *dialog, H3270 *session); | ||
81 | - | ||
82 | - G_END_DECLS | ||
83 | - | ||
84 | -#endif // V3270FT_H_INCLUDED |
src/include/pw3270/v3270ftprogress.h
@@ -1,60 +0,0 @@ | @@ -1,60 +0,0 @@ | ||
1 | -/* | ||
2 | - * "Software pw3270, desenvolvido com base nos códigos fontes do WC3270 e X3270 | ||
3 | - * (Paul Mattes Paul.Mattes@usa.net), de emulação de terminal 3270 para acesso a | ||
4 | - * aplicativos mainframe. Registro no INPI sob o nome G3270. Registro no INPI sob | ||
5 | - * o nome G3270. | ||
6 | - * | ||
7 | - * Copyright (C) <2008> <Banco do Brasil S.A.> | ||
8 | - * | ||
9 | - * Este programa é software livre. Você pode redistribuí-lo e/ou modificá-lo sob | ||
10 | - * os termos da GPL v.2 - Licença Pública Geral GNU, conforme publicado pela | ||
11 | - * Free Software Foundation. | ||
12 | - * | ||
13 | - * Este programa é distribuído na expectativa de ser útil, mas SEM QUALQUER | ||
14 | - * GARANTIA; sem mesmo a garantia implícita de COMERCIALIZAÇÃO ou de ADEQUAÇÃO | ||
15 | - * A QUALQUER PROPÓSITO EM PARTICULAR. Consulte a Licença Pública Geral GNU para | ||
16 | - * obter mais detalhes. | ||
17 | - * | ||
18 | - * Você deve ter recebido uma cópia da Licença Pública Geral GNU junto com este | ||
19 | - * programa; se não, escreva para a Free Software Foundation, Inc., 51 Franklin | ||
20 | - * St, Fifth Floor, Boston, MA 02110-1301 USA | ||
21 | - * | ||
22 | - * Este programa está nomeado como v3270ftprogress.h e possui - linhas de código. | ||
23 | - * | ||
24 | - * Contatos: | ||
25 | - * | ||
26 | - * perry.werneck@gmail.com (Alexandre Perry de Souza Werneck) | ||
27 | - * erico.mendonca@gmail.com (Erico Mascarenhas Mendonça) | ||
28 | - * | ||
29 | - */ | ||
30 | - | ||
31 | -#ifndef V3270FTPROGRESS_H_INCLUDED | ||
32 | - | ||
33 | - #define V3270FTPROGRESS_H_INCLUDED | ||
34 | - | ||
35 | - #include <glib/gi18n.h> | ||
36 | - #include <gtk/gtk.h> | ||
37 | - | ||
38 | - G_BEGIN_DECLS | ||
39 | - | ||
40 | - #define GTK_TYPE_V3270FTPROGRESS (v3270ftprogress_get_type ()) | ||
41 | - #define GTK_V3270FTPROGRESS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_V3270FTPROGRESS, v3270ftprogress)) | ||
42 | - #define GTK_V3270FTPROGRESS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_V3270FTPROGRESS, v3270ftprogressClass)) | ||
43 | - #define GTK_IS_V3270FTPROGRESS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_V3270FTPROGRESS)) | ||
44 | - #define GTK_IS_V3270FTPROGRESS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_V3270FTPROGRESS)) | ||
45 | - #define GTK_V3270FTPROGRESS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_V3270FT, v3270ftprogressClass)) | ||
46 | - | ||
47 | - typedef struct _v3270ftprogress v3270ftprogress; | ||
48 | - typedef struct _v3270ftprogressClass v3270ftprogressClass; | ||
49 | - | ||
50 | - GtkWidget * v3270ftprogress_new(void); | ||
51 | - | ||
52 | - GType v3270ftprogress_get_type(void); | ||
53 | - | ||
54 | - void v3270ftprogress_set_header(GtkWidget *widget, const gchar *status); | ||
55 | - | ||
56 | - | ||
57 | - G_END_DECLS | ||
58 | - | ||
59 | - | ||
60 | -#endif // V3270FTPROGRESS_H_INCLUDED |
@@ -0,0 +1,271 @@ | @@ -0,0 +1,271 @@ | ||
1 | +/* | ||
2 | + * "Software pw3270, desenvolvido com base nos códigos fontes do WC3270 e X3270 | ||
3 | + * (Paul Mattes Paul.Mattes@usa.net), de emulação de terminal 3270 para acesso a | ||
4 | + * aplicativos mainframe. Registro no INPI sob o nome G3270. | ||
5 | + * | ||
6 | + * Copyright (C) <2008> <Banco do Brasil S.A.> | ||
7 | + * | ||
8 | + * Este programa é software livre. Você pode redistribuí-lo e/ou modificá-lo sob | ||
9 | + * os termos da GPL v.2 - Licença Pública Geral GNU, conforme publicado pela | ||
10 | + * Free Software Foundation. | ||
11 | + * | ||
12 | + * Este programa é distribuído na expectativa de ser útil, mas SEM QUALQUER | ||
13 | + * GARANTIA; sem mesmo a garantia implícita de COMERCIALIZAÇÃO ou de ADEQUAÇÃO | ||
14 | + * A QUALQUER PROPÓSITO EM PARTICULAR. Consulte a Licença Pública Geral GNU para | ||
15 | + * obter mais detalhes. | ||
16 | + * | ||
17 | + * Você deve ter recebido uma cópia da Licença Pública Geral GNU junto com este | ||
18 | + * programa; se não, escreva para a Free Software Foundation, Inc., 51 Franklin | ||
19 | + * St, Fifth Floor, Boston, MA 02110-1301 USA | ||
20 | + * | ||
21 | + * Este programa está nomeado como v3270.h e possui - linhas de código. | ||
22 | + * | ||
23 | + * Contatos: | ||
24 | + * | ||
25 | + * perry.werneck@gmail.com (Alexandre Perry de Souza Werneck) | ||
26 | + * erico.mendonca@gmail.com (Erico Mascarenhas Mendonça) | ||
27 | + * licinio@bb.com.br (Licínio Luis Branco) | ||
28 | + * kraucer@bb.com.br (Kraucer Fernandes Mazuco) | ||
29 | + * | ||
30 | + */ | ||
31 | + | ||
32 | +#ifndef V3270_H_INCLUDED | ||
33 | + | ||
34 | + #include <gtk/gtk.h> | ||
35 | + #include <lib3270.h> | ||
36 | + #include <lib3270/popup.h> | ||
37 | + #include <lib3270/filetransfer.h> | ||
38 | + | ||
39 | + #define V3270_H_INCLUDED 1 | ||
40 | + | ||
41 | + G_BEGIN_DECLS | ||
42 | + | ||
43 | + #define GTK_TYPE_V3270 (v3270_get_type ()) | ||
44 | + #define GTK_V3270(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_V3270, v3270)) | ||
45 | + #define GTK_V3270_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_V3270, v3270Class)) | ||
46 | + #define GTK_IS_V3270(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_V3270)) | ||
47 | + #define GTK_IS_V3270_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_V3270)) | ||
48 | + #define GTK_V3270_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_V3270, v3270Class)) | ||
49 | + | ||
50 | +#if ! GTK_CHECK_VERSION(3,0,0) | ||
51 | + #define GdkRGBA GdkColor | ||
52 | + #define gdk_cairo_set_source_rgba(cr,cl) gdk_cairo_set_source_color(cr,cl) | ||
53 | + #define gdk_rgba_parse(a,b) gdk_color_parse(b,a) | ||
54 | + #define gdk_rgba_to_string(c) gdk_color_to_string(c) | ||
55 | + #define gdk_rgba_equal(a,b) gdk_color_equal(a,b) | ||
56 | + #define gdk_rgba_to_string(c) gdk_color_to_string(c) | ||
57 | + #define gtk_color_selection_set_current_rgba(w,c) gtk_color_selection_set_current_color(w,c) | ||
58 | + #define gtk_color_selection_get_current_rgba(w,c) gtk_color_selection_get_current_color(w,c) | ||
59 | + #define gtk_color_selection_set_previous_rgba(w,c) gtk_color_selection_set_previous_color(w,c) | ||
60 | + #define gtk_color_selection_set_current_rgba(w,c) gtk_color_selection_set_current_color(w,c) | ||
61 | +#endif // !GTK(3,0,0) | ||
62 | + | ||
63 | + | ||
64 | + typedef struct _v3270 v3270; | ||
65 | + typedef struct _v3270Class v3270Class; | ||
66 | + | ||
67 | + /** | ||
68 | + * @brief Informações para desenho de fontes com o cairo. | ||
69 | + * | ||
70 | + */ | ||
71 | + typedef struct _v3270FontInfo { | ||
72 | + | ||
73 | + guint width; | ||
74 | + guint height; | ||
75 | + guint ascent; | ||
76 | + guint descent; | ||
77 | + | ||
78 | + guint spacing; | ||
79 | + | ||
80 | + guint left; | ||
81 | + guint top; | ||
82 | + | ||
83 | + gchar * family; | ||
84 | + cairo_font_weight_t weight; | ||
85 | + cairo_scaled_font_t * scaled; | ||
86 | + | ||
87 | + } v3270FontInfo; | ||
88 | + | ||
89 | + enum V3270_COLOR | ||
90 | + { | ||
91 | + V3270_COLOR_BACKGROUND, | ||
92 | + V3270_COLOR_BLUE, | ||
93 | + V3270_COLOR_RED, | ||
94 | + V3270_COLOR_PINK, | ||
95 | + V3270_COLOR_GREEN, | ||
96 | + V3270_COLOR_TURQUOISE, | ||
97 | + V3270_COLOR_YELLOW, | ||
98 | + V3270_COLOR_WHITE, | ||
99 | + V3270_COLOR_BLACK, | ||
100 | + V3270_COLOR_DARK_BLUE, | ||
101 | + V3270_COLOR_ORANGE, | ||
102 | + V3270_COLOR_PURPLE, | ||
103 | + V3270_COLOR_DARK_GREEN, | ||
104 | + V3270_COLOR_DARK_TURQUOISE, | ||
105 | + V3270_COLOR_MUSTARD, | ||
106 | + V3270_COLOR_GRAY, | ||
107 | + | ||
108 | + V3270_COLOR_FIELD, | ||
109 | + V3270_COLOR_FIELD_INTENSIFIED, | ||
110 | + V3270_COLOR_FIELD_PROTECTED, | ||
111 | + V3270_COLOR_FIELD_PROTECTED_INTENSIFIED, | ||
112 | + | ||
113 | + V3270_COLOR_SELECTED_BG, | ||
114 | + V3270_COLOR_SELECTED_FG, | ||
115 | + | ||
116 | + V3270_COLOR_CROSS_HAIR, | ||
117 | + | ||
118 | + // Oia Colors (Must be the last block) | ||
119 | + V3270_COLOR_OIA_BACKGROUND, | ||
120 | + V3270_COLOR_OIA_FOREGROUND, | ||
121 | + V3270_COLOR_OIA_SEPARATOR, | ||
122 | + V3270_COLOR_OIA_STATUS_OK, | ||
123 | + V3270_COLOR_OIA_STATUS_WARNING, | ||
124 | + V3270_COLOR_OIA_STATUS_INVALID, | ||
125 | + | ||
126 | + V3270_COLOR_COUNT | ||
127 | + }; | ||
128 | + | ||
129 | +// #define V3270_COLOR_OIA_STATUS_WARNING V3270_COLOR_OIA_STATUS_OK | ||
130 | + | ||
131 | + typedef enum _v3270_oia_field | ||
132 | + { | ||
133 | + V3270_OIA_UNDERA, /**< "A" underlined */ | ||
134 | + V3270_OIA_CONNECTION, /**< solid box if connected, "?" in a box if not */ | ||
135 | + V3270_OIA_MESSAGE, /**< message area */ | ||
136 | + V3270_OIA_SSL, /**< SSL Status */ | ||
137 | + /**< Meta indication ("M" or blank) */ | ||
138 | + V3270_OIA_ALT, /**< Alt indication ("A" or blank) */ | ||
139 | + /**< Compose indication ("C" or blank) */ | ||
140 | + /**< Compose first character */ | ||
141 | + V3270_OIA_SHIFT, /**< Shift Status */ | ||
142 | + V3270_OIA_TYPEAHEAD, /**< Typeahead indication ("T" or blank) */ | ||
143 | + V3270_OIA_INSERT, /**< Insert mode indication (Special symbol/"I" or blank) */ | ||
144 | + V3270_OIA_SCRIPT, /**< Script indication ("S" or blank) */ | ||
145 | + V3270_OIA_LUNAME, /**< LU Name */ | ||
146 | + V3270_OIA_SPINNER, /**< command timing spinner */ | ||
147 | + V3270_OIA_TIMER, /**< command timing (mmm:ss, or blank) */ | ||
148 | + V3270_OIA_CURSOR_POSITION, /**< cursor position (rrr/ccc or blank) */ | ||
149 | + | ||
150 | +// V3270_OIA_CAPS, /**< Caps indication ("A" or blank) */ | ||
151 | + | ||
152 | +#ifdef HAVE_PRINTER | ||
153 | + V3270_OIA_PRINTER, /**< Printer indication ("P" or blank) */ | ||
154 | +#endif // HAVE_PRINTER | ||
155 | + | ||
156 | + V3270_OIA_FIELD_COUNT | ||
157 | + | ||
158 | + } V3270_OIA_FIELD; | ||
159 | + | ||
160 | + #define V3270_OIA_FIELD_INVALID ((V3270_OIA_FIELD) -1) | ||
161 | + | ||
162 | + | ||
163 | + #define V3270_COLOR_OIA_SPINNER V3270_COLOR_OIA_FOREGROUND | ||
164 | + #define V3270_COLOR_OIA_LUNAME V3270_COLOR_OIA_FOREGROUND | ||
165 | + #define V3270_COLOR_OIA_INSERT V3270_COLOR_OIA_FOREGROUND | ||
166 | + | ||
167 | + #ifndef v3270char | ||
168 | + #define v3270char void | ||
169 | + #endif // v3270_char | ||
170 | + | ||
171 | + LIB3270_EXPORT GtkWidget * v3270_new(void); | ||
172 | + LIB3270_EXPORT GType v3270_get_type(void); | ||
173 | + | ||
174 | + LIB3270_EXPORT void v3270_reload(GtkWidget * widget); | ||
175 | + | ||
176 | + LIB3270_EXPORT void v3270_set_font_family(GtkWidget *widget, const gchar *name); | ||
177 | + LIB3270_EXPORT const gchar * v3270_get_font_family(GtkWidget *widget); | ||
178 | + | ||
179 | + LIB3270_EXPORT H3270 * v3270_get_session(GtkWidget *widget); | ||
180 | + LIB3270_EXPORT gboolean v3270_is_connected(GtkWidget *widget); | ||
181 | + | ||
182 | + LIB3270_EXPORT int v3270_connect(GtkWidget *widget); | ||
183 | + LIB3270_EXPORT void v3270_disconnect(GtkWidget *widget); | ||
184 | + | ||
185 | + LIB3270_EXPORT int v3270_set_host_charset(GtkWidget *widget, const gchar *name); | ||
186 | + | ||
187 | + LIB3270_EXPORT void v3270_set_auto_disconnect(GtkWidget *widget, guint minutes); | ||
188 | + LIB3270_EXPORT guint v3270_get_auto_disconnect(GtkWidget *widget); | ||
189 | + | ||
190 | + | ||
191 | + // Clipboard | ||
192 | + typedef enum _v3270_select_format | ||
193 | + { | ||
194 | + V3270_SELECT_TEXT, | ||
195 | + V3270_SELECT_TABLE, | ||
196 | + | ||
197 | + V3270_SELECT_MAX | ||
198 | + } V3270_SELECT_FORMAT; | ||
199 | + | ||
200 | + LIB3270_EXPORT void v3270_copy(GtkWidget *widget, V3270_SELECT_FORMAT mode, gboolean cut); | ||
201 | + LIB3270_EXPORT void v3270_copy_append(GtkWidget *widget); | ||
202 | + LIB3270_EXPORT gchar * v3270_get_selected(GtkWidget *widget, gboolean cut); | ||
203 | + LIB3270_EXPORT gchar * v3270_get_copy(GtkWidget *widget); | ||
204 | + LIB3270_EXPORT void v3270_set_copy(GtkWidget *widget, const gchar *text); | ||
205 | + | ||
206 | + LIB3270_EXPORT int v3270_run_script(GtkWidget *widget, const gchar *script); | ||
207 | + | ||
208 | + LIB3270_EXPORT gchar * v3270_get_text(GtkWidget *widget,int offset, int len); | ||
209 | + LIB3270_EXPORT gchar * v3270_get_region(GtkWidget *widget, gint start_pos, gint end_pos, gboolean all); | ||
210 | + | ||
211 | + LIB3270_EXPORT void v3270_set_string(GtkWidget *widget, const gchar *str); | ||
212 | + LIB3270_EXPORT void v3270_tab(GtkWidget *widget); | ||
213 | + LIB3270_EXPORT void v3270_backtab(GtkWidget *widget); | ||
214 | + | ||
215 | + // Cut & Paste | ||
216 | + LIB3270_EXPORT gboolean v3270_get_selection_bounds(GtkWidget *widget, gint *start, gint *end); | ||
217 | + LIB3270_EXPORT void v3270_unselect(GtkWidget *widget); | ||
218 | + LIB3270_EXPORT void v3270_select_all(GtkWidget *widget); | ||
219 | + LIB3270_EXPORT void v3270_paste(GtkWidget *widget); | ||
220 | + LIB3270_EXPORT void v3270_paste_string(GtkWidget *widget, const gchar *text, const gchar *encoding); | ||
221 | + LIB3270_EXPORT void v3270_select_region(GtkWidget *widget, gint start, gint end); | ||
222 | + | ||
223 | + // Colors | ||
224 | + LIB3270_EXPORT void v3270_set_colors(GtkWidget *widget, const gchar *); | ||
225 | + LIB3270_EXPORT void v3270_set_color_table(GdkRGBA *table, const gchar *colors); | ||
226 | + LIB3270_EXPORT const GdkRGBA * v3270_get_color_table(GtkWidget *widget); | ||
227 | + LIB3270_EXPORT void v3270_set_mono_color_table(GdkRGBA *table, const gchar *fg, const gchar *bg); | ||
228 | + LIB3270_EXPORT void v3270_draw_element(cairo_t *cr, unsigned char chr, unsigned short attr, H3270 *session, v3270FontInfo *font, GdkRectangle *rect, GdkRGBA *color); | ||
229 | + LIB3270_EXPORT void v3270_set_color(GtkWidget *widget, enum V3270_COLOR id, GdkRGBA *color); | ||
230 | + LIB3270_EXPORT GdkRGBA * v3270_get_color(GtkWidget *widget, enum V3270_COLOR id); | ||
231 | + | ||
232 | + // Misc | ||
233 | + LIB3270_EXPORT GtkIMContext * v3270_get_im_context(GtkWidget *widget); | ||
234 | + LIB3270_EXPORT gboolean v3270_get_toggle(GtkWidget *widget, LIB3270_TOGGLE ix); | ||
235 | + LIB3270_EXPORT void v3270_popup_message(GtkWidget *widget, LIB3270_NOTIFY type, const gchar *title, const gchar *message, const gchar *text); | ||
236 | + LIB3270_EXPORT const gchar * v3270_get_session_name(GtkWidget *widget); | ||
237 | + LIB3270_EXPORT void v3270_set_session_name(GtkWidget *widget, const gchar *name); | ||
238 | + LIB3270_EXPORT int v3270_set_script(GtkWidget *widget, const gchar id, gboolean on); | ||
239 | + LIB3270_EXPORT void v3270_set_scaled_fonts(GtkWidget *widget, gboolean on); | ||
240 | + LIB3270_EXPORT void v3270_set_session_options(GtkWidget *widget, LIB3270_OPTION options); | ||
241 | + LIB3270_EXPORT int v3270_set_session_color_type(GtkWidget *widget, unsigned short colortype); | ||
242 | + LIB3270_EXPORT int v3270_set_host_type(GtkWidget *widget, const char *name); | ||
243 | + LIB3270_EXPORT const gchar * v3270_set_url(GtkWidget *widget, const gchar *uri); | ||
244 | + LIB3270_EXPORT const gchar * v3270_get_hostname(GtkWidget *widget); | ||
245 | + LIB3270_EXPORT const char * v3270_get_luname(GtkWidget *widget); | ||
246 | + LIB3270_EXPORT GtkWidget * v3270_get_default_widget(void); | ||
247 | + | ||
248 | + LIB3270_EXPORT void v3270_remap_from_xml(GtkWidget *widget, const gchar *path); | ||
249 | + | ||
250 | + // Keyboard & Mouse special actions | ||
251 | + LIB3270_EXPORT gboolean v3270_set_keyboard_action(GtkWidget *widget, const gchar *key_name, GtkAction *action); | ||
252 | + LIB3270_EXPORT void v3270_set_scroll_action(GtkWidget *widget, GdkScrollDirection direction, GtkAction *action); | ||
253 | + | ||
254 | + // SSL & Security | ||
255 | + LIB3270_EXPORT const gchar * v3270_get_ssl_status_icon(GtkWidget *widget); | ||
256 | + LIB3270_EXPORT const gchar * v3270_get_ssl_status_text(GtkWidget *widget); | ||
257 | + LIB3270_EXPORT const gchar * v3270_get_ssl_status_message(GtkWidget *widget); | ||
258 | + LIB3270_EXPORT void v3270_popup_security_dialog(GtkWidget *widget); | ||
259 | + | ||
260 | + | ||
261 | + // File transfer | ||
262 | + LIB3270_EXPORT gint v3270_transfer_file(GtkWidget *widget, LIB3270_FT_OPTION options, const gchar *local, const gchar *remote, int lrecl, int blksize, int primspace, int secspace, int dft); | ||
263 | + | ||
264 | + // Auxiliary widgets | ||
265 | + LIB3270_EXPORT GtkWidget * v3270_host_select_new(GtkWidget *widget); | ||
266 | + LIB3270_EXPORT void v3270_select_host(GtkWidget *widget); | ||
267 | + | ||
268 | + | ||
269 | + G_END_DECLS | ||
270 | + | ||
271 | +#endif // V3270_H_INCLUDED |
@@ -0,0 +1,84 @@ | @@ -0,0 +1,84 @@ | ||
1 | +/* | ||
2 | + * "Software pw3270, desenvolvido com base nos códigos fontes do WC3270 e X3270 | ||
3 | + * (Paul Mattes Paul.Mattes@usa.net), de emulação de terminal 3270 para acesso a | ||
4 | + * aplicativos mainframe. Registro no INPI sob o nome G3270. Registro no INPI sob | ||
5 | + * o nome G3270. | ||
6 | + * | ||
7 | + * Copyright (C) <2008> <Banco do Brasil S.A.> | ||
8 | + * | ||
9 | + * Este programa é software livre. Você pode redistribuí-lo e/ou modificá-lo sob | ||
10 | + * os termos da GPL v.2 - Licença Pública Geral GNU, conforme publicado pela | ||
11 | + * Free Software Foundation. | ||
12 | + * | ||
13 | + * Este programa é distribuído na expectativa de ser útil, mas SEM QUALQUER | ||
14 | + * GARANTIA; sem mesmo a garantia implícita de COMERCIALIZAÇÃO ou de ADEQUAÇÃO | ||
15 | + * A QUALQUER PROPÓSITO EM PARTICULAR. Consulte a Licença Pública Geral GNU para | ||
16 | + * obter mais detalhes. | ||
17 | + * | ||
18 | + * Você deve ter recebido uma cópia da Licença Pública Geral GNU junto com este | ||
19 | + * programa; se não, escreva para a Free Software Foundation, Inc., 51 Franklin | ||
20 | + * St, Fifth Floor, Boston, MA 02110-1301 USA | ||
21 | + * | ||
22 | + * Este programa está nomeado como v3270ft.h e possui - linhas de código. | ||
23 | + * | ||
24 | + * Contatos: | ||
25 | + * | ||
26 | + * perry.werneck@gmail.com (Alexandre Perry de Souza Werneck) | ||
27 | + * erico.mendonca@gmail.com (Erico Mascarenhas Mendonça) | ||
28 | + * | ||
29 | + */ | ||
30 | + | ||
31 | +#ifndef V3270FT_H_INCLUDED | ||
32 | + | ||
33 | + #define V3270FT_H_INCLUDED 1 | ||
34 | + | ||
35 | + #include <glib/gi18n.h> | ||
36 | + #include <gtk/gtk.h> | ||
37 | + #include <lib3270.h> | ||
38 | + #include <lib3270/filetransfer.h> | ||
39 | + | ||
40 | + G_BEGIN_DECLS | ||
41 | + | ||
42 | + #define GTK_TYPE_V3270FT (v3270ft_get_type ()) | ||
43 | + #define GTK_V3270FT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_V3270FT, v3270ft)) | ||
44 | + #define GTK_V3270FT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_V3270FT, v3270ftClass)) | ||
45 | + #define GTK_IS_V3270FT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_V3270FT)) | ||
46 | + #define GTK_IS_V3270FT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_V3270FT)) | ||
47 | + #define GTK_V3270FT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_V3270FT, v3270ftClass)) | ||
48 | + | ||
49 | + typedef struct _v3270ft v3270ft; | ||
50 | + typedef struct _v3270ftClass v3270ftClass; | ||
51 | + | ||
52 | + | ||
53 | + GtkWidget * v3270ft_new(void); | ||
54 | + GType v3270ft_get_type(void); | ||
55 | + void v3270ft_set_options(GtkWidget *widget, LIB3270_FT_OPTION opt); | ||
56 | + LIB3270_FT_OPTION v3270ft_get_options(GtkWidget *widget); | ||
57 | + void v3270ft_reset(GtkWidget *widget); | ||
58 | + gboolean v3270ft_is_valid(GtkWidget *widget); | ||
59 | + guint v3270ft_get_length(GtkWidget *widget); | ||
60 | + void v3270ft_select_first(GtkWidget *widget); | ||
61 | + void v3270ft_select_last(GtkWidget *widget); | ||
62 | + void v3270ft_select_previous(GtkWidget *widget); | ||
63 | + void v3270ft_select_next(GtkWidget *widget); | ||
64 | + void v3270ft_remove_selected(GtkWidget *widget); | ||
65 | + void v3270ft_remove_all(GtkWidget *widget); | ||
66 | + void v3270ft_save(GtkWidget *widget,const gchar *filename); | ||
67 | + void v3270ft_load(GtkWidget *widget,const gchar *filename); | ||
68 | + | ||
69 | + gboolean v3270ft_has_selected(GtkWidget *widget); | ||
70 | + gboolean v3270ft_has_next(GtkWidget *widget); | ||
71 | + | ||
72 | + const gchar * v3270ft_get_local_filename(GtkWidget *widget); | ||
73 | + const gchar * v3270ft_get_remote_filename(GtkWidget *widget); | ||
74 | + | ||
75 | + void v3270ft_append_file(GtkWidget *widget, const gchar *filename, gboolean text); | ||
76 | + guint v3270ft_append_selection(GtkWidget *widget, GtkSelectionData *data); | ||
77 | + | ||
78 | + gchar * v3270ft_select_file(v3270ft *dialog, const gchar *title, const gchar *button, GtkFileChooserAction action, const gchar *filename, const gchar *filter, ... ) G_GNUC_NULL_TERMINATED; | ||
79 | + | ||
80 | + gint v3270ft_transfer(GtkWidget *dialog, H3270 *session); | ||
81 | + | ||
82 | + G_END_DECLS | ||
83 | + | ||
84 | +#endif // V3270FT_H_INCLUDED |
@@ -0,0 +1,60 @@ | @@ -0,0 +1,60 @@ | ||
1 | +/* | ||
2 | + * "Software pw3270, desenvolvido com base nos códigos fontes do WC3270 e X3270 | ||
3 | + * (Paul Mattes Paul.Mattes@usa.net), de emulação de terminal 3270 para acesso a | ||
4 | + * aplicativos mainframe. Registro no INPI sob o nome G3270. Registro no INPI sob | ||
5 | + * o nome G3270. | ||
6 | + * | ||
7 | + * Copyright (C) <2008> <Banco do Brasil S.A.> | ||
8 | + * | ||
9 | + * Este programa é software livre. Você pode redistribuí-lo e/ou modificá-lo sob | ||
10 | + * os termos da GPL v.2 - Licença Pública Geral GNU, conforme publicado pela | ||
11 | + * Free Software Foundation. | ||
12 | + * | ||
13 | + * Este programa é distribuído na expectativa de ser útil, mas SEM QUALQUER | ||
14 | + * GARANTIA; sem mesmo a garantia implícita de COMERCIALIZAÇÃO ou de ADEQUAÇÃO | ||
15 | + * A QUALQUER PROPÓSITO EM PARTICULAR. Consulte a Licença Pública Geral GNU para | ||
16 | + * obter mais detalhes. | ||
17 | + * | ||
18 | + * Você deve ter recebido uma cópia da Licença Pública Geral GNU junto com este | ||
19 | + * programa; se não, escreva para a Free Software Foundation, Inc., 51 Franklin | ||
20 | + * St, Fifth Floor, Boston, MA 02110-1301 USA | ||
21 | + * | ||
22 | + * Este programa está nomeado como v3270ftprogress.h e possui - linhas de código. | ||
23 | + * | ||
24 | + * Contatos: | ||
25 | + * | ||
26 | + * perry.werneck@gmail.com (Alexandre Perry de Souza Werneck) | ||
27 | + * erico.mendonca@gmail.com (Erico Mascarenhas Mendonça) | ||
28 | + * | ||
29 | + */ | ||
30 | + | ||
31 | +#ifndef V3270FTPROGRESS_H_INCLUDED | ||
32 | + | ||
33 | + #define V3270FTPROGRESS_H_INCLUDED | ||
34 | + | ||
35 | + #include <glib/gi18n.h> | ||
36 | + #include <gtk/gtk.h> | ||
37 | + | ||
38 | + G_BEGIN_DECLS | ||
39 | + | ||
40 | + #define GTK_TYPE_V3270FTPROGRESS (v3270ftprogress_get_type ()) | ||
41 | + #define GTK_V3270FTPROGRESS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_V3270FTPROGRESS, v3270ftprogress)) | ||
42 | + #define GTK_V3270FTPROGRESS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_V3270FTPROGRESS, v3270ftprogressClass)) | ||
43 | + #define GTK_IS_V3270FTPROGRESS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_V3270FTPROGRESS)) | ||
44 | + #define GTK_IS_V3270FTPROGRESS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_V3270FTPROGRESS)) | ||
45 | + #define GTK_V3270FTPROGRESS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_V3270FT, v3270ftprogressClass)) | ||
46 | + | ||
47 | + typedef struct _v3270ftprogress v3270ftprogress; | ||
48 | + typedef struct _v3270ftprogressClass v3270ftprogressClass; | ||
49 | + | ||
50 | + GtkWidget * v3270ftprogress_new(void); | ||
51 | + | ||
52 | + GType v3270ftprogress_get_type(void); | ||
53 | + | ||
54 | + void v3270ftprogress_set_header(GtkWidget *widget, const gchar *status); | ||
55 | + | ||
56 | + | ||
57 | + G_END_DECLS | ||
58 | + | ||
59 | + | ||
60 | +#endif // V3270FTPROGRESS_H_INCLUDED |
src/plugins/dbus3270/gobject.c
@@ -42,7 +42,7 @@ | @@ -42,7 +42,7 @@ | ||
42 | #include <config.h> | 42 | #include <config.h> |
43 | #include <lib3270.h> | 43 | #include <lib3270.h> |
44 | #include <pw3270.h> | 44 | #include <pw3270.h> |
45 | -#include <pw3270/v3270.h> | 45 | +#include <v3270.h> |
46 | #include <lib3270/actions.h> | 46 | #include <lib3270/actions.h> |
47 | #include <lib3270/charset.h> | 47 | #include <lib3270/charset.h> |
48 | 48 |
src/pw3270/Makefile.in
@@ -76,12 +76,13 @@ MSGCAT=@MSGCAT@ | @@ -76,12 +76,13 @@ MSGCAT=@MSGCAT@ | ||
76 | CONVERT=@CONVERT@ | 76 | CONVERT=@CONVERT@ |
77 | WINDRES=@WINDRES@ | 77 | WINDRES=@WINDRES@ |
78 | 78 | ||
79 | -CFLAGS=@CFLAGS@ @LIB3270_CFLAGS@ \ | ||
80 | - -Wno-deprecated-declarations \ | ||
81 | - @LIBSSL_CFLAGS@ @GTK_CFLAGS@ \ | ||
82 | - -I$(BASEDIR)/src/include/pw3270 \ | ||
83 | - -DLIBDIR=\"$(libdir)\" \ | ||
84 | - -DDATAROOTDIR=\"$(datarootdir)\" | 79 | +CFLAGS=@CFLAGS@ \ |
80 | + @LIB3270_CFLAGS@ \ | ||
81 | + @PW3270_CFLAGS@ \ | ||
82 | + -Wno-deprecated-declarations \ | ||
83 | + @LIBSSL_CFLAGS@ @GTK_CFLAGS@ \ | ||
84 | + -DLIBDIR=\"$(libdir)\" \ | ||
85 | + -DDATAROOTDIR=\"$(datarootdir)\" | ||
85 | 86 | ||
86 | LIBS=@LIBS@ @LIBSSL_LIBS@ @GTK_LIBS@ @LIB3270_LIBS@ | 87 | LIBS=@LIBS@ @LIBSSL_LIBS@ @GTK_LIBS@ @LIB3270_LIBS@ |
87 | LDFLAGS=@LDFLAGS@ | 88 | LDFLAGS=@LDFLAGS@ |
@@ -91,8 +92,9 @@ APP_LDFLAGS=@APP_LDFLAGS@ | @@ -91,8 +92,9 @@ APP_LDFLAGS=@APP_LDFLAGS@ | ||
91 | 92 | ||
92 | DEPENDS=\ | 93 | DEPENDS=\ |
93 | $(BASEDIR)/src/include/*.h \ | 94 | $(BASEDIR)/src/include/*.h \ |
94 | - $(BASEDIR)/src/include/lib3270/*.h \ | 95 | + @LIB3270_INCLUDEPATH@/*.h \ |
95 | $(BASEDIR)/src/include/pw3270/*.h \ | 96 | $(BASEDIR)/src/include/pw3270/*.h \ |
97 | + $(BASEDIR)/src/include/v3270/*.h \ | ||
96 | *.h \ | 98 | *.h \ |
97 | Makefile | 99 | Makefile |
98 | 100 | ||
@@ -102,10 +104,10 @@ $(OBJDBG)/%.o: \ | @@ -102,10 +104,10 @@ $(OBJDBG)/%.o: \ | ||
102 | 104 | ||
103 | @echo $< ... | 105 | @echo $< ... |
104 | @$(MKDIR) `dirname $@` | 106 | @$(MKDIR) `dirname $@` |
105 | - @$(CC) $(CFLAGS) \ | ||
106 | - @DBG_CFLAGS@ \ | ||
107 | - -DBUILD_DATE=`date +"0x%Y%m%d"`\ | ||
108 | - -o $@ -c $< | 107 | + $(CC) $(CFLAGS) \ |
108 | + @DBG_CFLAGS@ \ | ||
109 | + -DBUILD_DATE=`date +"0x%Y%m%d"`\ | ||
110 | + -o $@ -c $< | ||
109 | 111 | ||
110 | %.ico: \ | 112 | %.ico: \ |
111 | $(BASEDIR)/branding/%.svg | 113 | $(BASEDIR)/branding/%.svg |
@@ -261,6 +263,7 @@ install: \ | @@ -261,6 +263,7 @@ install: \ | ||
261 | install-devel: | 263 | install-devel: |
262 | 264 | ||
263 | @mkdir -p $(DESTDIR)$(includedir)/pw3270 | 265 | @mkdir -p $(DESTDIR)$(includedir)/pw3270 |
266 | + @mkdir -p $(DESTDIR)$(includedir)/v3270 | ||
264 | @mkdir -p $(DESTDIR)$(libdir)/pkgconfig | 267 | @mkdir -p $(DESTDIR)$(libdir)/pkgconfig |
265 | 268 | ||
266 | # Install includes | 269 | # Install includes |
@@ -269,9 +272,21 @@ install-devel: | @@ -269,9 +272,21 @@ install-devel: | ||
269 | $(DESTDIR)$(includedir)/pw3270 | 272 | $(DESTDIR)$(includedir)/pw3270 |
270 | 273 | ||
271 | @$(INSTALL_DATA) \ | 274 | @$(INSTALL_DATA) \ |
275 | + $(BASEDIR)/src/include/v3270/*.h \ | ||
276 | + $(DESTDIR)$(includedir)/v3270 | ||
277 | + | ||
278 | + @$(INSTALL_DATA) \ | ||
272 | $(BASEDIR)/src/include/pw3270.h \ | 279 | $(BASEDIR)/src/include/pw3270.h \ |
273 | $(DESTDIR)$(includedir) | 280 | $(DESTDIR)$(includedir) |
274 | 281 | ||
282 | + @$(INSTALL_DATA) \ | ||
283 | + $(BASEDIR)/src/include/v3270.h \ | ||
284 | + $(DESTDIR)$(includedir) | ||
285 | + | ||
286 | + @$(INSTALL_DATA) \ | ||
287 | + $(BASEDIR)/src/include/v3270ft.h \ | ||
288 | + $(DESTDIR)$(includedir) | ||
289 | + | ||
275 | # Install PKG-CONFIG files | 290 | # Install PKG-CONFIG files |
276 | @$(INSTALL_DATA) \ | 291 | @$(INSTALL_DATA) \ |
277 | $(BASEDIR)/sdk/*.pc \ | 292 | $(BASEDIR)/sdk/*.pc \ |
src/pw3270/actions.c
@@ -33,7 +33,7 @@ | @@ -33,7 +33,7 @@ | ||
33 | #include "uiparser/parser.h" | 33 | #include "uiparser/parser.h" |
34 | 34 | ||
35 | #include <v3270.h> | 35 | #include <v3270.h> |
36 | - #include <v3270ft.h> | 36 | + #include <v3270/v3270ft.h> |
37 | 37 | ||
38 | #include <pw3270/plugin.h> | 38 | #include <pw3270/plugin.h> |
39 | // #include "filetransfer.h" | 39 | // #include "filetransfer.h" |
src/pw3270/common/Makefile.in
@@ -57,12 +57,16 @@ MSGCAT=@MSGCAT@ | @@ -57,12 +57,16 @@ MSGCAT=@MSGCAT@ | ||
57 | INSTALL=@INSTALL@ | 57 | INSTALL=@INSTALL@ |
58 | INSTALL_DATA=@INSTALL_DATA@ | 58 | INSTALL_DATA=@INSTALL_DATA@ |
59 | 59 | ||
60 | -CFLAGS=@CFLAGS@ @LIB3270_CFLAGS@ -Wno-deprecated-declarations @GTK_CFLAGS@ -I$(BASEDIR)/src/include/pw3270 | 60 | +CFLAGS=@CFLAGS@ @LIB3270_CFLAGS@ @PW3270_CFLAGS@ -Wno-deprecated-declarations @GTK_CFLAGS@ |
61 | LIBS=@LIBS@ @GTK_LIBS@ @LIB3270_LIBS@ | 61 | LIBS=@LIBS@ @GTK_LIBS@ @LIB3270_LIBS@ |
62 | 62 | ||
63 | #---[ Rules ]---------------------------------------------------------------------------- | 63 | #---[ Rules ]---------------------------------------------------------------------------- |
64 | 64 | ||
65 | -DEPENDS=$(BASEDIR)/src/include/*.h $(BASEDIR)/src/include/lib3270/*.h $(BASEDIR)/src/include/pw3270/*.h *.h Makefile | 65 | +DEPENDS= \ |
66 | + $(BASEDIR)/src/include/*.h \ | ||
67 | + @LIB3270_INCLUDEPATH@/*.h \ | ||
68 | + $(BASEDIR)/src/include/v3270/*.h \ | ||
69 | + $(BASEDIR)/src/include/pw3270/*.h | ||
66 | 70 | ||
67 | $(OBJDBG)/%.o: \ | 71 | $(OBJDBG)/%.o: \ |
68 | %.c \ | 72 | %.c \ |
src/pw3270/uiparser/Makefile.in
@@ -59,12 +59,16 @@ MSGCAT=@MSGCAT@ | @@ -59,12 +59,16 @@ MSGCAT=@MSGCAT@ | ||
59 | INSTALL=@INSTALL@ | 59 | INSTALL=@INSTALL@ |
60 | INSTALL_DATA=@INSTALL_DATA@ | 60 | INSTALL_DATA=@INSTALL_DATA@ |
61 | 61 | ||
62 | -CFLAGS=@CFLAGS@ @LIB3270_CFLAGS@ -Wno-deprecated-declarations @GTK_CFLAGS@ -I$(BASEDIR)/src/include/pw3270 | 62 | +CFLAGS=@CFLAGS@ @LIB3270_CFLAGS@ @PW3270_CFLAGS@ -Wno-deprecated-declarations @GTK_CFLAGS@ |
63 | LIBS=@LIBS@ @GTK_LIBS@ @LIB3270_LIBS@ | 63 | LIBS=@LIBS@ @GTK_LIBS@ @LIB3270_LIBS@ |
64 | 64 | ||
65 | #---[ Rules ]---------------------------------------------------------------------------- | 65 | #---[ Rules ]---------------------------------------------------------------------------- |
66 | 66 | ||
67 | -DEPENDS=$(BASEDIR)/src/include/*.h $(BASEDIR)/src/include/lib3270/*.h $(BASEDIR)/src/include/pw3270/*.h *.h Makefile | 67 | +DEPENDS= \ |
68 | + $(BASEDIR)/src/include/*.h \ | ||
69 | + @LIB3270_INCLUDEPATH@/*.h \ | ||
70 | + $(BASEDIR)/src/include/v3270/*.h \ | ||
71 | + $(BASEDIR)/src/include/pw3270/*.h | ||
68 | 72 | ||
69 | $(OBJDBG)/%.o: \ | 73 | $(OBJDBG)/%.o: \ |
70 | %.c \ | 74 | %.c \ |
src/pw3270/v3270/Makefile.in
@@ -59,12 +59,20 @@ MSGCAT=@MSGCAT@ | @@ -59,12 +59,20 @@ MSGCAT=@MSGCAT@ | ||
59 | INSTALL=@INSTALL@ | 59 | INSTALL=@INSTALL@ |
60 | INSTALL_DATA=@INSTALL_DATA@ | 60 | INSTALL_DATA=@INSTALL_DATA@ |
61 | 61 | ||
62 | -CFLAGS=@CFLAGS@ @LIB3270_CFLAGS@ -Wno-deprecated-declarations @GTK_CFLAGS@ -I$(BASEDIR)/src/include/pw3270 | 62 | +CFLAGS=@CFLAGS@ \ |
63 | + @LIB3270_CFLAGS@ \ | ||
64 | + @PW3270_CFLAGS@ \ | ||
65 | + -Wno-deprecated-declarations \ | ||
66 | + @GTK_CFLAGS@ | ||
67 | + | ||
63 | LIBS=@LIBS@ @GTK_LIBS@ @LIB3270_LIBS@ | 68 | LIBS=@LIBS@ @GTK_LIBS@ @LIB3270_LIBS@ |
64 | 69 | ||
65 | #---[ Rules ]---------------------------------------------------------------------------- | 70 | #---[ Rules ]---------------------------------------------------------------------------- |
66 | 71 | ||
67 | -DEPENDS=$(BASEDIR)/src/include/*.h $(BASEDIR)/src/include/lib3270/*.h $(BASEDIR)/src/include/pw3270/*.h *.h Makefile | 72 | +DEPENDS= \ |
73 | + $(BASEDIR)/src/include/*.h \ | ||
74 | + @LIB3270_INCLUDEPATH@/*.h \ | ||
75 | + $(BASEDIR)/src/include/v3270/*.h | ||
68 | 76 | ||
69 | $(OBJDBG)/%.o: \ | 77 | $(OBJDBG)/%.o: \ |
70 | %.c \ | 78 | %.c \ |
src/pw3270/v3270ft/Makefile.in
@@ -59,12 +59,16 @@ MSGCAT=@MSGCAT@ | @@ -59,12 +59,16 @@ MSGCAT=@MSGCAT@ | ||
59 | INSTALL=@INSTALL@ | 59 | INSTALL=@INSTALL@ |
60 | INSTALL_DATA=@INSTALL_DATA@ | 60 | INSTALL_DATA=@INSTALL_DATA@ |
61 | 61 | ||
62 | -CFLAGS=@CFLAGS@ @LIB3270_CFLAGS@ -Wno-deprecated-declarations @GTK_CFLAGS@ -I$(BASEDIR)/src/include/pw3270 | 62 | +CFLAGS=@CFLAGS@ @LIB3270_CFLAGS@ @PW3270_CFLAGS@ -Wno-deprecated-declarations @GTK_CFLAGS@ |
63 | LIBS=@LIBS@ @GTK_LIBS@ @LIB3270_LIBS@ | 63 | LIBS=@LIBS@ @GTK_LIBS@ @LIB3270_LIBS@ |
64 | 64 | ||
65 | #---[ Rules ]---------------------------------------------------------------------------- | 65 | #---[ Rules ]---------------------------------------------------------------------------- |
66 | 66 | ||
67 | -DEPENDS=$(BASEDIR)/src/include/*.h $(BASEDIR)/src/include/lib3270/*.h $(BASEDIR)/src/include/pw3270/*.h *.h Makefile | 67 | +DEPENDS= \ |
68 | + $(BASEDIR)/src/include/*.h \ | ||
69 | + @LIB3270_INCLUDEPATH@/*.h \ | ||
70 | + $(BASEDIR)/src/include/v3270/*.h \ | ||
71 | + $(BASEDIR)/src/include/pw3270/*.h | ||
68 | 72 | ||
69 | $(OBJDBG)/%.o: \ | 73 | $(OBJDBG)/%.o: \ |
70 | %.c \ | 74 | %.c \ |
src/pw3270/v3270ft/private.h
@@ -32,8 +32,8 @@ | @@ -32,8 +32,8 @@ | ||
32 | 32 | ||
33 | #define PRIVATE_H_INCLUDED 1 | 33 | #define PRIVATE_H_INCLUDED 1 |
34 | 34 | ||
35 | - #include <v3270ft.h> | ||
36 | - #include <v3270ftprogress.h> | 35 | + #include <v3270/v3270ft.h> |
36 | + #include <v3270/v3270ftprogress.h> | ||
37 | #include <lib3270.h> | 37 | #include <lib3270.h> |
38 | #include <lib3270/filetransfer.h> | 38 | #include <lib3270/filetransfer.h> |
39 | 39 |