mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-12-29 14:23:51 +01:00
226 lines
8.9 KiB
HTML
226 lines
8.9 KiB
HTML
<!DOCTYPE HTML>
|
|
|
|
<html>
|
|
<head>
|
|
<title>WiseMapping - Editor </title>
|
|
<meta http-equiv="Content-type" content="text/html; charset=UTF-8"/>
|
|
<!--[if lt IE 9]>
|
|
<meta http-equiv="X-UA-Compatible" content="chrome=1">
|
|
<![endif]-->
|
|
<!--<script type="text/javascript" src="http://docs.google.com/brix/static/api/js/jsapi.nocache.js"></script>-->
|
|
<script type='text/javascript' src='../js/less-1.1.3.min.js'></script>
|
|
<link rel="stylesheet/less" type="text/css" href="../css/editor2.css"/>
|
|
|
|
<script type='text/javascript'
|
|
src='https://ajax.googleapis.com/ajax/libs/mootools/1.3.2/mootools-yui-compressed.js'></script>
|
|
|
|
<script type='text/javascript'
|
|
src='/mindplot/src/main/javascript/libraries/mootools/mootools-more-1.3.2.1-yui.js'></script>
|
|
<script type='text/javascript' src='/core-js/target/classes/core.js'></script>
|
|
<script type='text/javascript' src='../js/less-1.1.3.min.js'></script>
|
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
//Google-Brix framework load callback function
|
|
collabOnLoad = function() {
|
|
$(document).fireEvent('loadcomplete', 'brix');
|
|
};
|
|
|
|
var mapId = '10'; // @todo: Must be changed ...
|
|
var brixReady = false;
|
|
var mindReady = false;
|
|
var collab = 'standalone';
|
|
// var collab = 'brix';
|
|
$(document).addEvent('loadcomplete', function(resource) {
|
|
brixReady = resource == 'brix' ? true : brixReady;
|
|
mindReady = resource == 'mind' ? true : mindReady;
|
|
|
|
if (mindReady) {
|
|
designer = buildDesigner(collab);
|
|
}
|
|
|
|
// If both resources has been loaded, start loading the framework...
|
|
if (brixReady && mindReady) {
|
|
|
|
mindplot.collaboration.framework.brix.BrixFramework.init(function() {
|
|
var manager = mindplot.collaboration.CollaborationManager.getInstance();
|
|
var mindmap = manager.buildMindmap();
|
|
designer.loadMap(mindmap);
|
|
|
|
// If not problem has arisen, close the dialog ...
|
|
if (!window.hasUnexpectedErrors) {
|
|
waitDialog.deactivate();
|
|
}
|
|
});
|
|
|
|
} else if (collab == 'standalone' && mindReady) {
|
|
// Load map from XML ...
|
|
var mapXml = '<map name="38298" version="pela"><topic central="true" text="test\nThis is working ?" id="1"/></map>';
|
|
var domDocument = core.Utils.createDocumentFromText(mapXml);
|
|
var serializer = mindplot.XMLMindmapSerializerFactory.getSerializerFromDocument(domDocument);
|
|
var mindmap = serializer.loadFromDom(domDocument, mapId);
|
|
|
|
// Now, load the map ...
|
|
designer.loadMap(mindmap);
|
|
|
|
// If not problem has arisen, close the dialog ...
|
|
if (!window.hasUnexpectedErrors) {
|
|
waitDialog.deactivate();
|
|
}
|
|
}
|
|
});
|
|
</script>
|
|
|
|
<link rel="icon" href="../images/favicon.ico" type="image/x-icon">
|
|
<link rel="shortcut icon" href="../images/favicon.ico" type="image/x-icon">
|
|
</head>
|
|
<body>
|
|
|
|
<form method="post" id="printForm" name="printForm" action='' style="height:100%;" target="${mindmap.title}">
|
|
<input type="hidden" name="action" value="print">
|
|
<input type="hidden" name="mapId" value="${mindmap.id}">
|
|
<input type="hidden" name="mapSvg" value="">
|
|
</form>
|
|
|
|
<div id="waitDialog" style="display:none">
|
|
<div id="waitingContainer">
|
|
<div class="loadingIcon"></div>
|
|
<div class="loadingText">
|
|
Loading ...
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="errorDialog" style="display:none">
|
|
<div id="errorContainer">
|
|
<div class="loadingIcon"></div>
|
|
<div class="loadingText">
|
|
Unexpected error loading your map :(
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<script type="text/javascript">
|
|
|
|
var waitDialog = new core.WaitDialog();
|
|
waitDialog.activate(true, $("waitDialog"));
|
|
$(window).addEvent("error", function(event) {
|
|
|
|
// Show error dialog ...
|
|
waitDialog.changeContent($("errorDialog"), false);
|
|
return false;
|
|
});
|
|
</script>
|
|
|
|
|
|
<div id="header">
|
|
<div id="headerInfo">
|
|
<div id="headerActions">
|
|
<span>MyWiseMappigs</span> | <span>Settings</span> | <span>Logout</span>
|
|
</div>
|
|
<div id="headerLogo"></div>
|
|
<div id="headerMapTitle">Title: <span>Hola</span></div>
|
|
</div>
|
|
<div id="toolbar">
|
|
<div id="editTab" class="tabContent">
|
|
<div id="persist" class="buttonContainer">
|
|
<div id="save" class="buttonOn" title="Save">
|
|
<img src="../nicons/save.png"/>
|
|
</div>
|
|
<div id="discart" class="buttonOn" title="Discard">
|
|
<img src="../nicons/discart.png"/>
|
|
</div>
|
|
<div id="print" class="buttonOn" title="Print">
|
|
<img src="../nicons/print.png"/>
|
|
</div>
|
|
<div id="export" class="buttonOn" title="Export">
|
|
<img src="../nicons/export.png"/>
|
|
</div>
|
|
</div>
|
|
<div id="edit" class="buttonContainer">
|
|
<div id="undoEdition" class="buttonOn" title="Undo Edition">
|
|
<img src="../nicons/undo.png"/>
|
|
</div>
|
|
<div id="redoEdition" class="buttonOn" title="Redo Edition">
|
|
<img src="../nicons/redo.png"/>
|
|
</div>
|
|
</div>
|
|
<div id="zoom" class="buttonContainer">
|
|
<div id="zoomIn" class="buttonOn" title="Zoom In">
|
|
<img src="../nicons/zoom-in.png"/>
|
|
</div>
|
|
<div id="zoomOut" class="buttonOn" title="Zoom Out">
|
|
<img src="../nicons/zoom-out.png"/>
|
|
</div>
|
|
</div>
|
|
<div id="node" class="buttonContainer">
|
|
<div id="topicShape" class="buttonExtOn" title="Topic Shape">
|
|
<img src="../nicons/topic-shape.png"/>
|
|
</div>
|
|
<div id="addTopic" class="buttonOn" title="Add Topic">
|
|
<img src="../nicons/topic-add.png"/>
|
|
</div>
|
|
<div id="deleteTopic" class="buttonOn" title="Delete">
|
|
<img src="../nicons/topic-delete.png"/>
|
|
</div>
|
|
<div id="topicBorder" class="buttonOn" title="Border Color">
|
|
<img src="../nicons/topic-border.png"/>
|
|
</div>
|
|
<div id="topicColor" class="buttonExtOn" title="Background Color">
|
|
<img src="../nicons/topic-color.png"/>
|
|
</div>
|
|
<div id="topicIcon" class="buttonExtOn" title="Add Icon">
|
|
<img src="../nicons/topic-icon.png"/>
|
|
</div>
|
|
<div id="topicNote" class="buttonOn" title="Add Note">
|
|
<img src="../nicons/topic-note.png"/>
|
|
</div>
|
|
<div id="topicLink" class="buttonOn" title="Add Link">
|
|
<img src="../nicons/topic-link.png"/>
|
|
</div>
|
|
<div id="topicRelation" class="buttonOn" title="Add Relationship">
|
|
<img src="../nicons/topic-relation.png"/>
|
|
</div>
|
|
</div>
|
|
<div id="font" class="buttonContainer">
|
|
<div id="fontFamily" class="buttonOn" title="Font Style">
|
|
<img src="../nicons/font-type.png"/>
|
|
</div>
|
|
<div id="fontSize" class="buttonExtOn" title="Font Size">
|
|
<img src="../nicons/font-size.png"/>
|
|
</div>
|
|
<div id="fontBold" class="buttonOn" title="Bold Style">
|
|
<img src="../nicons/topic-border.png"/>
|
|
</div>
|
|
<div id="fontItalic" class="buttonOn" title="Italic Style">
|
|
<img src="../nicons/font-italic.png"/>
|
|
</div>
|
|
<div id="fontColor" class="buttonExtOn" title="Fond Color">
|
|
<img src="../nicons/font-color.png"/>
|
|
|
|
</div>
|
|
</div>
|
|
<div id="collaboration" class="buttonContainer">
|
|
<div id="tagIt" class="buttonOn" title="Tag">
|
|
<img src="../nicons/tag.png"/>
|
|
</div>
|
|
<div id="shareIt" class="buttonOn" title="Share">
|
|
<img src="../nicons/share.png"/>
|
|
</div>
|
|
<div id="publishIt" class="buttonOn" title="Publish">
|
|
<img src="../nicons/public.png"/>
|
|
</div>
|
|
<div id="history" class="buttonOn" title="History">
|
|
<img src="../nicons/history.png"/>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="mindplot"></div>
|
|
<script type="text/javascript" src="../js/editor.js"></script>
|
|
</body>
|
|
</html>
|