lowercase
[novacoin.git] / mainoptionspage.cpp
1 #include "mainoptionspage.h"
2
3 #include <QHBoxLayout>
4 #include <QVBoxLayout>
5 #include <QCheckBox>
6 #include <QLabel>
7 #include <QLineEdit>
8
9 MainOptionsPage::MainOptionsPage(QWidget *parent):
10         QWidget(parent)
11 {
12     QVBoxLayout *layout = new QVBoxLayout();
13
14     QCheckBox *bitcoin_at_startup = new QCheckBox(tr("&Start Bitcoin on window system startup"));
15     layout->addWidget(bitcoin_at_startup);
16
17     QCheckBox *minimize_to_tray = new QCheckBox(tr("&Minimize to the tray instead of the taskbar"));
18     layout->addWidget(minimize_to_tray);
19
20     QCheckBox *map_port_upnp = new QCheckBox(tr("Map port using &UPnP"));
21     layout->addWidget(map_port_upnp);
22
23     QCheckBox *minimize_on_close = new QCheckBox(tr("M&inimize on close"));
24     layout->addWidget(minimize_on_close);
25
26     QCheckBox *connect_socks4 = new QCheckBox(tr("&Connect through socks4 proxy:"));
27     layout->addWidget(connect_socks4);
28
29     QHBoxLayout *proxy_hbox = new QHBoxLayout();
30     proxy_hbox->addSpacing(18);
31     QLabel *proxy_ip_label = new QLabel(tr("Proxy &IP: "));
32     proxy_hbox->addWidget(proxy_ip_label);
33     QLineEdit *proxy_ip = new QLineEdit();
34     proxy_ip->setMaximumWidth(140);
35     proxy_ip_label->setBuddy(proxy_ip);
36     proxy_hbox->addWidget(proxy_ip);
37     QLabel *proxy_port_label = new QLabel(tr("&Port: "));
38     proxy_hbox->addWidget(proxy_port_label);
39     QLineEdit *proxy_port = new QLineEdit();
40     proxy_port->setMaximumWidth(55);
41     proxy_port_label->setBuddy(proxy_port);
42     proxy_hbox->addWidget(proxy_port);
43     proxy_hbox->addStretch(1);
44
45     layout->addLayout(proxy_hbox);
46     QLabel *fee_help = new QLabel(tr("Optional transaction fee per KB that helps make sure your transactions are processed quickly.  Most transactions are 1KB.  Fee 0.01 recommended."));
47     fee_help->setWordWrap(true);
48     layout->addWidget(fee_help);
49
50     QHBoxLayout *fee_hbox = new QHBoxLayout();
51     fee_hbox->addSpacing(18);
52     QLabel *fee_label = new QLabel(tr("Pay transaction &fee"));
53     fee_hbox->addWidget(fee_label);
54     QLineEdit *fee_edit = new QLineEdit();
55     fee_edit->setMaximumWidth(70);
56     fee_label->setBuddy(fee_edit);
57     fee_hbox->addWidget(fee_edit);
58     fee_hbox->addStretch(1);
59
60     layout->addLayout(fee_hbox);
61
62
63     layout->addStretch(1); /* Extra space at bottom */
64
65     setLayout(layout);
66 }
67