rsence-pre 2.3.0.3 → 2.3.0.4

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.3.0.3.pre
1
+ 2.3.0.4.pre
@@ -331,6 +331,9 @@ HControl = HView.extend({
331
331
  // The CSS class name to set when the component is disabled
332
332
  CSS_DISABLED: "disabled",
333
333
 
334
+ // The CSS class name to set when the component is selected
335
+ CSS_SELECTED: "selected",
336
+
334
337
  // The CSS class name to set when the component is enabled
335
338
  CSS_ENABLED: "enabled",
336
339
 
@@ -780,6 +780,7 @@ HEventResponder = HClass.extend({
780
780
  // console.warn("HControl#deSelect not supported yet.");
781
781
  },
782
782
  setSelected: function(_state){
783
+ this.toggleCSSClass(this.elemId, HControl.CSS_SELECTED, _state);
783
784
  if( _state ){
784
785
  this.selected = true;
785
786
  this.select();
@@ -666,13 +666,15 @@ EventManagerApp = HApplication.extend
666
666
  _searchArea = HPoint.nu( _area.x-_view.parent.pageX(), _area.y-_view.parent.pageY() )
667
667
  else
668
668
  _searchArea = _area
669
- if _view.hasAncestor? and _view.hasAncestor( HView ) and _view.rect[_matchMethod](_searchArea)
670
- if ~_droppable.indexOf( _viewId )
671
- _dropId = _search( _view.viewsZOrder.slice().reverse() )
672
- return _dropId if _dropId
673
- return _viewId
674
- else
675
- return _search( _view.viewsZOrder.slice().reverse() )
669
+ if _view.hasAncestor? and _view.hasAncestor( HView )
670
+ if _view.rect[_matchMethod](_searchArea)
671
+ if ~_droppable.indexOf( _viewId )
672
+ _dropId = _search( _view.viewsZOrder.slice().reverse() )
673
+ return _dropId if _dropId
674
+ return _viewId
675
+ else
676
+ _result = _search( _view.viewsZOrder.slice().reverse() )
677
+ return _result if _result
676
678
  return false
677
679
  _dropId = _search( HSystem.viewsZOrder.slice().reverse() )
678
680
  return [ _dropId ] if _dropId
@@ -831,8 +833,8 @@ EventManagerApp = HApplication.extend
831
833
  _eventOptions = @_listeners.byId[_viewId]
832
834
  if ~_mouseUppable.indexOf( _viewId )
833
835
  _mouseUpIds.push( _viewId )
834
- if ~_draggable.indexOf( _viewId ) and ~_dragged.indexOf( _viewId )
835
- _endDragIds.push( _viewId )
836
+ for _viewId in _dragged
837
+ _endDragIds.push( _viewId )
836
838
  [ x, y ] = @status.crsr
837
839
  @_handleMouseMove(x,y)
838
840
  for _viewId in _mouseUpIds
@@ -64,7 +64,8 @@ HRadioButtonList = HListItemControl.extend({
64
64
  [ 4, (i*23)+4, null, 23, 4, null ],
65
65
  this, {
66
66
  label: _label,
67
- enabled: this.enabled
67
+ enabled: this.enabled,
68
+ value: false
68
69
  }
69
70
  );
70
71
  },
@@ -88,6 +88,7 @@ HMiniMenu = HRadioButtonList.extend({
88
88
  if( this.menuItemView ){
89
89
  this.menuItemView.sendToBack();
90
90
  this.menuItemView.hide();
91
+ this.menuItemView.offsetTo(0-this.menuItemView.rect.width,0-this.menuItemView.rect.height);
91
92
  }
92
93
  },
93
94
 
@@ -217,7 +217,13 @@ HTable = HControl.extend
217
217
  for _col, _colNum in _row
218
218
  [ _colClass, _colOpts ] = @_getClassNameAndValueOfCol(_col, _colNum)
219
219
  _colOpts.value = _col
220
- _rows[_rowNum][_colNum] = _colClass.nu( [0,_top,null,_rowHeight,0,null], @colViews[_colNum], _colOpts )
220
+ _colOpts.tableRow = _rowNum
221
+ _colOpts.tableCol = _colNum
222
+ _rows[_rowNum][_colNum] = _colClass.new(
223
+ [ 0, _top, null, _rowHeight, 0, null ],
224
+ @colViews[_colNum],
225
+ _colOpts
226
+ )
221
227
  _top += _rowHeight
222
228
  for _colView in _colViews
223
229
  _colView.rect.setHeight(_top)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rsence-pre
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.0.3
4
+ version: 2.3.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2012-08-22 00:00:00.000000000 Z
13
+ date: 2012-08-31 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rsence-deps
@@ -389,3 +389,4 @@ signing_key:
389
389
  specification_version: 3
390
390
  summary: Pre-Release 2.3 version of RSence.
391
391
  test_files: []
392
+ has_rdoc: