From 3baa9d168c02a8734b95d1cc467601b6aaf2f6e4 Mon Sep 17 00:00:00 2001 From: Pixel Date: Mon, 26 Nov 2001 23:11:40 +0000 Subject: Big job here. Many bugs out. Hurray!! --- src/Main.cc | 33 ++++++++++----------------------- src/Makefile.am | 2 +- src/datas/Makefile.am | 2 +- src/datas/nobis-logo-small.jpg | Bin 0 -> 187081 bytes 4 files changed, 12 insertions(+), 25 deletions(-) create mode 100644 src/datas/nobis-logo-small.jpg (limited to 'src') diff --git a/src/Main.cc b/src/Main.cc index c9a7147..e624478 100644 --- a/src/Main.cc +++ b/src/Main.cc @@ -14,18 +14,9 @@ #include "Form.h" #include "Confirm.h" #include "Table.h" +#include "InPipe.h" -class InPipe : public Handle { - public: - InPipe(int in, int out) : Handle(in), m_out(out) { }; - virtual ~InPipe() {} - int GetOut(void) { return m_out; } - virtual bool CanWrite(void) { return false; } - virtual bool CanRead(void) { return true; } - virtual String GetName(void) { return "Input pipe"; } - private: - int m_out; -} * in; +InPipe * in; class ad_t : public Action { public: @@ -71,16 +62,17 @@ String Cells[] = {"L1C1", "L1C2", "L1C3", "L2C1", "L2C2", "L2C3", "L3C1", "L3C2" Action * a1 = new Message("Action 1", "Vous avez cliqué sur l'option 1 du menu", "menu1"); Action * a2 = new Table("Petite table", "menu2", Titres, Cells, 3, 4); Action * a3 = new Message("Schéma EA", -"Voici le Schéma EA de cette application." -"
", +"Voici un test d'affichage d'image:" +"
", "schemaea"); Action * a4 = new Form("Test de formulaire...", "menu4", "Rentrez des trucs...", Noms, Invites, Defaults, Lists, Descs, 3); Action * a5 = new Confirm("Confirmation", "Oui ou non?", "menu5", 0, 0); Action * java = new Message("Applet JAVA", " - - +
+ +
", "java"); Action * Liste[] = {a1, a2, a3, a4, a5, ad, java}; @@ -91,20 +83,15 @@ Action * buildmenu(void) { } int main(int argc, char ** argv) { - int p[2], c; + int c; String port = "1500"; list testlist; testlist.push_front("poide"); - if (pipe(p)) { - cerr << "Error creating pipe.\n"; - exit(-1); - } + in = new InPipe(); - close(1); - dup(p[1]); - in = new InPipe(p[0], p[1]); + in->Hook(); String test = "poide\n", r; cout << test; diff --git a/src/Makefile.am b/src/Makefile.am index 3e9c84e..a33fc35 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -8,7 +8,7 @@ INCLUDES = -I. -I.. -I$(includedir) -I../include bin_PROGRAMS = Baltisot -noinst_JAVA = HelloSwingApplet.java +noinst_JAVA = TestApplet.java JAVAROOT = datas diff --git a/src/datas/Makefile.am b/src/datas/Makefile.am index dd78d01..b60543d 100644 --- a/src/datas/Makefile.am +++ b/src/datas/Makefile.am @@ -1 +1 @@ -EXTRA_DIST = grain.png style.css +EXTRA_DIST = grain.png style.css nobis-logo-small.jpg diff --git a/src/datas/nobis-logo-small.jpg b/src/datas/nobis-logo-small.jpg new file mode 100644 index 0000000..de8f9e8 Binary files /dev/null and b/src/datas/nobis-logo-small.jpg differ -- cgit v1.2.3