From 1a58ff524a145fed39424b8fb61116f8050a684a Mon Sep 17 00:00:00 2001 From: Ricardo Markiewicz Date: Thu, 16 Oct 2003 03:33:49 +0000 Subject: [PATCH] Empiezo a darle forma el directorio del proyecto cliente y genero algo de codigo --- Client/AUTHORS | 0 Client/ChangeLog | 0 Client/Makefile.am | 3 +++ Client/NEWS | 0 Client/README | 0 Client/configure.in | 29 +++++++++++++++++++++++++++++ Client/src/Makefile.am | 14 ++++++++++++++ Client/{ => src}/client.glade | 0 Client/src/main.cpp | 28 ++++++++++++++++++++++++++++ 9 files changed, 74 insertions(+) create mode 100644 Client/AUTHORS create mode 100644 Client/ChangeLog create mode 100644 Client/Makefile.am create mode 100644 Client/NEWS create mode 100644 Client/README create mode 100644 Client/configure.in create mode 100644 Client/src/Makefile.am rename Client/{ => src}/client.glade (100%) create mode 100644 Client/src/main.cpp 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; +} + -- 2.43.0