Hush full node GUI wallet
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

68 lines
1.3 KiB

6 years ago
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include "precompiled.h"
// Forward declare to break circular dependency.
class RPC;
class Settings;
// Struct used to hold destination info when sending a Tx.
struct ToFields {
QString addr;
double amount;
QString txtMemo;
QString encodedMemo;
};
6 years ago
namespace Ui {
class MainWindow;
6 years ago
}
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
explicit MainWindow(QWidget *parent = nullptr);
~MainWindow();
Ui::MainWindow* ui;
QLabel* statusLabel;
QLabel* statusIcon;
QLabel* loadingLabel;
6 years ago
private:
void setupSendTab();
void setupTransactionsTab();
void setupRecieveTab();
void setupBalancesTab();
void setupSettingsModal();
void setupStatusBar();
6 years ago
void removeExtraAddresses();
void setDefaultPayFrom();
void cancelButton();
void sendButton();
void inputComboTextChanged(const QString& text);
void addAddressSection();
void maxAmountChecked(int checked);
void memoButtonClicked(int number);
QString doSendTxValidations(QString fromAddr, QList<ToFields> toAddrs);
void donate();
void importPrivKeys();
6 years ago
RPC* rpc;
Settings* settings;
QMovie* loadingMovie;
6 years ago
};
#endif // MAINWINDOW_H