]> git.llucax.com Git - z.facultad/75.42/plaqui.git/commitdiff
Empiezo a darle forma el directorio del proyecto cliente y genero algo de codigo
authorRicardo Markiewicz <gazer.arg@gmail.com>
Thu, 16 Oct 2003 03:33:49 +0000 (03:33 +0000)
committerRicardo Markiewicz <gazer.arg@gmail.com>
Thu, 16 Oct 2003 03:33:49 +0000 (03:33 +0000)
Client/AUTHORS [new file with mode: 0644]
Client/ChangeLog [new file with mode: 0644]
Client/Makefile.am [new file with mode: 0644]
Client/NEWS [new file with mode: 0644]
Client/README [new file with mode: 0644]
Client/configure.in [new file with mode: 0644]
Client/src/Makefile.am [new file with mode: 0644]
Client/src/client.glade [moved from Client/client.glade with 100% similarity]
Client/src/main.cpp [new file with mode: 0644]

diff --git a/Client/AUTHORS b/Client/AUTHORS
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/Client/ChangeLog b/Client/ChangeLog
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/Client/Makefile.am b/Client/Makefile.am
new file mode 100644 (file)
index 0000000..6b75694
--- /dev/null
@@ -0,0 +1,3 @@
+
+SUBDIRS = src
+
diff --git a/Client/NEWS b/Client/NEWS
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/Client/README b/Client/README
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/Client/configure.in b/Client/configure.in
new file mode 100644 (file)
index 0000000..4e618fe
--- /dev/null
@@ -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 (file)
index 0000000..d4c08fe
--- /dev/null
@@ -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@
+
+
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 (file)
index 0000000..c1dfbf5
--- /dev/null
@@ -0,0 +1,28 @@
+
+#include <gtkmm.h>
+#include <libglademm.h>
+#include <iostream>
+
+int main (int argc, char **argv)
+{
+       Gtk::Main client(argc, argv);
+
+       //Load the Glade file and instiate its widgets:
+       Glib::RefPtr<Gnome::Glade::Xml> 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;
+}
+