2011-07-23 22:22:46 +02:00
|
|
|
<!DOCTYPE HTML>
|
|
|
|
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<!--[if lt IE 9]>
|
|
|
|
<meta http-equiv="X-UA-Compatible" content="chrome=1">
|
|
|
|
<![endif]-->
|
2011-09-09 07:22:44 +02:00
|
|
|
<script type="text/javascript" src="http://docs.google.com/brix/static/api/js/jsapi.nocache.js"></script>
|
2011-07-23 22:22:46 +02:00
|
|
|
<!-- Internet Explorer 8 Hack -->
|
|
|
|
<meta http-equiv="Content-type" content="text/html; charset=UTF-8"/>
|
|
|
|
<title>WiseMapping - Editor </title>
|
|
|
|
<link rel="stylesheet" type="text/css" href="../css/editor.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-08-22 03:53:37 +02:00
|
|
|
<script type='text/javascript'
|
|
|
|
src='https://ajax.googleapis.com/ajax/libs/mootools/1.3.2/mootools-yui-compressed.js'></script>
|
2011-07-26 20:07:53 +02:00
|
|
|
<script type='text/javascript' src='../js/mootools-more-1.3.2.1-yui.js'></script>
|
|
|
|
|
2011-08-23 19:25:49 +02:00
|
|
|
<script type='text/javascript' src='/core-js/target/classes/core.js'></script>
|
2011-09-11 05:07:43 +02:00
|
|
|
<!--<script type='text/javascript' src='js/core-min.js'></script>-->
|
2011-08-26 03:08:39 +02:00
|
|
|
|
2011-08-08 00:27:23 +02:00
|
|
|
<script type="text/javascript">
|
2011-09-07 03:12:11 +02:00
|
|
|
|
2011-08-08 00:27:23 +02:00
|
|
|
//Google-Brix framework load callback function
|
|
|
|
collabOnLoad = function() {
|
2011-09-07 03:12:11 +02:00
|
|
|
$(document).fireEvent('loadcomplete', 'brix');
|
2011-08-08 00:27:23 +02:00
|
|
|
};
|
2011-09-07 03:12:11 +02:00
|
|
|
|
|
|
|
var brixReady = false;
|
|
|
|
var mindReady = false;
|
2011-09-09 07:22:44 +02:00
|
|
|
var local = false;
|
2011-09-07 03:12:11 +02:00
|
|
|
$(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) {
|
|
|
|
designer = buildDesigner();
|
|
|
|
}
|
|
|
|
|
2011-09-07 03:12:11 +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);
|
|
|
|
|
2011-09-07 03:12:11 +02:00
|
|
|
// If not problem has arisen, close the dialog ...
|
|
|
|
if (!window.hasUnexpectedErrors) {
|
|
|
|
waitDialog.deactivate();
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
2011-09-08 14:16:50 +02:00
|
|
|
} else if (local && mindReady) {
|
|
|
|
// Load map from XML ...
|
2011-09-07 03:12:11 +02:00
|
|
|
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);
|
|
|
|
var mindmap = serializer.loadFromDom(domDocument);
|
|
|
|
mindmap.setId('1');
|
|
|
|
|
|
|
|
// Now, load the map ...
|
|
|
|
designer.loadMap(mindmap);
|
2011-09-07 03:12:11 +02:00
|
|
|
|
2011-09-08 14:16:50 +02:00
|
|
|
// If not problem has arisen, close the dialog ...
|
2011-09-07 03:12:11 +02:00
|
|
|
if (!window.hasUnexpectedErrors) {
|
|
|
|
waitDialog.deactivate();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
2011-08-08 00:27:23 +02:00
|
|
|
</script>
|
2011-07-23 22:22:46 +02:00
|
|
|
|
|
|
|
<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}">
|
2011-07-23 22:22:46 +02:00
|
|
|
<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 ...
|
2011-07-23 22:22:46 +02:00
|
|
|
</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 :(
|
2011-07-23 22:22:46 +02:00
|
|
|
</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>
|
|
|
|
<div id="toolbar">
|
2011-08-05 06:06:56 +02:00
|
|
|
<div id="editTab" class="tabContent">
|
|
|
|
<div id="file" class="buttonContainer" title="SYMB_ FILE">
|
|
|
|
<fieldset>
|
|
|
|
<div id="undoEdition" class="button" title="Undo Edition">
|
|
|
|
<div class="toolbarLabel">
|
|
|
|
<p>Undo</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div id="redoEdition" class="button" title="Redo Edition">
|
|
|
|
<div class="toolbarLabel">
|
|
|
|
<p>Redo</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</fieldset>
|
|
|
|
</div>
|
2011-08-27 00:41:50 +02:00
|
|
|
<div id="zoom" class="buttonContainer" title="Zoom">
|
2011-08-05 06:06:56 +02:00
|
|
|
<fieldset>
|
|
|
|
<div id="zoomIn" class="button" title="Zoom In">
|
|
|
|
<div class="toolbarLabel">
|
|
|
|
<p>In</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div id="zoomOut" class="button" title="Zoom Out">
|
|
|
|
<div class="toolbarLabel">
|
|
|
|
<p>Out</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</fieldset>
|
|
|
|
</div>
|
|
|
|
<div id="node" class="buttonContainer" title="Node Properties">
|
|
|
|
<fieldset>
|
|
|
|
<div id="topicShape" class="button comboButton" title="SYMB_TOPIC_SHAPE">
|
|
|
|
<div class="toolbarLabel">
|
|
|
|
<p>Shape</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div id="addTopic" class="button" title="SYMB_ TOPIC_ADD">
|
|
|
|
<div class="toolbarLabel">
|
|
|
|
<p>Add</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div id="deleteTopic" class="button" title="SYMB_ TOPIC_DELETE">
|
|
|
|
<div class="toolbarLabel">
|
|
|
|
<p>Delete</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
2011-08-11 04:13:13 +02:00
|
|
|
<div id="topicBorder" class="button" title="SYMB_ TOPIC_BORDER_COLOR">
|
2011-08-05 06:06:56 +02:00
|
|
|
<div class="toolbarLabel">
|
|
|
|
<p>Border</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
2011-08-11 04:13:13 +02:00
|
|
|
<div id="topicColor" class="button" title="Background Color">
|
2011-08-05 06:06:56 +02:00
|
|
|
<div class="toolbarLabel">
|
|
|
|
<p>Color</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
2011-08-11 04:13:13 +02:00
|
|
|
<div id="topicIcon" class="button" title="Change Icon">
|
2011-08-05 06:06:56 +02:00
|
|
|
<div class="toolbarLabel">
|
|
|
|
<p>Icon</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
2011-08-11 04:13:13 +02:00
|
|
|
<div id="topicNote" class="button" title="Add Note">
|
2011-08-05 06:06:56 +02:00
|
|
|
<div class="toolbarLabel">
|
|
|
|
<p>Note</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div id="topicLink" class="button" title="Add Link">
|
|
|
|
<div class="toolbarLabel">
|
|
|
|
<p>Link</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div id="topicRelation" class="topicRelation button" title="Add Relationship">
|
|
|
|
<div class="relationshiplabel toolbarLabel">
|
|
|
|
<p>Relationship</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</fieldset>
|
|
|
|
</div>
|
|
|
|
<div id="font" class="buttonContainer" title="Font Properties">
|
|
|
|
<fieldset>
|
|
|
|
<div id="fontFamily" class="button comboButton" title="Font Style">
|
|
|
|
<div class="toolbarLabel">
|
|
|
|
<p>Style</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div id="fontSize" class="button comboButton" title="Font Size">
|
|
|
|
<div class="toolbarLabel">
|
|
|
|
<p>Size</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div id="fontBold" class="button" title="Bold Style">
|
|
|
|
<div class="toolbarLabel">
|
|
|
|
<p>Bold</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div id="fontItalic" class="button" title="Italic Style">
|
|
|
|
<div class="toolbarLabel">
|
|
|
|
<p>Italic</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div id="fontColor" class="button comboButton" title="Fond Color">
|
|
|
|
<div class="toolbarLabel">
|
|
|
|
<p>Color</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</fieldset>
|
2011-07-23 22:22:46 +02:00
|
|
|
</div>
|
2011-08-05 06:06:56 +02:00
|
|
|
</div>
|
2011-07-23 22:22:46 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div id="mindplot"></div>
|
|
|
|
|
|
|
|
<div id="footerEditor">
|
2011-08-23 19:25:49 +02:00
|
|
|
<div style="position:absolute; top:0; width:100%">
|
2011-08-19 18:38:37 +02:00
|
|
|
<a href="http://www.wisemapping.com/">
|
2011-07-23 22:22:46 +02:00
|
|
|
<div id="logo"></div>
|
|
|
|
</a>
|
|
|
|
|
|
|
|
<div id='msgLoggerContainer' class="msgLoggerContainer">
|
|
|
|
<div id="msgStart"></div>
|
|
|
|
<div id='msgLogger'></div>
|
|
|
|
<div id="msgEnd"></div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div id="helpButtonKeyboard"
|
|
|
|
style="text-align:center; width:100px; height:20px; background-color:#f5f5f5; border: 1px solid #BBB6D6; cursor:pointer; padding-left:5px; margin-left:3px;float:left;">
|
|
|
|
<div style="float:left; position:relative; top:50%; margin-top:-8px; margin-left:5px;"><img
|
|
|
|
src="../images/help.png"/></div>
|
|
|
|
<div style="float:left; position:relative; top:50%; margin-top:-8px; margin-left:4px;">Shortcuts</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<script type="text/javascript" src="../js/editor.js"></script>
|
|
|
|
</body>
|
|
|
|
</html>
|