projects
/
app.Builder.js
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
d115c6b
)
Sample/Window.js
author
Alan Knowles
<alan@akbkhome.com>
Mon, 1 Nov 2010 06:11:36 +0000
(14:11 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Mon, 1 Nov 2010 06:11:36 +0000
(14:11 +0800)
Sample/Window.js
patch
|
blob
|
history
diff --git
a/Sample/Window.js
b/Sample/Window.js
index
ee270cf
..
2fa4566
100644
(file)
--- a/
Sample/Window.js
+++ b/
Sample/Window.js
@@
-2289,7
+2289,9
@@
Window=new XObject({
// make sure the pulldown is set correctly..
// not really needed for second col...
var showEditor = false;
// make sure the pulldown is set correctly..
// not really needed for second col...
var showEditor = false;
-
+ this.get('/Editor').activePath = false;
+ this.get('/Editor').el.hide();
+
if (col) {
var provider = this.get('/LeftTree').getPaleteProvider();
var type = this.get('/LeftPanel.model').getType(path);
if (col) {
var provider = this.get('/LeftTree').getPaleteProvider();
var type = this.get('/LeftPanel.model').getType(path);
@@
-2319,13
+2321,14
@@
Window=new XObject({
}
var _this = this;
// end editing..
}
var _this = this;
// end editing..
- this.get('/BottomPane').el.hide();
+
//
this.get('/BottomPane').el.hide();
//this.get('/RightEditor').el.hide();
//this.get('/RightEditor').el.hide();
- this.get('/Editor').el.hide();
+
if (showEditor) {
this.activePath = false;
if (showEditor) {
this.activePath = false;
+
_this.get('/Editor').el.show_all();
GLib.timeout_add(0, 1, function() {
_this.get('/Editor').el.show_all();
GLib.timeout_add(0, 1, function() {
@@
-2334,8
+2337,7
@@
Window=new XObject({
_this.get('/Editor.RightEditor.view').load( _this.getValue(path, 1) );
_this.get('/Editor.RightEditor.view').load( _this.getValue(path, 1) );
- //e.editing_done();
- //e.remove_widget();
+ _this.get('/Editor').activePath = path;
_this.activePath = path ;
return false;
_this.activePath = path ;
return false;