wisemapping-open-source/wise-doc/src/main/webapp/html/editor.html

160 lines
6.2 KiB
HTML
Raw Normal View History

<!DOCTYPE HTML>
<html>
<head>
2011-10-04 06:16:29 +02:00
<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]-->
2011-10-04 06:16:29 +02:00
<!--<script type="text/javascript" src="http://docs.google.com/brix/static/api/js/jsapi.nocache.js"></script>-->
2011-10-10 23:30:02 +02:00
<link rel="stylesheet/less" type="text/css" href="../css/editor2.css"/>
2011-08-26 03:08:39 +02:00
<link rel="stylesheet" type="text/css" href='/mindplot/src/main/javascript/libraries/moodialog/css/MooDialog.css'/>
2011-07-26 20:07:53 +02:00
2011-10-04 06:16:29 +02:00
<script type='text/javascript'
src='https://ajax.googleapis.com/ajax/libs/mootools/1.3.2/mootools-yui-compressed.js'></script>
2011-10-10 23:30:02 +02:00
<script type='text/javascript' src='../js/less-1.1.3.min.js'></script>
2011-10-04 06:16:29 +02:00
<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>
2011-10-07 05:21:49 +02:00
<script type="text/javascript">
//Google-Brix framework load callback function
collabOnLoad = function() {
$(document).fireEvent('loadcomplete', 'brix');
};
2011-10-04 06:16:29 +02:00
var mapId = '10'; // @todo: Must be changed ...
var brixReady = false;
var mindReady = false;
2011-10-04 06:16:29 +02:00
var collab = 'standalone';
// var collab = 'brix';
$(document).addEvent('loadcomplete', function(resource) {
brixReady = resource == 'brix' ? true : brixReady;
mindReady = resource == 'mind' ? true : mindReady;
2011-09-08 14:16:50 +02:00
if (mindReady) {
2011-10-04 06:16:29 +02:00
designer = buildDesigner(collab);
2011-09-08 14:16:50 +02:00
}
// If both resources has been loaded, start loading the framework...
if (brixReady && mindReady) {
2011-09-08 14:16:50 +02:00
mindplot.collaboration.framework.brix.BrixFramework.init(function() {
var manager = mindplot.collaboration.CollaborationManager.getInstance();
2011-09-09 07:22:44 +02:00
var mindmap = manager.buildMindmap();
designer.loadMap(mindmap);
// If not problem has arisen, close the dialog ...
if (!window.hasUnexpectedErrors) {
waitDialog.deactivate();
}
});
2011-10-04 06:16:29 +02:00
} else if (collab == 'standalone' && mindReady) {
2011-09-08 14:16:50 +02:00
// Load map from XML ...
var mapXml = '<map name="38298" version="pela"><topic central="true" text="test\nThis is working ?" id="1"/></map>';
2011-09-08 14:16:50 +02:00
var domDocument = core.Utils.createDocumentFromText(mapXml);
var serializer = mindplot.XMLMindmapSerializerFactory.getSerializerFromDocument(domDocument);
2011-10-04 06:16:29 +02:00
var mindmap = serializer.loadFromDom(domDocument, mapId);
2011-09-08 14:16:50 +02:00
// Now, load the map ...
designer.loadMap(mindmap);
2011-09-08 14:16:50 +02:00
// 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>
2011-07-24 17:09:05 +02:00
<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">
2011-08-05 06:06:56 +02:00
Loading ...
</div>
</div>
</div>
<div id="errorDialog" style="display:none">
<div id="errorContainer">
<div class="loadingIcon"></div>
<div class="loadingText">
2011-08-05 06:06:56 +02:00
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="colorPalette">
<div id="paletteHeader"></div>
</div>
2011-10-10 23:30:02 +02:00
<div id="header">
<div id="headerInfo">
Algo a aca ....
</div>
<div id="toolbar">
<div id="editTab" class="tabContent">
<div id="file" class="buttonContainer">
<div id="undoEdition" class="buttonOn" title="Undo Edition"></div>
<div id="redoEdition" class="buttonOn" title="Redo Edition"></div>
</div>
<div id="zoom" class="buttonContainer">
<div id="zoomIn" class="buttonOn" title="Zoom In"></div>
<div id="zoomOut" class="buttonOn" title="Zoom Out"></div>
</div>
<div id="node" class="buttonContainer">
<div id="topicShape" class="buttonOn" title="SYMB_TOPIC_SHAPE"></div>
<div id="addTopic" class="buttonOn" title="SYMB_ TOPIC_ADD"></div>
<div id="deleteTopic" class="buttonOn" title="Delete"></div>
<div id="topicBorder" class="buttonOn" title="Boder Color"></div>
<div id="topicColor" class="buttonOn" title="Background Color"></div>
<div id="topicIcon" class="buttonOn" title="Add Icon"></div>
<div id="topicNote" class="buttonOn" title="Add Note"></div>
<div id="topicLink" class="buttonOn" title="Add Link"></div>
<div id="topicRelation" class="buttonOn" title="Add Relationship"></div>
</div>
<div id="font" class="buttonContainer">
<div id="fontFamily" class="buttonOn" title="Font Style"></div>
<div id="fontSize" class="buttonOn" title="Font Size"></div>
<div id="fontBold" class="buttonOn" title="Bold Style"></div>
<div id="fontItalic" class="buttonOn" title="Italic Style"></div>
<div id="fontColor" class="buttonOn" title="Fond Color"></div>
</div>
</div>
2011-08-05 06:06:56 +02:00
</div>
</div>
<div id="mindplot"></div>
<script type="text/javascript" src="../js/editor.js"></script>
</body>
</html>