diff options
author | Pixel <Pixel> | 2001-11-26 23:11:40 +0000 |
---|---|---|
committer | Pixel <Pixel> | 2001-11-26 23:11:40 +0000 |
commit | 3baa9d168c02a8734b95d1cc467601b6aaf2f6e4 (patch) | |
tree | 6c254e9d75dee5a1e305283788fea3d3fff2a445 /src | |
parent | 3aa63fcbddbce8762ad0f3f54d90ad985c0f9c41 (diff) |
Big job here. Many bugs out. Hurray!!
Diffstat (limited to 'src')
-rw-r--r-- | src/Main.cc | 33 | ||||
-rw-r--r-- | src/Makefile.am | 2 | ||||
-rw-r--r-- | src/datas/Makefile.am | 2 | ||||
-rw-r--r-- | src/datas/nobis-logo-small.jpg | bin | 0 -> 187081 bytes |
4 files changed, 12 insertions, 25 deletions
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." -"<center><table border=0><td><tr><img src=\"/image/schemaea.png\"></tr></td></table></center>", +"Voici un test d'affichage d'image:" +"<center><table border=0><td><tr><img src=\"/image/nobis-logo-small.jpg\"></tr></td></table></center>", "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", " -<APPLET CODE = \"/image/HelloSwingApplet.class\" WIDTH = 400 HEIGHT = 50> - +<center> +<APPLET CODE = \"TestApplet.class\" CODEBASE =\"/image\" WIDTH = 400 HEIGHT = 50> </APPLET> +</center> ", "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<String> 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 Binary files differnew file mode 100644 index 0000000..de8f9e8 --- /dev/null +++ b/src/datas/nobis-logo-small.jpg |