aboutsummaryrefslogtreecommitdiff
path: root/src/qt/overviewpage.cpp
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2011-07-05 22:09:39 +0200
committerWladimir J. van der Laan <laanwj@gmail.com>2011-07-05 22:09:39 +0200
commit64c8b6994881ba2715cb08f48b406aaf1f28603c (patch)
tree80e8c221ee842752db1db513d2a191d6c28aade7 /src/qt/overviewpage.cpp
parent825aa7d8d88251f89474e410e8631d0d75e8e898 (diff)
tab reorg phase 1: split main gui into "overview" and "history"
Diffstat (limited to 'src/qt/overviewpage.cpp')
-rw-r--r--src/qt/overviewpage.cpp32
1 files changed, 32 insertions, 0 deletions
diff --git a/src/qt/overviewpage.cpp b/src/qt/overviewpage.cpp
new file mode 100644
index 0000000000..faed29866a
--- /dev/null
+++ b/src/qt/overviewpage.cpp
@@ -0,0 +1,32 @@
+#include "overviewpage.h"
+#include "ui_overviewpage.h"
+
+#include "guiutil.h"
+
+OverviewPage::OverviewPage(QWidget *parent) :
+ QWidget(parent),
+ ui(new Ui::OverviewPage)
+{
+ ui->setupUi(this);
+
+ // Balance: <balance>
+ ui->labelBalance->setFont(QFont("Monospace", -1, QFont::Bold));
+ ui->labelBalance->setToolTip(tr("Your current balance"));
+ ui->labelBalance->setTextInteractionFlags(Qt::TextSelectableByMouse|Qt::TextSelectableByKeyboard);
+
+ // Overview page should show:
+ // Balance
+ // Unconfirmed balance
+ // Last received transaction(s)
+ // Last sent transaction(s)
+}
+
+OverviewPage::~OverviewPage()
+{
+ delete ui;
+}
+
+void OverviewPage::setBalance(qint64 balance)
+{
+ ui->labelBalance->setText(GUIUtil::formatMoney(balance) + QString(" BTC"));
+}