-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmainwindow.h
82 lines (74 loc) · 2.06 KB
/
mainwindow.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include <QClipboard>
#include <QMessageBox>
#include <QFile>
#include <QFileDialog>
#include <QDesktopServices>
#include <QStandardItemModel>
#include <QCryptographicHash>
#include <QInputDialog>
#include <QTimer>
#include <QMenu>
#include <QDesktopWidget>
#include <QSortFilterProxyModel>
#include <QCompleter>
#include "BitcoinCrypto.h"
#include "newprefixdialog.h"
#include "solvedialog.h"
#include "vanitydb.h"
namespace Ui {
class MainWindow;
}
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
explicit MainWindow(QWidget *parent = 0);
~MainWindow();
private:
Ui::MainWindow *ui;
BitcoinCrypto bc;
VanityDB dataBase;
NewPrefixDialog* npDialog;
SolveDialog* slvDialog;
QStandardItemModel prefixTable;
QSortFilterProxyModel proxyModel;
QMenu *contextMenu;
QAction *copyBtcAdAction;
QAction *copyPubkAction;
QAction *copyPkAction;
QAction *copyPkBase58Action;
QAction *showSolveDialogAction;
QAction *copyPrefixAction;
QTimer timer;
bool tableOnProxy;
void copyDataFromTable(int column);
void addRowToTable(QString networkByte,
QString prefix,
QString privatekey,
QString publicKey,
bool solved = false);
private slots:
void on_txtSearch_textChanged(QString );
void on_btnLoadFromFile_released();
void on_btnSaveToFile_released();
void on_btnNewPrefix_released();
void on_txtPubKey_textChanged();
void on_txtPrivKey_textChanged();
void on_txtSolution_textChanged();
void on_tableView_customContextMenuRequested(QPoint pos);
void on_btnBitcoinAddress_released();
void on_btnReGen_released();
void resetTxtStyleSheetsSlot();
void solveActionSlot();
void copyBtcAdActionSlot();
void copyPrefixActionSlot();
void copyPubkActionSlot();
void copyPkActionSlot();
void copyPkBase58ActionSlot();
void sendToFactoryActionSlot();
void removeActionSlot();
};
#endif // MAINWINDOW_H