source: trunk/gtk/tr-prefs.h

Last change on this file was 14724, checked in by jordan, 6 years ago

use '#pragma once' instead of #ifndef..#define..#endif guards

  • Property svn:keywords set to Date Rev Author Id
File size: 2.7 KB
Line 
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 * $Id: tr-prefs.h 14724 2016-03-29 16:37:21Z mikedld $
8 */
9
10#pragma once
11
12#include <gtk/gtk.h>
13
14GtkWidget * gtr_prefs_dialog_new (GtkWindow * parent, GObject * core);
15
16/* if you add a key here,  you /must/ add its
17 * default in tr_prefs_init_defaults (void) */
18
19#define PREF_KEY_BLOCKLIST_UPDATES_ENABLED               "blocklist-updates-enabled"
20#define PREF_KEY_COMPACT_VIEW                            "compact-view"
21#define PREF_KEY_DIR_WATCH_ENABLED                       "watch-dir-enabled"
22#define PREF_KEY_DIR_WATCH                               "watch-dir"
23#define PREF_KEY_FILTERBAR                               "show-filterbar"
24#define PREF_KEY_INHIBIT_HIBERNATION                     "inhibit-desktop-hibernation"
25#define PREF_KEY_MAIN_WINDOW_HEIGHT                      "main-window-height"
26#define PREF_KEY_MAIN_WINDOW_IS_MAXIMIZED                "main-window-is-maximized"
27#define PREF_KEY_MAIN_WINDOW_WIDTH                       "main-window-width"
28#define PREF_KEY_MAIN_WINDOW_X                           "main-window-x"
29#define PREF_KEY_MAIN_WINDOW_Y                           "main-window-y"
30#define PREF_KEY_OPEN_DIALOG_FOLDER                      "open-dialog-dir"
31#define PREF_KEY_OPTIONS_PROMPT                          "show-options-window"
32#define PREF_KEY_SHOW_BACKUP_TRACKERS                    "show-backup-trackers"
33#define PREF_KEY_SHOW_MORE_PEER_INFO                     "show-extra-peer-details"
34#define PREF_KEY_SHOW_MORE_TRACKER_INFO                  "show-tracker-scrapes"
35#define PREF_KEY_SHOW_TRAY_ICON                          "show-notification-area-icon"
36#define PREF_KEY_SORT_MODE                               "sort-mode"
37#define PREF_KEY_SORT_REVERSED                           "sort-reversed"
38#define PREF_KEY_STATUSBAR                               "show-statusbar"
39#define PREF_KEY_STATUSBAR_STATS                         "statusbar-stats"
40#define PREF_KEY_TOOLBAR                                 "show-toolbar"
41#define PREF_KEY_TORRENT_ADDED_NOTIFICATION_ENABLED      "torrent-added-notification-enabled"
42#define PREF_KEY_TORRENT_COMPLETE_NOTIFICATION_ENABLED   "torrent-complete-notification-enabled"
43#define PREF_KEY_TORRENT_COMPLETE_SOUND_COMMAND          "torrent-complete-sound-command"
44#define PREF_KEY_TORRENT_COMPLETE_SOUND_ENABLED          "torrent-complete-sound-enabled"
45#define PREF_KEY_TRASH_CAN_ENABLED                       "trash-can-enabled"
46#define PREF_KEY_USER_HAS_GIVEN_INFORMED_CONSENT         "user-has-given-informed-consent"
47
48enum
49{
50    MAIN_WINDOW_REFRESH_INTERVAL_SECONDS = 2,
51
52    SECONDARY_WINDOW_REFRESH_INTERVAL_SECONDS = 2
53};
54
Note: See TracBrowser for help on using the repository browser.