X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;f=src%2Fbe%2Fnikiroo%2Ffanfix%2Fbundles%2FUiConfig.java;h=0f3142d3f5552833c162c846122061b9a347e9da;hb=7949d4a5098d8554c333c9fbbda469488bc66f7e;hp=dd2018db717c85a136ef8b1e638d0388d306102e;hpb=68e370a441d8e6b10bfaa904ecacb29e7d6160d8;p=fanfix.git diff --git a/src/be/nikiroo/fanfix/bundles/UiConfig.java b/src/be/nikiroo/fanfix/bundles/UiConfig.java index dd2018d..0f3142d 100644 --- a/src/be/nikiroo/fanfix/bundles/UiConfig.java +++ b/src/be/nikiroo/fanfix/bundles/UiConfig.java @@ -1,19 +1,56 @@ package be.nikiroo.fanfix.bundles; import be.nikiroo.utils.resources.Meta; +import be.nikiroo.utils.resources.Meta.Format; /** * The configuration options. * * @author niki */ +@SuppressWarnings("javadoc") public enum UiConfig { - @Meta(what = "directory", where = "", format = "absolute path, $HOME variable supported, / is always accepted as dir separator", info = "The directory where to store temporary files, defaults to directory 'tmp.reader' in the conig directory (usually $HOME/.fanfix)") + @Meta(description = "The directory where to store temporary files for the GUI reader; any relative path uses the applciation config directory as base, $HOME notation is supported, / is always accepted as directory separator",// + format = Format.DIRECTORY, def = "tmp-reader/") CACHE_DIR_LOCAL_READER, // - @Meta(what = "Output type", where = "Local Reader", format = "One of the known output type", info = "The type of output for the Local Reader for non-images documents") - LOCAL_READER_NON_IMAGES_DOCUMENT_TYPE, // - @Meta(what = "Output type", where = "Local Reader", format = "One of the known output type", info = "The type of output for the Local Reader for images documents") - LOCAL_READER_IMAGES_DOCUMENT_TYPE, // - @Meta(what = "A background colour", where = "Local Reader Frame", format = "#rrggbb", info = "The background colour if you don't want the default system one") + @Meta(description = "How to save the cached stories for the GUI Reader (non-images documents) -- those files will be sent to the reader",// + format = Format.COMBO_LIST, list = { "INFO_TEXT", "EPUB", "HTML", "TEXT" }, def = "EPUB") + GUI_NON_IMAGES_DOCUMENT_TYPE, // + @Meta(description = "How to save the cached stories for the GUI Reader (images documents) -- those files will be sent to the reader",// + format = Format.COMBO_LIST, list = { "CBZ", "HTML" }, def = "CBZ") + GUI_IMAGES_DOCUMENT_TYPE, // + @Meta(description = "Use the internal reader for images documents",// + format = Format.BOOLEAN, def = "true") + IMAGES_DOCUMENT_USE_INTERNAL_READER, // + @Meta(description = "The external viewer for images documents (or empty to use the system default program for the given file type)",// + format = Format.STRING) + IMAGES_DOCUMENT_READER, // + @Meta(description = "Use the internal reader for non-images documents",// + format = Format.BOOLEAN, def = "true") + NON_IMAGES_DOCUMENT_USE_INTERNAL_READER, // + @Meta(description = "The external viewer for non-images documents (or empty to use the system default program for the given file type)",// + format = Format.STRING) + NON_IMAGES_DOCUMENT_READER, // + // + // GUI settings (hidden in config) + // + @Meta(description = "Show the side panel by default",// + hidden = true, format = Format.BOOLEAN, def = "true") + SHOW_SIDE_PANEL, // + @Meta(description = "Show the details panel by default",// + hidden = true, format = Format.BOOLEAN, def = "true") + SHOW_DETAILS_PANEL, // + @Meta(description = "Show thumbnails by default in the books view",// + hidden = true, format = Format.BOOLEAN, def = "false") + SHOW_THUMBNAILS, // + @Meta(description = "Show a words/images count instead of the author by default in the books view",// + hidden = true, format = Format.BOOLEAN, def = "false") + SHOW_WORDCOUNT, // + // + // Deprecated + // + @Meta(description = "The background colour of the library if you don't like the default system one",// + hidden = true, format = Format.COLOR) + @Deprecated BACKGROUND_COLOR, // }