From 6f74ac4a82952be4d22495fe2b129bfec3608f5b Mon Sep 17 00:00:00 2001 From: jmaustpc Date: Mon, 18 Nov 2013 03:30:48 +1100 Subject: [PATCH] add SVG icons for the Class Browser Created new svg icons to replace the 7 png icons in src/Gui/Icons/ClassBrowser and made FreeCAD use them --- src/Gui/CallTips.cpp | 10 +- src/Gui/Icons/ClassBrowser/const_member.svg | 117 ++++++++++ src/Gui/Icons/ClassBrowser/member.svg | 86 +++++++ src/Gui/Icons/ClassBrowser/method.svg | 95 ++++++++ src/Gui/Icons/ClassBrowser/property.svg | 240 ++++++++++++++++++++ src/Gui/Icons/ClassBrowser/type_class.svg | 191 ++++++++++++++++ src/Gui/Icons/ClassBrowser/type_enum.svg | 174 ++++++++++++++ src/Gui/Icons/ClassBrowser/type_module.svg | 222 ++++++++++++++++++ src/Gui/Icons/Makefile.am | 7 + src/Gui/Icons/resource.qrc | 7 + 10 files changed, 1144 insertions(+), 5 deletions(-) create mode 100644 src/Gui/Icons/ClassBrowser/const_member.svg create mode 100644 src/Gui/Icons/ClassBrowser/member.svg create mode 100644 src/Gui/Icons/ClassBrowser/method.svg create mode 100644 src/Gui/Icons/ClassBrowser/property.svg create mode 100644 src/Gui/Icons/ClassBrowser/type_class.svg create mode 100644 src/Gui/Icons/ClassBrowser/type_enum.svg create mode 100644 src/Gui/Icons/ClassBrowser/type_module.svg diff --git a/src/Gui/CallTips.cpp b/src/Gui/CallTips.cpp index 5d4418bdcf..70282ffa0c 100644 --- a/src/Gui/CallTips.cpp +++ b/src/Gui/CallTips.cpp @@ -417,11 +417,11 @@ void CallTipsList::extractTipsFromProperties(Py::Object& obj, QMap + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + diff --git a/src/Gui/Icons/ClassBrowser/member.svg b/src/Gui/Icons/ClassBrowser/member.svg new file mode 100644 index 0000000000..15101542d3 --- /dev/null +++ b/src/Gui/Icons/ClassBrowser/member.svg @@ -0,0 +1,86 @@ + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + diff --git a/src/Gui/Icons/ClassBrowser/method.svg b/src/Gui/Icons/ClassBrowser/method.svg new file mode 100644 index 0000000000..effd4f688d --- /dev/null +++ b/src/Gui/Icons/ClassBrowser/method.svg @@ -0,0 +1,95 @@ + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + diff --git a/src/Gui/Icons/ClassBrowser/property.svg b/src/Gui/Icons/ClassBrowser/property.svg new file mode 100644 index 0000000000..a85d5d4774 --- /dev/null +++ b/src/Gui/Icons/ClassBrowser/property.svg @@ -0,0 +1,240 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + diff --git a/src/Gui/Icons/ClassBrowser/type_class.svg b/src/Gui/Icons/ClassBrowser/type_class.svg new file mode 100644 index 0000000000..64aabf1c30 --- /dev/null +++ b/src/Gui/Icons/ClassBrowser/type_class.svg @@ -0,0 +1,191 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + diff --git a/src/Gui/Icons/ClassBrowser/type_enum.svg b/src/Gui/Icons/ClassBrowser/type_enum.svg new file mode 100644 index 0000000000..d60c720c04 --- /dev/null +++ b/src/Gui/Icons/ClassBrowser/type_enum.svg @@ -0,0 +1,174 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + diff --git a/src/Gui/Icons/ClassBrowser/type_module.svg b/src/Gui/Icons/ClassBrowser/type_module.svg new file mode 100644 index 0000000000..6a80dc88d2 --- /dev/null +++ b/src/Gui/Icons/ClassBrowser/type_module.svg @@ -0,0 +1,222 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + + + diff --git a/src/Gui/Icons/Makefile.am b/src/Gui/Icons/Makefile.am index b3dfcfc347..a2f753923b 100644 --- a/src/Gui/Icons/Makefile.am +++ b/src/Gui/Icons/Makefile.am @@ -17,6 +17,13 @@ EXTRA_DIST = \ ClassBrowser/type_class.png \ ClassBrowser/type_enum.png \ ClassBrowser/type_module.png \ + ClassBrowser/const_member.svg \ + ClassBrowser/member.svg \ + ClassBrowser/method.svg \ + ClassBrowser/property.svg \ + ClassBrowser/type_class.svg \ + ClassBrowser/type_enum.svg \ + ClassBrowser/type_module.svg \ add.png \ delete.png \ edit_remove.png \ diff --git a/src/Gui/Icons/resource.qrc b/src/Gui/Icons/resource.qrc index 0654ceded6..6e4d7d7428 100644 --- a/src/Gui/Icons/resource.qrc +++ b/src/Gui/Icons/resource.qrc @@ -27,6 +27,13 @@ ClassBrowser/type_class.png ClassBrowser/type_enum.png ClassBrowser/type_module.png + ClassBrowser/const_member.svg + ClassBrowser/member.svg + ClassBrowser/method.svg + ClassBrowser/property.svg + ClassBrowser/type_class.svg + ClassBrowser/type_enum.svg + ClassBrowser/type_module.svg Std_ViewScreenShot.svg breakpoint.svg debug-marker.svg