Chris Pollett >
Students > [Bio] [Deliverable 2:JavaScript Frameworks] [Deliverable 3: Drag and drops] [Deliverable 4: Layout of the IDE] |
Basic Layout of the IDE1.MotivationThe main objective of this deliverable is to build the basic GUI for the proposed Web-based IDE with proper layout and basic drag and drop functionalities. The same layout will be used for the future work to include more functionality to all the elements in the GUI. 2.GoalThe goal of developing the basic layout of the IDE is to start the real working for the web-based IDE and also to implement all the basic features using the knowledge gained from the previous two deliverables. 3.ImplementationThe basic layout developed is accomplished in three steps namely Developing the basic layout, Developing the drop downs and Creating the XHTML elements.The open source libraries required to develop the above functionalities are jquery.min.js, jquery.treeview.js, and jquery-ui.js.
Horizontal navigation bar is the one which is similar to that of any IDE which includes file, edit, search, project and help. Each in turn has its own drop down of options. Project div is the Tree-view listing of the projects saved to the saved by the developer. Controller div is the vertical dropdown list where in the entire collection of controller files (a kind of libraries) on the server are listed, each in turn has the list of the functions in it. Creating the Draggable and Droppable objects:
Developing the drop downs: This is achieved by adding the following functions. node.onclick=function() { this.className+=" over";} node.onmouseout=function() { this.className=this.className.replace(" over", ""); } Creating the XHTML elements: 4.RemarksThe Layout developed includes all the basic functionality of the drop downs and the drag and drops of the IDE. This deliverable made be accomplish the basic foundation of the IDE and gave me knowledge of the technical concepts needed to work further. All the future work on the Web-based IDE will be on the top of this layout. 5.CodeThe source code can be found here[ZIP]. |