1 | /* |
---|
2 | * This file Copyright (C) 2007-2010 Mnemosyne LLC |
---|
3 | * |
---|
4 | * This file is licensed by the GPL version 2. Works owned by the |
---|
5 | * Transmission project are granted a special exemption to clause 2(b) |
---|
6 | * so that the bulk of its code can remain under the MIT license. |
---|
7 | * This exemption does not extend to derived works not owned by |
---|
8 | * the Transmission project. |
---|
9 | * |
---|
10 | * $Id: tr-prefs.h 10066 2010-02-01 04:54:10Z charles $ |
---|
11 | */ |
---|
12 | |
---|
13 | #ifndef TR_PREFS_H |
---|
14 | #define TR_PREFS_H |
---|
15 | |
---|
16 | #include <gtk/gtk.h> |
---|
17 | |
---|
18 | GtkWidget * tr_prefs_dialog_new( GObject * core, |
---|
19 | GtkWindow * parent ); |
---|
20 | |
---|
21 | /* if you add a key here, you /must/ add its |
---|
22 | * default in tr_prefs_init_defaults( void ) */ |
---|
23 | |
---|
24 | #define PREF_KEY_USER_HAS_GIVEN_INFORMED_CONSENT "user-has-given-informed-consent" |
---|
25 | #define PREF_KEY_OPTIONS_PROMPT "show-options-window" |
---|
26 | #define PREF_KEY_OPEN_DIALOG_FOLDER "open-dialog-dir" |
---|
27 | #define PREF_KEY_INHIBIT_HIBERNATION "inhibit-desktop-hibernation" |
---|
28 | #define PREF_KEY_DIR_WATCH "watch-dir" |
---|
29 | #define PREF_KEY_DIR_WATCH_ENABLED "watch-dir-enabled" |
---|
30 | #define PREF_KEY_SHOW_TRAY_ICON "show-notification-area-icon" |
---|
31 | #define PREF_KEY_SHOW_DESKTOP_NOTIFICATION "show-desktop-notification" |
---|
32 | #define PREF_KEY_PLAY_DOWNLOAD_COMPLETE_SOUND "play-download-complete-sound" |
---|
33 | #define PREF_KEY_SHOW_MORE_TRACKER_INFO "show-tracker-scrapes" |
---|
34 | #define PREF_KEY_SHOW_MORE_PEER_INFO "show-extra-peer-details" |
---|
35 | #define PREF_KEY_SHOW_BACKUP_TRACKERS "show-backup-trackers" |
---|
36 | #define PREF_KEY_START "start-added-torrents" |
---|
37 | #define PREF_KEY_TRASH_ORIGINAL "trash-original-torrent-files" |
---|
38 | #define PREF_KEY_ASKQUIT "prompt-before-exit" |
---|
39 | #define PREF_KEY_SORT_MODE "sort-mode" |
---|
40 | #define PREF_KEY_SORT_REVERSED "sort-reversed" |
---|
41 | #define PREF_KEY_FILTER_MODE "filter-mode" |
---|
42 | #define PREF_KEY_MINIMAL_VIEW "minimal-view" |
---|
43 | #define PREF_KEY_FILTERBAR "show-filterbar" |
---|
44 | #define PREF_KEY_STATUSBAR "show-statusbar" |
---|
45 | #define PREF_KEY_STATUSBAR_STATS "statusbar-stats" |
---|
46 | #define PREF_KEY_TOOLBAR "show-toolbar" |
---|
47 | #define PREF_KEY_BLOCKLIST_UPDATES_ENABLED "blocklist-updates-enabled" |
---|
48 | #define PREF_KEY_MAIN_WINDOW_LAYOUT_ORDER "main-window-layout-order" |
---|
49 | #define PREF_KEY_MAIN_WINDOW_HEIGHT "main-window-height" |
---|
50 | #define PREF_KEY_MAIN_WINDOW_WIDTH "main-window-width" |
---|
51 | #define PREF_KEY_MAIN_WINDOW_X "main-window-x" |
---|
52 | #define PREF_KEY_MAIN_WINDOW_Y "main-window-y" |
---|
53 | #define PREF_KEY_MAIN_WINDOW_IS_MAXIMIZED "main-window-is-maximized" |
---|
54 | |
---|
55 | enum |
---|
56 | { |
---|
57 | MAIN_WINDOW_REFRESH_INTERVAL_SECONDS = 1, |
---|
58 | |
---|
59 | SECONDARY_WINDOW_REFRESH_INTERVAL_SECONDS = 2 |
---|
60 | }; |
---|
61 | |
---|
62 | #endif |
---|