Anoncoin  0.9.4
P2P Digital Currency
guiconstants.h
Go to the documentation of this file.
1 // Copyright (c) 2011-2014 The Bitcoin developers
2 // Copyright (c) 2013-2014 The Anoncoin Core developers
3 // Distributed under the MIT/X11 software license, see the accompanying
4 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
5 
6 #ifndef GUICONSTANTS_H
7 #define GUICONSTANTS_H
8 
9 /* Milliseconds between model updates */
10 static const int MODEL_UPDATE_DELAY = 250;
11 
12 /* AskPassphraseDialog -- Maximum passphrase length */
13 static const int MAX_PASSPHRASE_SIZE = 1024;
14 
15 /* AnoncoinGUI -- Size of icons in status bar */
16 static const int STATUSBAR_ICONSIZE = 16;
17 
18 /* Invalid field background style */
19 #define STYLE_INVALID "background:#FF8080"
20 
21 /* Transaction list -- unconfirmed transaction */
22 #define COLOR_UNCONFIRMED QColor(128, 128, 128)
23 /* Transaction list -- negative amount */
24 #define COLOR_NEGATIVE QColor(255, 0, 0)
25 /* Transaction list -- bare address (without label) */
26 #define COLOR_BAREADDRESS QColor(140, 140, 140)
27 /* Transaction list -- TX status decoration - open until date */
28 #define COLOR_TX_STATUS_OPENUNTILDATE QColor(64, 64, 255)
29 /* Transaction list -- TX status decoration - offline */
30 #define COLOR_TX_STATUS_OFFLINE QColor(192, 192, 192)
31 /* Transaction list -- TX status decoration - default color */
32 #define COLOR_BLACK QColor(0, 0, 0)
33 
34 /* Tooltips longer than this (in characters) are converted into rich text,
35  so that they can be word-wrapped.
36  */
37 static const int TOOLTIP_WRAP_THRESHOLD = 80;
38 
39 /* Maximum allowed URI length */
40 static const int MAX_URI_LENGTH = 255;
41 
42 /* Maximum somewhat-sane size of a payment request file */
43 static const int MAX_PAYMENT_REQUEST_SIZE = 50000; // bytes
44 
45 /* QRCodeDialog -- size of exported QR Code image */
46 #define EXPORT_IMAGE_SIZE 256
47 
48 /* Number of frames in spinner animation */
49 #define SPINNER_FRAMES 35
50 
51 #define QAPP_ORG_NAME "Anoncoin"
52 #define QAPP_ORG_DOMAIN "anoncoin.net"
53 #define QAPP_APP_NAME_DEFAULT "Anoncoin"
54 #define QAPP_APP_NAME_TESTNET "Anoncoin-testnet"
55 
56 #endif // GUICONSTANTS_H