Browse Source

Directory structure

import_zecw
Aditya Kulkarni 6 years ago
parent
commit
e99c75b54a
  1. 2
      README.md
  2. 0
      src/3rdparty/json/json.hpp
  3. 0
      src/3rdparty/qrcode/BitBuffer.cpp
  4. 0
      src/3rdparty/qrcode/BitBuffer.hpp
  5. 0
      src/3rdparty/qrcode/QrCode.cpp
  6. 0
      src/3rdparty/qrcode/QrCode.hpp
  7. 0
      src/3rdparty/qrcode/QrSegment.cpp
  8. 0
      src/3rdparty/qrcode/QrSegment.hpp
  9. 0
      src/about.ui
  10. 0
      src/balancestablemodel.cpp
  11. 0
      src/balancestablemodel.h
  12. 0
      src/confirm.ui
  13. 0
      src/main.cpp
  14. 0
      src/mainwindow.cpp
  15. 0
      src/mainwindow.h
  16. 0
      src/mainwindow.ui
  17. 0
      src/precompiled.h
  18. 20
      src/rpc.cpp
  19. 0
      src/rpc.h
  20. 0
      src/sendtab.cpp
  21. 0
      src/settings.cpp
  22. 0
      src/settings.h
  23. 0
      src/settings.ui
  24. 0
      src/transactionitem.cpp
  25. 0
      src/transactionitem.h
  26. 0
      src/txid.ui
  27. 0
      src/txtablemodel.cpp
  28. 0
      src/txtablemodel.h
  29. 0
      src/ui_about.h
  30. 0
      src/ui_confirm.h
  31. 0
      src/ui_mainwindow.h
  32. 0
      src/ui_settings.h
  33. 0
      src/unspentoutput.cpp
  34. 0
      src/unspentoutput.h
  35. 61
      zcash-qt-wallet.pro

2
README.md

@ -1,2 +0,0 @@
# zcash-qt-wallet
Wallet UI for zcashd

0
3rdparty/json/json.hpp → src/3rdparty/json/json.hpp

0
3rdparty/qrcode/BitBuffer.cpp → src/3rdparty/qrcode/BitBuffer.cpp

0
3rdparty/qrcode/BitBuffer.hpp → src/3rdparty/qrcode/BitBuffer.hpp

0
3rdparty/qrcode/QrCode.cpp → src/3rdparty/qrcode/QrCode.cpp

0
3rdparty/qrcode/QrCode.hpp → src/3rdparty/qrcode/QrCode.hpp

0
3rdparty/qrcode/QrSegment.cpp → src/3rdparty/qrcode/QrSegment.cpp

0
3rdparty/qrcode/QrSegment.hpp → src/3rdparty/qrcode/QrSegment.hpp

0
about.ui → src/about.ui

0
balancestablemodel.cpp → src/balancestablemodel.cpp

0
balancestablemodel.h → src/balancestablemodel.h

0
confirm.ui → src/confirm.ui

0
main.cpp → src/main.cpp

0
mainwindow.cpp → src/mainwindow.cpp

0
mainwindow.h → src/mainwindow.h

0
mainwindow.ui → src/mainwindow.ui

0
precompiled.h → src/precompiled.h

20
rpc.cpp → src/rpc.cpp

@ -278,16 +278,9 @@ void RPC::getInfoThenRefresh() {
main->statusLabel->setText(statusText);
main->statusIcon->clear(); // TODO: Add checked icon
// Now, refreshing the balances and transactions causes UI flicked and selections
// to disappear, so we'll only do it if the balance in the wallet has
// updated (i.e., something changed)
if (QString::number(reply["balance"].get<json::number_float_t>()) != currentBalance) {
currentBalance = QString::number(reply["balance"].get<json::number_float_t>());
refreshBalances();
refreshTransactions();
}
// Addresses can be created without a transaction, so we'll call that outside
// Refresh everything.
refreshBalances();
refreshTransactions();
refreshAddresses();
});
}
@ -357,10 +350,15 @@ void RPC::refreshBalances() {
ui->balancesTable->setColumnWidth(0, 300);
// Add all the addresses into the inputs combo box
auto lastFromAddr = ui->inputsCombo->currentText().split("(")[0].trimmed();
ui->inputsCombo->clear();
auto i = allBalances->constBegin();
while (i != allBalances->constEnd()) {
ui->inputsCombo->addItem(i.key() % "(" % QString::number(i.value(), 'f', 8) % " ZEC)");
QString item = i.key() % "(" % QString::number(i.value(), 'f', 8) % " ZEC)";
ui->inputsCombo->addItem(item);
if (item.startsWith(lastFromAddr)) ui->inputsCombo->setCurrentText(item);
++i;
}
};

