Keep cleaning and refactoring styles and samples.

This commit is contained in:
Paulo Veiga 2012-02-02 00:13:29 -03:00
parent b37ecd8c2c
commit b6dd7712f9
23 changed files with 317 additions and 1276 deletions

View File

@ -32,6 +32,7 @@
<include>js/mootools*.js</include>
<include>html/editor.html</include>
<include>html/viewmode.html</include>
<include>samples/*</include>
</includes>
</fileSet>
</fileSets>

View File

@ -28,10 +28,10 @@ mindplot.DesignerUndoManager = new Class({
enqueue:function(command) {
$assert(command, "Command can not be null");
var length = this._undoQueue.length;
if (command.discartDuplicated && length > 0) {
if (command.discardDuplicated && length > 0) {
// Skip duplicated events ...
var lastItem = this._undoQueue[length - 1];
if (lastItem.discartDuplicated != command.discartDuplicated) {
if (lastItem.discardDuplicated != command.discardDuplicated) {
this._undoQueue.push(command);
}
} else {

View File

@ -17,7 +17,7 @@
*/
mindplot.DwrPersitenceManager = new Class({
Extends:mindplot.PersitenceManager,
Extends:mindplot.PersistenceManager,
initialize: function() {
this.parent();
},

View File

@ -17,7 +17,7 @@
*/
mindplot.LocalStorageManager = new Class({
Extends:mindplot.PersitenceManager,
Extends:mindplot.PersistenceManager,
initialize: function() {
this.parent();
},
@ -32,7 +32,7 @@ mindplot.LocalStorageManager = new Class({
if (xml == null) {
// Let's try to open one from the local directory ...
var xmlRequest = new Request({
url: '../maps/' + mapId + '.xml',
url: '../samples/' + mapId + '.xml',
method: 'get',
async: false,
onSuccess: function(responseText) {

View File

@ -16,7 +16,7 @@
* limitations under the License.
*/
mindplot.PersitenceManager = new Class({
mindplot.PersistenceManager = new Class({
initialize: function() {
},
@ -68,11 +68,11 @@ mindplot.PersitenceManager = new Class({
}
});
mindplot.PersitenceManager.init = function(instance) {
mindplot.PersitenceManager._instance = instance;
mindplot.PersistenceManager.init = function(instance) {
mindplot.PersistenceManager._instance = instance;
};
mindplot.PersitenceManager.getInstance = function() {
return mindplot.PersitenceManager._instance;
mindplot.PersistenceManager.getInstance = function() {
return mindplot.PersistenceManager._instance;
};

View File

@ -150,7 +150,7 @@ mindplot.StandaloneActionDispatcher = new Class({
};
var command = new mindplot.commands.GenericFunctionCommand(commandFunc, topicsIds, color);
command.discartDuplicated = "fontColorCommandId";
command.discardDuplicated = "fontColorCommandId";
this.execute(command);
},
@ -165,7 +165,7 @@ mindplot.StandaloneActionDispatcher = new Class({
};
var command = new mindplot.commands.GenericFunctionCommand(commandFunc, topicsIds, color);
command.discartDuplicated = "backColor";
command.discardDuplicated = "backColor";
this.execute(command);
},
@ -180,7 +180,7 @@ mindplot.StandaloneActionDispatcher = new Class({
};
var command = new mindplot.commands.GenericFunctionCommand(commandFunc, topicsIds, color);
command.discartDuplicated = "borderColorCommandId";
command.discardDuplicated = "borderColorCommandId";
this.execute(command);
},

View File

@ -48,7 +48,7 @@ mindplot.widget.IMenu = new Class({
}
// Call persistence manager for saving ...
var persistenceManager = mindplot.PersitenceManager.getInstance();
var persistenceManager = mindplot.PersistenceManager.getInstance();
persistenceManager.save(mindmap, mindmapProp, saveHistory, {
onSuccess: function() {
if (saveHistory) {

View File

@ -1,674 +0,0 @@
body, div, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6, pre, form, fieldset, input, textarea, p, blockquote, th, td {
margin: 0;
padding: 0;
}
table {
border-collapse: collapse;
border-spacing: 0;
}
fieldset, img {
border: 0;
}
address, caption, cite, code, dfn, em, strong, th, var {
font-style: normal;
font-weight: normal;
}
ol, ul {
list-style: none;
}
caption, th {
text-align: left;
}
h1, h2, h3, h4, h5, h6 {
font-size: 100%;
font-weight: normal;
}
q:before, q:after {
content: '';
}
abbr, acronym {
border: 0;
}
/**
* Percents could work for IE, but for backCompat purposes, we are using keywords.
* x-small is for IE6/7 quirks mode.
*
*/
body {
font: 13px arial, helvetica, clean, sans-serif;
font-size: small;
font: x-small;
}
table {
font-size: inherit;
font-size: 100%;
}
/**
* 99% for safari; 100% is too large
*/
select, input, textarea {
font: 99% arial, helvetica, clean, sans-serif;
}
/**
* Bump up !IE to get to 13px equivalent
*/
pre, code {
font: 115% monospace;
font-size: 100%;
}
/**
* Default line-height based on font-size rather than "computed-value"
* see: http://www.w3.org/TR/CSS21/visudet.html#line-height
*/
body * {
line-height: 1.22em;
}
* {
margin: 0;
padding: 0;
}
body {
font: normal 80% "trebuchet ms", verdana, arial, helvetica, sans-serif;
background-color: #fff;
}
img {
border: 0;
}
form {
padding: 0px;
margin: 0px;
}
p {
margin: 5px 0 5px 0;
}
ul {
list-style-position: inside;
}
a:link, a:visited {
font: bold 100%;
text-decoration: underline;
color: black;
}
a:hover, a:active {
font: bold 100%;
text-decoration: underline;
color: black;
}
h2 {
font-size: 160%;
color: #8e9181;
}
h1 {
font-style: normal;
font-size: 180%;
color: white;
padding-bottom: 2px;
}
h3 {
/* use as subhead on main body */
clear: left;
font-style: normal;
font-size: 130%;
color: #6b6f5b;
}
h4 {
/* use as headers in footer */
font-weight: bold;
font-size: 120%;
border-bottom: 1px solid #8e9181;
color: #e2e3dd;
padding-bottom: 10px;
width: 400px;
}
#centerContent {
text-align: center;
}
/* HEADER STYLES */
#header {
margin-top: 2px;
height: 78px;
width: 100%;
background: white;
border-bottom: 1px solid #bbb4d6;
position: absolute;
top: 0;
left: 0;
}
#headerToolbar {
height: 25px;
width: 100%;
background-color: #171a17;
border-top: 1px solid #999999;
border-bottom: 1px solid #424141;
color: white;
font-size: small;
font-style: normal;
}
#headerContent {
width: 800px;
height: 78px;
position: relative;
top: 0;
left: 0;
margin: auto;
}
#headerLogo {
margin-top: 8px;
height: 80px;
width: 134px;
background: url("../images/logo-small.png") no-repeat;
position: absolute;
top: 0;
left: 0;
}
#headerSlogan {
position: absolute;
border-left: 1px dashed gray;
margin-top: 8px;
height: 1em;
width: 100px;
top: 40px;
left: 137px;
white-space: nowrap;
padding-left: 7px;
font-weight: bold;
vertical-align: middle;
}
#headerButtons {
position: absolute;
top: 65px;
left: 150px;
}
#newsLink, #blogLink, #aboutLink, #newsLink, #faqLink, #feedbackLink, #supportLink, #logoutLink {
float: right;
z-index: 300;
}
div#headerButtons a {
float: left;
color: #6F6F6F;
padding: 0 10px;
text-decoration: none;
font-weight: bold;
font-size: 120%;
white-space: nowrap;
}
div#headerTitle {
float: left;
font-weight: bold;
font-size: 15px;
margin-right: 5px;
margin-left: 5px;
}
div#printHeader {
background-color: black;
height: 35px;
color: white;
}
span#headerSubTitle {
font-weight: lighter;
font-size: 12px;
}
div#headerButtons a:hover {
/*text-decoration: underline;*/
color: #7e72ad;
}
div#headerButtons activelink a, div#headerButtons activelink a:hover {
text-decoration: none;
border-top: 0;
border-bottom: 0;
}
#signUpHeader {
padding-right: 8px;
padding-top: 4px;
position: absolute;
right: 0;
z-index: 50;
text-align: center;
}
#signUpHeader a, #signUpHeader a:hover {
font-size: 100%;
color: #BBB4D6;
text-decoration: underline;
}
#editorHeader {
height: 40px;
width: 100%;
background: white;
border-bottom: 1px solid #bbb4d6;
position: absolute;
top: 0;
left: 0;
}
#editorHeader #headerToolbar {
height: 40px;
width: 100%;
background-color: #171a17;
border-top: 1px solid #999999;
border-bottom: 1px solid #424141;
color: white;
font-size: small;
font-style: normal;
}
div#editorHeader div#headerTitle {
float: left;
font-weight: bold;
font-size: 22px;
margin-right: 5px;
margin-left: 5px;
}
div#editorHeader span#headerSubTitle {
font-weight: lighter;
font-size: 12px;
}
div#editorHeader div#headerActions {
padding-right: 8px;
padding-top: 4px;
position: absolute;
right: 0;
top: 4px;
z-index: 50;
}
div#editorHeader div#headerActions a:hover, div#headerActions a:active, div#headerActions a:link, div#headerActions a:visited {
color: white;
}
#footer {
width: 100%;
border-top: 1px solid #8e9181;
text-align: center;
font-size: 90%;
background-color: white;
float: left;
}
div#printFooter {
height: 60px;
width: 100%;
background: #E5E5E5;
border-top: 1px solid #bbb4d6;
}
div#printLogo {
height: 50px;
width: 80px;
float: right;
margin: 1px;
background: url(../images/logo-vsmall.png) no-repeat right top;
}
.btn-primary {
cursor: pointer;
display: inline-block;
padding: 5px 14px 6px;
text-shadow: 0 1px 1px rgba(255, 255, 255, 0.75);
color: #333;
font-size: 13px;
line-height: normal;
border: 1px solid #ccc;
border-bottom-color: #bbb;
-webkit-border-radius: 4px;
-moz-border-radius: 4px;
border-radius: 4px;
-webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
-moz-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
-webkit-transition: 0.1s linear all;
-moz-transition: 0.1s linear all;
-ms-transition: 0.1s linear all;
-o-transition: 0.1s linear all;
transition: 0.1s linear all;
color: #ffffff;
background-color: #0064cd;
background-repeat: repeat-x;
background-image: -khtml-gradient(linear, left top, left bottom, from(#049cdb), to(#0064cd));
background-image: -moz-linear-gradient(top, #049cdb, #0064cd);
background-image: -ms-linear-gradient(top, #049cdb, #0064cd);
background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #049cdb), color-stop(100%, #0064cd));
background-image: -webkit-linear-gradient(top, #049cdb, #0064cd);
background-image: -o-linear-gradient(top, #049cdb, #0064cd);
background-image: linear-gradient(top, #049cdb, #0064cd);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr = '#049cdb', endColorstr = '#0064cd', GradientType = 0);
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
border-color: #0064cd #0064cd #003f81;
border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
}
.btn-primary:hover {
background-position: 0 -15px;
text-decoration: none;
}
.btn-secondary {
cursor: pointer;
display: inline-block;
background-color: #e6e6e6;
background-repeat: no-repeat;
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ffffff), color-stop(25%, #ffffff), to(#e6e6e6));
background-image: -webkit-linear-gradient(#ffffff, #ffffff 25%, #e6e6e6);
background-image: -moz-linear-gradient(top, #ffffff, #ffffff 25%, #e6e6e6);
background-image: -ms-linear-gradient(#ffffff, #ffffff 25%, #e6e6e6);
background-image: -o-linear-gradient(#ffffff, #ffffff 25%, #e6e6e6);
background-image: linear-gradient(#ffffff, #ffffff 25%, #e6e6e6);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr = '#ffffff', endColorstr = '#e6e6e6', GradientType = 0);
padding: 5px 14px 6px;
text-shadow: 0 1px 1px rgba(255, 255, 255, 0.75);
color: #333;
font-size: 13px;
line-height: normal;
border: 1px solid #ccc;
border-bottom-color: #bbb;
-webkit-border-radius: 4px;
-moz-border-radius: 4px;
border-radius: 4px;
-webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
-moz-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
-webkit-transition: 0.1s linear all;
-moz-transition: 0.1s linear all;
-ms-transition: 0.1s linear all;
-o-transition: 0.1s linear all;
transition: 0.1s linear all;
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
}
.btn-secondary:hover {
background-position: 0 -15px;
text-decoration: none;
}
div#paypal {
float: left;
margin: -29px;
}
.errorMsg {
color: #990000;
font-size: 90%;
font-weight: bold;
padding-left: 5px;
}
#headerLogo {
cursor: pointer;
}
#headerLoading {
padding-left: 40px;
background: url('../images/ajax-loader.gif') #BBB4D6 no-repeat left;
position: absolute;
right: 3px;
top: 5px;
width: 75px;
height: 20px;
color: white;
font-weight: bold;
border: 1px solid;
border-color: #f5f5f5;
background-position: 5px 2px;
visibility: hidden;
}
div#headerActions {
padding-right: 8px;
padding-top: 4px;
position: absolute;
right: 0;
z-index: 50;
}
div#headerActions a:hover, div#headerActions a:active, div#headerActions a:link, div#headerActions a:visited {
color: white;
}
div.header_languages {
position: absolute;
right: 0;
top: 30px;
width: 100px;
height: 20px;
}
div.header_language_flag {
float: left;
margin-right: 3px;
}
/*--- Modal Dialog Form ---*/
div.modalDialog {
padding: 15px 30px;
}
div.modalDialog td {
padding: 3px;
}
div.modalDialog h1 {
color: #093A9D;
font-size: 200%;
margin-bottom: 5px;
font-weight: bold;
}
div.modalDialog h2 {
color: gray;
font-size: 110%;
margin: 9px 0;
}
div.modalDialog h5 {
color: gray;
font-size: 90%; /*border-bottom: 1px dashed #BBB4D6;*/
}
/*--- End Modal Dialog Form ---*/
/*-- Main Page Style -- */
div.pageBody {
margin: 10px auto;
width: 800px;
min-height: 500px;
}
div.pageBodyContent {
padding-top: 30px;
}
div.pageBodyContent h1 {
color: #093A9D;
font-size: 200%;
margin-bottom: 5px;
font-weight: bold;
}
div.pageBodyContent h2 {
color: gray;
font-size: 150%;
border-bottom: 1px dashed #BBB4D6;
margin: 20px 0;
}
div.pageBodyContent ul {
padding: 5px;
}
div.pageBodyContent li {
list-style-type: disc;
margin-left: 12px;
}
/*-- End Main Page Style -- */
/* Share Styles */
#userEmails {
float: left;
width: 50%;
padding: 5px;
}
#userEmails textarea {
width: 100%;
}
#currentUsers {
float: left;
width: 40%;
height: 400px;
padding: 5px;
padding-left: 15px;
margin-left: 15px;
border-left: 1px dotted gray;
}
#currentUsers table {
width: 100%;
}
#invitation {
border: 1px dotted gray;
}
td.formLabel {
text-align: right;
padding: 2px 10px;
white-space: nowrap;
font-weight: bolder;
vertical-align: top;
}
span.fieldRequired {
font-weight: bold;
color: #ff4500;
margin: 0 4px;
}
#keyboardTable {
clear: both;
width: 100%;
height: 300px;
overflow: auto;
border: 0 solid gray;
background-color: white;
z-index: 2;
position: relative;
}
#keyboardTable table {
width: 100%;
border: 0 solid gray;
}
#keyboardTable thead {
background-color: #093A9D;
font-size: 12px;
font-weight: normal;
padding: 5px;
}
#keyboardTable td {
border-bottom: 1px solid #EEEEEE;
color: #5f5f5f;
font-size: 12px;
padding: 3px;
}
#keyboardTable th {
color: white;
border-right: 1px dotted #ffffff;
font-weight: bold;
text-align: center;
font-size: 12px;
padding: 5px;
}
#keyboardTable tbody tr:hover {
background-color: #E2f0f6;
}
#keyboardTable tr {
padding: 5px;
}
div.installCFG {
width: 100%;
font-size: 130%;
}
div.installCFG h1 {
width: 100%;
font-size: 130%;
}
div.installCFG h2 {
font-size: 100%;
border-bottom: 0 solid black;
}
.chromeFrameInstallDefaultStyle {
position: relative;
left: 0;
top: 0;
margin: 0;
}
.floating-tip {
background-color: #dfcf3c;
padding: 5px 15px;
color: #666666;
/*font-weight: bold;*/
/*width: 100px;*/
font-size: 13px;
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
border-radius: 3px;
box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.2);
}

