<plugin id="Tuto11LaunchBasicConfig">

    <requirement id="servicesReg" />

    <xi:include href="BasicFrameConfig.xml" xmlns:xi="http://www.w3.org/2003/XInclude" />
    
    <extension implements="::fwServices::registry::AppConfig">
        <id>TutoLaunchBasicConfig</id>
        <type>parameters</type>
        <config>
            <object uid="myImage" type="::fwData::Image">

                <service uid="myFrame" type="::fwGui::IFrameSrv" impl="::gui::frame::DefaultFrame" autoConnect="no">
                    <gui>
                        <frame>
                            <name>Tuto 11 : Launch basic config</name>
                            <icon>Bundles/Tuto11LaunchBasicConfig_0-1/tuto.ico</icon>
                            <minSize width="800" height="600" />
                        </frame>
                        <menuBar />
                    </gui>
                    <registry>
                        <menuBar sid="mainMenuBar" start="yes" />
                        <view sid="mainView" start="yes" />
                    </registry>
                </service>

                <service uid="mainMenuBar" type="::fwGui::IMenuBarSrv" impl="::gui::aspect::DefaultMenuBarSrv" autoConnect="no">
                    <gui>
                        <layout>
                            <menu name="File" />
                        </layout>
                    </gui>
                    <registry>
                        <menu sid="menuFile" start="yes" />
                    </registry>
                </service>

                <service uid="menuFile" type="::fwGui::IMenuSrv" impl="::gui::aspect::DefaultMenuSrv" autoConnect="no">
                    <gui>
                        <layout>
                            <menuItem name="Open file" shortcut="Ctrl+O" />
                            <separator />
                            <menuItem name="Launch Config" style="check" />
                            <separator />
                            <menuItem name="Quit" specialAction="QUIT" shortcut="Ctrl+Q" />
                        </layout>
                    </gui>
                    <registry>
                        <menuItem sid="actionOpenFile" start="yes" />
                        <menuItem sid="actionLaunchConfig" start="yes" />
                        <menuItem sid="actionQuit" start="yes" />
                    </registry>
                </service>


                <service uid="actionOpenFile" type="::fwGui::IActionSrv" impl="::gui::action::StarterActionService" autoConnect="no">
                    <start uid="myReaderPathFile" />
                </service>

                <service uid="actionQuit" type="::fwGui::IActionSrv" impl="::gui::action::QuitAction" autoConnect="no" />

                <service uid="myReaderPathFile" impl="::uiIO::editor::IOSelectorService" type="::gui::editor::IDialogEditor" autoConnect="no" />

                <service uid="actionLaunchConfig" type="::fwGui::IActionSrv" impl="::gui::action::SConfigLauncher" autoConnect="no">
                    <config>
                        <appConfig id="BasicFrameConfig" >
                            <parameters>
                                <parameter replace="imageUid" by="myImage" />
                            </parameters>
                        </appConfig>
                    </config>
                </service>

                <service impl="::vtkSimpleNegato::RendererService" type="::fwRender::IRender" uid="mainView" autoConnect="yes">
                </service>

                <start uid="myFrame" />

            </object>
        </config>
    </extension>
</plugin>
