* Subclasses obtain the following capabilities: *
** Preferences *
org.blueberry.core.runtime.Preferences
).
* This class provides appropriate conversion to the older JFace preference
* API (org.blueberry.jface.preference.IPreferenceStore
).getPreferenceStore
returns the JFace preference
* store (cf. Plugin.getPluginPreferences
which returns
* a core runtime preferences object.initializeDefaultPreferences
* to set up any default values for preferences using JFace API. In this
* case, initializeDefaultPluginPreferences
should not be
* overridden.initializeDefaultPluginPreferences
to set up any default
* values for preferences using core runtime API. In this
* case, initializeDefaultPreferences
should not be
* overridden.getDialogSettings
* is called.FN_DIALOG_STORE
. A dialog store file is first
* looked for in the plug-in's read/write state area; if not found there,
* the plug-in's install directory is checked.
* This allows a plug-in to ship with a read-only copy of a dialog store
* file containing initial values for certain settings.saveDialogSettings
to cause settings to
* be saved in the plug-in's read/write state area. A plug-in may opt to do
* this each time a wizard or dialog is closed to ensure the latest
* information is always safe on disk.
* For easy access to your plug-in object, use the singleton pattern. Declare a
* static variable in your plug-in class for the singleton. Store the first
* (and only) instance of the plug-in class in the singleton when it is created.
* Then access the singleton when needed through a static getDefault
* method.
*
* See the description on {@link Plugin}. *
*/ class BERRY_UI_QT AbstractUICTKPlugin : public Plugin { Q_OBJECT private: /** * The name of the dialog settings file (value *"dialog_settings.xml"
).
*/
static const QString FN_DIALOG_SETTINGS;
/**
* Storage for dialog and wizard data; null
if not yet
* initialized.
*/
//DialogSettings dialogSettings = null;
/**
* Storage for preferences.
*/
mutable IPreferencesService* preferencesService;
/**
* The bundle listener used for kicking off refreshPluginActions().
*/
//BundleListener bundleListener;
public:
/**
* Creates an abstract UI plug-in runtime object.
*
* Plug-in runtime classes are ctkPluginActivator
s and so must
* have an default constructor. This method is called by the runtime when
* the associated bundle is being activated.
*/
AbstractUICTKPlugin();
/**
* Returns the dialog settings for this UI plug-in.
* The dialog settings is used to hold persistent state data for the various
* wizards and dialogs of this plug-in in the context of a workbench.
*
* If an error occurs reading the dialog store, an empty one is quietly created * and returned. *
** Subclasses may override this method but are not expected to. *
* * @return the dialog settings */ // IDialogSettings getDialogSettings(); /** * Returns the preferences service for this UI plug-in. * This preferences service is used to hold persistent settings for this plug-in in * the context of a workbench. Some of these settings will be user controlled, * whereas others may be internal setting that are never exposed to the user. ** If an error occurs reading the preferences service, an empty preference service is * quietly created, initialized with defaults, and returned. *
* * @return the preferences service */ IPreferencesService* GetPreferencesService() const; SmartPointer
* This method exists as a convenience for plugin implementors. The
* workbench can also be accessed by invoking PlatformUI.getWorkbench()
.
*
* The default implementation of this method creates an empty registry. * Subclasses may override this method if needed. *
* * @return ImageRegistry the resulting registry. * @see #getImageRegistry */ // ImageRegistry createImageRegistry(); /** * Initializes an image registry with images which are frequently used by the * plugin. ** The image registry contains the images used by this plug-in that are very * frequently used and so need to be globally shared within the plug-in. Since * many OSs have a severe limit on the number of images that can be in memory * at any given time, each plug-in should only keep a small number of images in * its registry. *
* Implementors should create a JFace image descriptor for each frequently used * image. The descriptors describe how to create/find the image should it be needed. * The image described by the descriptor is not actually allocated until someone * retrieves it. *
* Subclasses may override this method to fill the image registry. *
* @param reg the registry to initalize * * @see #getImageRegistry */ // void initializeImageRegistry(ImageRegistry reg); /** * Loads the dialog settings for this plug-in. * The default implementation first looks for a standard named file in the * plug-in's read/write state area; if no such file exists, the plug-in's * install directory is checked to see if one was installed with some default * settings; if no file is found in either place, a new empty dialog settings * is created. If a problem occurs, an empty settings is silently used. ** This framework method may be overridden, although this is typically * unnecessary. *
*/ // void loadDialogSettings(); /** * Refreshes the actions for the plugin. * This method is called fromstartup
.
* * This framework method may be overridden, although this is typically * unnecessary. *
*/ // void refreshPluginActions(); /** * Saves this plug-in's dialog settings. * Any problems which arise are silently ignored. */ // void saveDialogSettings(); public: /** * TheAbstractUIPlugin
implementation of this Plugin
* method refreshes the plug-in actions. Subclasses may extend this method,
* but must send super first.
*/
void start(ctkPluginContext* context) override;
/**
* The AbstractUIPlugin
implementation of this Plugin
* method saves this plug-in's preference and dialog stores and shuts down
* its image registry (if they are in use). Subclasses may extend this
* method, but must send super last. A try-finally statement should
* be used where necessary to ensure that super.shutdown()
is
* always done.
*/
void stop(ctkPluginContext* context) override;
/**
* Creates and returns a new image descriptor for an image file located
* within the specified plug-in.
* * This is a convenience method that simply locates the image file in * within the plug-in (no image registries are involved). The path is * relative to the root of the plug-in, and takes into account files * coming from plug-in fragments. The path may include $arg$ elements. * However, the path must not have a leading "." or path separator. * Clients should use a path like "icons/mysample.gif" rather than * "./icons/mysample.gif" or "/icons/mysample.gif". *
* * @param pluginId the id of the plug-in containing the image file; *null
is returned if the plug-in does not exist
* @param imageFilePath the relative path of the image file, relative to the
* root of the plug-in; the path must be legal
* @return an image descriptor, or null
if no image
* could be found
*/
static QIcon ImageDescriptorFromPlugin(
const QString& pluginId, const QString& imageFilePath);
static QIcon GetMissingIcon();
+
+ static QByteArray ApplyTheme(const QByteArray &originalSVG);
};
} // namespace berry
#endif /*BERRYABSTRACTUICTKPLUGIN_H_*/
diff --git a/Plugins/org.mitk.gui.qt.cest/resources/icon.svg b/Plugins/org.mitk.gui.qt.cest/resources/icon.svg
index 5deb6eceda..14c1f39330 100644
--- a/Plugins/org.mitk.gui.qt.cest/resources/icon.svg
+++ b/Plugins/org.mitk.gui.qt.cest/resources/icon.svg
@@ -1,85 +1,85 @@
diff --git a/Plugins/org.mitk.gui.qt.datamanager/resources/data-manager.svg b/Plugins/org.mitk.gui.qt.datamanager/resources/data-manager.svg
index 8f4551995c..fc92b414ed 100644
--- a/Plugins/org.mitk.gui.qt.datamanager/resources/data-manager.svg
+++ b/Plugins/org.mitk.gui.qt.datamanager/resources/data-manager.svg
@@ -1,2 +1,54 @@
-
-
\ No newline at end of file
+
+
diff --git a/Plugins/org.mitk.gui.qt.igt.app.echotrack/resources/icon_US_calibration.svg b/Plugins/org.mitk.gui.qt.igt.app.echotrack/resources/icon_US_calibration.svg
index a5d4c818d6..b5aef05426 100644
--- a/Plugins/org.mitk.gui.qt.igt.app.echotrack/resources/icon_US_calibration.svg
+++ b/Plugins/org.mitk.gui.qt.igt.app.echotrack/resources/icon_US_calibration.svg
@@ -1,158 +1,191 @@
\ No newline at end of file
+ id="path44"
+ style="stroke:none;fill:#00ff00;fill-opacity:1" />
\ No newline at end of file
diff --git a/Plugins/org.mitk.gui.qt.igtexamples/resources/icon_igt_simple_example.svg b/Plugins/org.mitk.gui.qt.igtexamples/resources/icon_igt_simple_example.svg
index c71a015640..3c3da7859a 100644
--- a/Plugins/org.mitk.gui.qt.igtexamples/resources/icon_igt_simple_example.svg
+++ b/Plugins/org.mitk.gui.qt.igtexamples/resources/icon_igt_simple_example.svg
@@ -1,180 +1,244 @@
\ No newline at end of file
+ d="M7.5,19.6c3.5,0,6.4,2.9,6.4,6.4c0,3.5-2.9,6.4-6.4,6.4c-3.5,0-6.4-2.9-6.4-6.4C1.1,22.5,4,19.6,7.5,19.6 M7.5,18.5 C3.4,18.5,0,21.9,0,26c0,4.1,3.4,7.5,7.5,7.5c4.1,0,7.5-3.4,7.5-7.5C15,21.9,11.6,18.5,7.5,18.5L7.5,18.5z"
+ style="fill:#00ff00;fill-opacity:1;stroke:none" />
\ No newline at end of file
diff --git a/Plugins/org.mitk.gui.qt.igtexamples/resources/icon_igt_tracking_lab.svg b/Plugins/org.mitk.gui.qt.igtexamples/resources/icon_igt_tracking_lab.svg
index dd7c6fe613..d8e1fc38b3 100644
--- a/Plugins/org.mitk.gui.qt.igtexamples/resources/icon_igt_tracking_lab.svg
+++ b/Plugins/org.mitk.gui.qt.igtexamples/resources/icon_igt_tracking_lab.svg
@@ -1,201 +1,281 @@
\ No newline at end of file
+ class="st21"
+ style="fill:#00ff00;fill-opacity:1;stroke:none" />
\ No newline at end of file
diff --git a/Plugins/org.mitk.gui.qt.igtexamples/resources/icon_openigtlink_client_example.svg b/Plugins/org.mitk.gui.qt.igtexamples/resources/icon_openigtlink_client_example.svg
index b628a67e41..7a3e25ec88 100644
--- a/Plugins/org.mitk.gui.qt.igtexamples/resources/icon_openigtlink_client_example.svg
+++ b/Plugins/org.mitk.gui.qt.igtexamples/resources/icon_openigtlink_client_example.svg
@@ -1,127 +1,169 @@
\ No newline at end of file
+ d="M36.4,35.3h-1.3v-1.2h1.3V35.3z"
+ style="fill:#00ff00;fill-opacity:1;stroke:none" />
\ No newline at end of file
diff --git a/Plugins/org.mitk.gui.qt.igtexamples/resources/icon_openigtlink_extended_example.svg b/Plugins/org.mitk.gui.qt.igtexamples/resources/icon_openigtlink_extended_example.svg
index bd3940f1f0..5472e725c4 100644
--- a/Plugins/org.mitk.gui.qt.igtexamples/resources/icon_openigtlink_extended_example.svg
+++ b/Plugins/org.mitk.gui.qt.igtexamples/resources/icon_openigtlink_extended_example.svg
@@ -1,130 +1,174 @@
\ No newline at end of file
+ d="M40.5,37h-1.4v-1.3h1.4V37z"
+ style="fill:#00ff00;fill-opacity:1;stroke:none" />
\ No newline at end of file
diff --git a/Plugins/org.mitk.gui.qt.igtexamples/resources/icon_openigtlink_provider_example.svg b/Plugins/org.mitk.gui.qt.igtexamples/resources/icon_openigtlink_provider_example.svg
index a0ebc57f53..d6c46ace8a 100644
--- a/Plugins/org.mitk.gui.qt.igtexamples/resources/icon_openigtlink_provider_example.svg
+++ b/Plugins/org.mitk.gui.qt.igtexamples/resources/icon_openigtlink_provider_example.svg
@@ -1,127 +1,169 @@
\ No newline at end of file
+ d="M1.3,34.5c0,0.1,0.1,0.2,0.2,0.2h3.1v6.5c0,0.1,0.1,0.2,0.2,0.2H13c0.1,0,0.2-0.1,0.2-0.2v-6.5h3.1c0.1,0,0.2-0.1,0.2-0.2 c0-0.1,0-0.2-0.1-0.3l-7.4-7.4c0,0-0.1-0.1-0.2-0.1c-0.1,0-0.1,0-0.2,0.1l-7.4,7.4C1.3,34.3,1.3,34.4,1.3,34.5z"
+ style="fill:#00ff00;fill-opacity:1;stroke:none" />
\ No newline at end of file
diff --git a/Plugins/org.mitk.gui.qt.igttracking/resources/iconTrackingDataPlayer.svg b/Plugins/org.mitk.gui.qt.igttracking/resources/iconTrackingDataPlayer.svg
index d2cdb28dea..5b1078c8f7 100644
--- a/Plugins/org.mitk.gui.qt.igttracking/resources/iconTrackingDataPlayer.svg
+++ b/Plugins/org.mitk.gui.qt.igttracking/resources/iconTrackingDataPlayer.svg
@@ -1,150 +1,228 @@
-
+
-
+