View File

@ -0,0 +1,158 @@
html {
overflow: hidden;
}
body, div, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6, pre, form, fieldset, input, textarea, p, blockquote, th, td {
margin: 0;
padding: 0;
}
table {
border-collapse: collapse;
border-spacing: 0;
}
fieldset, img {
border: 0;
}
address, caption, cite, code, dfn, em, strong, th, var {
font-style: normal;
font-weight: normal;
}
ol, ul {
list-style: none;
}
caption, th {
text-align: left;
}
h1, h2, h3, h4, h5, h6 {
font-size: 100%;
font-weight: normal;
}
q:before, q:after {
content: '';
}
abbr, acronym {
border: 0;
}
/**
* Percents could work for IE, but for backCompat purposes, we are using keywords.
* x-small is for IE6/7 quirks mode.
*
*/
body {
font: 13px arial, helvetica, clean, sans-serif;
font-size: small;
font: x-small;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-o-user-select: none;
user-select: none;
}
table {
font-size: inherit;
font-size: 100%;
}
/**
* 99% for safari; 100% is too large
*/
select, input, textarea {
font: 99% arial, helvetica, clean, sans-serif;
}
/**
* Bump up !IE to get to 13px equivalent
*/
pre, code {
font: 115% monospace;
font-size: 100%;
}
/**
* Default line-height based on font-size rather than "computed-value"
* see: http://www.w3.org/TR/CSS21/visudet.html#line-height
*/
body * {
line-height: 1.22em;
}
* {
margin: 0;
padding: 0;
}
body {
font: normal 80% "trebuchet ms", verdana, arial, helvetica, sans-serif;
background-color: #fff;
}
img {
border: 0;
}
form {
padding: 0;
margin: 0;
}
p {
margin: 5px 0 5px 0;
}
ul {
list-style-position: inside;
}
a:link, a:visited {
font: bold 100%;
text-decoration: underline;
color: black;
}
a:hover, a:active {
font: bold 100%;
text-decoration: underline;
color: black;
}
h2 {
font-size: 160%;
color: #8e9181;
}
h1 {
font-style: normal;
font-size: 180%;
color: white;
padding-bottom: 2px;
}
h3 {
/* use as subhead on main body */
clear: left;
font-style: normal;
font-size: 130%;
color: #6b6f5b;
}
h4 {
/* use as headers in footer */
font-weight: bold;
font-size: 120%;
border-bottom: 1px solid #8e9181;
color: #e2e3dd;
padding-bottom: 10px;
width: 400px;
}

