Commit 5135cf9cd9a3e428eb2b395b318457d8d3a4ed66
1 parent
e2bd688f
Exists in
master
and in
5 other branches
Atualizando Makefiles.
Showing
8 changed files
with
480 additions
and
619 deletions
Show diff stats
configure.ac
| ... | ... | @@ -77,7 +77,7 @@ case "$host" in |
| 77 | 77 | DLLPREFIX="" |
| 78 | 78 | DLLEXT=".dll" |
| 79 | 79 | |
| 80 | - CFLAGS="$CFLAGS -Wall -Werror -D_WIN32_WINNT=0x0600" | |
| 80 | + CFLAGS="$CFLAGS -D_WIN32_WINNT=0x0600" | |
| 81 | 81 | LIBS="$LIBS -lws2_32 -lntdll -lwtsapi32" |
| 82 | 82 | |
| 83 | 83 | ;; |
| ... | ... | @@ -97,8 +97,6 @@ case "$host" in |
| 97 | 97 | DLLPREFIX="lib" |
| 98 | 98 | DLLEXT=".so" |
| 99 | 99 | |
| 100 | - CFLAGS="$CFLAGS -Wall -Werror" | |
| 101 | - | |
| 102 | 100 | # LIBS="-Wl,--no-allow-shlib-undefined,--as-needed,--no-undefined -pthread $LIBS" |
| 103 | 101 | LIBS="-pthread $LIBS" |
| 104 | 102 | |
| ... | ... | @@ -284,6 +282,7 @@ dnl Lib3270 flags |
| 284 | 282 | dnl --------------------------------------------------------------------------- |
| 285 | 283 | |
| 286 | 284 | AC_SUBST(LIB3270_CFLAGS,-I$ac_pwd/src/include) |
| 285 | +AC_SUBST(LIB3270_LIBS,-l3270) | |
| 287 | 286 | |
| 288 | 287 | dnl --------------------------------------------------------------------------- |
| 289 | 288 | dnl Check for headers |
| ... | ... | @@ -338,6 +337,7 @@ dnl Configure which files to generate. |
| 338 | 337 | dnl --------------------------------------------------------------------------- |
| 339 | 338 | |
| 340 | 339 | AC_CONFIG_FILES(src/lib3270/Makefile) |
| 340 | +AC_CONFIG_FILES(src/pw3270/Makefile) | |
| 341 | 341 | dnl AC_CONFIG_FILES(Makefile) |
| 342 | 342 | |
| 343 | 343 | dnl --------------------------------------------------------------------------- | ... | ... |
| ... | ... | @@ -0,0 +1,270 @@ |
| 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/config.h> | |
| 36 | + #include <lib3270.h> | |
| 37 | + #include <lib3270/popup.h> | |
| 38 | + #include <lib3270/filetransfer.h> | |
| 39 | + | |
| 40 | + #define V3270_H_INCLUDED 1 | |
| 41 | + | |
| 42 | + G_BEGIN_DECLS | |
| 43 | + | |
| 44 | + #define GTK_TYPE_V3270 (v3270_get_type ()) | |
| 45 | + #define GTK_V3270(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_V3270, v3270)) | |
| 46 | + #define GTK_V3270_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_V3270, v3270Class)) | |
| 47 | + #define GTK_IS_V3270(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_V3270)) | |
| 48 | + #define GTK_IS_V3270_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_V3270)) | |
| 49 | + #define GTK_V3270_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_V3270, v3270Class)) | |
| 50 | + | |
| 51 | +#if ! GTK_CHECK_VERSION(3,0,0) | |
| 52 | + #define GdkRGBA GdkColor | |
| 53 | + #define gdk_cairo_set_source_rgba(cr,cl) gdk_cairo_set_source_color(cr,cl) | |
| 54 | + #define gdk_rgba_parse(a,b) gdk_color_parse(b,a) | |
| 55 | + #define gdk_rgba_to_string(c) gdk_color_to_string(c) | |
| 56 | + #define gdk_rgba_equal(a,b) gdk_color_equal(a,b) | |
| 57 | + #define gdk_rgba_to_string(c) gdk_color_to_string(c) | |
| 58 | + #define gtk_color_selection_set_current_rgba(w,c) gtk_color_selection_set_current_color(w,c) | |
| 59 | + #define gtk_color_selection_get_current_rgba(w,c) gtk_color_selection_get_current_color(w,c) | |
| 60 | + #define gtk_color_selection_set_previous_rgba(w,c) gtk_color_selection_set_previous_color(w,c) | |
| 61 | + #define gtk_color_selection_set_current_rgba(w,c) gtk_color_selection_set_current_color(w,c) | |
| 62 | +#endif // !GTK(3,0,0) | |
| 63 | + | |
| 64 | + | |
| 65 | + typedef struct _v3270 v3270; | |
| 66 | + typedef struct _v3270Class v3270Class; | |
| 67 | + | |
| 68 | + /** | |
| 69 | + * @brief Informações para desenho de fontes com o cairo. | |
| 70 | + * | |
| 71 | + */ | |
| 72 | + typedef struct _v3270FontInfo { | |
| 73 | + | |
| 74 | + guint width; | |
| 75 | + guint height; | |
| 76 | + guint ascent; | |
| 77 | + guint descent; | |
| 78 | + | |
| 79 | + guint spacing; | |
| 80 | + | |
| 81 | + guint left; | |
| 82 | + guint top; | |
| 83 | + | |
| 84 | + gchar * family; | |
| 85 | + cairo_font_weight_t weight; | |
| 86 | + cairo_scaled_font_t * scaled; | |
| 87 | + | |
| 88 | + } v3270FontInfo; | |
| 89 | + | |
| 90 | + enum V3270_COLOR | |
| 91 | + { | |
| 92 | + V3270_COLOR_BACKGROUND, | |
| 93 | + V3270_COLOR_BLUE, | |
| 94 | + V3270_COLOR_RED, | |
| 95 | + V3270_COLOR_PINK, | |
| 96 | + V3270_COLOR_GREEN, | |
| 97 | + V3270_COLOR_TURQUOISE, | |
| 98 | + V3270_COLOR_YELLOW, | |
| 99 | + V3270_COLOR_WHITE, | |
| 100 | + V3270_COLOR_BLACK, | |
| 101 | + V3270_COLOR_DARK_BLUE, | |
| 102 | + V3270_COLOR_ORANGE, | |
| 103 | + V3270_COLOR_PURPLE, | |
| 104 | + V3270_COLOR_DARK_GREEN, | |
| 105 | + V3270_COLOR_DARK_TURQUOISE, | |
| 106 | + V3270_COLOR_MUSTARD, | |
| 107 | + V3270_COLOR_GRAY, | |
| 108 | + | |
| 109 | + V3270_COLOR_FIELD, | |
| 110 | + V3270_COLOR_FIELD_INTENSIFIED, | |
| 111 | + V3270_COLOR_FIELD_PROTECTED, | |
| 112 | + V3270_COLOR_FIELD_PROTECTED_INTENSIFIED, | |
| 113 | + | |
| 114 | + V3270_COLOR_SELECTED_BG, | |
| 115 | + V3270_COLOR_SELECTED_FG, | |
| 116 | + | |
| 117 | + V3270_COLOR_CROSS_HAIR, | |
| 118 | + | |
| 119 | + // Oia Colors (Must be the last block) | |
| 120 | + V3270_COLOR_OIA_BACKGROUND, | |
| 121 | + V3270_COLOR_OIA_FOREGROUND, | |
| 122 | + V3270_COLOR_OIA_SEPARATOR, | |
| 123 | + V3270_COLOR_OIA_STATUS_OK, | |
| 124 | + V3270_COLOR_OIA_STATUS_WARNING, | |
| 125 | + V3270_COLOR_OIA_STATUS_INVALID, | |
| 126 | + | |
| 127 | + V3270_COLOR_COUNT | |
| 128 | + }; | |
| 129 | + | |
| 130 | +// #define V3270_COLOR_OIA_STATUS_WARNING V3270_COLOR_OIA_STATUS_OK | |
| 131 | + | |
| 132 | + typedef enum _v3270_oia_field | |
| 133 | + { | |
| 134 | + V3270_OIA_UNDERA, /**< "A" underlined */ | |
| 135 | + V3270_OIA_CONNECTION, /**< solid box if connected, "?" in a box if not */ | |
| 136 | + V3270_OIA_MESSAGE, /**< message area */ | |
| 137 | + V3270_OIA_SSL, /**< SSL Status */ | |
| 138 | + /**< Meta indication ("M" or blank) */ | |
| 139 | + V3270_OIA_ALT, /**< Alt indication ("A" or blank) */ | |
| 140 | + /**< Compose indication ("C" or blank) */ | |
| 141 | + /**< Compose first character */ | |
| 142 | + V3270_OIA_SHIFT, /**< Shift Status */ | |
| 143 | + V3270_OIA_TYPEAHEAD, /**< Typeahead indication ("T" or blank) */ | |
| 144 | + V3270_OIA_INSERT, /**< Insert mode indication (Special symbol/"I" or blank) */ | |
| 145 | + V3270_OIA_SCRIPT, /**< Script indication ("S" or blank) */ | |
| 146 | + V3270_OIA_LUNAME, /**< LU Name */ | |
| 147 | + V3270_OIA_SPINNER, /**< command timing spinner */ | |
| 148 | + V3270_OIA_TIMER, /**< command timing (mmm:ss, or blank) */ | |
| 149 | + V3270_OIA_CURSOR_POSITION, /**< cursor position (rrr/ccc or blank) */ | |
| 150 | + | |
| 151 | +// V3270_OIA_CAPS, /**< Caps indication ("A" or blank) */ | |
| 152 | + | |
| 153 | +#ifdef HAVE_PRINTER | |
| 154 | + V3270_OIA_PRINTER, /**< Printer indication ("P" or blank) */ | |
| 155 | +#endif // HAVE_PRINTER | |
| 156 | + | |
| 157 | + V3270_OIA_FIELD_COUNT | |
| 158 | + | |
| 159 | + } V3270_OIA_FIELD; | |
| 160 | + | |
| 161 | + #define V3270_OIA_FIELD_INVALID ((V3270_OIA_FIELD) -1) | |
| 162 | + | |
| 163 | + | |
| 164 | + #define V3270_COLOR_OIA_SPINNER V3270_COLOR_OIA_FOREGROUND | |
| 165 | + #define V3270_COLOR_OIA_LUNAME V3270_COLOR_OIA_FOREGROUND | |
| 166 | + #define V3270_COLOR_OIA_INSERT V3270_COLOR_OIA_FOREGROUND | |
| 167 | + | |
| 168 | + #ifndef v3270char | |
| 169 | + #define v3270char void | |
| 170 | + #endif // v3270_char | |
| 171 | + | |
| 172 | + LIB3270_EXPORT GtkWidget * v3270_new(void); | |
| 173 | + LIB3270_EXPORT GType v3270_get_type(void); | |
| 174 | + | |
| 175 | + LIB3270_EXPORT void v3270_reload(GtkWidget * widget); | |
| 176 | + | |
| 177 | + LIB3270_EXPORT void v3270_set_font_family(GtkWidget *widget, const gchar *name); | |
| 178 | + LIB3270_EXPORT const gchar * v3270_get_font_family(GtkWidget *widget); | |
| 179 | + | |
| 180 | + LIB3270_EXPORT H3270 * v3270_get_session(GtkWidget *widget); | |
| 181 | + LIB3270_EXPORT gboolean v3270_is_connected(GtkWidget *widget); | |
| 182 | + | |
| 183 | + LIB3270_EXPORT int v3270_connect(GtkWidget *widget); | |
| 184 | + LIB3270_EXPORT void v3270_disconnect(GtkWidget *widget); | |
| 185 | + | |
| 186 | + LIB3270_EXPORT int v3270_set_host_charset(GtkWidget *widget, const gchar *name); | |
| 187 | + | |
| 188 | + LIB3270_EXPORT void v3270_set_auto_disconnect(GtkWidget *widget, guint minutes); | |
| 189 | + LIB3270_EXPORT guint v3270_get_auto_disconnect(GtkWidget *widget); | |
| 190 | + | |
| 191 | + | |
| 192 | + // Clipboard | |
| 193 | + typedef enum _v3270_select_format | |
| 194 | + { | |
| 195 | + V3270_SELECT_TEXT, | |
| 196 | + V3270_SELECT_TABLE, | |
| 197 | + | |
| 198 | + V3270_SELECT_MAX | |
| 199 | + } V3270_SELECT_FORMAT; | |
| 200 | + | |
| 201 | + LIB3270_EXPORT void v3270_copy(GtkWidget *widget, V3270_SELECT_FORMAT mode, gboolean cut); | |
| 202 | + LIB3270_EXPORT void v3270_copy_append(GtkWidget *widget); | |
| 203 | + LIB3270_EXPORT gchar * v3270_get_selected(GtkWidget *widget, gboolean cut); | |
| 204 | + LIB3270_EXPORT gchar * v3270_get_copy(GtkWidget *widget); | |
| 205 | + LIB3270_EXPORT void v3270_set_copy(GtkWidget *widget, const gchar *text); | |
| 206 | + | |
| 207 | + LIB3270_EXPORT int v3270_run_script(GtkWidget *widget, const gchar *script); | |
| 208 | + | |
| 209 | + LIB3270_EXPORT gchar * v3270_get_text(GtkWidget *widget,int offset, int len); | |
| 210 | + LIB3270_EXPORT gchar * v3270_get_region(GtkWidget *widget, gint start_pos, gint end_pos, gboolean all); | |
| 211 | + | |
| 212 | + LIB3270_EXPORT void v3270_set_string(GtkWidget *widget, const gchar *str); | |
| 213 | + LIB3270_EXPORT void v3270_tab(GtkWidget *widget); | |
| 214 | + LIB3270_EXPORT void v3270_backtab(GtkWidget *widget); | |
| 215 | + | |
| 216 | + // Cut & Paste | |
| 217 | + LIB3270_EXPORT gboolean v3270_get_selection_bounds(GtkWidget *widget, gint *start, gint *end); | |
| 218 | + LIB3270_EXPORT void v3270_unselect(GtkWidget *widget); | |
| 219 | + LIB3270_EXPORT void v3270_select_all(GtkWidget *widget); | |
| 220 | + LIB3270_EXPORT void v3270_paste(GtkWidget *widget); | |
| 221 | + LIB3270_EXPORT void v3270_paste_string(GtkWidget *widget, const gchar *text, const gchar *encoding); | |
| 222 | + LIB3270_EXPORT void v3270_select_region(GtkWidget *widget, gint start, gint end); | |
| 223 | + | |
| 224 | + // Colors | |
| 225 | + LIB3270_EXPORT void v3270_set_colors(GtkWidget *widget, const gchar *); | |
| 226 | + LIB3270_EXPORT void v3270_set_color_table(GdkRGBA *table, const gchar *colors); | |
| 227 | + LIB3270_EXPORT const GdkRGBA * v3270_get_color_table(GtkWidget *widget); | |
| 228 | + LIB3270_EXPORT void v3270_set_mono_color_table(GdkRGBA *table, const gchar *fg, const gchar *bg); | |
| 229 | + LIB3270_EXPORT void v3270_draw_element(cairo_t *cr, unsigned char chr, unsigned short attr, H3270 *session, v3270FontInfo *font, GdkRectangle *rect, GdkRGBA *color); | |
| 230 | + LIB3270_EXPORT void v3270_set_color(GtkWidget *widget, enum V3270_COLOR id, GdkRGBA *color); | |
| 231 | + LIB3270_EXPORT GdkRGBA * v3270_get_color(GtkWidget *widget, enum V3270_COLOR id); | |
| 232 | + | |
| 233 | + // Misc | |
| 234 | + LIB3270_EXPORT GtkIMContext * v3270_get_im_context(GtkWidget *widget); | |
| 235 | + LIB3270_EXPORT gboolean v3270_get_toggle(GtkWidget *widget, LIB3270_TOGGLE ix); | |
| 236 | + LIB3270_EXPORT void v3270_popup_message(GtkWidget *widget, LIB3270_NOTIFY type, const gchar *title, const gchar *message, const gchar *text); | |
| 237 | + LIB3270_EXPORT const gchar * v3270_get_session_name(GtkWidget *widget); | |
| 238 | + LIB3270_EXPORT void v3270_set_session_name(GtkWidget *widget, const gchar *name); | |
| 239 | + LIB3270_EXPORT int v3270_set_script(GtkWidget *widget, const gchar id, gboolean on); | |
| 240 | + LIB3270_EXPORT void v3270_set_scaled_fonts(GtkWidget *widget, gboolean on); | |
| 241 | + LIB3270_EXPORT void v3270_set_session_options(GtkWidget *widget, LIB3270_OPTION options); | |
| 242 | + LIB3270_EXPORT int v3270_set_session_color_type(GtkWidget *widget, unsigned short colortype); | |
| 243 | + LIB3270_EXPORT int v3270_set_host_type(GtkWidget *widget, const char *name); | |
| 244 | + LIB3270_EXPORT const gchar * v3270_set_url(GtkWidget *widget, const gchar *uri); | |
| 245 | + LIB3270_EXPORT const gchar * v3270_get_hostname(GtkWidget *widget); | |
| 246 | + LIB3270_EXPORT const char * v3270_get_luname(GtkWidget *widget); | |
| 247 | + LIB3270_EXPORT GtkWidget * v3270_get_default_widget(void); | |
| 248 | + | |
| 249 | + // Keyboard & Mouse special actions | |
| 250 | + LIB3270_EXPORT gboolean v3270_set_keyboard_action(GtkWidget *widget, const gchar *key_name, GtkAction *action); | |
| 251 | + LIB3270_EXPORT void v3270_set_scroll_action(GtkWidget *widget, GdkScrollDirection direction, GtkAction *action); | |
| 252 | + | |
| 253 | + // SSL & Security | |
| 254 | + LIB3270_EXPORT const gchar * v3270_get_ssl_status_icon(GtkWidget *widget); | |
| 255 | + LIB3270_EXPORT const gchar * v3270_get_ssl_status_text(GtkWidget *widget); | |
| 256 | + LIB3270_EXPORT const gchar * v3270_get_ssl_status_message(GtkWidget *widget); | |
| 257 | + LIB3270_EXPORT void v3270_popup_security_dialog(GtkWidget *widget); | |
| 258 | + | |
| 259 | + | |
| 260 | + // File transfer | |
| 261 | + 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); | |
| 262 | + | |
| 263 | + // Auxiliary widgets | |
| 264 | + LIB3270_EXPORT GtkWidget * v3270_host_select_new(GtkWidget *widget); | |
| 265 | + LIB3270_EXPORT void v3270_select_host(GtkWidget *widget); | |
| 266 | + | |
| 267 | + | |
| 268 | + G_END_DECLS | |
| 269 | + | |
| 270 | +#endif // V3270_H_INCLUDED | ... | ... |
| ... | ... | @@ -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 @@ |
| 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/pw3270/Makefile.in
| ... | ... | @@ -22,245 +22,106 @@ |
| 22 | 22 | # |
| 23 | 23 | # perry.werneck@gmail.com (Alexandre Perry de Souza Werneck) |
| 24 | 24 | # erico.mendonca@gmail.com (Erico Mascarenhas de Mendonça) |
| 25 | -# licinio@bb.com.br (Licínio Luis Branco) | |
| 26 | -# kraucer@bb.com.br (Kraucer Fernandes Mazuco) | |
| 27 | 25 | # |
| 28 | 26 | |
| 27 | +LIBNAME=@DLLPREFIX@pw3270@DLLEXT@ | |
| 28 | + | |
| 29 | +LIB_SOURCES=window.c actions.c fonts.c dialog.c hostdialog.c print.c colors.c | |
| 30 | +APP_SOURCES=main.c | |
| 31 | + | |
| 32 | +#---[ Configuration values ]------------------------------------------------------------- | |
| 33 | + | |
| 29 | 34 | PACKAGE_NAME=@PACKAGE_NAME@ |
| 30 | 35 | PACKAGE_VERSION=@PACKAGE_VERSION@ |
| 31 | - | |
| 32 | -#---[ Paths ]------------------------------------------------------------------ | |
| 36 | +PACKAGE_TARNAME=@PACKAGE_TARNAME@ | |
| 33 | 37 | |
| 34 | 38 | prefix=@prefix@ |
| 35 | 39 | exec_prefix=@exec_prefix@ |
| 36 | 40 | bindir=@bindir@ |
| 41 | +sbindir=@sbindir@ | |
| 37 | 42 | libdir=@libdir@ |
| 38 | -datarootdir=@datarootdir@ | |
| 39 | -localedir=@localedir@ | |
| 40 | -desktopdir=$(datarootdir)/applications | |
| 41 | - | |
| 42 | -EXEEXT=@EXEEXT@ | |
| 43 | -STRIP=@STRIP@ | |
| 44 | -INSTALL=@INSTALL@ | |
| 45 | -INSTALL_PROGRAM=$(INSTALL) -m 755 | |
| 46 | -INSTALL_DATA=$(INSTALL) -m 644 | |
| 47 | -CONVERT=@CONVERT@ | |
| 48 | -WINDRES=@WINDRES@ | |
| 49 | -LN_S=@LN_S@ -f | |
| 50 | - | |
| 51 | -DLL_FLAGS=@DLL_FLAGS@ | |
| 52 | -LDFLAGS=@LDFLAGS@ | |
| 53 | - | |
| 54 | -#---[ Sources ]---------------------------------------------------------------- | |
| 55 | - | |
| 56 | -include common/sources.mak | |
| 57 | -include v3270/sources.mak | |
| 58 | -include uiparser/sources.mak | |
| 59 | - | |
| 60 | -#---[ Targets ]---------------------------------------------------------------- | |
| 61 | - | |
| 62 | -APP_SOURCES= main.c @APP_GUI_SRC@ | |
| 63 | - | |
| 64 | -LIB_SOURCES= window.c actions.c fonts.c dialog.c hostdialog.c print.c colors.c \ | |
| 65 | - tools.c plugin.c trace.c \ | |
| 66 | - $(foreach SRC, $(UI_PARSER_SRC), uiparser/$(SRC)) \ | |
| 67 | - $(foreach SRC, $(V3270_SRC), v3270/$(SRC)) \ | |
| 68 | - $(foreach SRC, $(COMMON_SRC), common/$(SRC)) | |
| 69 | - | |
| 70 | -# ft/filetransfer.c | |
| 71 | -# ft/ftdialog.c ft/ftprogress.c ft/browse.c | |
| 72 | - | |
| 73 | -DEPENDS=*.h common/*.h uiparser/*.h v3270/*.h $(GLOBAL_DEPS) | |
| 74 | - | |
| 75 | -VALGRIND=@VALGRIND@ | |
| 76 | - | |
| 77 | -CFLAGS=@CFLAGS@ @DLL_CFLAGS@ @GTK_CFLAGS@ @GTKMAC_CFLAGS@ -DLIBDIR=\"$(libdir)\" \ | |
| 78 | - -DDATAROOTDIR=\"$(datarootdir)\" -I../../src/include -I./include | |
| 79 | - | |
| 80 | -LIBS=@LIBS@ @GTK_LIBS@ @GTKMAC_LIBS@ @SOCKET_LIBS@ | |
| 81 | - | |
| 82 | -#---[ Rules ]------------------------------------------------------------------ | |
| 83 | - | |
| 84 | -include ../include/rules.mak | |
| 85 | - | |
| 86 | -%.png: \ | |
| 87 | - pixmaps/%.svg | |
| 88 | 43 | |
| 89 | -ifneq ($(CONVERT),no) | |
| 90 | - @echo " GEN `basename $@`" | |
| 91 | - @$(MKDIR) `dirname $@` | |
| 92 | - @$(CONVERT) $< --format=png > $@ | |
| 93 | -endif | |
| 94 | - | |
| 95 | -%@OBJEXT@: \ | |
| 96 | - %.rc | |
| 97 | - | |
| 98 | - @echo " RC `basename $@`" | |
| 99 | - @mkdir -p `dirname $@` | |
| 100 | - @$(WINDRES) --include-dir=. -i $< -o $@ | |
| 44 | +BASEDIR=@BASEDIR@ | |
| 101 | 45 | |
| 102 | -$(OBJDBG)/%@OBJEXT@: \ | |
| 103 | - %.rc | |
| 46 | +OBJDIR=$(BASEDIR)/.obj/pw3270 | |
| 47 | +OBJDBG=$(OBJDIR)/Debug | |
| 48 | +OBJRLS=$(OBJDIR)/Release | |
| 104 | 49 | |
| 105 | - @echo " RC `basename $@`" | |
| 106 | - @mkdir -p `dirname $@` | |
| 107 | - @$(WINDRES) --include-dir=. -i $< -o $@ | |
| 50 | +BINDIR=$(BASEDIR)/.bin | |
| 51 | +BINDBG=$(BINDIR)/Debug | |
| 52 | +BINRLS=$(BINDIR)/Release | |
| 108 | 53 | |
| 109 | -$(OBJRLS)/%@OBJEXT@: \ | |
| 110 | - %.rc | |
| 111 | - | |
| 112 | - @echo " RC `basename $@`" | |
| 113 | - @mkdir -p `dirname $@` | |
| 114 | - @$(WINDRES) --include-dir=. -i $< -o $@ | |
| 54 | +INSTALL=@INSTALL@ | |
| 55 | +INSTALL_DATA=@INSTALL_DATA@ | |
| 56 | +INSTALL_PROGRAM=@INSTALL_PROGRAM@ | |
| 115 | 57 | |
| 116 | -#---[ Release targets ]-------------------------------------------------------- | |
| 58 | +LN_S=@LN_S@ | |
| 117 | 59 | |
| 118 | -Release: \ | |
| 119 | - $(BINDIR)/Release/$(PACKAGE_TARNAME)$(EXEEXT) | |
| 60 | +AMTAR=@AMTAR@ | |
| 61 | +SHELL=@SHELL@ | |
| 62 | +MKDIR=@MKDIR_P@ | |
| 120 | 63 | |
| 121 | -install: \ | |
| 122 | - Release $(PACKAGE_NAME).desktop $(PACKAGE_NAME)-logo.png | |
| 64 | +CC=@CC@ | |
| 65 | +LD=@CC@ | |
| 123 | 66 | |
| 124 | - $(MKDIR) $(DESTDIR)$(bindir) | |
| 125 | - $(INSTALL_PROGRAM) $(BINDIR)/Release/$(PACKAGE_TARNAME)$(EXEEXT) $(DESTDIR)$(bindir) | |
| 67 | +CFLAGS=@CFLAGS@ @LIB3270_CFLAGS@ -Wno-deprecated-declarations @LIBSSL_CFLAGS@ @GTK_CFLAGS@ -I$(BASEDIR)/src/include/pw3270 | |
| 68 | +LIBS=@LIBS@ @LIBSSL_LIBS@ @GTK_LIBS@ @LIB3270_LIBS@ | |
| 69 | +LDFLAGS=@LDFLAGS@ | |
| 126 | 70 | |
| 127 | - $(MKDIR) $(DESTDIR)$(libdir) | |
| 128 | - $(INSTALL_PROGRAM) $(LIBRLS)/@DLLPREFIX@$(PACKAGE_TARNAME)@DLLEXT@.$(PACKAGE_VERSION) $(DESTDIR)$(libdir) | |
| 129 | - $(LN_S) @DLLPREFIX@$(PACKAGE_TARNAME)@DLLEXT@.$(PACKAGE_VERSION) $(DESTDIR)$(libdir)/@DLLPREFIX@$(PACKAGE_TARNAME)@DLLEXT@.@MAJOR_VERSION@ | |
| 130 | - $(LN_S) @DLLPREFIX@$(PACKAGE_TARNAME)@DLLEXT@.@MAJOR_VERSION@ $(DESTDIR)$(libdir)/@DLLPREFIX@$(PACKAGE_TARNAME)@DLLEXT@ | |
| 71 | +#---[ Rules ]---------------------------------------------------------------------------- | |
| 131 | 72 | |
| 132 | - @$(MKDIR) $(DESTDIR)$(datarootdir)/$(PACKAGE_NAME) | |
| 133 | - @$(INSTALL_DATA) $(PACKAGE_NAME).png $(DESTDIR)$(datarootdir)/$(PACKAGE_NAME) | |
| 134 | - @$(INSTALL_DATA) $(PACKAGE_NAME)-logo.png $(DESTDIR)$(datarootdir)/$(PACKAGE_NAME) | |
| 135 | - @$(MKDIR) $(DESTDIR)$(desktopdir) | |
| 136 | - @desktop-file-install --mode 644 \ | |
| 137 | - --dir $(DESTDIR)/$(desktopdir) \ | |
| 138 | - --add-category System \ | |
| 139 | - --add-category TerminalEmulator \ | |
| 140 | - $(PACKAGE_NAME).desktop | |
| 73 | +DEPENDS=$(BASEDIR)/src/include/*.h $(BASEDIR)/src/include/lib3270/*.h $(BASEDIR)/src/include/pw3270/*.h *.h Makefile | |
| 141 | 74 | |
| 142 | -$(BINRLS)/$(PACKAGE_TARNAME)$(EXEEXT): \ | |
| 143 | - $(LIBRLS)/@DLLPREFIX@$(PACKAGE_TARNAME)@DLLEXT@ \ | |
| 144 | - $(foreach SRC, $(basename $(APP_SOURCES)), $(OBJRLS)/$(SRC)$(OBJEXT)) | |
| 75 | +$(OBJDBG)/%.o: \ | |
| 76 | + %.c \ | |
| 77 | + $(DEPENDS) | |
| 145 | 78 | |
| 146 | - @echo " CCLD `basename $@`" | |
| 79 | + @echo $< ... | |
| 147 | 80 | @$(MKDIR) `dirname $@` |
| 148 | - @$(LD) @LDARCH@ @LDAPPFLAGS@ -o $@ $(foreach SRC, $(basename $(APP_SOURCES)), $(OBJRLS)/$(SRC)$(OBJEXT)) $(LIBS) $(LIB3270_LIBS) -l$(PACKAGE_TARNAME) | |
| 149 | - @$(STRIP) $@ | |
| 150 | - | |
| 151 | -$(LIBRLS)/@DLLPREFIX@$(PACKAGE_TARNAME)@DLLEXT@: \ | |
| 152 | - $(LIBRLS)/@DLLPREFIX@$(PACKAGE_TARNAME)@DLLEXT@.$(PACKAGE_VERSION) | |
| 153 | - | |
| 154 | - @rm -f $@ | |
| 155 | - @cd $(LIBRLS) && $(LN_S) @DLLPREFIX@$(PACKAGE_TARNAME)@DLLEXT@.$(PACKAGE_VERSION) @DLLPREFIX@$(PACKAGE_TARNAME)@DLLEXT@ | |
| 81 | + @$(CC) $(CFLAGS) \ | |
| 82 | + @DBG_CFLAGS@ \ | |
| 83 | + -DBUILD_DATE=`date +"0x%Y%m%d"`\ | |
| 84 | + -o $@ -c $< | |
| 156 | 85 | |
| 157 | -$(LIBRLS)/@DLLPREFIX@$(PACKAGE_TARNAME)@DLLEXT@.$(PACKAGE_VERSION): \ | |
| 158 | - $(foreach SRC, $(basename $(LIB_SOURCES)), $(OBJRLS)/$(SRC)$(OBJEXT)) \ | |
| 159 | - .bin/Release/v3270ft.a | |
| 86 | +$(OBJRLS)/%.o: \ | |
| 87 | + %.c \ | |
| 88 | + $(DEPENDS) | |
| 160 | 89 | |
| 161 | - @echo " CCLD `basename $@`" | |
| 90 | + @echo $< ... | |
| 162 | 91 | @$(MKDIR) `dirname $@` |
| 163 | - @$(LD) $(DLL_FLAGS) $(LDFLAGS) @LDSOFLAGS@ @LDLIBFLAGS@ @RLS_LDFLAGS@ -o $@ $^ $(LIBS) $(LIB3270_LIBS) | |
| 164 | - @$(STRIP) $@ | |
| 92 | + @$(CC) $(CFLAGS) \ | |
| 93 | + @RLS_CFLAGS@ \ | |
| 94 | + -DBUILD_DATE=`date +"0x%Y%m%d"` \ | |
| 95 | + -o $@ -c $< | |
| 165 | 96 | |
| 166 | -.bin/Release/v3270ft.a: \ | |
| 167 | - v3270ft/* | |
| 168 | 97 | |
| 169 | - @$(MAKE) BINDIR=../.bin -C v3270ft Release | |
| 98 | +#---[ Release Targets ]------------------------------------------------------------------ | |
| 170 | 99 | |
| 171 | -.bin/pot/v3270ft.pot: \ | |
| 172 | - v3270ft/* | |
| 173 | 100 | |
| 174 | - @$(MAKE) BINDIR=../.bin -C v3270ft pot | |
| 101 | +#---[ Debug Targets ]-------------------------------------------------------------------- | |
| 175 | 102 | |
| 176 | -#---[ Debug targets ]---------------------------------------------------------- | |
| 103 | +Debug: \ | |
| 104 | + $(BINDBG)/$(LIBNAME) | |
| 177 | 105 | |
| 178 | -Debug: $(BINDBG)/$(PACKAGE_TARNAME)$(EXEEXT) | |
| 106 | +$(BINDBG)/$(LIBNAME): \ | |
| 107 | + $(BINDBG)/$(LIBNAME).@PACKAGE_MAJOR_VERSION@ | |
| 179 | 108 | |
| 180 | -$(BINDBG)/$(PACKAGE_TARNAME)$(EXEEXT): \ | |
| 181 | - $(LIBDBG)/@DLLPREFIX@$(PACKAGE_TARNAME)@DLLEXT@ \ | |
| 182 | - $(foreach SRC, $(basename $(APP_SOURCES)), $(OBJDBG)/$(SRC)$(OBJEXT)) | |
| 183 | - | |
| 184 | - @echo " CCLD `basename $@`" | |
| 109 | + @echo $(basename $@) ... | |
| 185 | 110 | @$(MKDIR) `dirname $@` |
| 186 | - @$(LD) @LDARCH@ @DBGRPATH@ -o $@ $(foreach SRC, $(basename $(APP_SOURCES)), $(OBJDBG)/$(SRC)$(OBJEXT)) $(LIBS) $(LIB3270_LIBS) -l$(PACKAGE_TARNAME) | |
| 187 | - | |
| 188 | -.bin/Debug/v3270ft.a: \ | |
| 189 | - v3270ft/* | |
| 111 | + @$(LN_S) -f $(LIBNAME).@PACKAGE_MAJOR_VERSION@ $@ | |
| 190 | 112 | |
| 191 | - @$(MAKE) BINDIR=../.bin -C v3270ft Debug | |
| 113 | +$(BINDBG)/$(LIBNAME).@PACKAGE_MAJOR_VERSION@: \ | |
| 114 | + $(BINDBG)/$(LIBNAME).@PACKAGE_MAJOR_VERSION@.@PACKAGE_MINOR_VERSION@ | |
| 192 | 115 | |
| 116 | + @echo $(basename $@) ... | |
| 117 | + @$(MKDIR) `dirname $@` | |
| 118 | + @$(LN_S) -f $(LIBNAME).@PACKAGE_MAJOR_VERSION@.@PACKAGE_MINOR_VERSION@ $@ | |
| 193 | 119 | |
| 194 | -$(LIBDBG)/@DLLPREFIX@$(PACKAGE_TARNAME)@DLLEXT@: \ | |
| 195 | - $(LIBDBG)/@DLLPREFIX@$(PACKAGE_TARNAME)@DLLEXT@.$(PACKAGE_VERSION) | |
| 196 | - | |
| 197 | - @rm -f $@ | |
| 198 | - @cd $(LIBDBG) && $(LN_S) @DLLPREFIX@$(PACKAGE_TARNAME)@DLLEXT@.$(PACKAGE_VERSION) @DLLPREFIX@$(PACKAGE_TARNAME)@DLLEXT@ | |
| 199 | - | |
| 200 | -$(LIBDBG)/@DLLPREFIX@$(PACKAGE_TARNAME)@DLLEXT@.$(PACKAGE_VERSION): \ | |
| 201 | - $(foreach SRC, $(basename $(LIB_SOURCES)), $(OBJDBG)/$(SRC)$(OBJEXT)) \ | |
| 202 | - .bin/Debug/v3270ft.a | |
| 203 | - | |
| 204 | - @echo " CCLD `basename $@`" | |
| 205 | - @$(MKDIR) `dirname $@` AAA | |
| 206 | - $(LD) $(DLL_FLAGS) $(LDFLAGS) @LDSOFLAGS@ @DBGRPATH@ -o $@ $^ $(LIBS) $(LIB3270_LIBS) | |
| 207 | - | |
| 208 | - | |
| 209 | -run: $(BINDIR)/Debug/$(PACKAGE_TARNAME)$(EXEEXT) | |
| 210 | - @cd "$(ROOTDIR)" ; .bin/Debug/$(PACKAGE_TARNAME)$(EXEEXT) | |
| 211 | - | |
| 212 | -memchk: $(BINDIR)/Debug/$(PACKAGE_TARNAME)$(EXEEXT) | |
| 213 | -ifeq ($(VALGRIND),no) | |
| 214 | - @cd "$(ROOTDIR)" ; .bin/Debug/$(PACKAGE_TARNAME)$(EXEEXT) | |
| 215 | -else | |
| 216 | - @cd "$(ROOTDIR)" ; G_DEBUG=gc-friendly G_SLICE=always-malloc \$(VALGRIND) --leak-check=full --suppressions=valgrind.suppression --gen-suppressions=all .bin/Debug/$(PACKAGE_TARNAME)$(EXEEXT) | |
| 217 | -# @cd "$(ROOTDIR)" ; G_DEBUG=gc-friendly G_SLICE=always-malloc \$(VALGRIND) --leak-check=full --suppressions=valgrind.suppression .bin/Debug/$(PACKAGE_TARNAME)$(EXEEXT) | |
| 218 | -endif | |
| 219 | - | |
| 220 | -#---[ Misc targets ]----------------------------------------------------------- | |
| 221 | - | |
| 222 | -$(PACKAGE_NAME).desktop: Makefile $(PACKAGE_NAME).png | |
| 223 | - @rm -f $@ | |
| 224 | - @echo "[Desktop Entry]" > $@ | |
| 225 | - @echo "Encoding=UTF-8" >> $@ | |
| 226 | - @echo "GenericName=$(PACKAGE_NAME)" >> $@ | |
| 227 | - @echo "Name=3270 Terminal" >> $@ | |
| 228 | - @echo "Name[pt_BR]=Terminal 3270" >> $@ | |
| 229 | - @echo "Comment=IBM 3270 Terminal emulator" >> $@ | |
| 230 | - @echo "Exec=$(bindir)/$(PACKAGE_NAME)@EXEEXT@" >> $@ | |
| 231 | - @echo "Icon=$(datarootdir)/$(PACKAGE_NAME)/$(PACKAGE_NAME).png" >> $@ | |
| 232 | - @echo "Terminal=false" >> $@ | |
| 233 | - @echo "Type=Application" >> $@ | |
| 234 | - @echo "StartupNotify=true" >> $@ | |
| 120 | +$(BINDBG)/$(LIBNAME).@PACKAGE_MAJOR_VERSION@.@PACKAGE_MINOR_VERSION@: \ | |
| 121 | + $(foreach SRC, $(basename $(LIB_SOURCES)), $(OBJDBG)/$(SRC).o) | |
| 235 | 122 | |
| 236 | -v3270/marshal.h: v3270/genmarshal | |
| 123 | + @echo $(basename $@) ... | |
| 237 | 124 | @$(MKDIR) `dirname $@` |
| 238 | - @glib-genmarshal --prefix=v3270 --header v3270/genmarshal > $@ | |
| 125 | + @$(LD) -shared -Wl,-soname,$(LIBNAME) $(LDFLAGS) -L$(BINDBG) -o $@ $^ $(LIBS) | |
| 239 | 126 | |
| 240 | -v3270/marshal.c: v3270/genmarshal v3270/marshal.h | |
| 241 | - @$(MKDIR) `dirname $@` | |
| 242 | - @glib-genmarshal --prefix=v3270 --body v3270/genmarshal > $@ | |
| 243 | - | |
| 244 | -$(BINDIR)/pot/pw3270.pot: \ | |
| 245 | - .bin/pot/v3270ft.pot \ | |
| 246 | - $(foreach SRC, $(basename $(APP_SOURCES) $(LIB_SOURCES)), $(TMPDIR)/pot/$(SRC).pot) | |
| 247 | - | |
| 248 | - @rm -f $@ | |
| 249 | - @mkdir -p `dirname $@` | |
| 250 | - @$(MSGCAT) --sort-output $^ > $@ | |
| 251 | - | |
| 252 | -distclean: clean | |
| 253 | - @rm -f $(PACKAGE_NAME).png | |
| 254 | - @rm -f $(PACKAGE_NAME)-logo.png | |
| 255 | - | |
| 256 | -clean: clean-common | |
| 257 | - @$(MAKE) -C v3270ft clean | |
| 258 | - @rm -f v3270/marshal.c | |
| 259 | - @rm -f v3270/marshal.h | |
| 260 | - @rm -fr uiparser/.bin | |
| 261 | - @rm -fr uiparser/.obj | |
| 262 | - @rm -fr v3270/.bin | |
| 263 | - @rm -fr v3270/.obj | |
| 264 | - @rm -fr debian | |
| 265 | - @rm -f $(PACKAGE_NAME).desktop | |
| 266 | 127 | ... | ... |
src/pw3270/include/v3270.h
| ... | ... | @@ -1,270 +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/config.h> | |
| 36 | - #include <lib3270.h> | |
| 37 | - #include <lib3270/popup.h> | |
| 38 | - #include <lib3270/filetransfer.h> | |
| 39 | - | |
| 40 | - #define V3270_H_INCLUDED 1 | |
| 41 | - | |
| 42 | - G_BEGIN_DECLS | |
| 43 | - | |
| 44 | - #define GTK_TYPE_V3270 (v3270_get_type ()) | |
| 45 | - #define GTK_V3270(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_V3270, v3270)) | |
| 46 | - #define GTK_V3270_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_V3270, v3270Class)) | |
| 47 | - #define GTK_IS_V3270(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_V3270)) | |
| 48 | - #define GTK_IS_V3270_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_V3270)) | |
| 49 | - #define GTK_V3270_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_V3270, v3270Class)) | |
| 50 | - | |
| 51 | -#if ! GTK_CHECK_VERSION(3,0,0) | |
| 52 | - #define GdkRGBA GdkColor | |
| 53 | - #define gdk_cairo_set_source_rgba(cr,cl) gdk_cairo_set_source_color(cr,cl) | |
| 54 | - #define gdk_rgba_parse(a,b) gdk_color_parse(b,a) | |
| 55 | - #define gdk_rgba_to_string(c) gdk_color_to_string(c) | |
| 56 | - #define gdk_rgba_equal(a,b) gdk_color_equal(a,b) | |
| 57 | - #define gdk_rgba_to_string(c) gdk_color_to_string(c) | |
| 58 | - #define gtk_color_selection_set_current_rgba(w,c) gtk_color_selection_set_current_color(w,c) | |
| 59 | - #define gtk_color_selection_get_current_rgba(w,c) gtk_color_selection_get_current_color(w,c) | |
| 60 | - #define gtk_color_selection_set_previous_rgba(w,c) gtk_color_selection_set_previous_color(w,c) | |
| 61 | - #define gtk_color_selection_set_current_rgba(w,c) gtk_color_selection_set_current_color(w,c) | |
| 62 | -#endif // !GTK(3,0,0) | |
| 63 | - | |
| 64 | - | |
| 65 | - typedef struct _v3270 v3270; | |
| 66 | - typedef struct _v3270Class v3270Class; | |
| 67 | - | |
| 68 | - /** | |
| 69 | - * @brief Informações para desenho de fontes com o cairo. | |
| 70 | - * | |
| 71 | - */ | |
| 72 | - typedef struct _v3270FontInfo { | |
| 73 | - | |
| 74 | - guint width; | |
| 75 | - guint height; | |
| 76 | - guint ascent; | |
| 77 | - guint descent; | |
| 78 | - | |
| 79 | - guint spacing; | |
| 80 | - | |
| 81 | - guint left; | |
| 82 | - guint top; | |
| 83 | - | |
| 84 | - gchar * family; | |
| 85 | - cairo_font_weight_t weight; | |
| 86 | - cairo_scaled_font_t * scaled; | |
| 87 | - | |
| 88 | - } v3270FontInfo; | |
| 89 | - | |
| 90 | - enum V3270_COLOR | |
| 91 | - { | |
| 92 | - V3270_COLOR_BACKGROUND, | |
| 93 | - V3270_COLOR_BLUE, | |
| 94 | - V3270_COLOR_RED, | |
| 95 | - V3270_COLOR_PINK, | |
| 96 | - V3270_COLOR_GREEN, | |
| 97 | - V3270_COLOR_TURQUOISE, | |
| 98 | - V3270_COLOR_YELLOW, | |
| 99 | - V3270_COLOR_WHITE, | |
| 100 | - V3270_COLOR_BLACK, | |
| 101 | - V3270_COLOR_DARK_BLUE, | |
| 102 | - V3270_COLOR_ORANGE, | |
| 103 | - V3270_COLOR_PURPLE, | |
| 104 | - V3270_COLOR_DARK_GREEN, | |
| 105 | - V3270_COLOR_DARK_TURQUOISE, | |
| 106 | - V3270_COLOR_MUSTARD, | |
| 107 | - V3270_COLOR_GRAY, | |
| 108 | - | |
| 109 | - V3270_COLOR_FIELD, | |
| 110 | - V3270_COLOR_FIELD_INTENSIFIED, | |
| 111 | - V3270_COLOR_FIELD_PROTECTED, | |
| 112 | - V3270_COLOR_FIELD_PROTECTED_INTENSIFIED, | |
| 113 | - | |
| 114 | - V3270_COLOR_SELECTED_BG, | |
| 115 | - V3270_COLOR_SELECTED_FG, | |
| 116 | - | |
| 117 | - V3270_COLOR_CROSS_HAIR, | |
| 118 | - | |
| 119 | - // Oia Colors (Must be the last block) | |
| 120 | - V3270_COLOR_OIA_BACKGROUND, | |
| 121 | - V3270_COLOR_OIA_FOREGROUND, | |
| 122 | - V3270_COLOR_OIA_SEPARATOR, | |
| 123 | - V3270_COLOR_OIA_STATUS_OK, | |
| 124 | - V3270_COLOR_OIA_STATUS_WARNING, | |
| 125 | - V3270_COLOR_OIA_STATUS_INVALID, | |
| 126 | - | |
| 127 | - V3270_COLOR_COUNT | |
| 128 | - }; | |
| 129 | - | |
| 130 | -// #define V3270_COLOR_OIA_STATUS_WARNING V3270_COLOR_OIA_STATUS_OK | |
| 131 | - | |
| 132 | - typedef enum _v3270_oia_field | |
| 133 | - { | |
| 134 | - V3270_OIA_UNDERA, /**< "A" underlined */ | |
| 135 | - V3270_OIA_CONNECTION, /**< solid box if connected, "?" in a box if not */ | |
| 136 | - V3270_OIA_MESSAGE, /**< message area */ | |
| 137 | - V3270_OIA_SSL, /**< SSL Status */ | |
| 138 | - /**< Meta indication ("M" or blank) */ | |
| 139 | - V3270_OIA_ALT, /**< Alt indication ("A" or blank) */ | |
| 140 | - /**< Compose indication ("C" or blank) */ | |
| 141 | - /**< Compose first character */ | |
| 142 | - V3270_OIA_SHIFT, /**< Shift Status */ | |
| 143 | - V3270_OIA_TYPEAHEAD, /**< Typeahead indication ("T" or blank) */ | |
| 144 | - V3270_OIA_INSERT, /**< Insert mode indication (Special symbol/"I" or blank) */ | |
| 145 | - V3270_OIA_SCRIPT, /**< Script indication ("S" or blank) */ | |
| 146 | - V3270_OIA_LUNAME, /**< LU Name */ | |
| 147 | - V3270_OIA_SPINNER, /**< command timing spinner */ | |
| 148 | - V3270_OIA_TIMER, /**< command timing (mmm:ss, or blank) */ | |
| 149 | - V3270_OIA_CURSOR_POSITION, /**< cursor position (rrr/ccc or blank) */ | |
| 150 | - | |
| 151 | -// V3270_OIA_CAPS, /**< Caps indication ("A" or blank) */ | |
| 152 | - | |
| 153 | -#ifdef HAVE_PRINTER | |
| 154 | - V3270_OIA_PRINTER, /**< Printer indication ("P" or blank) */ | |
| 155 | -#endif // HAVE_PRINTER | |
| 156 | - | |
| 157 | - V3270_OIA_FIELD_COUNT | |
| 158 | - | |
| 159 | - } V3270_OIA_FIELD; | |
| 160 | - | |
| 161 | - #define V3270_OIA_FIELD_INVALID ((V3270_OIA_FIELD) -1) | |
| 162 | - | |
| 163 | - | |
| 164 | - #define V3270_COLOR_OIA_SPINNER V3270_COLOR_OIA_FOREGROUND | |
| 165 | - #define V3270_COLOR_OIA_LUNAME V3270_COLOR_OIA_FOREGROUND | |
| 166 | - #define V3270_COLOR_OIA_INSERT V3270_COLOR_OIA_FOREGROUND | |
| 167 | - | |
| 168 | - #ifndef v3270char | |
| 169 | - #define v3270char void | |
| 170 | - #endif // v3270_char | |
| 171 | - | |
| 172 | - LIB3270_EXPORT GtkWidget * v3270_new(void); | |
| 173 | - LIB3270_EXPORT GType v3270_get_type(void); | |
| 174 | - | |
| 175 | - LIB3270_EXPORT void v3270_reload(GtkWidget * widget); | |
| 176 | - | |
| 177 | - LIB3270_EXPORT void v3270_set_font_family(GtkWidget *widget, const gchar *name); | |
| 178 | - LIB3270_EXPORT const gchar * v3270_get_font_family(GtkWidget *widget); | |
| 179 | - | |
| 180 | - LIB3270_EXPORT H3270 * v3270_get_session(GtkWidget *widget); | |
| 181 | - LIB3270_EXPORT gboolean v3270_is_connected(GtkWidget *widget); | |
| 182 | - | |
| 183 | - LIB3270_EXPORT int v3270_connect(GtkWidget *widget); | |
| 184 | - LIB3270_EXPORT void v3270_disconnect(GtkWidget *widget); | |
| 185 | - | |
| 186 | - LIB3270_EXPORT int v3270_set_host_charset(GtkWidget *widget, const gchar *name); | |
| 187 | - | |
| 188 | - LIB3270_EXPORT void v3270_set_auto_disconnect(GtkWidget *widget, guint minutes); | |
| 189 | - LIB3270_EXPORT guint v3270_get_auto_disconnect(GtkWidget *widget); | |
| 190 | - | |
| 191 | - | |
| 192 | - // Clipboard | |
| 193 | - typedef enum _v3270_select_format | |
| 194 | - { | |
| 195 | - V3270_SELECT_TEXT, | |
| 196 | - V3270_SELECT_TABLE, | |
| 197 | - | |
| 198 | - V3270_SELECT_MAX | |
| 199 | - } V3270_SELECT_FORMAT; | |
| 200 | - | |
| 201 | - LIB3270_EXPORT void v3270_copy(GtkWidget *widget, V3270_SELECT_FORMAT mode, gboolean cut); | |
| 202 | - LIB3270_EXPORT void v3270_copy_append(GtkWidget *widget); | |
| 203 | - LIB3270_EXPORT gchar * v3270_get_selected(GtkWidget *widget, gboolean cut); | |
| 204 | - LIB3270_EXPORT gchar * v3270_get_copy(GtkWidget *widget); | |
| 205 | - LIB3270_EXPORT void v3270_set_copy(GtkWidget *widget, const gchar *text); | |
| 206 | - | |
| 207 | - LIB3270_EXPORT int v3270_run_script(GtkWidget *widget, const gchar *script); | |
| 208 | - | |
| 209 | - LIB3270_EXPORT gchar * v3270_get_text(GtkWidget *widget,int offset, int len); | |
| 210 | - LIB3270_EXPORT gchar * v3270_get_region(GtkWidget *widget, gint start_pos, gint end_pos, gboolean all); | |
| 211 | - | |
| 212 | - LIB3270_EXPORT void v3270_set_string(GtkWidget *widget, const gchar *str); | |
| 213 | - LIB3270_EXPORT void v3270_tab(GtkWidget *widget); | |
| 214 | - LIB3270_EXPORT void v3270_backtab(GtkWidget *widget); | |
| 215 | - | |
| 216 | - // Cut & Paste | |
| 217 | - LIB3270_EXPORT gboolean v3270_get_selection_bounds(GtkWidget *widget, gint *start, gint *end); | |
| 218 | - LIB3270_EXPORT void v3270_unselect(GtkWidget *widget); | |
| 219 | - LIB3270_EXPORT void v3270_select_all(GtkWidget *widget); | |
| 220 | - LIB3270_EXPORT void v3270_paste(GtkWidget *widget); | |
| 221 | - LIB3270_EXPORT void v3270_paste_string(GtkWidget *widget, const gchar *text, const gchar *encoding); | |
| 222 | - LIB3270_EXPORT void v3270_select_region(GtkWidget *widget, gint start, gint end); | |
| 223 | - | |
| 224 | - // Colors | |
| 225 | - LIB3270_EXPORT void v3270_set_colors(GtkWidget *widget, const gchar *); | |
| 226 | - LIB3270_EXPORT void v3270_set_color_table(GdkRGBA *table, const gchar *colors); | |
| 227 | - LIB3270_EXPORT const GdkRGBA * v3270_get_color_table(GtkWidget *widget); | |
| 228 | - LIB3270_EXPORT void v3270_set_mono_color_table(GdkRGBA *table, const gchar *fg, const gchar *bg); | |
| 229 | - LIB3270_EXPORT void v3270_draw_element(cairo_t *cr, unsigned char chr, unsigned short attr, H3270 *session, v3270FontInfo *font, GdkRectangle *rect, GdkRGBA *color); | |
| 230 | - LIB3270_EXPORT void v3270_set_color(GtkWidget *widget, enum V3270_COLOR id, GdkRGBA *color); | |
| 231 | - LIB3270_EXPORT GdkRGBA * v3270_get_color(GtkWidget *widget, enum V3270_COLOR id); | |
| 232 | - | |
| 233 | - // Misc | |
| 234 | - LIB3270_EXPORT GtkIMContext * v3270_get_im_context(GtkWidget *widget); | |
| 235 | - LIB3270_EXPORT gboolean v3270_get_toggle(GtkWidget *widget, LIB3270_TOGGLE ix); | |
| 236 | - LIB3270_EXPORT void v3270_popup_message(GtkWidget *widget, LIB3270_NOTIFY type, const gchar *title, const gchar *message, const gchar *text); | |
| 237 | - LIB3270_EXPORT const gchar * v3270_get_session_name(GtkWidget *widget); | |
| 238 | - LIB3270_EXPORT void v3270_set_session_name(GtkWidget *widget, const gchar *name); | |
| 239 | - LIB3270_EXPORT int v3270_set_script(GtkWidget *widget, const gchar id, gboolean on); | |
| 240 | - LIB3270_EXPORT void v3270_set_scaled_fonts(GtkWidget *widget, gboolean on); | |
| 241 | - LIB3270_EXPORT void v3270_set_session_options(GtkWidget *widget, LIB3270_OPTION options); | |
| 242 | - LIB3270_EXPORT int v3270_set_session_color_type(GtkWidget *widget, unsigned short colortype); | |
| 243 | - LIB3270_EXPORT int v3270_set_host_type(GtkWidget *widget, const char *name); | |
| 244 | - LIB3270_EXPORT const gchar * v3270_set_url(GtkWidget *widget, const gchar *uri); | |
| 245 | - LIB3270_EXPORT const gchar * v3270_get_hostname(GtkWidget *widget); | |
| 246 | - LIB3270_EXPORT const char * v3270_get_luname(GtkWidget *widget); | |
| 247 | - LIB3270_EXPORT GtkWidget * v3270_get_default_widget(void); | |
| 248 | - | |
| 249 | - // Keyboard & Mouse special actions | |
| 250 | - LIB3270_EXPORT gboolean v3270_set_keyboard_action(GtkWidget *widget, const gchar *key_name, GtkAction *action); | |
| 251 | - LIB3270_EXPORT void v3270_set_scroll_action(GtkWidget *widget, GdkScrollDirection direction, GtkAction *action); | |
| 252 | - | |
| 253 | - // SSL & Security | |
| 254 | - LIB3270_EXPORT const gchar * v3270_get_ssl_status_icon(GtkWidget *widget); | |
| 255 | - LIB3270_EXPORT const gchar * v3270_get_ssl_status_text(GtkWidget *widget); | |
| 256 | - LIB3270_EXPORT const gchar * v3270_get_ssl_status_message(GtkWidget *widget); | |
| 257 | - LIB3270_EXPORT void v3270_popup_security_dialog(GtkWidget *widget); | |
| 258 | - | |
| 259 | - | |
| 260 | - // File transfer | |
| 261 | - 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); | |
| 262 | - | |
| 263 | - // Auxiliary widgets | |
| 264 | - LIB3270_EXPORT GtkWidget * v3270_host_select_new(GtkWidget *widget); | |
| 265 | - LIB3270_EXPORT void v3270_select_host(GtkWidget *widget); | |
| 266 | - | |
| 267 | - | |
| 268 | - G_END_DECLS | |
| 269 | - | |
| 270 | -#endif // V3270_H_INCLUDED |
src/pw3270/include/v3270ft.h
| ... | ... | @@ -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/pw3270/include/v3270ftprogress.h
| ... | ... | @@ -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 |