Skip to content

Commit

Permalink
Merge branch 'ui/search' of github.com:ajaxorg/cloud9 into ui/search
Browse files Browse the repository at this point in the history
  • Loading branch information
Ruben Daniels committed May 8, 2012
2 parents a15d57e + 4761248 commit c4aba03
Show file tree
Hide file tree
Showing 12 changed files with 108 additions and 31 deletions.
1 change: 1 addition & 0 deletions package.json
Expand Up @@ -23,6 +23,7 @@
"simple-template": "~0.0.1",

"optimist": "~0.3.1",
"dryice": "0.4.2",

"mappings": "0.1.x",
"amd-loader": "~0.0.4"
Expand Down
2 changes: 1 addition & 1 deletion plugins-client/ext.language/complete.js
Expand Up @@ -119,7 +119,7 @@ module.exports = {
ace.container.addEventListener("mousewheel", this.closeCompletionBox);

apf.popup.setContent("completionBox", barCompleterCont.$ext);
var completionBoxHeight = 5 + Math.min(10 * this.cursorConfig.lineHeight, this.matches.length * (this.cursorConfig.lineHeight+1));
var completionBoxHeight = 5 + Math.min(10 * this.cursorConfig.lineHeight, (this.matches.length || 1) * (this.cursorConfig.lineHeight + 1));
var cursorLayer = ace.renderer.$cursorLayer;
var cursorLocation = cursorLayer.getPixelPosition(true);
var distanceFromBottom = ace.container.offsetHeight - cursorLocation.top;
Expand Down
Binary file modified plugins-client/ext.main/style/images/debug-panel_bg.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
101 changes: 87 additions & 14 deletions plugins-client/ext.main/style/skins.xml
Expand Up @@ -240,7 +240,7 @@

<div class="c9-mbar-round">
<a href="/dashboard.html" class="mainlogo" target="_blank" title="back to dashboard">Dashboard</a>
<div class="c9-activity"> </div>
<div id="saveStatus" class="c9-activity"> </div>
<div class="c9-offline" onmouseover="require('ext/offline/offline').toggleInfoDiv(1);" onmouseout="require('ext/offline/offline').toggleInfoDiv(0);"> </div>
<div id="offlineInfoDiv" class="c9-offlineInfo menu-bk upward moveleft menu-bkFocus">Keep working without<br />internet. When you're back online, Cloud9 syncs your files for you!<div class="offlineInfoWarn">Some features are disabled.</div></div>
</div>
Expand Down Expand Up @@ -314,20 +314,20 @@
background-position: 0px -346px;
}
.black-menu-bar.closed .c9-logo.mnubtnOver {
background-position: -39px -346px;
background-position: -40px -346px;
}
.black-menu-bar.closed .c9-logo.mnubtnDown {
background-position: -78px -346px;
background-position: -80px -346px;
}
.black-menu-bar .c9-logo {
background-position: -117px -346px;
background-position: -120px -346px;
}
.black-menu-bar .c9-logo.mnubtnOver {
background-position: -156px -346px;
background-position: -160px -346px;
}
.black-menu-bar .c9-logo.mnubtnDown {
background-position: -195px -346px;
background-position: -200px -346px;
}
.black-menu-bar .c9-logo .icon{
display : none;
Expand Down Expand Up @@ -1007,8 +1007,9 @@
background-color : #1f7224;
filter : progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr='#24872b', endColorstr='#1e6c22');
-ms-filter : "progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr='#24872b', endColorstr='#1e6c22')";
background : -webkit-gradient(linear, left top, left bottom, from(#24872b), color-stop(1, #1e6c22));
background :-moz-linear-gradient(center bottom, #1e6c22 0%, #24872b 80%) repeat scroll 0 0 transparent;
background : -webkit-linear-gradient(center bottom, #1e6c22 0%, #24872b 80%) repeat scroll 0 0 transparent;
background : -moz-linear-gradient(center bottom, #1e6c22 0%, #24872b 80%) repeat scroll 0 0 transparent;
background : linear-gradient(center bottom, #1e6c22 0%, #24872b 80%) repeat scroll 0 0 transparent;
border : 1px solid #000101;
Expand Down Expand Up @@ -1227,6 +1228,7 @@
.dockButtonDown .dockButton-footer {
-webkit-border-top-left-radius : 5px;
-moz-border-radius-topleft : 5px;
border-radius-top-left : 5px;
}
.dockButtonDown.btn-runcommands {
Expand All @@ -1238,6 +1240,7 @@
height : 32px;
-webkit-border-radius : 3px;
-moz-border-radius : 3px;
border-radius : 3px;
margin : 0px 1px 2px 4px;
/*background-image: -webkit-gradient(
linear,
Expand Down Expand Up @@ -1272,7 +1275,8 @@
.dockButton .dock_icon_image {
-webkit-border-radius : 3px;
-moz-border-radius : 3px;
-moz-border-radius : 3px;
border-radius : 3px;
display : inline-block;
position : absolute;
top : 3px;
Expand All @@ -1290,7 +1294,8 @@
.dockButton .dock_icon_image.dii_secondary {
-webkit-border-radius : 5px;
-moz-border-radius : 5px;
-moz-border-radius : 5px;
border-radius : 5px;
}
.dockButton.debug1 .icon {
Expand Down Expand Up @@ -1812,6 +1817,19 @@
color : #606060;
text-shadow : rgba(0, 0, 0, 1) 0px 1px 0px;
}
.c9-toolbarbutton.saving {
background: orange;
}
.c9-toolbarbutton.saved {
background: green;
}
.c9-toolbarbutton.default {
background: lightgreen;
}
.c9-toolbarbutton.disabled {
background: grey;
}
]]></a:style>

<a:presentation>
Expand Down Expand Up @@ -4657,6 +4675,8 @@
.light_dropdown {
background-color: rgba(255,255,255,.65);
background-image: -webkit-linear-gradient(bottom, rgba(0,0,0,.08), transparent);
background-image: -moz-linear-gradient(bottom, rgba(0,0,0,.08), transparent);
background-image: linear-gradient(bottom, rgba(0,0,0,.08), transparent);
border: 1px solid rgba(128, 128, 128, .55);
border-radius: 5px;
box-shadow: 0 1px 0 0 rgba(255,255,255,.7), 0 1px 0 0 rgba(255,255,255,.5) inset;
Expand Down Expand Up @@ -4686,6 +4706,8 @@
.light_dropdownDown {
background-color: rgba(255,255,255,.1);
background-image: -webkit-linear-gradient(top, rgba(0,0,0,.11), transparent);
background-image: -moz-linear-gradient(top, rgba(0,0,0,.11), transparent);
background-image: linear-gradient(top, rgba(0,0,0,.11), transparent);
box-shadow: 0 1px 0 0 rgba(255,255,255,.7), 0 1px 3px 0 rgba(0,0,0,.22) inset;
border-color: rgba(128, 128, 128, .85);;
}
Expand All @@ -4695,6 +4717,8 @@
.light_dropdownDisabled {
border-color: rgba(128, 128, 128, .32);
background-image: -webkit-linear-gradient(bottom, rgba(0,0,0,.02), transparent);
background-image: -moz-linear-gradient(bottom, rgba(0,0,0,.02), transparent);
background-image: linear-gradient(bottom, rgba(0,0,0,.02), transparent);
box-shadow: 0 1px 0 0 rgba(255,255,255,1) inset;
}
.light_dropdownDisabled .label {
Expand All @@ -4704,6 +4728,39 @@
background-position: -105px -390px;
box-shadow: 1px 0 0 0 rgba(255,255,255,.6) inset, -1px 0 0 0 rgba(128,128,128,.3), 0 1px 0 0 rgba(255,255,255,.6) inset;
}
.light_dropdown_options {
box-sizing: border-box;
display: none;
padding: 2px 14px 0 3px;
}
.light_dropdown_options.upward {
margin-top: -12px;
}
.light_dropdown_options .list {
background: #494949;
border: 1px solid #000208;
padding: 3px 0;
}
.light_dropdown_options .list .c9-dd-item {
color: #f1f1f1;
cursor: default;
font-size: 11px;
font-family: Tahoma, Arial;
height: 13px;
line-height: 14px;
overflow: hidden;
padding: 3px 5px 5px;
text-overflow: ellipsis-word;
white-space: nowrap;
}
.light_dropdown_options .list .c9-dd-item.hover {
background-color: #262626;
color: #F5B53C;
}
.light_dropdown_options .list .c9-dd-item.selected {
color: #F5B53C;
}
]]></a:style>

<a:presentation>
Expand All @@ -4713,8 +4770,9 @@
<div class="button"> </div>
</div>
</a:main>
<a:container contents=".">
<div class="c9-optionList">
<a:container contents="div[1]">
<div class="light_dropdown_options">
<div class="list"> </div>
</div>
</a:container>
<a:item
Expand Down Expand Up @@ -8794,7 +8852,8 @@
* Unselected tab default state
* --------------------------------------------------------------------------------------- */
.editor_tab.hidetabs .session_btn:not(.curbtn) {
height: 5px;
border-bottom: 2px solid transparent;
height: 5px;
overflow: hidden;
top : 4px;
}
Expand Down Expand Up @@ -9132,6 +9191,14 @@
text-indent: 0;
}*/
]]></a:style>
<a:style condition="apf.isGecko">
.editor_tab.hidetabs .session_btn:not(.curbtn) {
top: 6px;
}
.editor_tab.hidetabs .curbtn {
top: 5px;
}
</a:style>
<a:style condition="apf.isWebkit">
/* ------------------------------------------------------------------------------------------
* Tab shape
Expand Down Expand Up @@ -9220,7 +9287,9 @@
<a:presentation>
<a:main pages="." buttons="div[1]">
<div class="editor_tab">
<div class="btnsesssioncontainer"> </div>
<div class="btnsesssioncontainer">

</div>
<div class="editor_bg">
<div class="editor_bg_message-top">
Invite people to this project by sharing the URL with them.
Expand Down Expand Up @@ -11448,6 +11517,10 @@
.find-and-replace .rb_grey span{
color : #eee;
}
.find-and-replace .rb_black span {
color: #dedede;
}
]]></a:style>
<a:presentation>
<a:main caption=".">
Expand Down
4 changes: 2 additions & 2 deletions plugins-client/ext.remotecontrol/remotecontrol.js
Expand Up @@ -31,7 +31,7 @@ module.exports = ext.register("ext/remotecontrol/remotecontrol", {
// If node is found in tree we expand it
var node = filesystem.model.queryNode("//file[@path='" + event.message.args.path + "']");
if (node) {
tabbehaviors.revealfile(node);
tabbehaviors.revealInTree(node);
}

editors.showFile(event.message.args.path);
Expand All @@ -44,7 +44,7 @@ module.exports = ext.register("ext/remotecontrol/remotecontrol", {
}

// TODO: Directory is not selected in tree.
tabbehaviors.revealfile(node);
tabbehaviors.revealInTree(node);
}
}
});
Expand Down
2 changes: 2 additions & 0 deletions plugins-client/ext.revisions/revisions.js
Expand Up @@ -201,9 +201,11 @@ module.exports = ext.register("ext/revisions/revisions", {
if (page) {
var hasChanged = Util.pageHasChanged(tabEditors.getPage());
if (Util.isAutoSaveEnabled() && hasChanged) {
apf.setStyleClass(btnSave, "saving",["saved"]);
return btnSave.setCaption("Saving...");
}
else if (!hasChanged) {
apf.setStyleClass(btnSave, "saved",["saving"]);
return btnSave.setCaption("All changes saved");
}
}
Expand Down
4 changes: 2 additions & 2 deletions plugins-client/ext.runpanel/runpanel.js
Expand Up @@ -122,8 +122,8 @@ module.exports = ext.register("ext/runpanel/runpanel", {
this.model = new apf.model().load("<configurations />")
);

btnRun.$ext.className = "btnRun";
btnStop.$ext.className = "btnStop";
apf.setStyleClass(btnRun.$ext, "btnRun");
apf.setStyleClass(btnStop.$ext, "btnStop");

tooltip.add( btnRun.$button1, {
message : "Run &amp; Debug your <span>Node.js</span> applications.\
Expand Down
6 changes: 3 additions & 3 deletions plugins-client/ext.runpanel/runpanel.xml
Expand Up @@ -83,12 +83,12 @@
skin = "black_textbox"
flex="1"
realtime="true"
value="[@name]"
value="[{lstRunCfg.selected}::@name]"
disabled="{!lstRunCfg.selected || [{lstRunCfg.selected}::@curfile]}"/>
</a:hbox>
<a:hbox>
<a:label width="100" skin="black_label">File Path</a:label>
<a:textbox skin = "black_textbox" flex="1" value="[@path]" disabled="{!lstRunCfg.selected or [{lstRunCfg.selected}::@curfile]}"/>
<a:textbox skin = "black_textbox" flex="1" value="[{lstRunCfg.selected}::@path]" disabled="{!lstRunCfg.selected or [{lstRunCfg.selected}::@curfile]}"/>
<!--a:button icon="folder.png" disabled="true" tooltip="Browse ..."></a:button-->

<!--a:divider span="2" skin="c9-divider-hor" /-->
Expand Down Expand Up @@ -116,7 +116,7 @@
</a:hbox>
<a:hbox>
<a:label width="100" skin="black_label">Cmd Line Args</a:label>
<a:textbox skin = "black_textbox" flex="1" value="[@args]" disabled="{!!!lstRunCfg.selected}"/>
<a:textbox skin = "black_textbox" flex="1" value="[{lstRunCfg.selected}::@args]" disabled="{!!!lstRunCfg.selected}"/>
</a:hbox>
</a:vbox>
</a:bar>
Expand Down
4 changes: 2 additions & 2 deletions plugins-client/ext.searchinfiles/searchinfiles.xml
Expand Up @@ -16,12 +16,12 @@
<a:textbox id="txtSFPatterns" tabindex="1001" skin="searchbox" flex="1" initial-message="*.*" focusselect="true"/>
<a:radiobutton margin="3 0 0 0"
group = "grpSFScope"
skin = "radio_grey"
skin = "radio_black"
value = "projects"
label = "Project" />
<a:radiobutton id="rbSFSelection" margin="3 0 0 0"
group = "grpSFScope"
skin = "radio_grey"
skin = "radio_black"
value = "selection"
label = "Selection"
selected = "true" />
Expand Down
11 changes: 6 additions & 5 deletions plugins-client/ext.tabbehaviors/tabbehaviors.js
Expand Up @@ -613,15 +613,16 @@ module.exports = ext.register("ext/tabbehaviors/tabbehaviors", {
// so this operation is visible
ide.dispatchEvent("exitfullscreen");

this.revealfile(page.$doc.getNode());
this.revealInTree(page.$doc.getNode());
},

revealfile : function(docNode) {
revealInTree : function(docNode) {
panels.activate(require("ext/tree/tree"));

var parts, file, pathList, str, xpath;
var type = docNode.tagName || "file";
var path = docNode.getAttribute('path');
var node = trFiles.queryNode('//file[@path="' + path + '"]');
var node = trFiles.queryNode('//' + type + '[@path="' + path + '"]');

if (node) {
trFiles.expandAndSelect(node);
Expand All @@ -642,7 +643,7 @@ module.exports = ext.register("ext/tabbehaviors/tabbehaviors", {
xpath = pathList[pathList.length - 1];

trFiles.expandList(pathList, function() {
trFiles.select(trFiles.queryNode(xpath + '/file[@name="' + file + '"]'));
trFiles.select(trFiles.queryNode(xpath + '/' + type + '[@name="' + file + '"]'));
trFiles.focus();
scrollToFile();
});
Expand All @@ -664,7 +665,7 @@ module.exports = ext.register("ext/tabbehaviors/tabbehaviors", {
apf.xmldb.setAttribute(docNode, "lookup", "1");

trFiles.expandList(pathList, function() {
trFiles.select(trFiles.queryNode(xpath + '/file[@name="' + file + '"]'));
trFiles.select(trFiles.queryNode(xpath + '/' + type + '[@name="' + file + '"]'));
trFiles.focus();
scrollToFile();

Expand Down
2 changes: 1 addition & 1 deletion plugins-client/ext.testpanel/testpanel.xml
Expand Up @@ -127,7 +127,7 @@
<a:item match="[file]" onclick="dgTestProject.remove()">Remove</a:item>
<a:divider />
<a:item match="[file]" onclick="
require('ext/tabbehaviors/tabbehaviors').revealfile(dgTestProject.selected);
require('ext/tabbehaviors/tabbehaviors').revealInTree(dgTestProject.selected);
">Show in File Tree</a:item>
</a:menu>
</a:vbox>
Expand Down
2 changes: 1 addition & 1 deletion plugins-client/ext.tree/tree.xml
Expand Up @@ -54,7 +54,7 @@
<a:copy match="[file|folder]" set="{
davProject.copy([@path], createPath([@newname] || [@path], [../@path]))
}" undo="{
alert('TODO!!');
}"/>

<a:drag match="[folder|file]" />
Expand Down

0 comments on commit c4aba03

Please sign in to comment.