htmlgrid 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (83) hide show
  1. data/History.txt +6 -0
  2. data/LICENCE.txt +515 -0
  3. data/Manifest.txt +82 -0
  4. data/README.txt +30 -0
  5. data/Rakefile +28 -0
  6. data/ext/htmlgrid/MANIFEST +3 -0
  7. data/ext/htmlgrid/Makefile +150 -0
  8. data/ext/htmlgrid/extconf.rb +33 -0
  9. data/ext/htmlgrid/grid.c +881 -0
  10. data/ext/htmlgrid/grid.o +0 -0
  11. data/ext/htmlgrid/htmlgrid.c +30 -0
  12. data/ext/htmlgrid/htmlgrid.o +0 -0
  13. data/ext/htmlgrid/htmlgrid.so +0 -0
  14. data/ext/htmlgrid/include/grid.h +79 -0
  15. data/ext/htmlgrid/include/htmlgrid.h +33 -0
  16. data/install.rb +1098 -0
  17. data/lib/htmlgrid/booleanvalue.rb +41 -0
  18. data/lib/htmlgrid/button.rb +36 -0
  19. data/lib/htmlgrid/centeredcomposite.rb +47 -0
  20. data/lib/htmlgrid/component.rb +232 -0
  21. data/lib/htmlgrid/composite.rb +350 -0
  22. data/lib/htmlgrid/datevalue.rb +39 -0
  23. data/lib/htmlgrid/div.rb +37 -0
  24. data/lib/htmlgrid/divcomposite.rb +52 -0
  25. data/lib/htmlgrid/divform.rb +35 -0
  26. data/lib/htmlgrid/divlist.rb +26 -0
  27. data/lib/htmlgrid/divtemplate.rb +12 -0
  28. data/lib/htmlgrid/dojotoolkit.rb +173 -0
  29. data/lib/htmlgrid/errormessage.rb +70 -0
  30. data/lib/htmlgrid/form.rb +93 -0
  31. data/lib/htmlgrid/formlist.rb +42 -0
  32. data/lib/htmlgrid/grid.rb +286 -0
  33. data/lib/htmlgrid/image.rb +43 -0
  34. data/lib/htmlgrid/infomessage.rb +41 -0
  35. data/lib/htmlgrid/input.rb +59 -0
  36. data/lib/htmlgrid/inputcheckbox.rb +41 -0
  37. data/lib/htmlgrid/inputcurrency.rb +36 -0
  38. data/lib/htmlgrid/inputdate.rb +38 -0
  39. data/lib/htmlgrid/inputfile.rb +40 -0
  40. data/lib/htmlgrid/inputradio.rb +37 -0
  41. data/lib/htmlgrid/inputtext.rb +37 -0
  42. data/lib/htmlgrid/javascript.rb +22 -0
  43. data/lib/htmlgrid/label.rb +90 -0
  44. data/lib/htmlgrid/labeltext.rb +35 -0
  45. data/lib/htmlgrid/link.rb +54 -0
  46. data/lib/htmlgrid/list.rb +170 -0
  47. data/lib/htmlgrid/namedcomponent.rb +52 -0
  48. data/lib/htmlgrid/pass.rb +38 -0
  49. data/lib/htmlgrid/passthru.rb +44 -0
  50. data/lib/htmlgrid/popuplink.rb +66 -0
  51. data/lib/htmlgrid/reset.rb +36 -0
  52. data/lib/htmlgrid/richtext.rb +26 -0
  53. data/lib/htmlgrid/select.rb +53 -0
  54. data/lib/htmlgrid/span.rb +37 -0
  55. data/lib/htmlgrid/spancomposite.rb +45 -0
  56. data/lib/htmlgrid/spanlist.rb +15 -0
  57. data/lib/htmlgrid/staticinput.rb +40 -0
  58. data/lib/htmlgrid/submit.rb +36 -0
  59. data/lib/htmlgrid/template.rb +130 -0
  60. data/lib/htmlgrid/text.rb +36 -0
  61. data/lib/htmlgrid/textarea.rb +49 -0
  62. data/lib/htmlgrid/ulcomposite.rb +49 -0
  63. data/lib/htmlgrid/ullist.rb +15 -0
  64. data/lib/htmlgrid/urllink.rb +65 -0
  65. data/lib/htmlgrid/value.rb +36 -0
  66. data/test/rebuild.rb +39 -0
  67. data/test/stub/cgi.rb +44 -0
  68. data/test/suite.rb +32 -0
  69. data/test/test_component.rb +138 -0
  70. data/test/test_composite.rb +201 -0
  71. data/test/test_datevalue.rb +60 -0
  72. data/test/test_form.rb +123 -0
  73. data/test/test_formlist.rb +111 -0
  74. data/test/test_grid.rb +395 -0
  75. data/test/test_input.rb +70 -0
  76. data/test/test_label.rb +116 -0
  77. data/test/test_list.rb +146 -0
  78. data/test/test_select.rb +78 -0
  79. data/test/test_template.rb +97 -0
  80. data/test/test_text.rb +63 -0
  81. data/usage-en.txt +112 -0
  82. data/widget/Tooltip.js +85 -0
  83. metadata +180 -0