View File

@ -1,169 +1,7 @@
@import "compatibility.less";
@import "../css/widget/lightbox.css";
@import "../css/libraries/moodialog/css/MooDialog.css";
@import "../css/skin.less";
/* Common Default Style */
html {
overflow: hidden;
}
body, div, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6, pre, form, fieldset, input, textarea, p, blockquote, th, td {
margin: 0;
padding: 0;
}
table {
border-collapse: collapse;
border-spacing: 0;
}
fieldset, img {
border: 0;
}
address, caption, cite, code, dfn, em, strong, th, var {
font-style: normal;
font-weight: normal;
}
ol, ul {
list-style: none;
}
caption, th {
text-align: left;
}
h1, h2, h3, h4, h5, h6 {
font-size: 100%;
font-weight: normal;
}
q:before, q:after {
content: '';
}
abbr, acronym {
border: 0;
}
/**
* Percents could work for IE, but for backCompat purposes, we are using keywords.
* x-small is for IE6/7 quirks mode.
*
*/
body {
font: 13px arial, helvetica, clean, sans-serif;
font-size: small;
font: x-small;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-o-user-select: none;
user-select: none;
}
table {
font-size: inherit;
font-size: 100%;
}
/**
* 99% for safari; 100% is too large
*/
select, input, textarea {
font: 99% arial, helvetica, clean, sans-serif;
}
/**
* Bump up !IE to get to 13px equivalent
*/
pre, code {
font: 115% monospace;
font-size: 100%;
}
/**
* Default line-height based on font-size rather than "computed-value"
* see: http://www.w3.org/TR/CSS21/visudet.html#line-height
*/
body * {
line-height: 1.22em;
}
* {
margin: 0;
padding: 0;
}
body {
font: normal 80% "trebuchet ms", verdana, arial, helvetica, sans-serif;
background-color: #fff;
}
img {
border: 0;
}
form {
padding: 0;
margin: 0;
}
p {
margin: 5px 0 5px 0;
}
ul {
list-style-position: inside;
}
a:link, a:visited {
font: bold 100%;
text-decoration: underline;
color: black;
}
a:hover, a:active {
font: bold 100%;
text-decoration: underline;
color: black;
}
h2 {
font-size: 160%;
color: #8e9181;
}
h1 {
font-style: normal;
font-size: 180%;
color: white;
padding-bottom: 2px;
}
h3 {
/* use as subhead on main body */
clear: left;
font-style: normal;
font-size: 130%;
color: #6b6f5b;
}
h4 {
/* use as headers in footer */
font-weight: bold;
font-size: 120%;
border-bottom: 1px solid #8e9181;
color: #e2e3dd;
padding-bottom: 10px;
width: 400px;
}
/**********************************************************/
/* End: Common Default Style */
/**********************************************************/
/**********************************************************/
/* Error Dialog ... */
@ -242,55 +80,7 @@ h4 {
/********************************************************************************/
/* Header & Toolbar Styles */
/********************************************************************************/
@import "header.less";
@import "toolbar.less";
div#topicRelation {
width: 56px;
background: url(../images/topic-relation.png) no-repeat center top;
z-index: 4;
}
div#colorPalette {
border: 1px solid #bbb4d6;
display: none;
position: absolute;
z-index: 4;
width: 160px;
top: 89px;
}
/*.toolbarPanel {*/
/*z-index: 4;*/
/*top: @header-height;*/
/*-moz-transition: opacity 0.218s ease 0s;*/
/*background: none repeat scroll 0 0 #FFFFFF;*/
/*border: 1px solid rgba(0, 0, 0, 0.2);*/
/*box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);*/
/*cursor: default;*/
/*font-size: 13px;*/
/*margin: 0;*/
/*outline: medium none;*/
/*padding: 0 0 6px;*/
/*position: absolute;*/
/*}*/
div.toolbarPanelLink, div.toolbarPanelLinkSelectedLink {
cursor: pointer;
color: black;
margin: 1px;
cursor: pointer;
font-size: 12px;
padding: 5px 10px;
font-weight: bold;
}
div.toolbarPanelLink:hover, div.toolbarPanelLinkSelectedLink {
cursor: pointer;
background-color: #efefef;
}
div#mindplot {
position: relative;
@ -300,10 +90,6 @@ div#mindplot {
border: 0;
}
div#workspaceContainer {
/*background: url(../images/grid.gif) bottom left repeat !important;*/
}
div#small_error_icon {
padding-left: 18px;
min-height: 16px;
@ -336,29 +122,6 @@ div#small_error_icon {
box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.2);
}
.toolbarPaneTip {
background-color: rgb(228, 226, 210);
padding: 5px 5px;
color: #f5f5f5;
/*font-weight: bold;*/
/*width: 100px;*/
font-size: 11px;
-moz-border-radius: 60px;
-webkit-border-radius: 6px;
border-radius: 6px;
box-shadow: 3px 3px 3px rgba(0, 0, 0, 0.2);
border: 3px double rgb(190, 190, 190);
}
.toolbarTip {
background-color: #000000;
padding: 5px 5px;
color: #f5f5f5;
/*font-weight: bold;*/
/*width: 100px;*/
font-size: 11px;
}
/* */
.btn-primary {
cursor: pointer;

View File

@ -9,21 +9,10 @@ html {
height: 100px;
}
#firstHeader {
width: 100%;
}
#subHeader {
position: absolute;
width: 100%;
height: 55px;
top: 30px;
}
#loadingContainer {
position: relative;
top: 80px;
height: 120px; /*background: whitesmoke;*/
height: 120px;
background: #FEFEFE;
opacity: .99;
padding: 15px;
@ -63,6 +52,7 @@ div#embFooter {
left: 0;
border-top: 1px solid black;
background: #E5E5E5;
font-family: Arial;
}
div#logo {
@ -123,31 +113,4 @@ div#mapDetails .title {
font-weight: bold;
margin-left: 10px;
margin-right: 3px;
}
.notesTip {
background-color: #dfcf3c;
padding: 5px 15px;
color: #666666;
/*font-weight: bold;*/
/*width: 100px;*/
font-size: 13px;
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
border-radius: 3px;
box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.2);
}
.linkTip {
background-color: #dfcf3c;
padding: 5px 15px;
color: #666666;
/*font-weight: bold;*/
/*width: 100px;*/
font-size: 13px;
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
border-radius: 3px;
box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.2);
}
}

