1 // ========================================================================== 2 // Papercube.LeftView 3 // 4 // License: PaperCube is open source software released under 5 // the MIT License (see license.js) 6 // ========================================================================== 7 8 require('core'); 9 10 /** @class 11 12 This is the left view that contains the search form and search results. 13 14 @extends SC.View 15 @author Peter Bergstrom 16 @version 1.0 17 @copyright 2008-2009 Peter Bergström. 18 */ 19 Papercube.LeftView = SC.View.extend( 20 /** @scope Papercube.LeftView.prototype */ { 21 22 /** 23 When the mouse is moved add the class name to make it visible. 24 25 @param {DOM Event} evt The mouseMoved event. 26 */ 27 mouseMoved: function(evt) 28 { 29 Papercube.canvasController.leftViewShowing = YES; 30 this.addClassName('left-view-visible'); 31 }, 32 33 /** 34 When the mouse is moved out of the view, remove the class name that makes it visible. 35 36 @param {DOM Event} evt The mouseExited event. 37 */ 38 mouseExited: function(evt) 39 { 40 Papercube.canvasController.leftViewShowing = NO; 41 this.removeClassName('left-view-visible'); 42 } 43 44 }) ; 45