rsence 2.0.0.0.pre
Sign up to get free protection for your applications and to get access to all the features.
- data/INSTALL.rdoc +295 -0
- data/LICENSE +622 -0
- data/README.rdoc +24 -0
- data/VERSION +1 -0
- data/bin/build_client.rb +254 -0
- data/bin/help +6 -0
- data/bin/launch.rb +120 -0
- data/bin/rdoc.sh +2 -0
- data/bin/restart +6 -0
- data/bin/rsence +120 -0
- data/bin/run +6 -0
- data/bin/run.rb +6 -0
- data/bin/save +6 -0
- data/bin/start +6 -0
- data/bin/status +6 -0
- data/bin/stop +6 -0
- data/conf/config.ru +5 -0
- data/conf/default_conf.yaml +337 -0
- data/conf/default_strings.yaml +77 -0
- data/conf/local_conf.yaml +14 -0
- data/conf/unicorn.conf +78 -0
- data/js/comm/comm/autosync/autosync.js +18 -0
- data/js/comm/comm/autosync/js.inc +0 -0
- data/js/comm/comm/comm.js +195 -0
- data/js/comm/comm/js.inc +0 -0
- data/js/comm/comm/queue/js.inc +0 -0
- data/js/comm/comm/queue/queue.js +183 -0
- data/js/comm/comm/session/js.inc +0 -0
- data/js/comm/comm/session/session.js +51 -0
- data/js/comm/comm/sessionwatcher/js.inc +0 -0
- data/js/comm/comm/sessionwatcher/sessionwatcher.js +43 -0
- data/js/comm/comm/transporter/js.inc +0 -0
- data/js/comm/comm/transporter/transporter.js +257 -0
- data/js/comm/comm/urlresponder/js.inc +0 -0
- data/js/comm/comm/urlresponder/urlresponder.js +148 -0
- data/js/comm/comm/values/js.inc +0 -0
- data/js/comm/comm/values/values.js +432 -0
- data/js/comm/jsloader/js.inc +0 -0
- data/js/comm/jsloader/jsloader.js +114 -0
- data/js/comm/reloadapp/js.inc +0 -0
- data/js/comm/reloadapp/reloadapp.js +150 -0
- data/js/comm/reloadapp/themes/default/reloadapp_warning-ie6.gif +0 -0
- data/js/comm/reloadapp/themes/default/reloadapp_warning.png +0 -0
- data/js/comm/sha/js.inc +0 -0
- data/js/comm/sha/sha.js +432 -0
- data/js/comm/values/value/js.inc +0 -0
- data/js/comm/values/value/value.js +182 -0
- data/js/comm/values/valuematrix/js.inc +0 -0
- data/js/comm/values/valuematrix/valuematrix.js +138 -0
- data/js/controls/button/button.js +57 -0
- data/js/controls/button/js.inc +0 -0
- data/js/controls/button/themes/bright/button.css +89 -0
- data/js/controls/button/themes/bright/button.html +7 -0
- data/js/controls/button/themes/bright/button_parts1-ie6.gif +0 -0
- data/js/controls/button/themes/bright/button_parts1.png +0 -0
- data/js/controls/button/themes/default/button.css +89 -0
- data/js/controls/button/themes/default/button.html +7 -0
- data/js/controls/button/themes/default/button_parts1-ie6.gif +0 -0
- data/js/controls/button/themes/default/button_parts1.png +0 -0
- data/js/controls/checkbox/checkbox.js +47 -0
- data/js/controls/checkbox/js.inc +0 -0
- data/js/controls/checkbox/themes/default/checkbox.css +69 -0
- data/js/controls/checkbox/themes/default/checkbox.html +5 -0
- data/js/controls/checkbox/themes/default/checkbox_parts1-ie6.gif +0 -0
- data/js/controls/checkbox/themes/default/checkbox_parts1.png +0 -0
- data/js/controls/datetime/calendar/calendar.js +197 -0
- data/js/controls/datetime/calendar/js.inc +0 -0
- data/js/controls/datetime/calendar/themes/default/calendar.css +108 -0
- data/js/controls/datetime/calendar/themes/default/calendar.html +9 -0
- data/js/controls/datetime/calendar/themes/default/calendar_arrows-ie6.gif +0 -0
- data/js/controls/datetime/calendar/themes/default/calendar_arrows.png +0 -0
- data/js/controls/datetime/datetimevalue/datetimevalue.js +246 -0
- data/js/controls/datetime/datetimevalue/js.inc +0 -0
- data/js/controls/datetime/timesheet/js.inc +0 -0
- data/js/controls/datetime/timesheet/themes/default/timesheet.css +30 -0
- data/js/controls/datetime/timesheet/themes/default/timesheet.html +2 -0
- data/js/controls/datetime/timesheet/timesheet.js +182 -0
- data/js/controls/datetime/timesheet_item/js.inc +0 -0
- data/js/controls/datetime/timesheet_item/themes/default/timesheet_item.css +42 -0
- data/js/controls/datetime/timesheet_item/themes/default/timesheet_item.html +8 -0
- data/js/controls/datetime/timesheet_item/timesheet_item.js +247 -0
- data/js/controls/datetime/timesheet_item_edit/js.inc +0 -0
- data/js/controls/datetime/timesheet_item_edit/timesheet_item_edit.js +274 -0
- data/js/controls/dialogs/alert_sheet/alert_sheet.js +62 -0
- data/js/controls/dialogs/alert_sheet/js.inc +0 -0
- data/js/controls/dialogs/confirm_sheet/confirm_sheet.js +36 -0
- data/js/controls/dialogs/confirm_sheet/js.inc +0 -0
- data/js/controls/dialogs/sheet/js.inc +0 -0
- data/js/controls/dialogs/sheet/sheet.js +83 -0
- data/js/controls/dialogs/sheet/themes/default/sheet.css +64 -0
- data/js/controls/dialogs/sheet/themes/default/sheet.html +14 -0
- data/js/controls/dialogs/sheet/themes/default/sheet_bg-ie6.gif +0 -0
- data/js/controls/dialogs/sheet/themes/default/sheet_bg.png +0 -0
- data/js/controls/dialogs/sheet/themes/default/sheet_dim-ie6.gif +0 -0
- data/js/controls/dialogs/sheet/themes/default/sheet_dim.png +0 -0
- data/js/controls/dialogs/sheet/themes/default/sheet_parts1-ie6.gif +0 -0
- data/js/controls/dialogs/sheet/themes/default/sheet_parts1.png +0 -0
- data/js/controls/dialogs/sheet/themes/default/sheet_parts2-ie6.gif +0 -0
- data/js/controls/dialogs/sheet/themes/default/sheet_parts2.png +0 -0
- data/js/controls/dialogs/sheet/themes/default/sheet_warning-ie6.gif +0 -0
- data/js/controls/dialogs/sheet/themes/default/sheet_warning.png +0 -0
- data/js/controls/imageview/imageview.js +108 -0
- data/js/controls/imageview/js.inc +0 -0
- data/js/controls/imageview/themes/default/blank.gif +0 -0
- data/js/controls/lists/checkboxlist/checkboxlist.js +170 -0
- data/js/controls/lists/checkboxlist/js.inc +0 -0
- data/js/controls/lists/listitems/js.inc +0 -0
- data/js/controls/lists/listitems/listitems.js +65 -0
- data/js/controls/lists/radiobuttonlist/js.inc +0 -0
- data/js/controls/lists/radiobuttonlist/radiobuttonlist.js +126 -0
- data/js/controls/passwordcontrol/js.inc +0 -0
- data/js/controls/passwordcontrol/passwordcontrol.js +22 -0
- data/js/controls/passwordcontrol/themes/default/passwordcontrol.css +0 -0
- data/js/controls/passwordcontrol/themes/default/passwordcontrol.html +18 -0
- data/js/controls/progress/progressbar/js.inc +0 -0
- data/js/controls/progress/progressbar/progressbar.js +36 -0
- data/js/controls/progress/progressbar/themes/default/progressbar.css +16 -0
- data/js/controls/progress/progressbar/themes/default/progressbar.html +2 -0
- data/js/controls/progress/progressindicator/js.inc +0 -0
- data/js/controls/progress/progressindicator/progressindicator.js +43 -0
- data/js/controls/radiobutton/js.inc +0 -0
- data/js/controls/radiobutton/radiobutton.js +41 -0
- data/js/controls/radiobutton/themes/default/radiobutton.css +69 -0
- data/js/controls/radiobutton/themes/default/radiobutton.html +5 -0
- data/js/controls/radiobutton/themes/default/radiobutton_parts1-ie6.gif +0 -0
- data/js/controls/radiobutton/themes/default/radiobutton_parts1.png +0 -0
- data/js/controls/sliders/slider/js.inc +0 -0
- data/js/controls/sliders/slider/slider.js +356 -0
- data/js/controls/sliders/slider/themes/default/hslider_tracks-ie6.gif +0 -0
- data/js/controls/sliders/slider/themes/default/hslider_tracks.png +0 -0
- data/js/controls/sliders/slider/themes/default/slider.css +108 -0
- data/js/controls/sliders/slider/themes/default/slider.html +5 -0
- data/js/controls/sliders/slider/themes/default/slider_thumbs-ie6.gif +0 -0
- data/js/controls/sliders/slider/themes/default/slider_thumbs.png +0 -0
- data/js/controls/sliders/vslider/js.inc +0 -0
- data/js/controls/sliders/vslider/themes/default/vslider.css +52 -0
- data/js/controls/sliders/vslider/themes/default/vslider.html +5 -0
- data/js/controls/sliders/vslider/themes/default/vslider_tracks-ie6.gif +0 -0
- data/js/controls/sliders/vslider/themes/default/vslider_tracks.png +0 -0
- data/js/controls/sliders/vslider/vslider.js +40 -0
- data/js/controls/stepper/js.inc +0 -0
- data/js/controls/stepper/stepper.js +212 -0
- data/js/controls/stepper/themes/default/stepper-ie6.gif +0 -0
- data/js/controls/stepper/themes/default/stepper.css +14 -0
- data/js/controls/stepper/themes/default/stepper.html +2 -0
- data/js/controls/stepper/themes/default/stepper.png +0 -0
- data/js/controls/stringview/js.inc +0 -0
- data/js/controls/stringview/stringview.js +49 -0
- data/js/controls/stringview/themes/default/stringview.css +8 -0
- data/js/controls/stringview/themes/default/stringview.html +1 -0
- data/js/controls/tab/js.inc +0 -0
- data/js/controls/tab/tab.js +276 -0
- data/js/controls/tab/themes/bright/tab.css +76 -0
- data/js/controls/tab/themes/bright/tab.html +6 -0
- data/js/controls/tab/themes/bright/tab_bg_color-ie6.gif +0 -0
- data/js/controls/tab/themes/bright/tab_bg_color.png +0 -0
- data/js/controls/tab/themes/bright/tab_border_pattern-ie6.gif +0 -0
- data/js/controls/tab/themes/bright/tab_border_pattern.png +0 -0
- data/js/controls/tab/themes/bright/tab_parts1-ie6.gif +0 -0
- data/js/controls/tab/themes/bright/tab_parts1.png +0 -0
- data/js/controls/tab/themes/default/tab.css +77 -0
- data/js/controls/tab/themes/default/tab.html +6 -0
- data/js/controls/tab/themes/default/tab_bg_color-ie6.gif +0 -0
- data/js/controls/tab/themes/default/tab_bg_color.png +0 -0
- data/js/controls/tab/themes/default/tab_border_pattern-ie6.gif +0 -0
- data/js/controls/tab/themes/default/tab_border_pattern.png +0 -0
- data/js/controls/tab/themes/default/tab_parts1-ie6.gif +0 -0
- data/js/controls/tab/themes/default/tab_parts1.png +0 -0
- data/js/controls/textarea/js.inc +0 -0
- data/js/controls/textarea/textarea.js +23 -0
- data/js/controls/textarea/themes/default/textarea.css +21 -0
- data/js/controls/textarea/themes/default/textarea.html +18 -0
- data/js/controls/textcontrol/js.inc +0 -0
- data/js/controls/textcontrol/textcontrol.js +372 -0
- data/js/controls/textcontrol/themes/default/textcontrol.css +107 -0
- data/js/controls/textcontrol/themes/default/textcontrol.html +18 -0
- data/js/controls/textcontrol/themes/default/textcontrol_parts1-ie6.gif +0 -0
- data/js/controls/textcontrol/themes/default/textcontrol_parts1.png +0 -0
- data/js/controls/textcontrol/themes/default/textcontrol_parts2-ie6.gif +0 -0
- data/js/controls/textcontrol/themes/default/textcontrol_parts2.png +0 -0
- data/js/controls/textcontrol/themes/default/textcontrol_parts3-ie6.gif +0 -0
- data/js/controls/textcontrol/themes/default/textcontrol_parts3.png +0 -0
- data/js/controls/uploader/js.inc +0 -0
- data/js/controls/uploader/themes/default/upload_progress.gif +0 -0
- data/js/controls/uploader/themes/default/uploader.css +108 -0
- data/js/controls/uploader/themes/default/uploader.html +27 -0
- data/js/controls/uploader/uploader.js +153 -0
- data/js/controls/validatorview/js.inc +0 -0
- data/js/controls/validatorview/themes/default/validator-ie6.gif +0 -0
- data/js/controls/validatorview/themes/default/validator.png +0 -0
- data/js/controls/validatorview/themes/default/validatorview.css +0 -0
- data/js/controls/validatorview/themes/default/validatorview.html +0 -0
- data/js/controls/validatorview/validatorview.js +55 -0
- data/js/controls/window/js.inc +0 -0
- data/js/controls/window/themes/default/window.css +219 -0
- data/js/controls/window/themes/default/window.html +17 -0
- data/js/controls/window/themes/default/window_bg_active-ie6.gif +0 -0
- data/js/controls/window/themes/default/window_bg_active.png +0 -0
- data/js/controls/window/themes/default/window_bg_inactive-ie6.gif +0 -0
- data/js/controls/window/themes/default/window_bg_inactive.png +0 -0
- data/js/controls/window/themes/default/window_buttons-ie6.gif +0 -0
- data/js/controls/window/themes/default/window_buttons.png +0 -0
- data/js/controls/window/themes/default/window_parts1-ie6.gif +0 -0
- data/js/controls/window/themes/default/window_parts1.png +0 -0
- data/js/controls/window/themes/default/window_parts2-ie6.gif +0 -0
- data/js/controls/window/themes/default/window_parts2.png +0 -0
- data/js/controls/window/window.js +284 -0
- data/js/core/class/class.js +317 -0
- data/js/core/class/js.inc +0 -0
- data/js/core/elem/elem.js +1376 -0
- data/js/core/elem/js.inc +0 -0
- data/js/core/event/event.js +1021 -0
- data/js/core/event/js.inc +0 -0
- data/js/core/iefix/ie_css_element.htc +5 -0
- data/js/core/iefix/ie_css_style.htc +5 -0
- data/js/core/iefix/iefix.js +359 -0
- data/js/core/iefix/js.inc +0 -0
- data/js/debugg/debugg.js +43 -0
- data/js/debugg/js.inc +0 -0
- data/js/foundation/application/application.js +209 -0
- data/js/foundation/application/js.inc +0 -0
- data/js/foundation/control/control.js +342 -0
- data/js/foundation/control/controldefaults/controldefaults.js +59 -0
- data/js/foundation/control/controldefaults/js.inc +0 -0
- data/js/foundation/control/dummyvalue/dummyvalue.js +50 -0
- data/js/foundation/control/dummyvalue/js.inc +0 -0
- data/js/foundation/control/dyncontrol/dyncontrol.js +494 -0
- data/js/foundation/control/dyncontrol/js.inc +0 -0
- data/js/foundation/control/dyncontrol/themes/default/dyncontrol.css +0 -0
- data/js/foundation/control/dyncontrol/themes/default/dyncontrol.html +0 -0
- data/js/foundation/control/eventresponder/eventresponder.js +713 -0
- data/js/foundation/control/eventresponder/js.inc +0 -0
- data/js/foundation/control/js.inc +0 -0
- data/js/foundation/control/valueresponder/js.inc +0 -0
- data/js/foundation/control/valueresponder/valueresponder.js +77 -0
- data/js/foundation/geom/point/js.inc +0 -0
- data/js/foundation/geom/point/point.js +202 -0
- data/js/foundation/geom/rect/js.inc +0 -0
- data/js/foundation/geom/rect/rect.js +610 -0
- data/js/foundation/json_renderer/js.inc +0 -0
- data/js/foundation/json_renderer/json_renderer.js +231 -0
- data/js/foundation/system/js.inc +0 -0
- data/js/foundation/system/system.js +369 -0
- data/js/foundation/thememanager/js.inc +0 -0
- data/js/foundation/thememanager/thememanager.js +387 -0
- data/js/foundation/view/js.inc +0 -0
- data/js/foundation/view/markupview/js.inc +0 -0
- data/js/foundation/view/markupview/markupview.js +113 -0
- data/js/foundation/view/morphanimation/js.inc +0 -0
- data/js/foundation/view/morphanimation/morphanimation.js +236 -0
- data/js/foundation/view/view.js +1804 -0
- data/js/foundation/view/viewdefaults/js.inc +0 -0
- data/js/foundation/view/viewdefaults/viewdefaults.js +25 -0
- data/js/views/centerview/centerview.js +45 -0
- data/js/views/centerview/js.inc +0 -0
- data/js/views/inlineview/inlineview.js +14 -0
- data/js/views/inlineview/js.inc +0 -0
- data/js/views/scrollview/js.inc +0 -0
- data/js/views/scrollview/scrollview.js +39 -0
- data/lib/conf/default.rb +220 -0
- data/lib/conf/wizard.rb +303 -0
- data/lib/daemon/daemon.rb +293 -0
- data/lib/http/broker.rb +102 -0
- data/lib/http/rackup.rb +88 -0
- data/lib/http/request.rb +69 -0
- data/lib/http/response.rb +63 -0
- data/lib/plugins/gui_plugin.rb +129 -0
- data/lib/plugins/guiparser.rb +114 -0
- data/lib/plugins/plugin.rb +652 -0
- data/lib/plugins/plugin_plugins.rb +47 -0
- data/lib/plugins/plugin_sqlite_db.rb +72 -0
- data/lib/plugins/plugin_util.rb +96 -0
- data/lib/plugins/pluginmanager.rb +517 -0
- data/lib/plugins/servlet.rb +69 -0
- data/lib/session/msg.rb +291 -0
- data/lib/session/sessionmanager.rb +491 -0
- data/lib/session/sessionstorage.rb +314 -0
- data/lib/transporter/transporter.rb +254 -0
- data/lib/util/gzstring.rb +5 -0
- data/lib/values/hvalue.rb +323 -0
- data/lib/values/valuemanager.rb +152 -0
- data/plugins/client_pkg/client_pkg.rb +186 -0
- data/plugins/client_pkg/info.yaml +25 -0
- data/plugins/client_pkg/lib/client_pkg_build.rb +569 -0
- data/plugins/client_pkg/lib/client_pkg_cache.rb +50 -0
- data/plugins/client_pkg/lib/client_pkg_serve.rb +210 -0
- data/plugins/client_pkg/log/build_log +0 -0
- data/plugins/index_html/img/loading.gif +0 -0
- data/plugins/index_html/img/riassence.gif +0 -0
- data/plugins/index_html/index_html.rb +150 -0
- data/plugins/index_html/tmpl/index.html +22 -0
- data/plugins/index_html/tmpl/startup_index.html +29 -0
- data/plugins/legacy/disabled +0 -0
- data/plugins/legacy/disabled- +0 -0
- data/plugins/legacy/info.yaml +22 -0
- data/plugins/legacy/legacy.rb +15 -0
- data/plugins/main/js/riassence_ns.js +87 -0
- data/plugins/main/main.rb +234 -0
- data/plugins/main/values.yaml +8 -0
- data/plugins/ticketservices/lib/common.rb +300 -0
- data/plugins/ticketservices/lib/favicon.rb +38 -0
- data/plugins/ticketservices/lib/file.rb +58 -0
- data/plugins/ticketservices/lib/img.rb +50 -0
- data/plugins/ticketservices/lib/objblob.rb +66 -0
- data/plugins/ticketservices/lib/rsrc.rb +34 -0
- data/plugins/ticketservices/lib/upload.rb +206 -0
- data/plugins/ticketservices/ticketservices.rb +268 -0
- data/var/db/.git_include +0 -0
- data/var/log/.git_include +0 -0
- data/var/run/.git_include +0 -0
- metadata +390 -0
File without changes
|
File without changes
|
@@ -0,0 +1,65 @@
|
|
1
|
+
/* Riassence Framework
|
2
|
+
* Copyright 2009 Riassence Inc.
|
3
|
+
* http://riassence.com/
|
4
|
+
*
|
5
|
+
* You should have received a copy of the GNU General Public License along
|
6
|
+
* with this software package. If not, contact licensing@riassence.com
|
7
|
+
*/
|
8
|
+
|
9
|
+
|
10
|
+
/*** = Description
|
11
|
+
** HListItems is uses an array-packed list of hash objects as its value.
|
12
|
+
** Each item in the array should have a 'label' and a 'value' key.
|
13
|
+
** The 'label' key of each item is used as the label for the HRadiobutton in the list.
|
14
|
+
** The 'value' key of each item is the value used for the output.
|
15
|
+
** The parent object of a HListItem needs to be a compatible hash, like HRadiobuttonList.
|
16
|
+
***/
|
17
|
+
HListItems = HValueResponder.extend({
|
18
|
+
|
19
|
+
constructor: function( _rect, _parent, _options ){
|
20
|
+
this.parent = _parent;
|
21
|
+
if (_options instanceof Object) {
|
22
|
+
if (_options['valueObj'] !== undefined) {
|
23
|
+
_options.valueObj.bind( this );
|
24
|
+
}
|
25
|
+
else if(_options['value'] !== undefined) {
|
26
|
+
this.value = _options.value;
|
27
|
+
this.refresh();
|
28
|
+
}
|
29
|
+
}
|
30
|
+
},
|
31
|
+
_warningMessage: function(_messageText){
|
32
|
+
console.log("Warning; HListItems: "+_messageText);
|
33
|
+
},
|
34
|
+
|
35
|
+
/** = Description
|
36
|
+
* Iterates through this.value array and calls
|
37
|
+
* the setListItems function of the parent class.
|
38
|
+
*
|
39
|
+
**/
|
40
|
+
refresh: function(){
|
41
|
+
if ( this.value instanceof Array ) {
|
42
|
+
var _listItems = [],
|
43
|
+
_row,
|
44
|
+
_label, _value,
|
45
|
+
i = 0;
|
46
|
+
for ( ; i < this.value.length ; i++ ){
|
47
|
+
_row = this.value[i];
|
48
|
+
if ( _row instanceof Object ) {
|
49
|
+
_label = _row['label'];
|
50
|
+
_value = _row['value'];
|
51
|
+
if ( _label === undefined || _value === undefined ){
|
52
|
+
this._warningMessage( "The value or label of row "+_row+" is undefined (ignored)" );
|
53
|
+
}
|
54
|
+
_listItems.push( [_value, _label] );
|
55
|
+
}
|
56
|
+
else {
|
57
|
+
this._warningMessage( "The row "+_row+" is not an object (ignored)" );
|
58
|
+
}
|
59
|
+
}
|
60
|
+
this.parent.setListItems( _listItems );
|
61
|
+
}
|
62
|
+
}
|
63
|
+
});
|
64
|
+
|
65
|
+
|
File without changes
|
@@ -0,0 +1,126 @@
|
|
1
|
+
/* Riassence Framework
|
2
|
+
* Copyright 2009 Riassence Inc.
|
3
|
+
* http://riassence.com/
|
4
|
+
*
|
5
|
+
* You should have received a copy of the GNU General Public License along
|
6
|
+
* with this software package. If not, contact licensing@riassence.com
|
7
|
+
*/
|
8
|
+
|
9
|
+
/*** = Description
|
10
|
+
** HRadiobuttonList expects the setListItems to be set. See HListItems.
|
11
|
+
** The value of the instance is the selected key in the listItems.
|
12
|
+
***/
|
13
|
+
HRadioButtonList = HControl.extend({
|
14
|
+
drawSubviews: function(){
|
15
|
+
this.setStyle('border','1px solid #999');
|
16
|
+
this.setStyle('overflow-y','auto');
|
17
|
+
},
|
18
|
+
listItems: [],
|
19
|
+
listItemViews: [],
|
20
|
+
|
21
|
+
/** = Description
|
22
|
+
* Setter function for listItems and listItemViews. Destroys
|
23
|
+
* the old HRadiabuttons before creating the new ones based on the
|
24
|
+
* listItems given as an parameter.
|
25
|
+
*
|
26
|
+
* = Parameters
|
27
|
+
* +_listItems+:: listItems is an array-packed array, where each index in the
|
28
|
+
* surrounding array contains a [ value, label ] pair.
|
29
|
+
* The value is mapped to the value of the HRadiobuttonList
|
30
|
+
* instance when its HRadiobutton instance is selected.
|
31
|
+
*
|
32
|
+
**/
|
33
|
+
setListItems: function(_listItems){
|
34
|
+
var _listItem,
|
35
|
+
_value,
|
36
|
+
_label,
|
37
|
+
_radioButton,
|
38
|
+
i = 0;
|
39
|
+
for ( ; i < this.listItemViews.length; i++ ) {
|
40
|
+
try {
|
41
|
+
this.listItemViews[i].die();
|
42
|
+
}
|
43
|
+
catch(e) {
|
44
|
+
console.log('HRadiobuttonList, setListItems item destruction error: ',e);
|
45
|
+
}
|
46
|
+
}
|
47
|
+
this.listItems = _listItems;
|
48
|
+
this.listItemViews = [];
|
49
|
+
for ( i = 0 ; i < _listItems.length; i++ ){
|
50
|
+
_listItem = _listItems[i];
|
51
|
+
_value = _listItem[0];
|
52
|
+
_label = _listItem[1];
|
53
|
+
_radioButton = HRadiobutton.nu(
|
54
|
+
[ 4, (i*23)+4, null, 23, 4, null ],
|
55
|
+
this, {
|
56
|
+
label: _label
|
57
|
+
}
|
58
|
+
);
|
59
|
+
this.listItemViews[i] = _radioButton;
|
60
|
+
}
|
61
|
+
this.refreshValue();
|
62
|
+
},
|
63
|
+
|
64
|
+
/** = Description
|
65
|
+
* Destructor. Sets listItems and listItemViews to null and initiates
|
66
|
+
* destructor for radioButtonIndexValue.
|
67
|
+
*
|
68
|
+
**/
|
69
|
+
die: function(){
|
70
|
+
this.listItems = null;
|
71
|
+
this.listItemViews = null;
|
72
|
+
this.radioButtonIndexValue.die();
|
73
|
+
this.base();
|
74
|
+
},
|
75
|
+
radioButtonIndexValue: false,
|
76
|
+
radioButtonResponder: false,
|
77
|
+
|
78
|
+
/** = Description
|
79
|
+
*
|
80
|
+
*
|
81
|
+
**/
|
82
|
+
RadioButtonIndexResponder: HValueResponder.extend({
|
83
|
+
constructor: function( _parent, _valueObj ){
|
84
|
+
this.parent = _parent;
|
85
|
+
},
|
86
|
+
refresh: function(){
|
87
|
+
var _listItems = this.parent.listItems;
|
88
|
+
if(_listItems[ this.value ] !== undefined){
|
89
|
+
this.parent.setValue( _listItems[ this.value ][0] );
|
90
|
+
}
|
91
|
+
}
|
92
|
+
}),
|
93
|
+
refreshValue: function(){
|
94
|
+
var _value = this.value;
|
95
|
+
if ( this.listItems.length !== 0 && this['valueMatrix'] !== undefined ) {
|
96
|
+
if ( this.radioButtonResponder === false ){
|
97
|
+
this.radioButtonIndexValue = HValue.nu( false, 0 );
|
98
|
+
this.radioButtonIndexValue.bind( this.valueMatrix );
|
99
|
+
this.radioButtonResponder = this.RadioButtonIndexResponder.nu( this );
|
100
|
+
this.radioButtonIndexValue.bind( this.radioButtonResponder );
|
101
|
+
}
|
102
|
+
for ( var i = 0; i < this.listItems.length; i++ ) {
|
103
|
+
if ( this.listItems[i][0] === _value ) {
|
104
|
+
this.radioButtonResponder.setValue( -1 );
|
105
|
+
this.radioButtonResponder.setValue( i );
|
106
|
+
break;
|
107
|
+
}
|
108
|
+
}
|
109
|
+
}
|
110
|
+
}
|
111
|
+
});
|
112
|
+
|
113
|
+
HRadiobuttonList = HRadioButtonList;
|
114
|
+
|
115
|
+
|
116
|
+
|
117
|
+
|
118
|
+
|
119
|
+
|
120
|
+
|
121
|
+
|
122
|
+
|
123
|
+
|
124
|
+
|
125
|
+
|
126
|
+
|
File without changes
|
@@ -0,0 +1,22 @@
|
|
1
|
+
/* Riassence Framework
|
2
|
+
* Copyright 2006 Riassence Inc.
|
3
|
+
* http://riassence.com/
|
4
|
+
*
|
5
|
+
* You should have received a copy of the GNU General Public License along
|
6
|
+
* with this software package. If not, contact licensing@riassence.com
|
7
|
+
*/
|
8
|
+
|
9
|
+
/*** = Description
|
10
|
+
** Just like HTextControl, but the typed characters are not shown.
|
11
|
+
**
|
12
|
+
** = Instance variables
|
13
|
+
** +type+:: '[HPasswordControl]'
|
14
|
+
** +value+:: The string that is currently held by this object.
|
15
|
+
**
|
16
|
+
***/
|
17
|
+
HPasswordControl = HTextControl.extend({
|
18
|
+
|
19
|
+
componentName: 'passwordcontrol'
|
20
|
+
|
21
|
+
});
|
22
|
+
|
File without changes
|
@@ -0,0 +1,18 @@
|
|
1
|
+
<div class="textcontrol_bg"></div>
|
2
|
+
|
3
|
+
<div class="textcontrol_n"></div>
|
4
|
+
<div class="textcontrol_s"></div>
|
5
|
+
<div class="textcontrol_w"></div>
|
6
|
+
<div class="textcontrol_e"></div>
|
7
|
+
|
8
|
+
<div class="textcontrol_nw"></div>
|
9
|
+
<div class="textcontrol_ne"></div>
|
10
|
+
<div class="textcontrol_se"></div>
|
11
|
+
<div class="textcontrol_sw"></div>
|
12
|
+
|
13
|
+
<div id="label#{_ID}" title="#{this.label}" class="textcontrol_input_parent">
|
14
|
+
<input type="password" class="textcontrol_input" #{this.enabled?'':'disabled'}
|
15
|
+
onfocus="HSystem.views[#{this.viewId}].textFocus();"
|
16
|
+
onblur="HSystem.views[#{this.viewId}].textBlur();"
|
17
|
+
id="value#{_ID}" value="#{this.value}" />
|
18
|
+
</div>
|
File without changes
|
@@ -0,0 +1,36 @@
|
|
1
|
+
/* Riassence Framework
|
2
|
+
* Copyright 2006 Riassence Inc.
|
3
|
+
* http://riassence.com/
|
4
|
+
*
|
5
|
+
* You should have received a copy of the GNU General Public License along
|
6
|
+
* with this software package. If not, contact licensing@riassence.com
|
7
|
+
*/
|
8
|
+
|
9
|
+
/*** = Description
|
10
|
+
** HProgressBar is a control unit used to convey the progress of a task,
|
11
|
+
** such as a download or file transfer. In other words, it is a component
|
12
|
+
** indicating a percentage of a total task has completed.
|
13
|
+
**
|
14
|
+
** Use the maxValue to define the point of progress at the end and use value
|
15
|
+
** to define the point of progress.
|
16
|
+
**
|
17
|
+
***/
|
18
|
+
HProgressBar = HControl.extend({
|
19
|
+
componentName: "progressbar",
|
20
|
+
|
21
|
+
/** The amount of pixels the theme insets the width of the progress bar **/
|
22
|
+
themeWidthInset: 2,
|
23
|
+
|
24
|
+
/** Sets the width of the progress bar when the value changes. **/
|
25
|
+
refreshValue: function(){
|
26
|
+
if( this.drawn && this.markupElemIds.value ){
|
27
|
+
var _visibleWidth = this.rect.width-this.themeWidthInset,
|
28
|
+
_progressWidth = Math.round(_visibleWidth * this.value);
|
29
|
+
this.setStyleOfPart('value','width',_progressWidth+'px');
|
30
|
+
}
|
31
|
+
},
|
32
|
+
onIdle: function(){
|
33
|
+
this.base();
|
34
|
+
this.refreshValue();
|
35
|
+
}
|
36
|
+
});
|
@@ -0,0 +1,16 @@
|
|
1
|
+
.progressbar {
|
2
|
+
cursor: wait;
|
3
|
+
position: absolute;
|
4
|
+
left: 0px; top: 0px; right: 0px; bottom: 1px;
|
5
|
+
border: 1px solid #999;
|
6
|
+
background-color: #ccc;
|
7
|
+
}
|
8
|
+
.progressbar .progress {
|
9
|
+
position: absolute;
|
10
|
+
left: 0px; top: 0px;
|
11
|
+
width: 50px; bottom: 0px;
|
12
|
+
background-color: #333;
|
13
|
+
}
|
14
|
+
.disabled .progressbar {
|
15
|
+
opacity: 0.75;
|
16
|
+
}
|
File without changes
|
@@ -0,0 +1,43 @@
|
|
1
|
+
/* Riassence Framework
|
2
|
+
* Copyright 2006 Riassence Inc.
|
3
|
+
* http://riassence.com/
|
4
|
+
*
|
5
|
+
* You should have received a copy of the GNU General Public License along
|
6
|
+
* with this software package. If not, contact licensing@riassence.com
|
7
|
+
*/
|
8
|
+
|
9
|
+
/*** = Description
|
10
|
+
** A progress indicator is the indeterminate progress bar, which is used in
|
11
|
+
** situations where the extent of the task is unknown or the progress of
|
12
|
+
** the task can not be determined in a way that could be expressed as a
|
13
|
+
** percentage. This bar uses motion or some other indicator to show that
|
14
|
+
** progress is taking place, rather than using the size of the filled portion
|
15
|
+
** to show the total amount of progress.
|
16
|
+
***/
|
17
|
+
HProgressIndicator = HView.extend({
|
18
|
+
_indicator: null,
|
19
|
+
_animDirection: 0,
|
20
|
+
drawSubviews: function(){
|
21
|
+
var _this = this;
|
22
|
+
_this.setStyle( 'border', '1px solid #999' );
|
23
|
+
_this.setStyle( 'background-color', '#ccc' );
|
24
|
+
var _height = _this.rect.height,
|
25
|
+
_visibleWidth = ELEM.getVisibleSize( _this.elemId )[0],
|
26
|
+
_width = (_visibleWidth===0)?_this.rect.width:_visibleWidth;
|
27
|
+
_width -= 2;
|
28
|
+
_this['_rect'+0] = HRect.nu( 0,0,_height,_height );
|
29
|
+
_this['_rect'+1] = HRect.nu( _width-_height, 0, _width, _height );
|
30
|
+
_this._indicator = HView.nu( HRect.nu( _this['_rect'+0] ), _this );
|
31
|
+
_this._indicator.setStyle('background-color','#333');
|
32
|
+
_this._indicator.onAnimationEnd = function(){
|
33
|
+
this.parent._toggleDirection();
|
34
|
+
};
|
35
|
+
_this._toggleDirection();
|
36
|
+
},
|
37
|
+
_toggleDirection: function(){
|
38
|
+
this._animDirection = this._animDirection===1?0:1;
|
39
|
+
var _directionRect = HRect.nu( this['_rect'+this._animDirection] );
|
40
|
+
this._indicator.animateTo(_directionRect);
|
41
|
+
}
|
42
|
+
});
|
43
|
+
|
File without changes
|
@@ -0,0 +1,41 @@
|
|
1
|
+
/* Riassence Framework
|
2
|
+
* Copyright 2008 Riassence Inc.
|
3
|
+
* http://riassence.com/
|
4
|
+
*
|
5
|
+
* You should have received a copy of the GNU General Public License along
|
6
|
+
* with this software package. If not, contact licensing@riassence.com
|
7
|
+
*/
|
8
|
+
|
9
|
+
/*** = Description
|
10
|
+
** A HRadioButton is a labeled, two-state button that's displayed in a group along
|
11
|
+
** with other similar buttons. The button itself is a round icon that has a filled
|
12
|
+
** center when the HRadioButton is turned on, and is empty when it's off.
|
13
|
+
** The label appears next to the icon.
|
14
|
+
**
|
15
|
+
** Only one radio button in the group can be on at a time; when the user clicks a
|
16
|
+
** button to turn it on, the button that's currently on is turned off. One button
|
17
|
+
** in the group must be on at all times; the user can turn a button off only by
|
18
|
+
** turning another one on. The button that's on has a value of 1 (H_CONTROL_ON);
|
19
|
+
** the others have a value of 0 (H_CONTROL_OFF).
|
20
|
+
**
|
21
|
+
** The HRadioButton class handles the interaction between radio buttons in the
|
22
|
+
** following way: A direct user action can only turn on a radio button, not turn
|
23
|
+
** it off. However, when the user turns a button on, the HRadioButton object turns
|
24
|
+
** off all sibling HRadioButtons—that is, all HRadioButtons that have the same
|
25
|
+
** parent as the one that was turned on.
|
26
|
+
**
|
27
|
+
** This means that a parent view should have no more than one
|
28
|
+
** group of radio buttons among its children. Each set of radio buttons
|
29
|
+
** should be assigned a separate parent—perhaps an empty HView that
|
30
|
+
** simply contains the radio buttons and does no drawing of its own.
|
31
|
+
***/
|
32
|
+
|
33
|
+
HRadioButton = HCheckbox.extend(
|
34
|
+
HValueMatrixComponentExtension
|
35
|
+
);
|
36
|
+
HRadioButton.prototype.componentName = 'radiobutton';
|
37
|
+
|
38
|
+
|
39
|
+
// Backwards compatibility
|
40
|
+
HRadiobutton = HRadioButton;
|
41
|
+
|
@@ -0,0 +1,69 @@
|
|
1
|
+
.radiobutton_control,
|
2
|
+
.radiobutton_state,
|
3
|
+
.radiobutton_label,
|
4
|
+
.radiobutton_antiselect {
|
5
|
+
position: absolute; height: 24px;
|
6
|
+
}
|
7
|
+
.radiobutton_control {
|
8
|
+
left: 0px; top: 0px; right: 0px;
|
9
|
+
cursor: pointer;
|
10
|
+
}
|
11
|
+
.disabled > .radiobutton_control {
|
12
|
+
cursor: default;
|
13
|
+
}
|
14
|
+
.radiobutton_state {
|
15
|
+
left: 0px; top: 0px; width: 24px;
|
16
|
+
background-repeat: no-repeat;
|
17
|
+
background-position: -24px 0px;
|
18
|
+
background-image: #{this.getCssFilePath('radiobutton_parts1.png')};
|
19
|
+
}
|
20
|
+
|
21
|
+
#{BROWSER_TYPE.ie6?'.enabled .unchecked .radiobutton_state':'.enabled > .unchecked > .radiobutton_state'} {
|
22
|
+
background-position: -24px 0px;
|
23
|
+
}
|
24
|
+
#{BROWSER_TYPE.ie6?'.enabled .unchecked:hover .radiobutton_state':'.enabled > .unchecked:hover > .radiobutton_state'} {
|
25
|
+
background-position: -24px -24px;
|
26
|
+
}
|
27
|
+
#{BROWSER_TYPE.ie6?'.enabled .unchecked:active .radiobutton_state':'.enabled > .unchecked:active > .radiobutton_state'} {
|
28
|
+
background-position: -24px -48px;
|
29
|
+
}
|
30
|
+
|
31
|
+
#{BROWSER_TYPE.ie6?'.enabled .checked .radiobutton_state':'.enabled > .checked > .radiobutton_state'} {
|
32
|
+
background-position: 0px 0px;
|
33
|
+
}
|
34
|
+
#{BROWSER_TYPE.ie6?'.enabled .checked:hover .radiobutton_state':'.enabled > .checked:hover > .radiobutton_state'} {
|
35
|
+
background-position: 0px -24px;
|
36
|
+
}
|
37
|
+
#{BROWSER_TYPE.ie6?'.enabled .checked:active .radiobutton_state':'.enabled > .checked:active > .radiobutton_state'} {
|
38
|
+
background-position: 0px -48px;
|
39
|
+
}
|
40
|
+
|
41
|
+
#{BROWSER_TYPE.ie6?'.disabled .unchecked .radiobutton_state':'.disabled > .unchecked > .radiobutton_state'} {
|
42
|
+
background-position: -24px -72px;
|
43
|
+
}
|
44
|
+
#{BROWSER_TYPE.ie6?'.disabled .checked .radiobutton_state':'.disabled > .checked > .radiobutton_state'} {
|
45
|
+
background-position: 0px -72px;
|
46
|
+
}
|
47
|
+
|
48
|
+
.radiobutton_label {
|
49
|
+
left: 24px; right: 0px; top: 0px;
|
50
|
+
height: 20px; line-height: 21px;
|
51
|
+
text-align: left; vertical-align: middle;
|
52
|
+
font-family: Arial, sans-serif;
|
53
|
+
font-size: 12px;
|
54
|
+
color: #333;
|
55
|
+
}
|
56
|
+
#{BROWSER_TYPE.ie6?'.disabled .radiobutton_control .radiobutton_label':'.disabled > .radiobutton_control > .radiobutton_label'} {
|
57
|
+
color: #999;
|
58
|
+
}
|
59
|
+
#{BROWSER_TYPE.ie6?'.enabled .radiobutton_control:hover .radiobutton_label':'.enabled > .radiobutton_control:hover > .radiobutton_label'} {
|
60
|
+
color: #000;
|
61
|
+
}
|
62
|
+
#{BROWSER_TYPE.ie6?'.enabled .radiobutton_control:active .radiobutton_label':'.enabled > .radiobutton_control:active > .radiobutton_label'} {
|
63
|
+
color: #000;
|
64
|
+
}
|
65
|
+
|
66
|
+
.radiobutton_antiselect {
|
67
|
+
left: 0px; top: 0px; right: 0px;
|
68
|
+
}
|
69
|
+
|