outline
This commit is contained in:
parent
d3d5edb16d
commit
0d51c6c55d
|
@ -50,6 +50,38 @@
|
|||
.side-right .tabs-panel > div {
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
#outline .ico {
|
||||
margin: 2px 2px 0 2px;
|
||||
}
|
||||
|
||||
.ico-func {
|
||||
background-position: -122px -21px;
|
||||
}
|
||||
|
||||
.ico-interface {
|
||||
background-position: -143px -21px;
|
||||
}
|
||||
|
||||
.ico-const {
|
||||
background-position: -103px -21px;
|
||||
}
|
||||
|
||||
.ico-var {
|
||||
background-position: -63px -21px;
|
||||
}
|
||||
|
||||
.ico-struct {
|
||||
background-position: -83px -21px;
|
||||
}
|
||||
|
||||
.ico-type {
|
||||
background-position: -163px -21px;
|
||||
}
|
||||
|
||||
.ico-package {
|
||||
background-position: -183px -21px;
|
||||
}
|
||||
/* end side right */
|
||||
|
||||
/* start tree */
|
||||
|
|
|
@ -344,8 +344,7 @@
|
|||
top: 1px;
|
||||
}
|
||||
|
||||
.edit-panel .tabs .ico,
|
||||
#dialogGoFilePrompt .ico {
|
||||
.ico {
|
||||
background-image: url("../images/ico-file.png");
|
||||
float: left;
|
||||
height: 16px;
|
||||
|
@ -380,6 +379,10 @@
|
|||
.CodeMirror-hints {
|
||||
}
|
||||
|
||||
.CodeMirror-hints .ico {
|
||||
margin: -1px 2px 0 -1px;
|
||||
}
|
||||
|
||||
.CodeMirror-focused .cm-matchhighlight {
|
||||
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAYAAABytg0kAAAAFklEQVQI12NgYGBgkKzc8x9CMDAwAAAmhwSbidEoSQAAAABJRU5ErkJggg==);
|
||||
background-position: bottom;
|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 3.3 KiB After Width: | Height: | Size: 6.3 KiB |
|
@ -189,7 +189,7 @@ var editors = {
|
|||
}
|
||||
|
||||
if (editors.data.length === 0) { // 起始页可能存在,所以用编辑器数据判断
|
||||
menu.disabled(['save-all', 'build', 'run', 'go-test','go-vet', 'go-get', 'go-install',
|
||||
menu.disabled(['save-all', 'build', 'run', 'go-test', 'go-vet', 'go-get', 'go-install',
|
||||
'find', 'find-next', 'find-previous', 'replace', 'replace-all',
|
||||
'format', 'autocomplete', 'jump-to-decl', 'expr-info', 'find-usages', 'toggle-comment',
|
||||
'edit']);
|
||||
|
@ -354,15 +354,27 @@ var editors = {
|
|||
|
||||
switch (autocompleteArray[i].class) {
|
||||
case "type":
|
||||
displayText = '<span class="fn-clear"><span class="ico-type ico"></span>'// + autocompleteArray[i].class
|
||||
+ '<b>' + autocompleteArray[i].name + '</b> '
|
||||
+ autocompleteArray[i].type + '</span>';
|
||||
break;
|
||||
case "const":
|
||||
displayText = '<span class="fn-clear"><span class="ico-const ico"></span>'// + autocompleteArray[i].class
|
||||
+ '<b>' + autocompleteArray[i].name + '</b> '
|
||||
+ autocompleteArray[i].type + '</span>';
|
||||
break;
|
||||
case "var":
|
||||
displayText = '<span class="fn-clear"><span class="ico-var ico"></span>'// + autocompleteArray[i].class
|
||||
+ '<b>' + autocompleteArray[i].name + '</b> '
|
||||
+ autocompleteArray[i].type + '</span>';
|
||||
break;
|
||||
case "package":
|
||||
displayText = '<span class="fn-clear">'// + autocompleteArray[i].class
|
||||
+ '<b class="fn-left">' + autocompleteArray[i].name + '</b> '
|
||||
displayText = '<span class="fn-clear"><span class="ico-package ico"></span>'// + autocompleteArray[i].class
|
||||
+ '<b>' + autocompleteArray[i].name + '</b> '
|
||||
+ autocompleteArray[i].type + '</span>';
|
||||
break;
|
||||
case "func":
|
||||
displayText = '<span>'// + autocompleteArray[i].class
|
||||
displayText = '<span><span class="ico-func ico"></span>'// + autocompleteArray[i].class
|
||||
+ '<b>' + autocompleteArray[i].name + '</b>'
|
||||
+ autocompleteArray[i].type.substring(4) + '</span>';
|
||||
text += '()';
|
||||
|
|
|
@ -37,7 +37,7 @@ var wide = {
|
|||
return;
|
||||
}
|
||||
|
||||
var outlineHTML = '<ul>',
|
||||
var outlineHTML = '<ul class="list">',
|
||||
decls = ['funcDecls', 'interfaceDecls', 'structDecls',
|
||||
'constDecls', 'varDecls'];
|
||||
|
||||
|
@ -45,7 +45,8 @@ var wide = {
|
|||
var key = decls[i];
|
||||
for (var j = 0, maxj = data[key].length; j < maxj; j++) {
|
||||
var name = data[key][j].Name;
|
||||
outlineHTML += '<li>' + name + '</li>';
|
||||
outlineHTML += '<li><span class="ico ico-'
|
||||
+ key.replace('Decls', '') + '"></span> ' + name + '</li>';
|
||||
}
|
||||
}
|
||||
$("#outline").html(outlineHTML + '</ul>');
|
||||
|
|
|
@ -476,9 +476,7 @@
|
|||
</div>
|
||||
</div>
|
||||
<div class="tabs-panel">
|
||||
<div id="outline" tabindex="-1" data-index="outline">
|
||||
this is outline
|
||||
</div>
|
||||
<div id="outline" tabindex="-1" data-index="outline"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
Loading…
Reference in New Issue