]> Shamusworld >> Repos - ttedit/commitdiff
Removed unnecessary graphic files, updated tool palette.
authorShamus Hammons <jlhamm@acm.org>
Tue, 20 Nov 2012 20:10:33 +0000 (20:10 +0000)
committerShamus Hammons <jlhamm@acm.org>
Tue, 20 Nov 2012 20:10:33 +0000 (20:10 +0000)
30 files changed:
Makefile
res/cur1.xpm [deleted file]
res/cur2.xpm [deleted file]
res/cur3.xpm [deleted file]
res/cur4.xpm [deleted file]
res/cur5.xpm [deleted file]
res/cur6.xpm [deleted file]
res/cur7.xpm [deleted file]
res/cur8.xpm [deleted file]
res/cursor-add-point.png [moved from res/cursor6.png with 100% similarity]
res/cursor-add-poly.png [moved from res/cursor7.png with 100% similarity]
res/cursor-del-point.png [moved from res/cursor8.png with 100% similarity]
res/cursor-del-poly.png [moved from res/cursor9.png with 100% similarity]
res/cursor-rotate.png [new file with mode: 0644]
res/cursor-scroll.png [moved from res/cursor3.png with 100% similarity]
res/cursor-select-poly.png [moved from res/cursor2.png with 100% similarity]
res/cursor-select.png [moved from res/cursor1.png with 100% similarity]
res/cursor-zoom.png [moved from res/cursor4.png with 100% similarity]
res/cursor5.png [deleted file]
res/tool1.xpm [deleted file]
res/tool2.xpm [deleted file]
res/tool3.xpm [deleted file]
res/toolpal1.png
res/toolpal1.xpm [deleted file]
src/editwindow.cpp
src/editwindow.h
src/mainwindow.cpp
src/toolwindow.cpp
src/toolwindow.h
ttedit.qrc

index d5dcd62cee0f50f283f594863628aa02b48a2e58..315a073766a7dd6fd2f9fb105816f132af968ae0 100755 (executable)
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,6 @@
 #############################################################################
 # Makefile for building: ttedit
-# Generated by qmake (2.01a) (Qt 4.8.3) on: Sat Nov 17 12:34:10 2012
+# Generated by qmake (2.01a) (Qt 4.8.3) on: Mon Nov 19 18:59:51 2012
 # Project:  ttedit.pro
 # Template: app
 # Command: /usr/bin/qmake -o Makefile ttedit.pro
@@ -229,21 +229,21 @@ compiler_rcc_make_all: obj/qrc_ttedit.cpp
 compiler_rcc_clean:
        -$(DEL_FILE) obj/qrc_ttedit.cpp
 obj/qrc_ttedit.cpp: ttedit.qrc \
-               res/cursor3.png \
+               res/cursor-zoom.png \
                res/toolpal1.xpm \
-               res/cursor5.png \
-               res/cursor1.png \
+               res/cursor-add-point.png \
+               res/cursor-del-poly.png \
                res/toolpal1.png \
+               res/cursor-add-poly.png \
+               res/cursor-rotate.png \
                res/act-back.png \
                res/ttedit.png \
-               res/cursor6.png \
-               res/cursor8.png \
-               res/cursor7.png \
+               res/cursor-del-point.png \
+               res/cursor-select-poly.png \
                res/act-charwin.png \
                res/act-forward.png \
-               res/cursor2.png \
-               res/cursor9.png \
-               res/cursor4.png
+               res/cursor-select.png \
+               res/cursor-scroll.png
        /usr/bin/rcc -name ttedit ttedit.qrc -o obj/qrc_ttedit.cpp
 
 compiler_image_collection_make_all: obj/qmake_image_collection.cpp
@@ -273,20 +273,7 @@ obj/mainwindow.o: src/mainwindow.cpp src/mainwindow.h \
                src/types.h \
                src/editwindow.h \
                src/toolwindow.h \