Binary file
@@ -0,0 +1,30 @@
1
+ /*
2
+ * HtmlGrid -- HyperTextMarkupLanguage Framework
3
+ * Copyright (C) 2003 ywesee - intellectual capital connected
4
+ * Andreas Schrafl, Benjamin Fay, Hannes Wyss, Markus Huggler
5
+ *
6
+ * This library is free software; you can redistribute it and/or
7
+ * modify it under the terms of the GNU Lesser General Public
8
+ * License as published by the Free Software Foundation; either
9
+ * version 2.1 of the License, or (at your option) any later version.
10
+ *
11
+ * This library is distributed in the hope that it will be useful,
12
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
+ * Lesser General Public License for more details.
15
+ *
16
+ * You should have received a copy of the GNU Lesser General Public
17
+ * License along with this library; if not, write to the Free Software
18
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19
+ *
20
+ * ywesee - intellectual capital connected, Winterthurerstrasse 52, CH-8006 Zuerich, Switzerland
21
+ * htmlgrid@ywesee.com, www.ywesee.com
22
+ */
23
+
24
+ #include "htmlgrid.h"
25
+ #include "grid.h"
26
+
27
+ void Init_htmlgrid() {
28
+ htmlgrid = rb_define_module("HtmlGrid");
29
+ Init_Grid();
30
+ }
Binary file
Binary file
@@ -0,0 +1,79 @@
1
+ /*
2
+ * HtmlGrid -- HyperTextMarkupLanguage Framework
3
+ * Copyright (C) 2003 ywesee - intellectual capital connected
4
+ * Andreas Schrafl, Benjamin Fay, Hannes Wyss, Markus Huggler
5
+ *
6
+ * This library is free software; you can redistribute it and/or
7
+ * modify it under the terms of the GNU Lesser General Public
8
+ * License as published by the Free Software Foundation; either
9
+ * version 2.1 of the License, or (at your option) any later version.
10
+ *
11
+ * This library is distributed in the hope that it will be useful,
12
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
+ * Lesser General Public License for more details.
15
+ *
16
+ * You should have received a copy of the GNU Lesser General Public
17
+ * License along with this library; if not, write to the Free Software
18
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19
+ *
20
+ * ywesee - intellectual capital connected, Winterthurerstrasse 52, CH-8006 Zuerich, Switzerland
21
+ * htmlgrid@ywesee.com, www.ywesee.com
22
+ */
23
+
24
+ #ifndef GRID_H
25
+ #define GRID_H
26
+
27
+ #include "htmlgrid.h"
28
+
29
+ #ifndef RUBY_19
30
+ # define RHASH_TBL(arg) RHASH(arg)->tbl
31
+ #endif
32
+
33
+ VALUE grid;
34
+
35
+ void Init_Grid();
36
+ VALUE grid_new(long argc, VALUE *argv, VALUE klass);
37
+ VALUE grid_initialize(VALUE self, VALUE attr);
38
+ VALUE grid_height(VALUE self);
39
+ VALUE grid_width(VALUE self);
40
+ VALUE grid_to_html(VALUE self, VALUE cgi);
41
+ VALUE grid_add(long argc, VALUE * argv, VALUE self);
42
+ VALUE grid_add_attribute(long argc, VALUE *argv, VALUE self);
43
+ VALUE grid_add_row(VALUE self, VALUE item, VALUE xval, VALUE yval);
44
+ VALUE grid_add_field(VALUE self, VALUE item, VALUE xval, VALUE yval);
45
+ VALUE grid_add_column(VALUE self, VALUE item, VALUE xval, VALUE yval);
46
+ VALUE grid_add_tag(long argc, VALUE *argv, VALUE self);
47
+ VALUE grid_add_style(long argc, VALUE *argv, VALUE self);
48
+ VALUE grid_add_component_style(long argc, VALUE *argv, VALUE self);
49
+ VALUE grid_push(VALUE self, VALUE item);
50
+ VALUE grid_row_set_attributes(long argc, VALUE *argv, VALUE self);
51
+ VALUE grid_set_colspan(long argc, VALUE *argv, VALUE self);
52
+ VALUE grid_set_attribute(VALUE self, VALUE key, VALUE value);
53
+ VALUE grid_set_attributes(VALUE self, VALUE hash);
54
+ VALUE grid_insert_row(VALUE self, VALUE yval, VALUE item);
55
+ VALUE grid_field_attribute(VALUE self, VALUE name, VALUE xval, VALUE yval);
56
+
57
+ typedef struct cGrid cGrid;
58
+ typedef struct cField cField;
59
+
60
+ struct cField {
61
+ VALUE *content;
62
+ long capacity;
63
+ long content_count;
64
+ VALUE attributes;
65
+ char tag[16];
66
+ long colspan;
67
+ };
68
+
69
+ struct cGrid {
70
+ long height;
71
+ long width;
72
+ long capacity;
73
+ long row_capacity;
74
+ VALUE attributes;
75
+ VALUE *row_attributes;
76
+ cField **fields;
77
+ };
78
+
79
+ #endif // HTMLGRID_H
@@ -0,0 +1,33 @@
1
+ /*
2
+ * HtmlGrid -- HyperTextMarkupLanguage Framework
3
+ * Copyright (C) 2003 ywesee - intellectual capital connected
4
+ * Andreas Schrafl, Benjamin Fay, Hannes Wyss, Markus Huggler
5
+ *
6
+ * This library is free software; you can redistribute it and/or
7
+ * modify it under the terms of the GNU Lesser General Public
8
+ * License as published by the Free Software Foundation; either
9
+ * version 2.1 of the License, or (at your option) any later version.
10
+ *
11
+ * This library is distributed in the hope that it will be useful,
12
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
+ * Lesser General Public License for more details.
15
+ *
16
+ * You should have received a copy of the GNU Lesser General Public
17
+ * License along with this library; if not, write to the Free Software
18
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19
+ *
20
+ * ywesee - intellectual capital connected, Winterthurerstrasse 52, CH-8006 Zuerich, Switzerland
21
+ * htmlgrid@ywesee.com, www.ywesee.com
22
+ */
23
+
24
+ #ifndef HTMLGRID_H
25
+ #define HTMLGRID_H
26
+
27
+ #include "ruby.h"
28
+
29
+ #define SVALUE volatile VALUE
30
+
31
+ VALUE htmlgrid;
32
+
33
+ #endif // HTMLGRID_H