rsence 2.0.0.3.pre → 2.0.0.4.pre

Sign up to get free protection for your applications and to get access to all the features.
@@ -13,7 +13,7 @@ require 'rubygems'
13
13
  begin
14
14
  require 'RMagick'
15
15
  rescue LoadError
16
- warn "Warning: RMagick not installed, ticketserve images will not be supported."
16
+ warn "Warning: RMagick not installed, ticketserve images will not be supported." if RSence.args[:verbose]
17
17
  end
18
18
 
19
19
  require 'randgen'
@@ -0,0 +1,68 @@
1
+ type: GUITree
2
+ version: 0.6
3
+
4
+ dependencies:
5
+ - default_theme
6
+ - controls
7
+
8
+ class: RSence.GUIApp
9
+ options:
10
+ title: Welcome App
11
+ priority: 20
12
+ subviews:
13
+ - class: HSheet
14
+ rect: [ 0, 0, 600, 500 ]
15
+ bind: :values.close
16
+ extend:
17
+ refreshValue: |
18
+ function(){
19
+ this.base();
20
+ if ( this.value==1 ) {
21
+ this.app.die();
22
+ }
23
+ }
24
+ subviews:
25
+ - class: HScrollView
26
+ rect: [ 0, 0, 550, 300, 0, 42 ]
27
+ options:
28
+ scrollX: false
29
+ scrollY: auto
30
+ style:
31
+ - [ 'background-color', 'white' ]
32
+ - [ 'border-bottom', '1px solid black' ]
33
+ subviews:
34
+ - class: HImageView
35
+ rect: [ 18, 10, 559, 110 ]
36
+ options:
37
+ value: http://rsence.org/rsence_org_logo.gif
38
+ - class: HView
39
+ rect: [ null, 95, 310, 25, 35, null ]
40
+ options:
41
+ html: |
42
+ <i style="font-family:Helvetica,Arial,sans-serif;font-size:16px;">
43
+ <a style="color:#28c;font-weight:bold" href="http://rsence.org/">http://www.rsence.org/</a>
44
+ </i>
45
+ style:
46
+ - - text-align
47
+ - right
48
+ - class: HInlineView
49
+ rect: [ 0, 0, null, null, 0, 0 ]
50
+ options:
51
+ html: :text.welcome
52
+ style:
53
+ - - font-family
54
+ - 'Helvetica, Arial, sans-serif'
55
+ - - font-size
56
+ - 16px
57
+ - - line-height
58
+ - 20px
59
+ - class: HClickValueButton
60
+ rect: [ null, null, 60, 24, 8, 8 ]
61
+ bind: :values.close
62
+ options:
63
+ label: Close
64
+ - class: HCheckbox
65
+ rect: [ null, null, 130, 24, 74, 8 ]
66
+ bind: :values.dont_show_again
67
+ options:
68
+ label: Don't show again
@@ -0,0 +1,23 @@
1
+
2
+ # The human-readable product name of the package
3
+ title: Welcome message
4
+
5
+ # The human-readable version of the package
6
+ version: 2.0.0
7
+
8
+ # A brief description of the package (rdoc formatting supported)
9
+ description: |
10
+ This is a simple welcome message plugin. It's installed in new project
11
+ environments, when the rsence initenv in executed.
12
+ You may safely remove this plugin bundle.
13
+
14
+ # A flag (when false) prevents the plugin from automatically reload when changed.
15
+ reloadable: true
16
+
17
+ # A flag (when false) enables automatic construction
18
+ # of the Plugin and Servlet classes contained.
19
+ inits_self: false
20
+
21
+ # System version requirement.
22
+ sys_version: '>= 2.0.0'
23
+
@@ -0,0 +1,8 @@
1
+ <div style="margin-left:40px;margin-top:140px;margin-right:20px">
2
+ <h1>Congratulations!</h1>
3
+ <p>This message is served to you by RSence running in your new environment.</p>
4
+ <p>The next time you create an RSence environment, use the <code>--blank</code> option of the <code>rsence&nbsp;initenv</code> command to avoid this message.</p>
5
+ <p>Use the <code>rsence help</code> command to learn more about the <code>rsence</code> command-line tool and its various commands and options.</p>
6
+ <p>You may want to install or write some software to run in your new RSence environment next.</p>
7
+ <p>Go to <a href="http://rsence.org/">rsence.org</a> to learn more about RSence.</p>
8
+ </span>
@@ -0,0 +1,6 @@
1
+ :dont_show_again:
2
+ :value: false
3
+ :close:
4
+ :value: 0
5
+ :responders:
6
+ - { :method: close_button }
@@ -0,0 +1,31 @@
1
+ ## Riassence Framework
2
+ # Copyright 2010 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
+ # RSence 'Welcome' plugin
10
+ class WelcomePlugin < GUIPlugin
11
+ def disable_self
12
+ file_write( 'disabled', '' )
13
+ @plugins.unload_bundle( @name )
14
+ end
15
+
16
+ def gui_params( msg )
17
+ params = super
18
+ params[:text] = {
19
+ :welcome => file_read('text/welcome.html')
20
+ }
21
+ return params
22
+ end
23
+
24
+ def close_button( msg, value )
25
+ dont_show_again = get_ses(msg)[:dont_show_again]
26
+ if (value.data == 1) and (dont_show_again.data == true)
27
+ disable_self
28
+ end
29
+ return true
30
+ end
31
+ end
metadata CHANGED
@@ -6,9 +6,9 @@ version: !ruby/object:Gem::Version
6
6
  - 2