-               src/ttedit.h \
-               src/debug.h \
-               res/cur1.xpm \
-               res/cur2.xpm \
-               res/cur3.xpm \
-               res/cur4.xpm \
-               res/cur5.xpm \
-               res/cur6.xpm \
-               res/cur7.xpm \
-               res/cur8.xpm \
-               res/ttedit.xpm \
-               res/tool1.xpm \
-               res/tool2.xpm \
-               res/tool3.xpm
+               src/ttedit.h
        $(CXX) -c $(CXXFLAGS) $(INCPATH) -o obj/mainwindow.o src/mainwindow.cpp
 
 obj/editwindow.o: src/editwindow.cpp src/editwindow.h \
diff --git a/res/cur1.xpm b/res/cur1.xpm
deleted file mode 100755 (executable)
index 20b4cac..0000000
+++ /dev/null
@@ -1,38 +0,0 @@
-/* XPM */
-static const char *cur1_xpm[]={
-"32 32 3 1",
-". c None",
-"# c #000000",
-"a c #ffffff",
-".#..............................",
-"#a#.............................",
-"#aa#............................",
-"#aaa#...........................",
-"#aaaa#..........................",
-"#aaaaa#.........................",
-"#aaaaaa#........................",
-"#aaaaaaa#.......................",
-"#aaaaaaaa#......................",
-"#aaaaaaaaa#.....................",
-"#aaaaaaaaaa#....................",
-"#aaaaaa####.....................",
-"#aaaaaa#........................",
-"#aa##aaa#.......................",
-"#a#.#aaa#.......................",
-".#...#aaa#......................",
-".....#aaa#......................",
-"......#a#.......................",
-".......#........................",
-"................................",
-"................................",
-"................................",
-"................................",
-"................................",
-"................................",
-"................................",
-"................................",
-"................................",
-"................................",
-"................................",
-"................................",
-"................................"};
diff --git a/res/cur2.xpm b/res/cur2.xpm
deleted file mode 100755 (executable)
index a966a26..0000000
+++ /dev/null
@@ -1,38 +0,0 @@
-/* XPM */
-static const char *cur2_xpm[]={
-"32 32 3 1",
-". c None",
-"# c #000000",
-"a c #ffffff",
-".#..............................",
-"#a#.............................",
-"#aa#............................",
-"#aaa#...........................",
-"#aaaa#..........................",
-"#aaaaa#.........................",
-"#aaaaaa#........................",
-"#aaaaaaa#.......................",
-"#aaaaaaaa#......................",
-"#aaaaaaaaa#.....................",
-"#aaaaaaaaaa#....................",
-"#aaaaaa####.....................",
-"#aaaaaa#........................",
-"#aa##aaa#..#######..............",
-"#a#.#aaa#..#aaaaaa#.............",
-".#...#aaa#.#aaaaaaa#............",
-".....#aaa#.#aa###aa#............",
-"......#a#..#aa#.#aa#............",
-".......#...#aa###aa#............",
-"...........#aaaaaaa#............",
-"...........#aaaaaa#.............",
-"...........#aa####..............",
-"...........#aa#.................",
-"...........#aa#.................",
-"...........####.................",
-"................................",
-"................................",
-"................................",
-"................................",
-"................................",
-"................................",
-"................................"};
diff --git a/res/cur3.xpm b/res/cur3.xpm
deleted file mode 100755 (executable)
index f842d8f..0000000
+++ /dev/null
@@ -1,38 +0,0 @@
-/* XPM */
-static const char *cur3_xpm[]={
-"32 32 3 1",
-". c None",
-"# c #000000",
-"a c #ffffff",
-"...........##...................",
-"..........#aa#..................",
-"..........#aa#..................",
-".........#aaaa#.................",
-".........#aaaa#.................",
-"........#aaaaaa#................",
-"......###a#aa#a###..............",
-"......#a###aa###a#..............",
-".....####.#aa#.####.............",
-"...##aa#..#aa#..#aa##...........",
-".##aaa####a##a####aaa##.........",
-"#aaaaaaaaa#aa#aaaaaaaaa#........",
-"#aaaaaaaaa#aa#aaaaaaaaa#........",
-".##aaa####a##a####aaa##.........",
-"...##aa#..#aa#..#aa##...........",
-".....####.#aa#.####.............",
-"......#a###aa###a#..............",
-"......###a#aa#a###..............",
-"........#aaaaaa#................",
-"........#aaaaa#.................",
-".........#aaaa#.................",
-"..........#aa#..................",
-"..........#aa#..................",
-"...........##...................",
-"................................",
-"................................",
-"................................",
-"................................",
-"................................",
-"................................",
-"................................",
-"................................"};
diff --git a/res/cur4.xpm b/res/cur4.xpm
deleted file mode 100755 (executable)
index f34992b..0000000
+++ /dev/null
@@ -1,38 +0,0 @@
-/* XPM */
-static const char *cur4_xpm[]={
-"32 32 3 1",
-". c None",
-"# c #000000",
-"a c #ffffff",
-"..####..........................",
-"..#aa#..........................",
-"###aa###........................",
-"#aaaaaa#........................",
-"#aaaaaa#........................",
-"###aa###........................",
-"..#aa#........###...............",
-"..####......##aaa##.............",
-"..#aa#.....#aa###aa#............",
-"..#aa#....#aa##..#aa#...........",
-".#aaaa#...#a##a#..#a#...........",
-".#aaaa#..#a##a#....#a#..........",
-"#aaaaaa#.#a#a#.....#a#..........",
-"#a#aa#a#.#a#a#.....#a#..........",
-".##aa##..#a##......#a#..........",
-"..#aa#...#a#.......#a#..........",
-"..#aa#....#a#.....#a#...........",
-"..#aa#....#aa#...#aa#...........",
-"..#aa#.....#aa###aaa#...........",
-".##aa##.....##aaa###a#..........",
-"#a#aa#a#......###...#a##........",
-"#aaaaaa#.............#aa#.......",
-".#aaaa#..............#aaa#......",
-".#aaaa#...............#aaa#.....",
-"..#aa#.................#aaa#....",
-"..#aa#..................#a#.....",
-"...##....................#......",
-"########........................",
-"#aaaaaa#........................",
-"#aaaaaa#........................",
-"########........................",
-"................................"};
diff --git a/res/cur5.xpm b/res/cur5.xpm
deleted file mode 100755 (executable)
index e13a52e..0000000
+++ /dev/null
@@ -1,38 +0,0 @@
-/* XPM */
-static const char *cur5_xpm[]={
-"32 32 3 1",
-". c None",
-"# c #000000",
-"a c #ffffff",
-".#..............................",
-"#a#.............................",
-"#aa#............................",
-"#aaa#...........................",
-"#aaaa#..........................",
-"#aaaaa#.........................",
-"#aaaaaa#........................",
-"#aaaaaaa#.......................",
-"#aaaaaaaa#......................",
-"#aaaaaaaaa#...#.................",
-"#aaaaaaaaaa#.#a#................",
-"#aaaaaa####.##a##...............",
-"#aaaaaa#...#aaaaa#..............",
-"#aa##aaa#...##a##...............",
-"#a#.#aaa#....#a#................",
-".#...#aaa#...####...............",
-".....#aaa#..#aaaa#..............",
-"......#a#..#aaaaaa#.............",
-".......#...#aa##aa#.............",
-"...........#aa##aa#.............",
-"...........#aaaaaa#.............",
-"............#aaaa#..............",
-".............####...............",
-"................................",
-"................................",
-"................................",
-"................................",
-"................................",
-"................................",
-"................................",
-"................................",
-"................................"};
diff --git a/res/cur6.xpm b/res/cur6.xpm
deleted file mode 100755 (executable)
index b6ae043..0000000
+++ /dev/null
@@ -1,38 +0,0 @@
-/* XPM */
-static const char *cur6_xpm[]={
-"32 32 3 1",
-". c None",
-"# c #000000",
-"a c #ffffff",
-".#..............................",
-"#a#.............................",
-"#aa#............................",
-"#aaa#...........................",
-"#aaaa#..........................",
-"#aaaaa#......#..................",
-"#aaaaaa#....#a#.................",
-"#aaaaaaa#..##a##................",
-"#aaaaaaaa##aaaaa#...............",
-"#aaaaaaaaa###a##................",
-"#aaaaaaaaaa##a#.................",
-"#aaaaaa####..#.##...............",
-"#aaaaaa#......#aa#..............",
-"#aa##aaa#....#aaaa#.............",
-"#a#.#aaa#....#aaaa#.............",
-".#...#aaa#..#aa##aa#............",
-".....#aaa#..#aa##aa#............",
-"......#a#..#aa#..#aa#...........",
-".......#...#aa#..#aa#...........",
-"..........#aa######aa#..........",
-"..........#aaaaaaaaaa#..........",
-"...........#aaaaaaaa#...........",
-"............########............",
-"................................",
-"................................",
-"................................",
-"................................",
-"................................",
-"................................",
-"................................",
-"................................",
-"................................"};
diff --git a/res/cur7.xpm b/res/cur7.xpm
deleted file mode 100755 (executable)
index 7271575..0000000
+++ /dev/null
@@ -1,38 +0,0 @@
-/* XPM */
-static const char *cur7_xpm[]={
-"32 32 3 1",
-". c None",
-"# c #000000",
-"a c #ffffff",
-".#..............................",
-"#a#.............................",
-"#aa#............................",
-"#aaa#...........................",
-"#aaaa#..........................",
-"#aaaaa#.........................",
-"#aaaaaa#........................",
-"#aaaaaaa#.......................",
-"#aaaaaaaa#......................",
-"#aaaaaaaaa#.....................",
-"#aaaaaaaaaa#....................",
-"#aaaaaa####.#####...............",
-"#aaaaaa#...#aaaaa#..............",
-"#aa##aaa#...#####...............",
-"#a#.#aaa#.......................",
-".#...#aaa#...####...............",
-".....#aaa#..#aaaa#..............",
-"......#a#..#aaaaaa#.............",
-".......#...#aa##aa#.............",
-"...........#aa##aa#.............",
-"...........#aaaaaa#.............",
-"............#aaaa#..............",
-".............####...............",
-"................................",
-"................................",
-"................................",
-"................................",
-"................................",
-"................................",
-"................................",
-"................................",
-"................................"};
diff --git a/res/cur8.xpm b/res/cur8.xpm
deleted file mode 100755 (executable)
index 9ac8f5a..0000000
+++ /dev/null
@@ -1,38 +0,0 @@
-/* XPM */
-static const char *cur8_xpm[]={
-"32 32 3 1",
-". c None",
-"# c #000000",
-"a c #ffffff",
-".#..............................",
-"#a#.............................",
-"#aa#............................",
-"#aaa#...........................",
-"#aaaa#..........................",
-"#aaaaa#.........................",
-"#aaaaaa#........................",
-"#aaaaaaa#..#####................",
-"#aaaaaaaa##aaaaa#...............",
-"#aaaaaaaaa######................",
-"#aaaaaaaaaa#....................",
-"#aaaaaa####....##...............",
-"#aaaaaa#......#aa#..............",
-"#aa##aaa#....#aaaa#.............",
-"#a#.#aaa#....#aaaa#.............",
-".#...#aaa#..#aa##aa#............",
-".....#aaa#..#aa##aa#............",
-"......#a#..#aa#..#aa#...........",
-".......#...#aa#..#aa#...........",
-"..........#aa######aa#..........",
-"..........#aaaaaaaaaa#..........",
-"...........#aaaaaaaa#...........",
-"............########............",
-"................................",
-"................................",
-"................................",
-"................................",
-"................................",
-"................................",
-"................................",
-"................................",
-"................................"};
similarity index 100%
rename from res/cursor6.png
rename to res/cursor-add-point.png
similarity index 100%
rename from res/cursor7.png
rename to res/cursor-add-poly.png
similarity index 100%
rename from res/cursor8.png
rename to res/cursor-del-point.png
similarity index 100%
rename from res/cursor9.png
rename to res/cursor-del-poly.png
diff --git a/res/cursor-rotate.png b/res/cursor-rotate.png
new file mode 100644 (file)
index 0000000..80dd32a
Binary files /dev/null and b/res/cursor-rotate.png differ
similarity index 100%
rename from res/cursor3.png
rename to res/cursor-scroll.png
similarity index 100%
rename from res/cursor2.png
rename to res/cursor-select-poly.png
similarity index 100%
rename from res/cursor1.png
rename to res/cursor-select.png
similarity index 100%
rename from res/cursor4.png
rename to res/cursor-zoom.png
diff --git a/res/cursor5.png b/res/cursor5.png
deleted file mode 100644 (file)
index f6e85fe..0000000
Binary files a/res/cursor5.png and /dev/null differ
diff --git a/res/tool1.xpm b/res/tool1.xpm
deleted file mode 100755 (executable)
index 214f4f8..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-/* XPM */
-static const char * tool1_xpm[] = {
-"16 15 3 1",
-"      c None",
-".     c #A0A0A0",
-"+     c #000000",
-"                ",
-"                ",
-"                ",
-"                ",
-"      ++        ",
-"     ++         ",
-"   ++++         ",
-" ++++++++++++++ ",
-"   ++++         ",
-"     ++         ",
-"      ++        ",
-"                ",
-"                ",
-"                ",
-"                "};
diff --git a/res/tool2.xpm b/res/tool2.xpm
deleted file mode 100755 (executable)
index 465c680..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-/* XPM */
-static const char * tool2_xpm[] = {
-"16 15 3 1",
-"      c None",
-".     c #C0C0C0",
-"+     c #000000",
-"                ",
-"                ",
-"                ",
-"                ",
-"        ++      ",
-"         ++     ",
-"         ++++   ",
-" ++++++++++++++ ",
-"         ++++   ",
-"         ++     ",
-"        ++      ",
-"                ",
-"                ",
-"                ",
-"                "};
diff --git a/res/tool3.xpm b/res/tool3.xpm
deleted file mode 100755 (executable)
index 397668e..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
-/* XPM */
-static const char * tool3_xpm[] = {
-"16 15 3 1",
-"      c None",
-".     c #C0C0C0",
-"+     c #000000",
-"++++++++++++++++",
-"+              +",
-"+   ++++++++   +",
-"+  ++++++++++  +",
-"+  ++      ++  +",
-"+          ++  +",
-"+   +++++++++  +",
-"+  ++++++++++  +",
-"+  ++      ++  +",
-"+  ++      ++  +",
-"+  ++     +++  +",
-"+  ++++++++++  +",
-"+   ++++++  ++ +",
-"+              +",
-"++++++++++++++++"};
-
index 1abc5b7001250e38086fdf4625f9bdb6893aa682..54ca026c5d06a84e4e830609af43cd8c3a894778 100644 (file)
Binary files a/res/toolpal1.png and b/res/toolpal1.png differ
diff --git a/res/toolpal1.xpm b/res/toolpal1.xpm
deleted file mode 100755 (executable)
index c340812..0000000
+++ /dev/null
@@ -1,53 +0,0 @@
-/* XPM */
-static const char * toolpal1_xpm[] = {
-"120 48 2 1",
-"      c #000000",
-".     c #FFFFFF",
-"                                                                                                                        ",
-"   ..................      ..................      ..................      ..................      ..................   ",
-"                                                                                                                        ",
-" . .................. .  . .................. .  . .................. .  . .................. .  . .......    ....... . ",
-" . .... ............. .  . .................. .  . ........  ........ .  . .................. .  . ......      ...... . ",
-" . ....  ............ .  . .................. .  . ........  ........ .  . ......  .......... .  . ....  .    .  .... . ",
-" . ....   ........... .  . .. ............... .  . .......    ....... .  . ....  ..  ........ .  . ... .. .... .. ... . ",
-" . ....    .......... .  . ..  .............. .  . .......    ....... .  . ... ...... ....... .  . .. .. ...... .. .. . ",
-" . ....     ......... .  . ..   ............. .  . ...... .  . ...... .  . ... ...... ....... .  . .. ............ .. . ",
-" . ....      ........ .  . ..    ............ .  . ..... ..  .. ..... .  . .. ........ ...... .  . . ......  ...... . . ",
-" . ....       ....... .  . ..     ...      .. .  . ...  ...  ...  ... .  . .. ........ ...... .  . . ......  ...... . . ",
-" . ....        ...... .  . ..      ..       . .  . .                . .  . ... ...... ....... .  . . ....      .... . . ",
-" . ....         ..... .  . ..       .  ...  . .  . .                . .  . ... ...... ....... .  . . ....      .... . . ",
-" . ....      ........ .  . ..     ...  ...  . .  . ...  ...  ...  ... .  . ....  ..    ...... .  . . ......  ...... . . ",
-" . ....      ........ .  . ..     ...       . .  . ..... ..  .. ..... .  . ......  ..   ..... .  . . ......  ...... . . ",
-" . ....  ..   ....... .  . .. ..   ..      .. .  . ...... .  . ...... .  . ...........   .... .  . .. ............ .. . ",
-" . .... ...   ....... .  . ......  ..  ...... .  . .......    ....... .  . ............   ... .  . .. ............ .. . ",
-" . .........   ...... .  . ..........  ...... .  . .......    ....... .  . .............   .. .  . ... .......... ... . ",
-" . .........   ...... .  . ..........  ...... .  . ........  ........ .  . ..............  .. .  . ....  ......  .... . ",
-" . .......... ....... .  . .................. .  . ........  ........ .  . .................. .  . ......      ...... . ",
-" . .................. .  . .................. .  . .................. .  . .................. .  . .................. . ",
-"                                                                                                                        ",
-"   ..................      ..................      ..................      ..................      ..................   ",
-"                                                                                                                        ",
-"                                                                                                                        ",
-"   ..................      ..................      ..................      ..................      ..................   ",
-"                                                                                                                        ",
-" . .................. .  . .................. .  . .................. .  . .................. .  . .................. . ",
-" . .................. .  . .................. .  . .................. .  . .................. .  . .................. . ",
-" . .................. .  . ........  ........ .  . ..  ..........  .. .  . ..  ........... .. .  . .................. . ",
-" . .................. .  . .......    ....... .  . ..   ........   .. .  . ...  .      ..  .. .  . .................. . ",
-" . .................. .  . .......    ....... .  . ...   ......   ... .  . ....           ... .  . .................. . ",
-" . .......    ....... .  . ......  ..  ...... .  . ....          .... .  . .....   ...   .... .  . .................. . ",
-" . ......      ...... .  . ......  ..  ...... .  . .....        ..... .  . ......  ...  ..... .  . .................. . ",
-" . .....        ..... .  . .....  ....  ..... .  . .....        ..... .  . ......   .   ..... .  . .................. . ",
-" . .....   ..   ..... .  . .....  ....  ..... .  . .....        ..... .  . ......       ..... .  . .................. . ",
-" . .....   ..   ..... .  . ....  ......  .... .  . .....        ..... .  . ......       ..... .  . .................. . ",
-" . .....        ..... .  . ....  ......  .... .  . .....        ..... .  . ......      ...... .  . .................. . ",
-" . ......      ...... .  . ...  ........  ... .  . .....        ..... .  . ......  ...  ..... .  . .................. . ",
-" . .......    ....... .  . ...  ........  ... .  . ....          .... .  . .....   ....  .... .  . .................. . ",
-" . .................. .  . ..  ..........  .. .  . ...   ......   ... .  . ....    .....  ... .  . .................. . ",
-" . .................. .  . ..              .. .  . ..   ........   .. .  . ...  .  ......  .. .  . .................. . ",
-" . .................. .  . ...            ... .  . ..  ..........  .. .  . ..  ........... .. .  . .................. . ",
-" . .................. .  . .................. .  . .................. .  . .................. .  . .................. . ",
-" . .................. .  . .................. .  . .................. .  . .................. .  . .................. . ",
-"                                                                                                                        ",
-"   ..................      ..................      ..................      ..................      ..................   ",
-"                                                                                                                        "};
index 85a8ca8d313017942dfba72e0e07eeedb6388563..89a4ef85d056a1e5912fde8b68623346c8378e35 100755 (executable)
@@ -71,13 +71,15 @@ QSize EditWindow::sizeHint() const
 
 void EditWindow::CreateCursors(void)
 {
-       int hotx[9] = {  1,  1, 11, 15,  1,  1,  1,  1,  1 };
-       int hoty[9] = {  1,  1, 11, 13,  1,  1,  1,  1,  1 };
+       int hotx[10] = {  1,  1, 11, 15,  1,  1,  1,  1,  1,  1 };
+       int hoty[10] = {  1,  1, 11, 13,  1,  1,  1,  1,  1,  1 };
+       char cursorName[10][48] = { "select", "select-poly", "scroll", "zoom", "add-point",
+               "add-poly", "del-point", "del-poly", "rotate", "rotate" };
 
-       for(int i=0; i<9; i++)
+       for(int i=0; i<10; i++)
        {
                QString s;
-               s.sprintf(":/res/cursor%u.png", i+1);
+               s.sprintf(":/res/cursor-%s.png", cursorName[i]);
                QPixmap pmTmp(s);
                cur[i] = QCursor(pmTmp, hotx[i], hoty[i]);
        }
index 9ca997be19e2d8acf2396373d10df340fce24c9c..d6f2acbffc6d189d59e187b79eedd724b2c2dcdd 100755 (executable)
@@ -48,7 +48,7 @@ class EditWindow: public QWidget
                double rotationAngle;
 
                ToolWindow * toolPalette;
-               QCursor cur[9];
+               QCursor cur[10];
 };
 
 #endif // __EDITWINDOW_H__
