Commit e74b82b88f9ea79f50d80f8ccef3263237d90e77
1 parent
6d45259a
Exists in
master
and in
4 other branches
Preparing the new application window widget.
Showing
3 changed files
with
148 additions
and
0 deletions
Show diff stats
| ... | ... | @@ -0,0 +1,57 @@ |
| 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 - 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 | + * | |
| 28 | + */ | |
| 29 | + | |
| 30 | +/** | |
| 31 | + * @brief Declares the pw3270 application window. | |
| 32 | + * | |
| 33 | + */ | |
| 34 | + | |
| 35 | +#ifndef PW3270_WINDOW_H_INCLUDED | |
| 36 | + | |
| 37 | + #define PW3270_WINDOW_H_INCLUDED | |
| 38 | + | |
| 39 | + #include <gtk/gtk.h> | |
| 40 | + | |
| 41 | + G_BEGIN_DECLS | |
| 42 | + | |
| 43 | + #define PW3270_TYPE_APPLICATION_WINDOW (pw3270ApplicationWindow_get_type()) | |
| 44 | + #define PW3270_APPLICATION_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), PW3270_TYPE_APPLICATION_WINDOW, pw3270ApplicationWindow)) | |
| 45 | + #define PW3270_APPLICATION_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PW3270_TYPE_APPLICATION_WINDOW, pw3270ApplicationWindowClass)) | |
| 46 | + #define PW3270_IS_APPLICATION_WINDOW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), PW3270_TYPE_APPLICATION_WINDOW)) | |
| 47 | + #define PW3270_IS_APPLICATION_WINDOW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PW3270_TYPE_APPLICATION_WINDOW)) | |
| 48 | + #define PW3270_APPLICATION_WINDOW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PW3270_TYPE_APPLICATION_WINDOW, pw3270ApplicationWindowClass)) | |
| 49 | + | |
| 50 | + typedef struct _pw3270ApplicationWindow pw3270ApplicationWindow; | |
| 51 | + typedef struct _pw3270ApplicationWindowClass pw3270ApplicationWindowClass; | |
| 52 | + | |
| 53 | + GtkWidget * pw3270_application_window_new(GtkApplication * app); | |
| 54 | + | |
| 55 | + G_END_DECLS | |
| 56 | + | |
| 57 | +#endif // PW3270_WINDOW_H_INCLUDED | ... | ... |
| ... | ... | @@ -0,0 +1,48 @@ |
| 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 - 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 | + * | |
| 28 | + */ | |
| 29 | + | |
| 30 | +#ifndef PRIVATE_H_INCLUDED | |
| 31 | + | |
| 32 | + #define PRIVATE_H_INCLUDED | |
| 33 | + | |
| 34 | + #include <config.h> | |
| 35 | + | |
| 36 | + #ifndef GETTEXT_PACKAGE | |
| 37 | + #define GETTEXT_PACKAGE PACKAGE_NAME | |
| 38 | + #endif | |
| 39 | + | |
| 40 | + #include <libintl.h> | |
| 41 | + #include <glib/gi18n.h> | |
| 42 | + #include <gtk/gtk.h> | |
| 43 | + | |
| 44 | + #include <pw3270/window.h> | |
| 45 | + #include <lib3270/log.h> | |
| 46 | + | |
| 47 | + | |
| 48 | +#endif // PRIVATE_H_INCLUDED | ... | ... |
| ... | ... | @@ -0,0 +1,43 @@ |
| 1 | +<?xml version="1.0" encoding="UTF-8" standalone="yes" ?> | |
| 2 | +<CodeBlocks_project_file> | |
| 3 | + <FileVersion major="1" minor="6" /> | |
| 4 | + <Project> | |
| 5 | + <Option title="PW3270 Application Window" /> | |
| 6 | + <Option pch_mode="2" /> | |
| 7 | + <Option compiler="gcc" /> | |
| 8 | + <Build> | |
| 9 | + <Target title="Debug"> | |
| 10 | + <Option output=".bin/Debug/PW3270 Application Window" prefix_auto="1" extension_auto="1" /> | |
| 11 | + <Option object_output=".obj/Debug/" /> | |
| 12 | + <Option type="1" /> | |
| 13 | + <Option compiler="gcc" /> | |
| 14 | + <Compiler> | |
| 15 | + <Add option="-g" /> | |
| 16 | + </Compiler> | |
| 17 | + </Target> | |
| 18 | + <Target title="Release"> | |
| 19 | + <Option output=".bin/Release/PW3270 Application Window" prefix_auto="1" extension_auto="1" /> | |
| 20 | + <Option object_output=".obj/Release/" /> | |
| 21 | + <Option type="1" /> | |
| 22 | + <Option compiler="gcc" /> | |
| 23 | + <Compiler> | |
| 24 | + <Add option="-O2" /> | |
| 25 | + </Compiler> | |
| 26 | + <Linker> | |
| 27 | + <Add option="-s" /> | |
| 28 | + </Linker> | |
| 29 | + </Target> | |
| 30 | + </Build> | |
| 31 | + <Compiler> | |
| 32 | + <Add option="-Wall" /> | |
| 33 | + </Compiler> | |
| 34 | + <Unit filename="../../include/pw3270/window.h" /> | |
| 35 | + <Unit filename="private.h" /> | |
| 36 | + <Extensions> | |
| 37 | + <code_completion /> | |
| 38 | + <envvars /> | |
| 39 | + <debugger /> | |
| 40 | + <lib_finder disable_auto="1" /> | |
| 41 | + </Extensions> | |
| 42 | + </Project> | |
| 43 | +</CodeBlocks_project_file> | ... | ... |