View File

@ -1,4 +1,6 @@
@import "skin.less";
@header-height : 75px;
@header-toolbar-height : 35px;
@header-info-height : @header-height - @header-toolbar-height;
div#header {
width: 100%;
@ -77,4 +79,6 @@ div#headerNotifier {
/*margin-top:-34px;*/
display:none;
/*right: 5px;*/
}
}
@import "toolbar.less";

View File

@ -1 +0,0 @@
../../../../../wise-webapp/src/main/webapp/css/skin.less

View File

@ -1,5 +1,3 @@
@import "skin.less";
div#toolbar {
width: 100%;
height: @header-toolbar-height;
@ -100,101 +98,52 @@ div#exportAnchor {
left: 0;
}
/*div#saveButton {*/
/*background: url(../images/save.png) no-repeat center top;*/
/*}*/
/***************************************************************************************************/
/* Other toolbar styles */
/***************************************************************************************************/
.toolbarTip {
background-color: #000000;
padding: 5px 5px;
color: #f5f5f5;
/*font-weight: bold;*/
/*width: 100px;*/
font-size: 11px;
}
/*div#undoEdition {*/
/*background: url(../images/undo.png) no-repeat center top;*/
/*}*/
div#colorPalette {
border: 1px solid #bbb4d6;
display: none;
position: absolute;
z-index: 4;
width: 160px;
top: 89px;
}
/*div#redoEdition {*/
/*background: url(../images/redo.png) no-repeat center top;*/
/*}*/
div.toolbarPanelLink, div.toolbarPanelLinkSelectedLink {
cursor: pointer;
color: black;
margin: 1px;
cursor: pointer;
font-size: 12px;
padding: 5px 10px;
font-weight: bold;
}
/*div#export {*/
/*background: url(../images/export.png) no-repeat center top;*/
/*}*/
div.toolbarPanelLink:hover, div.toolbarPanelLinkSelectedLink {
cursor: pointer;
background-color: #efefef;
}
/*div#zoomIn {*/
/*background: url(../images/zoom-in.png) no-repeat center top;*/
/*}*/
/*div#zoomOut {*/
/*background: url(../images/zoom-out.png) no-repeat center top;*/
/*}*/
/*div#addTopic {*/
/*background: url(../images/topic-add.png) no-repeat center top;*/
/*}*/
/*div#deleteTopic {*/
/*background: url(../images/topic-delete.png) no-repeat center top;*/
/*}*/
/*div#topicColor {*/
/*background: url(../images/topic-color.png) no-repeat center top;*/
/*}*/
/*div#topicIcon {*/
/*background: url(../images/topic-icon.png) no-repeat center top;*/
/*}*/
/*div#topicNote {*/
/*background: url(../images/note.png) no-repeat center top;*/
/*}*/
/*div#topicNote {*/
/*background: url(../images/topic-icon.png) no-repeat center top;*/
/*z-index: 4;*/
/*}*/
/*div#topicLink {*/
/*background: url(../images/topic-link.png) no-repeat center top;*/
/*z-index: 4;*/
/*}*/
/*div#topicNote {*/
/*background-image: url(../images/note.png);*/
/*z-index: 4;*/
/*}*/
/*div#topicBorder {*/
/*background: url(../images/topic-border.png) no-repeat center top;*/
/*}*/
/*div#fontFamily {*/
/*background: url(../images/font-type.png) no-repeat center top;*/
/*}*/
/*div#topicShape {*/
/*background: url(../images/topic-shape.png) no-repeat center top;*/
/*}*/
/*div#fontBold {*/
/*background: url(../images/font-bold.png) no-repeat center top;*/
/*}*/
/*div#fontItalic {*/
/*background: url(../images/font-italic.png) no-repeat center top;*/
/*}*/
/*div#fontColor {*/
/*background: url(../images/font-color.png) no-repeat center top;*/
/*}*/
/*div#fontSize {*/
/*background: url(../images/font-size.png) no-repeat center top;*/
/*}*/
/*div#shareIt {*/
/*background: url(../images/share.png) no-repeat center top;*/
/*}*/
/*div#publishIt {*/
/*background: url(../images/publish.png) no-repeat center top;*/
/*}*/
/*div#tagIt {*/
/*background: url(../images/tag.png) no-repeat center top;*/
/*}*/
.toolbarPaneTip {
background-color: rgb(228, 226, 210);
padding: 5px 5px;
color: #f5f5f5;
/*font-weight: bold;*/
/*width: 100px;*/
font-size: 11px;
-moz-border-radius: 60px;
-webkit-border-radius: 6px;
border-radius: 6px;
box-shadow: 3px 3px 3px rgba(0, 0, 0, 0.2);
border: 3px double rgb(190, 190, 190);
}