index 8c7524f500a1d37f9e409920cb9fd8d6df901c6f..378c2ee9b2198c6772c0d1c511e5e61683ba5ced 100644 (file)
@@ -254,29 +254,6 @@ void MainWindow::WriteSettings(void)
 
 
 #if 0
-#include "ttedit.h"
-#include "charwindow.h"
-#include "toolwindow.h"
-#include "editwindow.h"
-#include "tte_res.h"                                                   // Resource IDs
-#ifdef DEBUG
-#include "debug.h"
-#endif
-
-// Pixmap resouces
-
-#include "res/cur1.xpm"
-#include "res/cur2.xpm"
-#include "res/cur3.xpm"
-#include "res/cur4.xpm"
-#include "res/cur5.xpm"
-#include "res/cur6.xpm"
-#include "res/cur7.xpm"
-#include "res/cur8.xpm"
-#include "res/ttedit.xpm"                                              // *nix only, but small enough to not matter
-#include "res/tool1.xpm"
-#include "res/tool2.xpm"
-#include "res/tool3.xpm"
 
 
 IMPLEMENT_APP(TTEditApp)                                               // Run the main application loop
index 0bee1face47b438a5ca7de8e75e8cd39987b7dda..1cc41e3a8882a17bdf963b5276faaace36b9f6c4 100755 (executable)
 ToolWindow::ToolWindow(void): QWidget(NULL, Qt::Window | Qt::FramelessWindowHint),
        prevTool(TOOLNone)
 {
-       img = QImage(":/res/toolpal1.xpm");
+//     img = QImage(":/res/toolpal1.xpm");
+       img = QImage(":/res/toolpal1.png");
 
        // Set up sizes
 
        sizeTPBM.rx() = img.width(), sizeTPBM.ry() = img.height();
-       sizeStamp.rx() = sizeTPBM.x() / 5, sizeStamp.ry() = sizeTPBM.y() / 2;
+       sizeStamp.rx() = sizeTPBM.x() / 4, sizeStamp.ry() = sizeTPBM.y() / 3;
 
        setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
        setVisible(false);
@@ -55,7 +56,7 @@ void ToolWindow::paintEvent(QPaintEvent * event)
            //need ul corner of bitmap, ul corner of dest, width/height
                p.setCompositionMode(QPainter::RasterOp_NotSource);
 //             QPoint pt(sizeStamp.x() * (prevTool & 0x03), sizeStamp.y() * (prevTool >> 2));
-               QPoint pt(sizeStamp.x() * (prevTool % 5), sizeStamp.y() * (prevTool / 5));
+               QPoint pt(sizeStamp.x() * (prevTool % 4), sizeStamp.y() * (prevTool / 4));
                p.drawImage(pt.x(), pt.y(), img, pt.x(), pt.y(), sizeStamp.x(), sizeStamp.y());
        }
 }
