make it subtree
[fanfix.git] / bundles / UiConfig.java
diff --git a/bundles/UiConfig.java b/bundles/UiConfig.java
new file mode 100644 (file)
index 0000000..0640db8
--- /dev/null
@@ -0,0 +1,37 @@
+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(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(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, //
+       @Meta(description = "The background colour of the library if you don't like the default system one",//
+       format = Format.COLOR)
+       BACKGROUND_COLOR, //
+}