##// END OF EJS Templates
space around :
Matthias BUSSONNIER -
Show More
@@ -24,7 +24,7 b' var IPython = (function (IPython) {'
24
24
25 MainToolBar.prototype = new IPython.ToolBar();
25 MainToolBar.prototype = new IPython.ToolBar();
26
26
27 MainToolBar.prototype.add_drop_down_list = function() {
27 MainToolBar.prototype.add_drop_down_list = function () {
28 var select = $(this.selector)
28 var select = $(this.selector)
29 .append($('<select/>')
29 .append($('<select/>')
30 .attr('id','cell_type')
30 .attr('id','cell_type')
@@ -43,39 +43,39 b' var IPython = (function (IPython) {'
43 );
43 );
44 };
44 };
45
45
46 MainToolBar.prototype.construct = function() {
46 MainToolBar.prototype.construct = function () {
47 this.add_buttons_group([
47 this.add_buttons_group([
48 {
48 {
49 id:'save_b',
49 id : 'save_b',
50 label:'Save',
50 label : 'Save',
51 icon:'ui-icon-disk',
51 icon : 'ui-icon-disk',
52 callback:function(){
52 callback : function () {
53 IPython.notebook.save_notebook();
53 IPython.notebook.save_notebook();
54 }
54 }
55 }
55 }
56 ]);
56 ]);
57 this.add_buttons_group([
57 this.add_buttons_group([
58 {
58 {
59 id:'cut_b',
59 id : 'cut_b',
60 label:'Cut Cell',
60 label : 'Cut Cell',
61 icon:'ui-icon-scissors',
61 icon : 'ui-icon-scissors',
62 callback:function(){
62 callback : function () {
63 IPython.notebook.cut_cell();
63 IPython.notebook.cut_cell();
64 }
64 }
65 },
65 },
66 {
66 {
67 id:'copy_b',
67 id : 'copy_b',
68 label:'Copy Cell',
68 label : 'Copy Cell',
69 icon:'ui-icon-copy',
69 icon : 'ui-icon-copy',
70 callback:function(){
70 callback : function () {
71 IPython.notebook.copy_cell();
71 IPython.notebook.copy_cell();
72 }
72 }
73 },
73 },
74 {
74 {
75 id:'paste_b',
75 id : 'paste_b',
76 label:'Paste Cell',
76 label : 'Paste Cell',
77 icon:'ui-icon-clipboard',
77 icon : 'ui-icon-clipboard',
78 callback:function(){
78 callback : function () {
79 IPython.notebook.paste_cell();
79 IPython.notebook.paste_cell();
80 }
80 }
81 }
81 }
@@ -83,18 +83,18 b' var IPython = (function (IPython) {'
83
83
84 this.add_buttons_group([
84 this.add_buttons_group([
85 {
85 {
86 id:'move_up_b',
86 id : 'move_up_b',
87 label:'Move Cell Up',
87 label : 'Move Cell Up',
88 icon:'ui-icon-arrowthick-1-n',
88 icon : 'ui-icon-arrowthick-1-n',
89 callback:function(){
89 callback : function () {
90 IPython.notebook.move_cell_up();
90 IPython.notebook.move_cell_up();
91 }
91 }
92 },
92 },
93 {
93 {
94 id:'move_down_b',
94 id : 'move_down_b',
95 label:'Move Cell Down',
95 label : 'Move Cell Down',
96 icon:'ui-icon-arrowthick-1-s',
96 icon : 'ui-icon-arrowthick-1-s',
97 callback:function(){
97 callback : function () {
98 IPython.notebook.move_cell_down();
98 IPython.notebook.move_cell_down();
99 }
99 }
100 }
100 }
@@ -102,18 +102,18 b' var IPython = (function (IPython) {'
102
102
103 this.add_buttons_group([
103 this.add_buttons_group([
104 {
104 {
105 id:'insert_above_b',
105 id : 'insert_above_b',
106 label:'Insert Cell Above',
106 label : 'Insert Cell Above',
107 icon:'ui-icon-arrowthickstop-1-n',
107 icon : 'ui-icon-arrowthickstop-1-n',
108 callback:function(){
108 callback : function () {
109 IPython.notebook.insert_cell_above('code');
109 IPython.notebook.insert_cell_above('code');
110 }
110 }
111 },
111 },
112 {
112 {
113 id:'insert_below_b',
113 id : 'insert_below_b',
114 label:'Insert Cell Below',
114 label : 'Insert Cell Below',
115 icon:'ui-icon-arrowthickstop-1-s',
115 icon : 'ui-icon-arrowthickstop-1-s',
116 callback:function(){
116 callback : function () {
117 IPython.notebook.insert_cell_below('code');
117 IPython.notebook.insert_cell_below('code');
118 }
118 }
119 }
119 }
@@ -121,18 +121,18 b' var IPython = (function (IPython) {'
121
121
122 this.add_buttons_group([
122 this.add_buttons_group([
123 {
123 {
124 id:'run_b',
124 id : 'run_b',
125 label:'Run Cell',
125 label : 'Run Cell',
126 icon:'ui-icon-play',
126 icon : 'ui-icon-play',
127 callback:function(){
127 callback : function () {
128 IPython.notebook.execute_selected_cell();
128 IPython.notebook.execute_selected_cell();
129 }
129 }
130 },
130 },
131 {
131 {
132 id:'interrupt_b',
132 id : 'interrupt_b',
133 label:'Interrupt',
133 label : 'Interrupt',
134 icon:'ui-icon-stop',
134 icon : 'ui-icon-stop',
135 callback:function(){
135 callback : function () {
136 IPython.notebook.kernel.interrupt();
136 IPython.notebook.kernel.interrupt();
137 }
137 }
138 }
138 }
General Comments 0
You need to be logged in to leave comments. Login now