Add more and more icons...

This commit is contained in:
Paulo Gustavo Veiga
2011-03-22 22:22:42 -03:00
parent 107e559364
commit 483b781981
41 changed files with 320 additions and 176 deletions

View File

@@ -52,9 +52,17 @@ final public class FreemindIconConverter {
static {
// Map numbers icons family ...
final List<MindmapIcon> bulletsImages = MindmapIcons.getIconByFamily(IconFamily.BULLET);
// By default, do a default mapping of all. The overwrite.
IconFamily[] families = IconFamily.values();
for (IconFamily family : families) {
final List<MindmapIcon> images = MindmapIcons.getIconByFamily(family);
for (MindmapIcon mindmapIcon : images) {
iconToFreeId.put(mindmapIcon, mindmapIcon.getName());
}
}
// Now overwrite that are different ...
final List<MindmapIcon> bulletsImages = MindmapIcons.getIconByFamily(IconFamily.BULLET);
for (int i = 0; i < bulletsImages.size(); i++) {
final MindmapIcon icon = bulletsImages.get(i);
iconToFreeId.put(icon, "full-" + i);
@@ -66,8 +74,6 @@ final public class FreemindIconConverter {
iconToFreeId.put(MindmapIcons.TICK_CROSS, "button_cancel");
// Map arrow icons ...
iconToFreeId.put(MindmapIcons.ARROW_UP, "up");
iconToFreeId.put(MindmapIcons.ARROW_DOWN, "down");
iconToFreeId.put(MindmapIcons.ARROW_RIGHT, "back");
iconToFreeId.put(MindmapIcons.ARROW_LEFT, "forward");
@@ -77,6 +83,23 @@ final public class FreemindIconConverter {
iconToFreeId.put(MindmapIcons.FACE_SURPRISE, "smiley-oh");
iconToFreeId.put(MindmapIcons.FACE_SAD, "smiley_bad");
// Objects mappings
iconToFreeId.put(MindmapIcons.OBJECT_KEY, "password");
iconToFreeId.put(MindmapIcons.OBJECT_PHONE, "kaddressbook");
iconToFreeId.put(MindmapIcons.OBJECT_STAR, "bookmark");
iconToFreeId.put(MindmapIcons.OBJECT_MAGNIFIER, "xmag");
iconToFreeId.put(MindmapIcons.OBJECT_CLIP, "attach");
iconToFreeId.put(MindmapIcons.OBJECT_MUSIC, "knotify");
iconToFreeId.put(MindmapIcons.OBJECT_HOUSE, "gohome");
// Sign mapping ...
iconToFreeId.put(MindmapIcons.SIGN_WARNING, "messagebox_warning");
iconToFreeId.put(MindmapIcons.SIGN_STOP, "stop-sign");
// Mail mappings
iconToFreeId.put(MindmapIcons.MAIL_ENVELOP, "Mail");
iconToFreeId.put(MindmapIcons.MAIL_MAILBOX, "korn");
// Maps Flag familly Icons ...
final List<MindmapIcon> flagImages = MindmapIcons.getIconByFamily(IconFamily.FLAG);

View File

@@ -19,20 +19,24 @@
package com.wisemapping.model;
public enum IconFamily {
FLAG(),
BULLET(),
TAG(),
FLAG,
BULLET,
TAG,
// NUMBER("NUMBER","number_"),
FACE(),
FUNY(),
ARROW(),
ARROWC(),
CONN(),
BULB(),
THUMB(),
TICK(),
ONOFF(),
MONEY(),
CHART();
FACE,
FUNY,
ARROW,
ARROWC,
CONN,
SPORT,
BULB,
THUMB,
TICK,
ONOFF,
MONEY,
TIME,
CHART,
SIGN,
MAIL,
OBJECT;
}

View File

@@ -24,7 +24,7 @@ import java.lang.IllegalStateException;
import java.lang.reflect.Field;
import java.util.*;
@SuppressWarnings("all")
public class MindmapIcons {
private static Map<IconFamily, List<MindmapIcon>> iconsByFamily;
@@ -123,6 +123,43 @@ public class MindmapIcons {
public static final MindmapIcon MONEY_CONNECT = new MindmapIcon(IconFamily.CONN, "connect");
public static final MindmapIcon MONEY_DISCONNECT = new MindmapIcon(IconFamily.CONN, "disconnect");
public static final MindmapIcon SPORT_BASKETBALL = new MindmapIcon(IconFamily.SPORT, "basketball");
public static final MindmapIcon SPORT_FOOTBALL = new MindmapIcon(IconFamily.SPORT, "football");
public static final MindmapIcon SPORT_GOLF = new MindmapIcon(IconFamily.SPORT, "golf");
public static final MindmapIcon SPORT_RAQUET = new MindmapIcon(IconFamily.SPORT, "raquet");
public static final MindmapIcon SPORT_SHUTTLECLOCK = new MindmapIcon(IconFamily.SPORT, "shuttlecock");
public static final MindmapIcon SPORT_SOURCE = new MindmapIcon(IconFamily.SPORT, "soccer");
public static final MindmapIcon SPORT_TENNIS = new MindmapIcon(IconFamily.SPORT, "tennis");
public static final MindmapIcon TIME_CALENDAR = new MindmapIcon(IconFamily.TIME, "calendar");
public static final MindmapIcon TIME_CLOCK = new MindmapIcon(IconFamily.TIME, "clock");
public static final MindmapIcon TIME_HOURGLASS = new MindmapIcon(IconFamily.TIME, "hourglass");
public static final MindmapIcon OBJECT_PENGUIN = new MindmapIcon(IconFamily.OBJECT, "penguin");
public static final MindmapIcon OBJECT_BELL = new MindmapIcon(IconFamily.OBJECT, "bell");
public static final MindmapIcon OBJECT_BOMB = new MindmapIcon(IconFamily.OBJECT, "clanbomber");
public static final MindmapIcon OBJECT_KEY = new MindmapIcon(IconFamily.OBJECT, "key");
public static final MindmapIcon OBJECT_PENCIL = new MindmapIcon(IconFamily.OBJECT, "pencil");
public static final MindmapIcon OBJECT_PHONE = new MindmapIcon(IconFamily.OBJECT, "phone");
public static final MindmapIcon OBJECT_MAGNIFIER = new MindmapIcon(IconFamily.OBJECT, "magnifier");
public static final MindmapIcon OBJECT_CLIP = new MindmapIcon(IconFamily.OBJECT, "clip");
public static final MindmapIcon OBJECT_MUSIC = new MindmapIcon(IconFamily.OBJECT, "music");
public static final MindmapIcon OBJECT_CD = new MindmapIcon(IconFamily.OBJECT, "cd");
public static final MindmapIcon OBJECT_STAR = new MindmapIcon(IconFamily.OBJECT, "star");
public static final MindmapIcon OBJECT_WIZARD = new MindmapIcon(IconFamily.OBJECT, "wizard");
public static final MindmapIcon OBJECT_HOUSE = new MindmapIcon(IconFamily.OBJECT, "house");
public static final MindmapIcon MAIL_ENVELOP = new MindmapIcon(IconFamily.MAIL, "envelop");
public static final MindmapIcon MAIL_MAILBOX = new MindmapIcon(IconFamily.MAIL, "mailbox");
public static final MindmapIcon MAIL_EDIT = new MindmapIcon(IconFamily.MAIL, "edit");
public static final MindmapIcon SIGN_WARNING = new MindmapIcon(IconFamily.SIGN, "warning");
public static final MindmapIcon SIGN_INFO = new MindmapIcon(IconFamily.SIGN, "info");
public static final MindmapIcon SIGN_STOP = new MindmapIcon(IconFamily.SIGN, "stop");
public static final MindmapIcon SIGN_HELP = new MindmapIcon(IconFamily.SIGN, "help");
public static final MindmapIcon SIGN_CANCEL = new MindmapIcon(IconFamily.SIGN , "cancel");
@NotNull
public static List<MindmapIcon> getIconByFamily(@NotNull IconFamily family) {

Binary file not shown.

After

Width:  |  Height:  |  Size: 880 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 641 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 555 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 789 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 673 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 793 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 391 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 806 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 612 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 615 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 385 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 450 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 696 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 488 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 670 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 570 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 587 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 701 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 786 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 778 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 700 B

View File

Before

Width:  |  Height:  |  Size: 666 B

After

Width:  |  Height:  |  Size: 666 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 977 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 875 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 504 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 719 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 683 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 517 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 884 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 572 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 793 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 744 B

View File

@@ -457,7 +457,7 @@ function afterMindpotLibraryLoading()
}
function buildIconChooser() {
var content = new Element('div').setStyles({width:230,height:240,padding:5});
var content = new Element('div').setStyles({width:330,height:340,padding:5});
var count = 0;
for (var i = 0; i < mindplot.ImageIcon.prototype.ICON_FAMILIES.length; i = i + 1)
{