View File

@ -0,0 +1,3 @@
@header-height : 75px;
@header-toolbar-height : 35px;
@header-info-height : @header-height - @header-toolbar-height;

View File

@ -0,0 +1,23 @@
<!DOCTYPE HTML>
<html>
<head>
<title>WiseMapping - Embedded Sample </title>
<meta http-equiv="Content-type" content="text/html; charset=UTF-8"/>
<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>
<h1>Embedded editor sample</h1>
<h2></h2>
<div style="text-align:center">
<iframe src="editor.html?width=800&height=600" width="800" height="600"></iframe>
</div>
</body>
</html>

View File

@ -20,32 +20,28 @@
<script type="text/javascript">
var mapId = 'welcome';
var mindReady = false;
var viewMode = false;
$(document).addEvent('loadcomplete', function(resource) {
mindReady = resource == 'mind' ? true : mindReady;
if (mindReady) {
designer = buildDesigner(viewMode);
var designer = buildDesigner(viewMode);
// Configure default persistence manager ...
mindplot.PersitenceManager.init(new mindplot.LocalStorageManager());
// Configure default persistence manager ...
mindplot.PersistenceManager.init(new mindplot.LocalStorageManager());
// Load map from XML ...
var persitence = mindplot.PersitenceManager.getInstance();
var mindmap;
try {
mindmap = persitence.load(mapId);
} catch(e) {
// If the map could not be loaded, create a new empty map...
mindmap = mindplot.model.Mindmap.buildEmpty(mapId);
}
designer.loadMap(mindmap);
// Load map from XML ...
var persistence = mindplot.PersistenceManager.getInstance();
var mindmap;
try {
mindmap = persistence.load(mapId);
} catch(e) {
// If the map could not be loaded, create a new empty map...
mindmap = mindplot.model.Mindmap.buildEmpty(mapId);
}
designer.loadMap(mindmap);
// If not problem has arisen, close the dialog ...
if (!window.hasUnexpectedErrors) {
waitDialog.deactivate();
}
// If not problem has arisen, close the dialog ...
if (!window.hasUnexpectedErrors) {
waitDialog.deactivate();
}
});
@ -53,12 +49,6 @@
</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>
@ -103,7 +93,7 @@
<div id="save" class="buttonOn" title="Save">
<img src="../images/save.png"/>
</div>
<div id="discart" class="buttonOn" title="Discard">
<div id="discard" class="buttonOn" title="Discard">
<img src="../images/discard.png"/>
</div>
</div>

View File

@ -20,32 +20,28 @@
<script type="text/javascript">
var mapId = 'welcome';
var mindReady = false;
var viewMode = false;
$(document).addEvent('loadcomplete', function(resource) {
mindReady = resource == 'mind' ? true : mindReady;
var designer = buildDesigner(viewMode);
if (mindReady) {
designer = buildDesigner(viewMode);
// Configure default persistence manager ...
mindplot.PersistenceManager.init(new mindplot.LocalStorageManager());
// Configure default persistence manager ...
mindplot.PersitenceManager.init(new mindplot.LocalStorageManager());
// Load map from XML ...
var persistence = mindplot.PersistenceManager.getInstance();
var mindmap;
try {
mindmap = persistence.load(mapId);
} catch(e) {
// If the map could not be loaded, create a new empty map...
mindmap = mindplot.model.Mindmap.buildEmpty(mapId);
}
designer.loadMap(mindmap);
// Load map from XML ...
var persitence = mindplot.PersitenceManager.getInstance();
var mindmap;
try {
mindmap = persitence.load(mapId);
} catch(e) {
// If the map could not be loaded, create a new empty map...
mindmap = mindplot.model.Mindmap.buildEmpty(mapId);
}
designer.loadMap(mindmap);
// If not problem has arisen, close the dialog ...
if (!window.hasUnexpectedErrors) {
waitDialog.deactivate();
}
// If not problem has arisen, close the dialog ...
if (!window.hasUnexpectedErrors) {
waitDialog.deactivate();
}
});
@ -105,7 +101,7 @@
<div id="save" class="buttonOn" title="Save">
<img src="../images/save.png"/>
</div>
<div id="discart" class="buttonOn" title="Discard">
<div id="discard" class="buttonOn" title="Discard">
<img src="../images/discard.png"/>
</div>
<div id="print" class="buttonOn" title="Print">

View File

@ -21,27 +21,23 @@
var mapId = 'welcome';
var viewMode = true;
var mindReady = false;
$(document).addEvent('loadcomplete', function(resource) {
mindReady = resource == 'mind' ? true : mindReady;
var designer = buildDesigner(viewMode);
if (mindReady) {
designer = buildDesigner(viewMode);
// Configure default persistence manager ...
mindplot.PersistenceManager.init(new mindplot.LocalStorageManager());
// Configure default persistence manager ...
mindplot.PersitenceManager.init(new mindplot.LocalStorageManager());
// Load map from XML ...
var persitence = mindplot.PersitenceManager.getInstance();
var mindmap;
try {
mindmap = persitence.load(mapId);
} catch(e) {
// If the map could not be loaded, create a new empty map...
mindmap = mindplot.model.Mindmap.buildEmpty(mapId);
}
designer.loadMap(mindmap);
// Load map from XML ...
var persistence = mindplot.PersistenceManager.getInstance();
var mindmap;
try {
mindmap = persistence.load(mapId);
} catch(e) {
// If the map could not be loaded, create a new empty map...
mindmap = mindplot.model.Mindmap.buildEmpty(mapId);
}
designer.loadMap(mindmap);
$('zoomIn').addEvent('click', function() {
designer.zoomIn();
@ -64,8 +60,7 @@
<div id="zoomIn" class="button"></div>
<div id="zoomOut" class="button"></div>
<div id="mapDetails">
<span class="title">Author: </span> Paulo Veiga
<span class="title">Description: </span>View Mode
View Mode Sample
</div>
</div>
</div>

View File

@ -18,13 +18,19 @@
var designer = null;
function buildDesigner(viewMode) {
function buildDesigner(viewMode, containerSize) {
var container = $('mindplot');
container.setStyles({
height: parseInt(screen.height),
width: parseInt(screen.width)
});
// Set workspace size ...
if (!containerSize) {
containerSize = {
// Set workspace screen size as default. In this way, resize issues are solved.
height: parseInt(screen.height),
width: parseInt(screen.width)
}
}
container.setStyles(containerSize);
var editorProperties = {zoom:0.85,saveOnLoad:true,collab:'standalone',readOnly:viewMode};
designer = new mindplot.Designer(editorProperties, container);

View File

@ -1,135 +0,0 @@
html {
overflow: hidden;
}
#waitDialog {
position: absolute;
top: 10px;
left: 10px;
height: 100px;
}
#firstHeader {
width: 100%;
}
#subHeader {
position: absolute;
width: 100%;
height: 55px;
top: 30px;
}
#loadingContainer {
position: relative;
top: 80px;
height: 120px; /*background: whitesmoke;*/
background: #FEFEFE;
opacity: .99;
padding: 15px;
width: 100%;
border: 1px solid;
border-color: #a9a9a9;
}
#loadingContainer .loadingText {
position: relative;
top: 50%;
margin-top: -35px;
font-size: 30px;
font-weight: bold;
vertical-align: text-bottom;
height: 30px;
float: left;
}
#loadingContainer .loadingIcon {
position: relative;
background: url(../images/ajax-loader2.gif) no-repeat;
top: 25px;
height: 100px;
width: 70px;
float: left;
clear: both;
}
/* ------------- Footer Styles -------------------------*/
div#embFooter {
position: absolute;
height: 35px;
width: 100%;
bottom: 0;
left: 0;
border-top: 1px solid black;
background: #E5E5E5;
}
div#logo {
height: 65px;
width: 80px;
position: absolute;
background: url(../images/logo-small.png) no-repeat right top;
right: 10px;
top: -10px;
}
.button {
width: 20px;
height: 20px;
float: left;
cursor: pointer;
white-space: nowrap;
margin: 1px;
}
.button:hover {
float: left;
cursor: pointer;
border: 1px solid black;
border-top-color: white;
border-left-color: white;
margin: 0px;
}
div#zoomIn {
background: url(../images/zoom-in.png) no-repeat left top;
margin-top: 10px;
margin-left: 10px;
}
#zoomOut {
background: url(../images/zoom-out.png) no-repeat left top;;
margin-top: 10px;
margin-left: 5px;
}
div#mindplot {
position: relative;
top: 0;
left: 0;
width: 100%;
}
div#mapContainer {
border-bottom: 1px solid black;
padding-bottom: 40px;
height: 400px;
width: 100%;
}
div#mapDetails {
float: right;
padding-top: 10px;
margin-right: 100px;
font-family: arial,serif;
font-size: 11px;
}
div#mapDetails .title {
font-weight: bold;
margin-left: 10px;
margin-right: 3px;
}

View File

@ -38,8 +38,8 @@
mindReady = resource == 'mind' ? true : mindReady;
if (mindReady) {
// Configure default persistence ...
mindplot.PersitenceManager.init(new mindplot.DwrPersitenceManager());
var persitence = mindplot.PersitenceManager.getInstance();
mindplot.PersistenceManager.init(new mindplot.DwrPersitenceManager());
var persistence = mindplot.PersistenceManager.getInstance();
// Initialize editor ...
var editorProperties = ${mindmap.properties};
@ -48,7 +48,7 @@
designer = buildDesigner(editorProperties);
var domDocument = core.Utils.createDocumentFromText(mapXml);
var mindmap = persitence.loadFromDom(mapId, domDocument);
var mindmap = persistence.loadFromDom(mapId, domDocument);
// Now, load the map ...
designer.loadMap(mindmap);