@@ -77,11 +78,11 @@ ToolType ToolWindow::FindSelectedTool(void)
        ToolType newTool = TOOLNone;
 
        // NOTE: This works because x and y are UNSIGNED
-       if (x < 5 && y < 2)
-               newTool = (ToolType)((y * 5) + x);
+       if (x < 4 && y < 3)
+               newTool = (ToolType)((y * 4) + x);
 
-       // We don't have 10 yet, so fix this if the user selected the blank space
-       if (newTool == 9)
+       // We don't have 11 yet, so fix this if the user selected the blank space
+       if (newTool > 9)
                newTool = TOOLNone;
 
        return newTool;
index 27a0cb35d96b8309e375f72095064d5b26527067..323b563c5a1ccbe2d993785eb24562d033b0d17f 100755 (executable)
@@ -18,11 +18,12 @@ enum ToolType {
        TOOLPolySelect,                                                 // Polygon selection tool
        TOOLScroll,                                                             // Scroll window tool
        TOOLZoom,                                                               // Zoom window tool
-       TOOLRotate,                                                             // Rotate tool
        TOOLAddPt,                                                              // Add point tool
        TOOLAddPoly,                                                    // Polygon creation tool
        TOOLDelPt,                                                              // Delete point tool
-       TOOLDelPoly                                                             // Delete polygon tool
+       TOOLDelPoly,                                                    // Delete polygon tool
+       TOOLRotate,                                                             // Rotate tool
+       TOOLRotatePoly                                                  // ROtate polygon around centroid tool
 };
 
 class ToolWindow: public QWidget
index 27c4f83a88a87e478b4ca98ef9d1de6a3abaee31..13b9131d777a8f8439694d320eccc8c1a363e5e5 100644 (file)
@@ -1,14 +1,14 @@
 <!DOCTYPE RCC><RCC version="1.0">
 <qresource>
-       <file>res/cursor1.png</file>
-       <file>res/cursor2.png</file>
-       <file>res/cursor3.png</file>
-       <file>res/cursor4.png</file>
-       <file>res/cursor5.png</file>
-       <file>res/cursor6.png</file>
-       <file>res/cursor7.png</file>
-       <file>res/cursor8.png</file>
-       <file>res/cursor9.png</file>
+       <file>res/cursor-select.png</file>
+       <file>res/cursor-select-poly.png</file>
+       <file>res/cursor-scroll.png</file>
+       <file>res/cursor-zoom.png</file>
+       <file>res/cursor-add-point.png</file>
+       <file>res/cursor-add-poly.png</file>
+       <file>res/cursor-del-point.png</file>
+       <file>res/cursor-del-poly.png</file>
+       <file>res/cursor-rotate.png</file>
        <file>res/act-back.png</file>
        <file>res/act-forward.png</file>
        <file>res/act-charwin.png</file>