2011-07-23 22:22:46 +02:00
<!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" / >
2011-07-23 22:22:46 +02:00
<!-- [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-15 03:56:20 +02:00
< script type = 'text/javascript' src = '../js/less-1.1.3.min.js' > < / script >
2011-10-10 23:30:02 +02:00
< link rel = "stylesheet/less" type = "text/css" href = "../css/editor2.css" / >
2011-07-26 20:07:53 +02:00
2011-10-04 06:16:29 +02:00
< script type = 'text/javascript'
2011-10-18 14:29:29 +02:00
src='/mindplot/src/main/javascript/libraries/mootools/mootools-core-1.3.2-full-compress.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 >
2011-08-23 19:25:49 +02:00
< script type = 'text/javascript' src = '/core-js/target/classes/core.js' > < / script >
2011-10-15 07:52:44 +02:00
< script type = 'text/javascript' src = '../js/less-1.1.3.min.js' > < / script >
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
2011-10-04 06:16:29 +02:00
var mapId = '10'; // @todo: Must be changed ...
2011-09-07 03:12:11 +02:00
var brixReady = false;
var mindReady = false;
2011-10-04 06:16:29 +02:00
var collab = 'standalone';
// var collab = 'brix';
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) {
2011-10-04 06:16:29 +02:00
designer = buildDesigner(collab);
2011-09-08 14:16:50 +02:00
}
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-10-04 06:16:29 +02:00
} else if (collab == 'standalone' & & mindReady) {
2011-09-08 14:16:50 +02:00
// Load map from XML ...
2011-10-18 14:29:29 +02:00
var mapXml = '< map name = "1" version = "pela" > < topic central = "true" text = "WiseMapping" id = "1" > < topic position = "191,-50" order = "1" text = "Open Source" id = "2" / > < topic position = "-167,0" order = "0" text = "Technologies" id = "3" > < topic position = "-281,5" order = "1" text = "Java " id = "4" / > < topic position = "-287,-19" order = "0" text = "SVG" id = "5" > < note text = "Previous versions also support VML " / > < / topic > < topic position = "-292,29" order = "2" text = "Hibernate" id = "6" / > < / topic > < topic position = "140,50" order = "2" text = "Business Model" id = "7" > < topic position = "271,51" order = "0" id = "8" / > < / topic > < topic position = "-140,-150" order = "5" text = "Compatibility" id = "9" > < topic position = "-263,-145" order = "0" text = "Browsers" id = "10" > < topic position = "-354,-168" order = "0" text = "IE" id = "11" / > < topic position = "-366,-144" order = "1" text = "Chrome" id = "12" / > < topic position = "-363,-120" order = "2" text = "Safari" id = "13" / > < / topic > < / topic > < / topic > < / 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-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 >
2011-10-10 23:30:02 +02:00
< div id = "header" >
< div id = "headerInfo" >
2011-10-15 03:56:20 +02:00
< 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 >
2011-10-10 23:30:02 +02:00
< / div >
< div id = "toolbar" >
< div id = "editTab" class = "tabContent" >
2011-10-15 18:23:27 +02:00
< 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" >
2011-10-15 03:56:20 +02:00
< 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 >
2011-10-10 23:30:02 +02:00
< / div >
< div id = "zoom" class = "buttonContainer" >
2011-10-15 03:56:20 +02:00
< 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 >
2011-10-10 23:30:02 +02:00
< / div >
< div id = "node" class = "buttonContainer" >
2011-10-15 03:56:20 +02:00
< 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 >
2011-10-10 23:30:02 +02:00
< / div >
< div id = "font" class = "buttonContainer" >
2011-10-15 03:56:20 +02:00
< 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" >
2011-10-18 14:29:29 +02:00
< img src = "../nicons/font-bold.png" / >
2011-10-15 03:56:20 +02:00
< / div >
< div id = "fontItalic" class = "buttonOn" title = "Italic Style" >
< img src = "../nicons/font-italic.png" / >
< / div >
2011-10-17 15:12:27 +02:00
< div id = "fontColor" class = "buttonExtOn" title = "Fond Color" style = "padding-top:4px" >
2011-10-15 03:56:20 +02:00
< img src = "../nicons/font-color.png" / >
< / div >
2011-10-10 23:30:02 +02:00
< / div >
2011-10-15 07:52:44 +02:00
< 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 >
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 >
< script type = "text/javascript" src = "../js/editor.js" > < / script >
< / body >
< / html >