1 /* 2 * This file Copyright (C) 2007-2014 Mnemosyne LLC 3 * 4 * It may be used under the GNU GPL versions 2 or 3 5 * or any future license endorsed by Mnemosyne LLC. 6 * 7 */ 8 9 #pragma once 10 11 #include <gtk/gtk.h> 12 13 GtkWidget* gtr_prefs_dialog_new(GtkWindow* parent, GObject* core); 14 15 /* if you add a key here, you /must/ add its 16 * default in tr_prefs_init_defaults(void) */ 17 18 #define PREF_KEY_BLOCKLIST_UPDATES_ENABLED "blocklist-updates-enabled" 19 #define PREF_KEY_COMPACT_VIEW "compact-view" 20 #define PREF_KEY_DIR_WATCH_ENABLED "watch-dir-enabled" 21 #define PREF_KEY_DIR_WATCH "watch-dir" 22 #define PREF_KEY_FILTERBAR "show-filterbar" 23 #define PREF_KEY_INHIBIT_HIBERNATION "inhibit-desktop-hibernation" 24 #define PREF_KEY_MAIN_WINDOW_HEIGHT "main-window-height" 25 #define PREF_KEY_MAIN_WINDOW_IS_MAXIMIZED "main-window-is-maximized" 26 #define PREF_KEY_MAIN_WINDOW_WIDTH "main-window-width" 27 #define PREF_KEY_MAIN_WINDOW_X "main-window-x" 28 #define PREF_KEY_MAIN_WINDOW_Y "main-window-y" 29 #define PREF_KEY_OPEN_DIALOG_FOLDER "open-dialog-dir" 30 #define PREF_KEY_OPTIONS_PROMPT "show-options-window" 31 #define PREF_KEY_SHOW_BACKUP_TRACKERS "show-backup-trackers" 32 #define PREF_KEY_SHOW_MORE_PEER_INFO "show-extra-peer-details" 33 #define PREF_KEY_SHOW_MORE_TRACKER_INFO "show-tracker-scrapes" 34 #define PREF_KEY_SHOW_TRAY_ICON "show-notification-area-icon" 35 #define PREF_KEY_SORT_MODE "sort-mode" 36 #define PREF_KEY_SORT_REVERSED "sort-reversed" 37 #define PREF_KEY_STATUSBAR "show-statusbar" 38 #define PREF_KEY_STATUSBAR_STATS "statusbar-stats" 39 #define PREF_KEY_TOOLBAR "show-toolbar" 40 #define PREF_KEY_TORRENT_ADDED_NOTIFICATION_ENABLED "torrent-added-notification-enabled" 41 #define PREF_KEY_TORRENT_COMPLETE_NOTIFICATION_ENABLED "torrent-complete-notification-enabled" 42 #define PREF_KEY_TORRENT_COMPLETE_SOUND_COMMAND "torrent-complete-sound-command" 43 #define PREF_KEY_TORRENT_COMPLETE_SOUND_ENABLED "torrent-complete-sound-enabled" 44 #define PREF_KEY_TRASH_CAN_ENABLED "trash-can-enabled" 45 #define PREF_KEY_USER_HAS_GIVEN_INFORMED_CONSENT "user-has-given-informed-consent" 46 47 enum 48 { 49 MAIN_WINDOW_REFRESH_INTERVAL_SECONDS = 2, 50 SECONDARY_WINDOW_REFRESH_INTERVAL_SECONDS = 2 51 }; 52