Skip to content

(ActivityLauncher): update the activityLauncher configuration to add icons path

What does this MR do?

Allow to customize the activity wizard used by the sequencer. For example, you can use different icons and/or define the readers to use.

  • Add a parameter in ActivityLauncher configuration WIZARD_CONFIG to define the custom configuration.
  • Update ExActivities sample to customize the wizard.

Example: Add the parameter in the ActivityLauncher launcher: <parameter replace="WIZARD_CONFIG" by="activityWizardServiceConfigName" />

        <service uid="activityLauncher" type="::fwServices::SConfigController">
            <appConfig id="ActivityLauncher" />
            <inout key="seriesDB" uid="seriesDB" />
            <parameter replace="SEQUENCER_CONFIG" by="sequencerConfigName" />
            <parameter replace="WIZARD_CONFIG" by="activityWizardServiceConfigName" />
            <parameter replace="ICON_PATH" by="${ICON_PATH}" />
            <parameter replace="WID_PARENT" by="activityView" />
        </service>

The configuration should be like:

    <extension implements="::fwServices::registry::ServiceConfig">
        <id>activityWizardServiceConfigName</id>
        <service>::uiMedDataQt::editor::SActivityWizard</service>
        <desc>Custom configuration for activity wizard</desc>
        <config>
            <ioSelectorConfig>SDBReaderIOSelectorConfig</ioSelectorConfig>
            <sdbIoSelectorConfig>FullSDBReaderIOSelectorConfig</sdbIoSelectorConfig>
            <confirm>false</confirm>
            <icons>
                <icon type="::fwMedData::ImageSeries" icon="media-0.1/icons/ImageSeries.svg" />
                <icon type="::fwMedData::ModelSeries" icon="media-0.1/icons/ModelSeries.svg" />
            </icons>
        </config>
    </extension>

How to test it?

  • Launch ExActivities and see that the image has an icon in the wizard.
  • Launch another application that uses the sequencer with the default parameters and see that nothing is broken.

Data

No data.

Some results

Screenshot_20200505_094813

Associated Issues/Merge Requests

Edited by Emilie WERNERT

Merge request reports