htmlgrid 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +6 -0
- data/LICENCE.txt +515 -0
- data/Manifest.txt +82 -0
- data/README.txt +30 -0
- data/Rakefile +28 -0
- data/ext/htmlgrid/MANIFEST +3 -0
- data/ext/htmlgrid/Makefile +150 -0
- data/ext/htmlgrid/extconf.rb +33 -0
- data/ext/htmlgrid/grid.c +881 -0
- data/ext/htmlgrid/grid.o +0 -0
- data/ext/htmlgrid/htmlgrid.c +30 -0
- data/ext/htmlgrid/htmlgrid.o +0 -0
- data/ext/htmlgrid/htmlgrid.so +0 -0
- data/ext/htmlgrid/include/grid.h +79 -0
- data/ext/htmlgrid/include/htmlgrid.h +33 -0
- data/install.rb +1098 -0
- data/lib/htmlgrid/booleanvalue.rb +41 -0
- data/lib/htmlgrid/button.rb +36 -0
- data/lib/htmlgrid/centeredcomposite.rb +47 -0
- data/lib/htmlgrid/component.rb +232 -0
- data/lib/htmlgrid/composite.rb +350 -0
- data/lib/htmlgrid/datevalue.rb +39 -0
- data/lib/htmlgrid/div.rb +37 -0
- data/lib/htmlgrid/divcomposite.rb +52 -0
- data/lib/htmlgrid/divform.rb +35 -0
- data/lib/htmlgrid/divlist.rb +26 -0
- data/lib/htmlgrid/divtemplate.rb +12 -0
- data/lib/htmlgrid/dojotoolkit.rb +173 -0
- data/lib/htmlgrid/errormessage.rb +70 -0
- data/lib/htmlgrid/form.rb +93 -0
- data/lib/htmlgrid/formlist.rb +42 -0
- data/lib/htmlgrid/grid.rb +286 -0
- data/lib/htmlgrid/image.rb +43 -0
- data/lib/htmlgrid/infomessage.rb +41 -0
- data/lib/htmlgrid/input.rb +59 -0
- data/lib/htmlgrid/inputcheckbox.rb +41 -0
- data/lib/htmlgrid/inputcurrency.rb +36 -0
- data/lib/htmlgrid/inputdate.rb +38 -0
- data/lib/htmlgrid/inputfile.rb +40 -0
- data/lib/htmlgrid/inputradio.rb +37 -0
- data/lib/htmlgrid/inputtext.rb +37 -0
- data/lib/htmlgrid/javascript.rb +22 -0
- data/lib/htmlgrid/label.rb +90 -0
- data/lib/htmlgrid/labeltext.rb +35 -0
- data/lib/htmlgrid/link.rb +54 -0
- data/lib/htmlgrid/list.rb +170 -0
- data/lib/htmlgrid/namedcomponent.rb +52 -0
- data/lib/htmlgrid/pass.rb +38 -0
- data/lib/htmlgrid/passthru.rb +44 -0
- data/lib/htmlgrid/popuplink.rb +66 -0
- data/lib/htmlgrid/reset.rb +36 -0
- data/lib/htmlgrid/richtext.rb +26 -0
- data/lib/htmlgrid/select.rb +53 -0
- data/lib/htmlgrid/span.rb +37 -0
- data/lib/htmlgrid/spancomposite.rb +45 -0
- data/lib/htmlgrid/spanlist.rb +15 -0
- data/lib/htmlgrid/staticinput.rb +40 -0
- data/lib/htmlgrid/submit.rb +36 -0
- data/lib/htmlgrid/template.rb +130 -0
- data/lib/htmlgrid/text.rb +36 -0
- data/lib/htmlgrid/textarea.rb +49 -0
- data/lib/htmlgrid/ulcomposite.rb +49 -0
- data/lib/htmlgrid/ullist.rb +15 -0
- data/lib/htmlgrid/urllink.rb +65 -0
- data/lib/htmlgrid/value.rb +36 -0
- data/test/rebuild.rb +39 -0
- data/test/stub/cgi.rb +44 -0
- data/test/suite.rb +32 -0
- data/test/test_component.rb +138 -0
- data/test/test_composite.rb +201 -0
- data/test/test_datevalue.rb +60 -0
- data/test/test_form.rb +123 -0
- data/test/test_formlist.rb +111 -0
- data/test/test_grid.rb +395 -0
- data/test/test_input.rb +70 -0
- data/test/test_label.rb +116 -0
- data/test/test_list.rb +146 -0
- data/test/test_select.rb +78 -0
- data/test/test_template.rb +97 -0
- data/test/test_text.rb +63 -0
- data/usage-en.txt +112 -0
- data/widget/Tooltip.js +85 -0
- metadata +180 -0
data/ext/htmlgrid/grid.o
ADDED
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
|