<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE kcfg SYSTEM "http://www.kde.org/standards/kcfg/1.0/kcfg.dtd">
<kcfg xmlns="http://www.kde.org/standards/kcfg/1.0"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.kde.org/standards/kcfg/1.0
                        http://www.kde.org/standards/kcfg/1.0/kcfg.xsd">
    <include>lib/sorting.h</include>
    <include>lib/zoommode.h</include>
    <include>lib/slideshow.h</include>
    <include>lib/thumbnailactions.h</include>
    <include>lib/mousewheelbehavior.h</include>
    <include>lib/fullscreenbackground.h</include>
    <include>lib/documentview/documentview.h</include>
    <include>lib/documentview/rasterimageview.h</include>
    <include>lib/print/printoptionspage.h</include>
    <include>lib/renderingintent.h</include>
    <include>lib/documentview/documentview.h</include>
    <kcfgfile name="gwenviewrc"/>
    <group name="SideBar">
        <entry name="PreferredMetaInfoKeyList" type="StringList">
        <default>General.Name,General.ImageSize,Exif.Photo.ExposureTime,Exif.Photo.Flash</default>
        </entry>

        <entry name="SideBarVisible" key="IsVisible ViewMode" type="Bool">
            <default>false</default>
        </entry>
        <entry name="SideBarVisibleViewModeFullScreen" key="IsVisible ViewMode FullScreen" type="Bool">
            <default>false</default>
        </entry>
        <entry name="SideBarVisibleSpotlightMode" key="IsVisible Spotlight Mode" type="Bool">
            <default>false</default>
        </entry>

        <entry name="SideBarSplitterSizes" type="IntList">
        </entry>

        <entry name="InformationSplitterSizes" type="IntList">
        </entry>
    </group>

    <group name="General">
        <entry name="BirdEyeViewEnabled" type="Bool">
            <default>true</default>
        </entry>

        <entry name="BackgroundColorMode" type="Enum">
            <choices name="Gwenview::DocumentView::BackgroundColorMode">
                <choice name="DocumentView::Auto"/>
                <choice name="DocumentView::Light"/>
                <choice name="DocumentView::Neutral"/>
                <choice name="DocumentView::Dark"/>
            </choices>
            <default>DocumentView::Auto</default>
        </entry>

        <entry name="HistoryEnabled" type="Bool">
            <default>true</default>
        </entry>

        <entry name="PercentageOfMemoryUsageWarning" type="Double">
            <default>0.5</default>
            <whatsthis>The percentage of memory used by Gwenview before it
            warns the user and suggest saving changes.</whatsthis>
        </entry>

        <entry name="BlackListedExtensions" type="StringList">
            <default>new</default>
            <whatsthis>A list of filename extensions Gwenview should not try to
            load. We exclude *.new as well because this is the extension
            used for temporary files by KSaveFile.</whatsthis>
        </entry>
        <entry name="ThumbnailBarIsVisible" type="Bool">
            <default>false</default>
        </entry>

        <entry name="JPEGQuality" type="Int">
            <default>90</default>
        </entry>

        <entry name="LastTargetDir" type="Path">
        </entry>

        <entry name="ThumbnailBarOrientation" type="Enum">
            <choices name="Qt::Orientation">
                <!-- Enum entries do not support enums with arbitrary values.
                Since Qt::Horizontal is 1 and Qt::Vertical is 2, we need to
                introduce a Dummy value here.
                -->
                <choice name="Dummy"/>
                <choice name="Horizontal"/>
                <choice name="Vertical"/>
            </choices>
            <default>Horizontal</default>
        </entry>

        <entry name="ThumbnailBarRowCount" type="Int">
            <default>1</default>
        </entry>

        <entry name="UrlNavigatorIsEditable" type="Bool">
            <default>false</default>
        </entry>
        <entry name="UrlNavigatorShowFullPath" type="Bool">
            <default>false</default>
        </entry>

        <entry name="DefaultExportPluginText" type="String">
        </entry>

        <entry name="SideBarPage" type="String">
            <default>information</default>
        </entry>
        <entry name="FullScreenBackground" type="Enum">
            <choices name="Gwenview::FullScreenBackground::Enum">
                <choice name="FullScreenBackground::Image"/>
                <choice name="FullScreenBackground::Black"/>
            </choices>
            <default>FullScreenBackground::Image</default>
        </entry>
        <entry name="ThumbnailActions" type="Enum">
            <choices name="Gwenview::ThumbnailActions::Enum">
                <choice name="ThumbnailActions::AllButtons"/>
                <choice name="ThumbnailActions::ShowSelectionButtonOnly"/>
                <choice name="ThumbnailActions::None"/>
            </choices>
            <default>ThumbnailActions::AllButtons</default>
        </entry>
        <entry name="LastUsedVersion" type="int">
            <default>-1</default>
        </entry>
    </group>

    <group name="FullScreen">
        <entry name="FullScreenPreferredMetaInfoKeyList" type="StringList">
            <default>General.Name,Exif.Image.DateTime</default>
        </entry>
        <entry name="FullScreenColorScheme" type="String">
            <default></default>
        </entry>
        <entry name="FullScreenBarHeight" type="Int">
            <default></default>
        </entry>
        <entry name="ShowFullScreenThumbnails" type="Bool">
            <default>true</default>
        </entry>
        <entry name="FullScreenModeActive" type="Bool">
            <default>false</default>
        </entry>
    </group>

    <group name="ImageView">
        <entry name="AlphaBackgroundMode" type="Enum">
            <choices name="Gwenview::AbstractImageView::AlphaBackgroundMode">
                <choice name="AbstractImageView::AlphaBackgroundNone"/>
                <choice name="AbstractImageView::AlphaBackgroundCheckBoard"/>
                <choice name="AbstractImageView::AlphaBackgroundSolid"/>
            </choices>
            <default>AbstractImageView::AlphaBackgroundNone</default>
        </entry>
        <entry name="AlphaBackgroundColor" type="Color">
            <default>#ffffff</default>
        </entry>

        <entry name="MouseWheelBehavior" type="Enum">
            <choices name="Gwenview::MouseWheelBehavior::Enum">
                <choice name="MouseWheelBehavior::Scroll"/>
                <choice name="MouseWheelBehavior::Browse"/>
                <choice name="MouseWheelBehavior::Zoom"/>
            </choices>
            <default>MouseWheelBehavior::Scroll</default>
        </entry>

        <entry name="EnlargeSmallerImages" type="Bool">
            <default>false</default>
        </entry>

        <entry name="ApplyExifOrientation" type="Bool">
            <default>true</default>
        </entry>

        <entry name="ThumbnailSplitterSizes" type="IntList">
            <default>350, 100</default>
        </entry>

        <entry name="AnimationMethod" type="Enum">
            <choices name="Gwenview::DocumentView::AnimationMethod">
                <choice name="DocumentView::NoAnimation"/>
                <choice name="DocumentView::SoftwareAnimation"/>
                <choice name="DocumentView::GLAnimation"/>
            </choices>
            <default>DocumentView::SoftwareAnimation</default>
        </entry>

        <entry name="ZoomMode" type="Enum">
                <choices name="Gwenview::ZoomMode::Enum">
                <choice name="ZoomMode::Autofit"/>
                <choice name="ZoomMode::KeepSame"/>
                <choice name="ZoomMode::Individual"/>
            </choices>
            <default>ZoomMode::Autofit</default>
            <whatsthis>Defines what happens when going to image B after
            having zoomed in on an area of image A.  If set to Autofit,
            image B is zoomed out to fit the screen.  If set to KeepSame,
            all images share the same zoom and position: image B is set
            to the same zoom parameters as image A (and if these are
            changed, image A will then be displayed with the updated zoom
            and position).  If set to Individual, all images remember
            their own zoom and position: image B is initially set to the
            same zoom parameters as image A, but will then remember its
            own zoom and position (if these are changed, image A will NOT
            be displayed with the updated zoom and position).</whatsthis>
        </entry>

        <entry name="RenderingIntent" type="Enum">
                <choices name="Gwenview::RenderingIntent::Enum">
                <choice name="RenderingIntent::Perceptual"/>
                <choice name="RenderingIntent::Relative"/>
            </choices>
            <default>RenderingIntent::Perceptual</default>
            <whatsthis>Defines how colors are rendered when your display
            uses an ICC color profile and an image has colors that do not
            fit within the profile's color gamut. "Perceptual" will scale
            the colors of the entire image so that they all fit within the
            display's capabilities. "Relative" will squash only the colors
            that cannot be displayed, and leave the other colors alone.</whatsthis>
        </entry>
        
        <entry name="EnableColorManagement" type="Bool">
            <default>true</default>
        </entry>

        <entry name="SpotlightMode" type="Bool">
            <default>false</default>
        </entry>

        <entry name="NavigationEndNotification" type="Enum">
            <choices name="Gwenview::SlideShow::NavigationEndNotification">
                <choice name="NavigationEndNotification::NeverWarn"/>
                <choice name="NavigationEndNotification::WarnOnSlideshow"/>
                <choice name="NavigationEndNotification::AlwaysWarn"/>
            </choices>
            <default>Gwenview::SlideShow::NavigationEndNotification::WarnOnSlideshow</default>
        </entry>
    </group>

    <group name="ThumbnailView">
        <entry name="ThumbnailSize" type="Int">
            <default>128</default>
        </entry>

        <entry name="ThumbnailAspectRatio" type="Double">
        <default>3./2.</default>
        </entry>

        <entry name="LowResourceUsageMode" type="Bool">
            <default>false</default>
        </entry>

        <entry name="Sorting" type="Enum">
            <choices name="Gwenview::Sorting::Enum">
                <choice name="Sorting::Name"/>
                <choice name="Sorting::Size"/>
                <choice name="Sorting::Date"/>
                <choice name="Sorting::Rating"/>
            </choices>
            <default>Sorting::Name</default>
        </entry>
        
        <entry name="SortDescending" type="Bool">
            <default>false</default>
        </entry>

        <entry name="ThumbnailDetails" type="Int">
            <default>1</default>
            <!-- 1 == PreviewItemDelegate::FileNameDetail -->
        </entry>

        <entry name="ListVideos" type="Bool">
            <default>true</default>
        </entry>

        <entry name="AutoplayVideos" type="Bool">
            <default>false</default>
        </entry>
    </group>

    <group name="Print">
        <entry name="PrintPosition" type="Int">
            <default code="true">
                Qt::AlignHCenter | Qt::AlignVCenter
            </default>
        </entry>

        <entry name="PrintScaleMode" type="Enum">
            <choices name="Gwenview::PrintOptionsPage::ScaleMode">
                <choice name="PrintOptionsPage::NoScale"/>
                <choice name="PrintOptionsPage::ScaleToPage"/>
                <choice name="PrintOptionsPage::ScaleToCustomSize"/>
            </choices>
            <default>PrintOptionsPage::ScaleToPage</default>
        </entry>

        <entry name="PrintEnlargeSmallerImages" type="Bool">
            <default>false</default>
        </entry>

        <entry name="PrintWidth" type="Double">
            <default>15.0</default>
        </entry>

        <entry name="PrintHeight" type="Double">
            <default>10.0</default>
            <!-- Default is in fact computed from PrintWidth because PrintKeepRatio is true -->
        </entry>

        <entry name="PrintUnit" type="Enum">
            <choices name="Gwenview::PrintOptionsPage::Unit">
                <choice name="PrintOptionsPage::Millimeters"/>
                <choice name="PrintOptionsPage::Centimeters"/>
                <choice name="PrintOptionsPage::Inches"/>
            </choices>
            <default>PrintOptionsPage::Centimeters</default>
        </entry>

        <entry name="PrintKeepRatio" type="Bool">
            <default>true</default>
        </entry>
    </group>

    <group name="slide show">
        <entry name="random" type="Bool">
            <label>Display slide show images in random order</label>
            <default>false</default>
        </entry>
        <entry name="fullscreen" type="Bool">
            <label>Show slideshow in fullscreen mode</label>
            <default>true</default>
        </entry>
        <entry name="loop" type="Bool">
            <label>Loop on images</label>
            <default>false</default>
        </entry>
        <entry name="stopAtEnd" key="stop at end" type="Bool">
            <label>Stop at last image of folder</label>
            <default>false</default>
        </entry>
        <entry name="interval" type="Double">
            <label>Interval between images (in seconds)</label>
            <default>5.0</default>
        </entry>
    </group>

    <group name="RedEyeReduction">
        <entry name="RedEyeReductionDiameter" type="Int">
            <default>24</default>
        </entry>
    </group>

    <group name="Crop">
        <entry name="CropAdvancedSettingsEnabled" type="Bool">
            <default>false</default>
        </entry>
        <entry name="CropPreserveAspectRatio" type="Bool">
            <label>Restrict crop to image ratio when Advanced Settings disabled</label>
            <default>false</default>
        </entry>
        <entry name="CropRatioIndex" type="Int">
            <label>Index representing selected ratio in the Advanced settings combobox</label>
            <default>-1</default>
        </entry>
        <entry name="CropRatioWidth" type="Double">
            <label>Last used crop ratio width when Advanced Settings enabled</label>
            <default>0</default>
        </entry>
        <entry name="CropRatioHeight" type="Double">
            <label>Last used crop ratio height when Advanced Settings enabled</label>
            <default>0</default>
        </entry>
    </group>

    <group name="StatusBar">
        <entry name="StatusBarVisibleBrowseMode" key="IsVisible BrowseMode" type="Bool">
            <default>true</default>
        </entry>
        <entry name="StatusBarVisibleViewMode" key="IsVisible ViewMode" type="Bool">
            <default>true</default>
        </entry>
        <entry name="StatusBarVisibleViewModeFullScreen" key="IsVisible ViewMode FullScreen" type="Bool">
            <default>false</default>
        </entry>
        <entry name="StatusBarVisibleSpotlightMode" key="IsVisible Spotlight Mode" type="Bool">
            <default>false</default>
        </entry>
    </group>
</kcfg>