0
rpc.h → src/rpc.h

0
sendtab.cpp → src/sendtab.cpp

0
settings.cpp → src/settings.cpp

0
settings.h → src/settings.h

0
settings.ui → src/settings.ui

0
transactionitem.cpp → src/transactionitem.cpp

0
transactionitem.h → src/transactionitem.h

0
txid.ui → src/txid.ui

0
txtablemodel.cpp → src/txtablemodel.cpp

0
txtablemodel.h → src/txtablemodel.h

0
ui_about.h → src/ui_about.h

0
ui_confirm.h → src/ui_confirm.h

0
ui_mainwindow.h → src/ui_mainwindow.h

0
ui_settings.h → src/ui_settings.h

0
unspentoutput.cpp → src/unspentoutput.cpp

0
unspentoutput.h → src/unspentoutput.h

61
zcash-qt-wallet.pro

@ -8,7 +8,7 @@ QT += core gui network
CONFIG += precompile_header
PRECOMPILED_HEADER = precompiled.h
PRECOMPILED_HEADER = src/precompiled.h
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
@ -21,48 +21,49 @@ TEMPLATE = app
# deprecated API in order to know how to port your code away from it.
DEFINES += QT_DEPRECATED_WARNINGS
INCLUDEPATH += 3rdparty/
INCLUDEPATH += src/3rdparty/
RESOURCES = application.qrc
MOC_DIR = bin
OBJECTS_DIR = bin
UI_DIR = src
CONFIG += c++14
SOURCES += \
main.cpp \
mainwindow.cpp \
rpc.cpp \
balancestablemodel.cpp \
unspentoutput.cpp \
3rdparty/qrcode/BitBuffer.cpp \
3rdparty/qrcode/QrCode.cpp \
3rdparty/qrcode/QrSegment.cpp \
settings.cpp \
sendtab.cpp \
txtablemodel.cpp \
transactionitem.cpp
src/main.cpp \
src/mainwindow.cpp \
src/rpc.cpp \
src/balancestablemodel.cpp \
src/unspentoutput.cpp \
src/3rdparty/qrcode/BitBuffer.cpp \
src/3rdparty/qrcode/QrCode.cpp \
src/3rdparty/qrcode/QrSegment.cpp \
src/settings.cpp \
src/sendtab.cpp \
src/txtablemodel.cpp \
src/transactionitem.cpp
HEADERS += \
mainwindow.h \
precompiled.h \
rpc.h \
balancestablemodel.h \
unspentoutput.h \
3rdparty/qrcode/BitBuffer.hpp \
3rdparty/qrcode/QrCode.hpp \
3rdparty/qrcode/QrSegment.hpp \
3rdparty/json/json.hpp \
settings.h \
txtablemodel.h \
transactionitem.h
src/mainwindow.h \
src/precompiled.h \
src/rpc.h \
src/balancestablemodel.h \
src/unspentoutput.h \
src/3rdparty/qrcode/BitBuffer.hpp \
src/3rdparty/qrcode/QrCode.hpp \
src/3rdparty/qrcode/QrSegment.hpp \
src/3rdparty/json/json.hpp \
src/settings.h \
src/txtablemodel.h \
src/transactionitem.h
FORMS += \
mainwindow.ui \
settings.ui \
about.ui \
confirm.ui
src/mainwindow.ui \
src/settings.ui \
src/about.ui \
src/confirm.ui
# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin

Loading…
Cancel
Save