7
7
  - 0
8
8
  - 0
9
- - 3
9
+ - 4
10
10
  - pre
11
- version: 2.0.0.3.pre
11
+ version: 2.0.0.4.pre
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: 2010-05-09 00:00:00 +03:00
19
+ date: 2010-05-10 00:00:00 +03:00
20
20
  default_executable: rsence
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency
@@ -27,8 +27,8 @@ dependencies:
27
27
  - - "="
28
28
  - !ruby/object:Gem::Version
29
29
  segments:
30
- - 956
31
- version: "956"
30
+ - 957
31
+ version: "957"
32
32
  type: :runtime
33
33
  version_requirements: *id001
34
34
  description: |
@@ -67,6 +67,11 @@ files:
67
67
  - lib/util/gzstring.rb
68
68
  - lib/values/hvalue.rb
69
69
  - lib/values/valuemanager.rb
70
+ - setup/welcome/gui/welcome.yaml
71
+ - setup/welcome/info.yaml
72
+ - setup/welcome/text/welcome.html
73
+ - setup/welcome/values.yaml
74
+ - setup/welcome/welcome.rb
70
75
  - conf/config.ru
71
76
  - conf/config.yaml
72
77
  - conf/default_conf.yaml
@@ -295,8 +300,6 @@ files:
295
300
  - js/core/iefix/ie_css_style.htc
296
301
  - js/core/iefix/iefix.js
297
302
  - js/core/iefix/js.inc
298
- - js/debugg/debugg.js
299
- - js/debugg/js.inc
300
303
  - js/foundation/application/application.js
301
304
  - js/foundation/application/js.inc
302
305
  - js/foundation/control/control.js
data/js/debugg/debugg.js DELETED
@@ -1,43 +0,0 @@
1
- LOAD(function(){
2
- debugg = HApplication.extend({
3
- constructor: function(){
4
- this.base(20,'Debugg');
5
- this.view = HScrollView.extend({
6
- onIdle: function(){
7
- this.base();
8
- this.bringToFront();
9
- }
10
- }).nu(
11
- [0,720,null,400,0,null],
12
- this
13
- // , {
14
- // // styles: [
15
- // // ['background-color','#ccc']
16
- // // ]
17
- // }
18
- );
19
- this.debugHtml = '';
20
- },
21
- log: function(){
22
- if(arguments.length === 1){
23
- this.debugHtml += '<br>'+this.view.escapeHTML(arguments[0]);
24
- }
25
- else {
26
- this.debugHtml += '<br>'+this.view.escapeHTML(COMM.Values.encode(arguments));
27
- }
28
- this.view.setHTML(this.debugHtml);
29
- },
30
- obj_log: function(_obj){
31
- var _html = '{<br>';
32
- for(var o in _obj){
33
- _html += o+': '+_obj[o]+'<br>';
34
- }
35
- _html += '}';
36
- this.log(_html);
37
- }
38
- }).nu();
39
- if(window['console'] === undefined){
40
- console = debugg;
41
- }
42
- debugg.log('Debugg start.');
43
- });
data/js/debugg/js.inc DELETED
File without changes