rsence-pre 2.2.0.7 → 2.2.0.8
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/conf/default_conf.yaml +6 -4
- data/js/controls/button/themes/default/button.css +1 -1
- data/js/controls/checkbox/themes/default/checkbox.css +1 -1
- data/js/controls/radiobutton/themes/default/radiobutton.css +1 -1
- data/js/controls/window/themes/default/window.css +1 -1
- data/js/core/elem/elem.js +5 -1
- data/js/datetime/calendar/themes/default/calendar.css +1 -2
- data/js/menus/menuitem/menuitem.js +5 -0
- data/js/menus/menuitem/themes/default/menuitem.css +45 -0
- data/js/menus/menuitem/themes/default/menuitem.html +4 -0
- data/js/menus/minimenu/minimenu.js +6 -4
- data/js/menus/{minimenu/minimenuitem → minimenuitem}/themes/default/minimenuitem.css +2 -2
- data/js/menus/popupmenu/popupmenu.js +14 -0
- data/js/menus/popupmenu/themes/default/popupmenu.css +65 -0
- data/js/menus/popupmenu/themes/default/popupmenu.html +7 -0
- data/js/menus/popupmenu/themes/default/popupmenu.png +0 -0
- data/js/util/reloadapp/reloadapp.js +1 -1
- data/lib/http/broker.rb +1 -0
- metadata +15 -8
- /data/js/menus/{minimenu/minimenuitem → minimenuitem}/minimenuitem.js +0 -0
- /data/js/menus/{minimenu/minimenuitem → minimenuitem}/themes/default/minimenuitem.html +0 -0
- /data/js/menus/{minimenu/minimenuitem → minimenuitem}/themes/default/minimenuitem_checkmark.png +0 -0
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.2.0.
|
1
|
+
2.2.0.8.pre
|
data/conf/default_conf.yaml
CHANGED
@@ -202,7 +202,7 @@
|
|
202
202
|
|
203
203
|
# The core package, loaded by default using a script tag in index_html
|
204
204
|
core:
|
205
|
-
|
205
|
+
|
206
206
|
# RSence.*
|
207
207
|
- rsence_ns
|
208
208
|
|
@@ -212,15 +212,15 @@
|
|
212
212
|
- class # HClass
|
213
213
|
- elem # ELEM
|
214
214
|
- event # Event
|
215
|
-
|
215
|
+
|
216
216
|
# RSence.Util
|
217
217
|
- sha # SHA
|
218
|
-
|
218
|
+
|
219
219
|
# RSence.Foundation
|
220
220
|
- system # HSystem
|
221
221
|
- valueresponder # HValueResponder
|
222
222
|
- application # HApplication
|
223
|
-
|
223
|
+
|
224
224
|
# COMM
|
225
225
|
- comm # COMM
|
226
226
|
- queue # COMM.Queue
|
@@ -305,6 +305,8 @@
|
|
305
305
|
- propertylisteditor # HPropertyEditor
|
306
306
|
- minimenu # HMiniMenu
|
307
307
|
- minimenuitem # HMiniMenuItem
|
308
|
+
- popupmenu # HPopupMenu
|
309
|
+
- menuitem # HMenuItem
|
308
310
|
|
309
311
|
# Graphics related control widgets (components)
|
310
312
|
# These are not complete and there will probably never be any
|
data/js/core/elem/elem.js
CHANGED
@@ -52,7 +52,10 @@ BROWSER_TYPE = {
|
|
52
52
|
firefox2: false,
|
53
53
|
|
54
54
|
/* Mozilla Firefox version 3 */
|
55
|
-
firefox3: false
|
55
|
+
firefox3: false,
|
56
|
+
|
57
|
+
/* Mozilla Firefox version 4 */
|
58
|
+
firefox4: false
|
56
59
|
};
|
57
60
|
|
58
61
|
/** = Description
|
@@ -1239,6 +1242,7 @@ ELEM = {
|
|
1239
1242
|
_browserType.firefox = _ua.indexOf("Firefox") !== -1;
|
1240
1243
|
_browserType.firefox2 = _ua.indexOf("Firefox/2.") !== -1;
|
1241
1244
|
_browserType.firefox3 = _ua.indexOf("Firefox/3.") !== -1;
|
1245
|
+
_browserType.firefox4 = _ua.indexOf("Firefox/4.") !== -1;
|
1242
1246
|
_this._domWaiter();
|
1243
1247
|
},
|
1244
1248
|
|
@@ -12,7 +12,6 @@
|
|
12
12
|
position: absolute;
|
13
13
|
top: 2px; width: 16px; height: 16px;
|
14
14
|
font-size: 0; line-height: 0;
|
15
|
-
line-height: 20px;
|
16
15
|
cursor: pointer;
|
17
16
|
background-image: #{this.getCssFilePath('calendar_arrows.png')};
|
18
17
|
}
|
@@ -55,7 +54,7 @@
|
|
55
54
|
color: #000;
|
56
55
|
font-family: Arial, sans-serif;
|
57
56
|
font-size: 11px;
|
58
|
-
line-height:
|
57
|
+
line-height: 16px;
|
59
58
|
vertical-align: middle;
|
60
59
|
text-align: center;
|
61
60
|
}
|
@@ -0,0 +1,45 @@
|
|
1
|
+
|
2
|
+
.menuitem_control,
|
3
|
+
.menuitem_label,
|
4
|
+
.menuitem_state {
|
5
|
+
position: absolute;
|
6
|
+
top: 0px; height: 24px;
|
7
|
+
}
|
8
|
+
|
9
|
+
.menuitem_control {
|
10
|
+
left: 0px; right: 0px;
|
11
|
+
cursor: pointer;
|
12
|
+
}
|
13
|
+
.menuitem_control:hover {
|
14
|
+
background-color: #fff;
|
15
|
+
}
|
16
|
+
|
17
|
+
.menuitem_state {
|
18
|
+
left: 4px; top: 7px; height: 12px; width: 12px;
|
19
|
+
background-image: #{this.getCssFilePath('minimenuitem_checkmark.png')};
|
20
|
+
}
|
21
|
+
.checked .menuitem_state {
|
22
|
+
visibility: inherit;
|
23
|
+
}
|
24
|
+
.unchecked .menuitem_state {
|
25
|
+
visibility: hidden;
|
26
|
+
}
|
27
|
+
|
28
|
+
.menuitem_label {
|
29
|
+
left: 20px; right: 11px; top: 0px;
|
30
|
+
height: 24px; line-height: 24px;
|
31
|
+
text-align: left;
|
32
|
+
text-overflow: ellipsis;
|
33
|
+
overflow: hidden;
|
34
|
+
white-space:nowrap;
|
35
|
+
vertical-align: middle;
|
36
|
+
font-family: Arial, sans-serif;
|
37
|
+
font-size: 12px;
|
38
|
+
color: #333;
|
39
|
+
}
|
40
|
+
.menuitem_label:hover {
|
41
|
+
color: #000;
|
42
|
+
}
|
43
|
+
.disabled .menuitem_control {
|
44
|
+
opacity: 0.8;
|
45
|
+
}
|
@@ -20,13 +20,15 @@ HMiniMenu = HRadioButtonList.extend({
|
|
20
20
|
draggable: true,
|
21
21
|
click: true
|
22
22
|
},
|
23
|
+
|
24
|
+
subCompenentHeight: 15,
|
23
25
|
|
24
26
|
repositionMenuItems: function(){
|
25
27
|
var
|
26
28
|
x = this.pageX(),
|
27
29
|
y = this.pageY(),
|
28
30
|
w = this.rect.width,
|
29
|
-
h = this.listItems.length*
|
31
|
+
h = this.listItems.length*this.subComponentHeight,
|
30
32
|
i = 0,
|
31
33
|
listItem = null;
|
32
34
|
for(;i<this.listItems.length && listItem === null;i++){
|
@@ -34,9 +36,9 @@ HMiniMenu = HRadioButtonList.extend({
|
|
34
36
|
listItem = this.listItems[i];
|
35
37
|
}
|
36
38
|
}
|
37
|
-
y -= (i-1)*
|
39
|
+
y -= (i-1)*this.subComponentHeight;
|
38
40
|
if(y < 0){
|
39
|
-
y = y%
|
41
|
+
y = y%this.subComponentHeight;
|
40
42
|
}
|
41
43
|
if(this.options['menuItemGeom']){
|
42
44
|
if(this.options.menuItemGeom.width){
|
@@ -128,7 +130,7 @@ HMiniMenu = HRadioButtonList.extend({
|
|
128
130
|
|
129
131
|
createComponent: function( i, _label ){
|
130
132
|
return HMiniMenuItem.nu(
|
131
|
-
[ 0, (i*
|
133
|
+
[ 0, (i*this.subComponentHeight), null, this.subComponentHeight, 0, null ],
|
132
134
|
this.menuItemView, {
|
133
135
|
label: _label
|
134
136
|
}
|
@@ -3,7 +3,7 @@
|
|
3
3
|
.minimenuitem_label,
|
4
4
|
.minimenuitem_state {
|
5
5
|
position: absolute;
|
6
|
-
top: 0px; height:
|
6
|
+
top: 0px; height: 16px;
|
7
7
|
}
|
8
8
|
|
9
9
|
.minimenuitem_control {
|
@@ -27,7 +27,7 @@
|
|
27
27
|
|
28
28
|
.minimenuitem_label {
|
29
29
|
left: 14px; right: 11px; top: 0px;
|
30
|
-
height: 15px; line-height:
|
30
|
+
height: 15px; line-height: 14px;
|
31
31
|
text-align: left;
|
32
32
|
text-overflow: ellipsis;
|
33
33
|
overflow: hidden;
|
@@ -0,0 +1,14 @@
|
|
1
|
+
var
|
2
|
+
HPopupMenu = HMiniMenu.extend({
|
3
|
+
componentName: 'popupmenu',
|
4
|
+
subComponentHeight: 24,
|
5
|
+
createComponent: function( i, _label ){
|
6
|
+
return HMenuItem.nu(
|
7
|
+
[ 0, (i*24), null, 24, 0, null ],
|
8
|
+
this.menuItemView, {
|
9
|
+
label: _label
|
10
|
+
}
|
11
|
+
);
|
12
|
+
}
|
13
|
+
});
|
14
|
+
var HPopUpMenu = HPopupMenu;
|
@@ -0,0 +1,65 @@
|
|
1
|
+
|
2
|
+
.popupmenu_control,
|
3
|
+
.popupmenu_edge_left,
|
4
|
+
.popupmenu_center,
|
5
|
+
.popupmenu_edge_right,
|
6
|
+
.popupmenu_label,
|
7
|
+
.popupmenu_antiselect {
|
8
|
+
position: absolute;
|
9
|
+
top: 0px; height: 23px;
|
10
|
+
}
|
11
|
+
|
12
|
+
.popupmenu_control {
|
13
|
+
left: 0px; right: 0px;
|
14
|
+
cursor: pointer;
|
15
|
+
}
|
16
|
+
.disabled .popupmenu_control {
|
17
|
+
cursor: default;
|
18
|
+
}
|
19
|
+
|
20
|
+
.popupmenu_edge_left,
|
21
|
+
.popupmenu_center,
|
22
|
+
.popupmenu_edge_right {
|
23
|
+
background-image: #{this.getCssFilePath('popupmenu.png')};
|
24
|
+
}
|
25
|
+
|
26
|
+
.popupmenu_edge_left {
|
27
|
+
left: 0px; width: 9px;
|
28
|
+
background-position: 0px 0px;
|
29
|
+
background-repeat: no-repeat;
|
30
|
+
}
|
31
|
+
|
32
|
+
.popupmenu_edge_right {
|
33
|
+
right: 0px; width: 17px;
|
34
|
+
background-position: -9px 0px;
|
35
|
+
background-repeat: no-repeat;
|
36
|
+
}
|
37
|
+
|
38
|
+
.popupmenu_center {
|
39
|
+
left: 9px; right: 17px;
|
40
|
+
background-position: 0px -23px;
|
41
|
+
background-repeat: repeat-x;
|
42
|
+
}
|
43
|
+
|
44
|
+
.popupmenu_label {
|
45
|
+
left: 13px; right: 11px; top: 0px;
|
46
|
+
height: 22px; line-height: 22px;
|
47
|
+
text-align: left;
|
48
|
+
text-overflow: ellipsis;
|
49
|
+
overflow: hidden;
|
50
|
+
white-space:nowrap;
|
51
|
+
vertical-align: middle;
|
52
|
+
font-family: Arial, sans-serif;
|
53
|
+
font-size: 12px;
|
54
|
+
color: #333;
|
55
|
+
}
|
56
|
+
.popupmenu_control:hover > .popupmenu_label {
|
57
|
+
color: #000;
|
58
|
+
}
|
59
|
+
.disabled .popupmenu_control {
|
60
|
+
opacity: 0.8;
|
61
|
+
}
|
62
|
+
|
63
|
+
.popupmenu_antiselect {
|
64
|
+
left: 0px; right: 0px;
|
65
|
+
}
|
@@ -0,0 +1,7 @@
|
|
1
|
+
<div class="popupmenu_control" id="control#{_ID}">
|
2
|
+
<div class="popupmenu_edge_left"></div>
|
3
|
+
<div class="popupmenu_center"></div>
|
4
|
+
<div class="popupmenu_edge_right"></div>
|
5
|
+
<div class="popupmenu_label" id="label#{_ID}">#{this.label}</div>
|
6
|
+
<div class="popupmenu_antiselect"></div>
|
7
|
+
</div>
|
Binary file
|
@@ -101,7 +101,7 @@ ReloadApp = HApplication.extend({
|
|
101
101
|
ELEM.setCSS(_alertIcon,'position:absolute;left:8px;top:8px;width:48px;height:48px;background-image:url('+_iconUrl+');');
|
102
102
|
ELEM.setCSS(_alertTitle,'position:absolute;left:64px;top:8px;width:300px;height:24px;line-height:24px;vertical-align:middle;text-align:center;font-weight:bold;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;');
|
103
103
|
ELEM.setHTML(_alertTitle,_this.app._title);
|
104
|
-
ELEM.setCSS(_alertMessage,'position:absolute;left:64px;top:42px;width:332px;height:186px;border-bottom:1px dotted #999;line-height:
|
104
|
+
ELEM.setCSS(_alertMessage,'position:absolute;left:64px;top:42px;width:332px;height:186px;border-bottom:1px dotted #999;line-height:18px;vertical-align:middle;overflow:auto;');
|
105
105
|
ELEM.setHTML(_alertMessage,_this.app._message);
|
106
106
|
HButton.extend({
|
107
107
|
click: this.app.reload
|
data/lib/http/broker.rb
CHANGED
@@ -104,6 +104,7 @@ class Broker
|
|
104
104
|
|
105
105
|
# Selects the handler for Rack
|
106
106
|
handler = {
|
107
|
+
'mongrel2' => lambda { Rack::Handler::Mongrel2 },
|
107
108
|
'webrick' => lambda { Rack::Handler::WEBrick },
|
108
109
|
'ebb' => lambda { Rack::Handler::Ebb },
|
109
110
|
'thin' => lambda { Rack::Handler::Thin },
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rsence-pre
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 111
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 2
|
8
8
|
- 2
|
9
9
|
- 0
|
10
|
-
-
|
11
|
-
version: 2.2.0.
|
10
|
+
- 8
|
11
|
+
version: 2.2.0.8
|
12
12
|
platform: ruby
|
13
13
|
authors:
|
14
14
|
- Riassence Inc.
|
@@ -16,7 +16,7 @@ autorequire:
|
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
18
|
|
19
|
-
date: 2011-
|
19
|
+
date: 2011-06-10 00:00:00 Z
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
22
22
|
name: rsence-deps
|
@@ -288,14 +288,21 @@ files:
|
|
288
288
|
- js/lists/propertylist/propertylist.js
|
289
289
|
- js/lists/propertylist/propertylisteditor/propertylisteditor.js
|
290
290
|
- js/lists/radiobuttonlist/radiobuttonlist.js
|
291
|
+
- js/menus/menuitem/menuitem.js
|
292
|
+
- js/menus/menuitem/themes/default/menuitem.css
|
293
|
+
- js/menus/menuitem/themes/default/menuitem.html
|
291
294
|
- js/menus/minimenu/minimenu.js
|
292
|
-
- js/menus/minimenu/minimenuitem/minimenuitem.js
|
293
|
-
- js/menus/minimenu/minimenuitem/themes/default/minimenuitem.css
|
294
|
-
- js/menus/minimenu/minimenuitem/themes/default/minimenuitem.html
|
295
|
-
- js/menus/minimenu/minimenuitem/themes/default/minimenuitem_checkmark.png
|
296
295
|
- js/menus/minimenu/themes/default/minimenu.css
|
297
296
|
- js/menus/minimenu/themes/default/minimenu.html
|
298
297
|
- js/menus/minimenu/themes/default/minimenu.png
|
298
|
+
- js/menus/minimenuitem/minimenuitem.js
|
299
|
+
- js/menus/minimenuitem/themes/default/minimenuitem.css
|
300
|
+
- js/menus/minimenuitem/themes/default/minimenuitem.html
|
301
|
+
- js/menus/minimenuitem/themes/default/minimenuitem_checkmark.png
|
302
|
+
- js/menus/popupmenu/popupmenu.js
|
303
|
+
- js/menus/popupmenu/themes/default/popupmenu.css
|
304
|
+
- js/menus/popupmenu/themes/default/popupmenu.html
|
305
|
+
- js/menus/popupmenu/themes/default/popupmenu.png
|
299
306
|
- js/util/reloadapp/reloadapp.js
|
300
307
|
- js/util/reloadapp/themes/default/reloadapp_warning-ie6.gif
|
301
308
|
- js/util/reloadapp/themes/default/reloadapp_warning.png
|
File without changes
|
File without changes
|
/data/js/menus/{minimenu/minimenuitem → minimenuitem}/themes/default/minimenuitem_checkmark.png
RENAMED
File without changes
|