##// END OF EJS Templates
Minors fixes and initial work on save widget....
Brian E. Granger -
Show More
@@ -0,0 +1,37 b''
1
2 //============================================================================
3 // Cell
4 //============================================================================
5
6 var IPython = (function (IPython) {
7
8 var utils = IPython.utils;
9
10 var SaveWidget = function (selector) {
11 this.element = $(selector);
12 this.create_element();
13 if (this.element !== undefined) {
14 this.element.data("cell", this);
15 this.bind_events();
16 }
17 };
18
19
20 SaveWidget.prototype.bind_events = function () {
21 var that = this;
22 };
23
24
25 // Subclasses must implement create_element.
26 SaveWidget.prototype.create_element = function () {
27 this.element.
28 append($('textarea')).
29 append($('<button>Save</button>').button());
30 };
31
32 IPython.SaveWidget = SaveWidget;
33
34 return IPython;
35
36 }(IPython));
37
@@ -73,13 +73,19 b' body {'
73 }
73 }
74
74
75
75
76 span#ipython_notebook h1 {
76 div#header {
77 font-family: Verdana, "Helvetica Neue", Arial, Helvetica, Geneva, sans-serif;
78 font-size: 22pt;
79 height: 35px;
77 height: 35px;
80 padding: 5px;
78 padding: 5px;
81 margin: 0px;
79 margin: 0px;
80 width: 100%
81 }
82
82
83 span#ipython_notebook {
84 }
85
86 span#ipython_notebook h1 {
87 font-family: Verdana, "Helvetica Neue", Arial, Helvetica, Geneva, sans-serif;
88 font-size: 22pt;
83 }
89 }
84
90
85 span#kernel_status {
91 span#kernel_status {
@@ -125,7 +131,8 b' div.section_content {'
125
131
126 #expand_cell, #collapse_cell, #insert_cell_above, #insert_cell_below,
132 #expand_cell, #collapse_cell, #insert_cell_above, #insert_cell_below,
127 #move_cell_up, #move_cell_down, #to_code, #to_text, #run_selected_cell,
133 #move_cell_up, #move_cell_down, #to_code, #to_text, #run_selected_cell,
128 #run_all_cells {
134 #run_all_cells, #int_kernel, #restart_kernel, #python_help, #ipython_help,
135 #numpy_help, #matplotlib_help, #scipy_help, #sympy_help {
129 width: 65px;
136 width: 65px;
130 }
137 }
131
138
@@ -21,6 +21,7 b' $(document).ready(function () {'
21 $('div#notebook_panel').addClass('border-box-sizing ui-widget');
21 $('div#notebook_panel').addClass('border-box-sizing ui-widget');
22
22
23 IPython.layout_manager = new IPython.LayoutManager();
23 IPython.layout_manager = new IPython.LayoutManager();
24 // IPython.save_widget = new IPython.SaveWidget('span#save_widget');
24 IPython.pager = new IPython.Pager('div#pager', 'div#pager_splitter');
25 IPython.pager = new IPython.Pager('div#pager', 'div#pager_splitter');
25 IPython.left_panel = new IPython.LeftPanel('div#left_panel', 'div#left_panel_splitter');
26 IPython.left_panel = new IPython.LeftPanel('div#left_panel', 'div#left_panel_splitter');
26 IPython.notebook = new IPython.Notebook('div#notebook');
27 IPython.notebook = new IPython.Notebook('div#notebook');
@@ -264,7 +264,7 b' var IPython = (function (IPython) {'
264 var row1 = $('<div>').addClass('cell_section_row ui-helper-clearfix').
264 var row1 = $('<div>').addClass('cell_section_row ui-helper-clearfix').
265 append($('<span/>').attr('id','help_buttons1').addClass('cell_section_row_buttons').
265 append($('<span/>').attr('id','help_buttons1').addClass('cell_section_row_buttons').
266 append( $('<button/>').attr('id','matplotlib_help').
266 append( $('<button/>').attr('id','matplotlib_help').
267 append( $('<a>Matplotlib</a>').attr('href','http://matplotlib.sourceforge.net/').attr('target','_blank') )).
267 append( $('<a>MPL</a>').attr('href','http://matplotlib.sourceforge.net/').attr('target','_blank') )).
268 append( $('<button/>').attr('id','scipy_help').
268 append( $('<button/>').attr('id','scipy_help').
269 append( $('<a>SciPy</a>').attr('href','http://docs.scipy.org/doc/scipy/reference/').attr('target','_blank') )).
269 append( $('<a>SciPy</a>').attr('href','http://docs.scipy.org/doc/scipy/reference/').attr('target','_blank') )).
270 append( $('<button/>').attr('id','sympy_help').
270 append( $('<button/>').attr('id','sympy_help').
@@ -7,7 +7,7 b''
7 <title>IPython Notebook</title>
7 <title>IPython Notebook</title>
8
8
9 <link rel="stylesheet" href="static/jquery/css/themes/aristo/jquery-wijmo.css" type="text/css" />
9 <link rel="stylesheet" href="static/jquery/css/themes/aristo/jquery-wijmo.css" type="text/css" />
10 <!-- <link rel="stylesheet" href="static/jquery/css/themes/rocket/jquery-wijmo.css" type="text/css" /> -->
10 <!-- <link rel="stylesheet" href="static/jquery/css/themes/rocket/jquery-wijmo.css" type="text/css" /> -->
11 <!-- <link rel="stylesheet" href="static/jquery/css/themes/smoothness/jquery-ui-1.8.14.custom.css" type="text/css" />-->
11 <!-- <link rel="stylesheet" href="static/jquery/css/themes/smoothness/jquery-ui-1.8.14.custom.css" type="text/css" />-->
12
12
13 <script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS_HTML" charset="utf-8"></script>
13 <script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS_HTML" charset="utf-8"></script>
@@ -31,6 +31,7 b''
31
31
32 <div id="header">
32 <div id="header">
33 <span id="ipython_notebook"><h1>IPython Notebook</h1></span>
33 <span id="ipython_notebook"><h1>IPython Notebook</h1></span>
34 <span id="save_widget"></span>
34 </div>
35 </div>
35
36
36 <div id="notebook_app">
37 <div id="notebook_app">
@@ -55,6 +56,7 b''
55 <script src="static/js/textcell.js" type="text/javascript" charset="utf-8"></script>
56 <script src="static/js/textcell.js" type="text/javascript" charset="utf-8"></script>
56 <script src="static/js/kernel.js" type="text/javascript" charset="utf-8"></script>
57 <script src="static/js/kernel.js" type="text/javascript" charset="utf-8"></script>
57 <script src="static/js/layout.js" type="text/javascript" charset="utf-8"></script>
58 <script src="static/js/layout.js" type="text/javascript" charset="utf-8"></script>
59 <script src="static/js/savewidget.js" type="text/javascript" charset="utf-8"></script>
58 <script src="static/js/pager.js" type="text/javascript" charset="utf-8"></script>
60 <script src="static/js/pager.js" type="text/javascript" charset="utf-8"></script>
59 <script src="static/js/panelsection.js" type="text/javascript" charset="utf-8"></script>
61 <script src="static/js/panelsection.js" type="text/javascript" charset="utf-8"></script>
60 <script src="static/js/leftpanel.js" type="text/javascript" charset="utf-8"></script>
62 <script src="static/js/leftpanel.js" type="text/javascript" charset="utf-8"></script>
General Comments 0
You need to be logged in to leave comments. Login now