From: Ricardo Markiewicz Date: Thu, 16 Oct 2003 03:33:49 +0000 (+0000) Subject: Empiezo a darle forma el directorio del proyecto cliente y genero algo de codigo X-Git-Tag: svn_import~428 X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/commitdiff_plain/1a58ff524a145fed39424b8fb61116f8050a684a?ds=inline Empiezo a darle forma el directorio del proyecto cliente y genero algo de codigo --- diff --git a/Client/AUTHORS b/Client/AUTHORS new file mode 100644 index 0000000..e69de29 diff --git a/Client/ChangeLog b/Client/ChangeLog new file mode 100644 index 0000000..e69de29 diff --git a/Client/Makefile.am b/Client/Makefile.am new file mode 100644 index 0000000..6b75694 --- /dev/null +++ b/Client/Makefile.am @@ -0,0 +1,3 @@ + +SUBDIRS = src + diff --git a/Client/NEWS b/Client/NEWS new file mode 100644 index 0000000..e69de29 diff --git a/Client/README b/Client/README new file mode 100644 index 0000000..e69de29 diff --git a/Client/configure.in b/Client/configure.in new file mode 100644 index 0000000..4e618fe --- /dev/null +++ b/Client/configure.in @@ -0,0 +1,29 @@ +dnl Process this file with autoconf to produce a configure script. + +AC_INIT(configure.in) +AM_INIT_AUTOMAKE(plaqui_client, 0.1) +AM_MAINTAINER_MODE + +AC_ISC_POSIX +AC_PROG_CXX +AM_PROG_CC_STDC +AC_HEADER_STDC + +## pkg_modules="libgnomeui-2.0" +PKG_CHECK_MODULES(PACKAGE, + gtkmm-2.0 >= 2.0.0 \ + libglademm-2.0 >= 2.0.0) + +AC_SUBST(PACKAGE_CFLAGS) +AC_SUBST(PACKAGE_LIBS) + +AC_OUTPUT([ +Makefile +src/Makefile +]) + +echo +echo "Todo listo. Ahora para compilar solo ejecute make" +echo +echo "The PlaQui Developer Team" + diff --git a/Client/src/Makefile.am b/Client/src/Makefile.am new file mode 100644 index 0000000..d4c08fe --- /dev/null +++ b/Client/src/Makefile.am @@ -0,0 +1,14 @@ +## Process this file with automake to produce Makefile.in + +INCLUDES = \ + -DPACKAGE_DATA_DIR=\""$(datadir)"\" \ + -DPACKAGE_LOCALE_DIR=\""$(prefix)/$(DATADIRNAME)/locale"\" \ + @PACKAGE_CFLAGS@ + +bin_PROGRAMS = plaqui-client + +plaqui_client_SOURCES = main.cpp + +plaqui_client_LDADD = @PACKAGE_LIBS@ + + diff --git a/Client/client.glade b/Client/src/client.glade similarity index 100% rename from Client/client.glade rename to Client/src/client.glade diff --git a/Client/src/main.cpp b/Client/src/main.cpp new file mode 100644 index 0000000..c1dfbf5 --- /dev/null +++ b/Client/src/main.cpp @@ -0,0 +1,28 @@ + +#include +#include +#include + +int main (int argc, char **argv) +{ + Gtk::Main client(argc, argv); + + //Load the Glade file and instiate its widgets: + Glib::RefPtr refXml; + try { + refXml = Gnome::Glade::Xml::create("client.glade", "Principal"); + } + catch(const Gnome::Glade::XmlError& ex) { + std::cerr << ex.what() << std::endl; + return 1; + } + + Gtk::Window* pWindow = 0; + refXml->get_widget("Principal", pWindow); + if (pWindow) { + client.run(*pWindow); + } + + return 0; +} +