Skip to content

Commit

Permalink
Merge pull request #17 from VeriumReserve/1.1
Browse files Browse the repository at this point in the history
removal of webkit
  • Loading branch information
effectsToCause committed Oct 19, 2017
2 parents fa5f3d9 + 76a3f93 commit fc6cb85
Show file tree
Hide file tree
Showing 17 changed files with 360 additions and 1,557 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
build
debug
release
.gitignore
.gitattributes
src/*.exe
src/verium
src/veriumd
Expand Down
49 changes: 3 additions & 46 deletions src/qt/bitcoingui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,11 @@
#include "guiutil.h"
#include "rpcconsole.h"
#include "forumspage.h"
#include "blockchainpage.h"
#include "ui_forumspage.h"
#include "ui_blockchainpage.h"
#include "downloader.h"
#include "updatedialog.h"
#include "whatsnewdialog.h"
#include "rescandialog.h"
#include "cookiejar.h"
#include "webview.h"

#include "JlCompress.h"
#include "walletdb.h"
Expand All @@ -54,6 +50,7 @@

#include <QApplication>
#include <QDesktopWidget>
#include <QDesktopServices>
#include <QMainWindow>
#include <QMenuBar>
#include <QMenu>
Expand Down Expand Up @@ -184,9 +181,6 @@ BitcoinGUI::BitcoinGUI(QWidget *parent):
// Create Forums Page
forumsPage = new ForumsPage();

// Create Blockchain Page
blockchainPage = new BlockchainPage();

// Create Sign Message Dialog
signVerifyMessageDialog = new SignVerifyMessageDialog(this);

Expand All @@ -199,7 +193,6 @@ BitcoinGUI::BitcoinGUI(QWidget *parent):
centralWidget->addWidget(receiveCoinsPage);
centralWidget->addWidget(sendCoinsPage);
centralWidget->addWidget(forumsPage);
centralWidget->addWidget(blockchainPage);
setCentralWidget(centralWidget);

// Create status bar
Expand Down Expand Up @@ -402,18 +395,12 @@ void BitcoinGUI::createActions()
historyAction->setShortcut(QKeySequence(Qt::ALT + Qt::Key_4));
tabGroup->addAction(historyAction);

forumsAction = new QAction(QIcon(":/icons/forums"), tr("Community"), this);
forumsAction->setToolTip(tr("Join the Verium Community\nGet the Latest News"));
forumsAction = new QAction(QIcon(":/icons/chat"), tr("Support"), this);
forumsAction->setToolTip(tr("Get Support and connect with community"));
forumsAction->setCheckable(true);
forumsAction->setShortcut(QKeySequence(Qt::ALT + Qt::Key_7));
tabGroup->addAction(forumsAction);

blockchainAction = new QAction(QIcon(":/icons/blockchain"), tr("BlockChain"), this);
blockchainAction->setToolTip(tr("Explore the Verium Blockchain"));
blockchainAction->setCheckable(true);
blockchainAction->setShortcut(QKeySequence(Qt::ALT + Qt::Key_9));
tabGroup->addAction(blockchainAction);

connect(overviewAction, SIGNAL(triggered()), this, SLOT(showNormalIfMinimized()));
connect(overviewAction, SIGNAL(triggered()), this, SLOT(gotoOverviewPage()));
connect(sendCoinsAction, SIGNAL(triggered()), this, SLOT(showNormalIfMinimized()));
Expand All @@ -424,8 +411,6 @@ void BitcoinGUI::createActions()
connect(historyAction, SIGNAL(triggered()), this, SLOT(gotoHistoryPage()));
connect(forumsAction, SIGNAL(triggered()), this, SLOT(showNormalIfMinimized()));
connect(forumsAction, SIGNAL(triggered()), this, SLOT(gotoForumsPage()));
connect(blockchainAction, SIGNAL(triggered()), this, SLOT(showNormalIfMinimized()));
connect(blockchainAction, SIGNAL(triggered()), this, SLOT(gotoBlockchainPage()));

quitAction = new QAction(QIcon(":/icons/quit"), tr("E&xit"), this);
quitAction->setToolTip(tr("Quit Application"));
Expand Down Expand Up @@ -470,10 +455,6 @@ void BitcoinGUI::createActions()
verifyMessageAction = new QAction(QIcon(":/icons/verify"), tr("&Verify Message"), this);
checkForUpdateAction = new QAction(QIcon(":/icons/update"), tr("Check For &Update"), this);
checkForUpdateAction->setToolTip(tr("Check for a new version of the wallet and update."));
forumAction = new QAction(QIcon(":/icons/bitcoin"), tr("Verium &Forums"), this);
forumAction->setToolTip(tr("Go to the Verium forums."));
webAction = new QAction(QIcon(":/icons/site"), tr("www.veriumreserve.com"), this);
webAction->setToolTip(tr("Go to Verium website."));

exportAction = new QAction(QIcon(":/icons/export"), tr("&Export Data"), this);
exportAction->setToolTip(tr("Export the data in the current tab to a file"));
Expand All @@ -500,8 +481,6 @@ void BitcoinGUI::createActions()
connect(signMessageAction, SIGNAL(triggered()), this, SLOT(gotoSignMessageTab()));
connect(verifyMessageAction, SIGNAL(triggered()), this, SLOT(gotoVerifyMessageTab()));
connect(checkForUpdateAction, SIGNAL(triggered()), this, SLOT(menuCheckForUpdate()));
connect(forumAction, SIGNAL(triggered()), this, SLOT(forumClicked()));
connect(webAction, SIGNAL(triggered()), this, SLOT(webClicked()));

// Disable on testnet
if (fTestNet)
Expand Down Expand Up @@ -576,7 +555,6 @@ void BitcoinGUI::createToolBars()
toolbar->addAction(receiveCoinsAction);
toolbar->addAction(historyAction);
toolbar->addAction(forumsAction);
toolbar->addAction(blockchainAction);
}

void BitcoinGUI::setClientModel(ClientModel *clientModel)
Expand Down Expand Up @@ -639,7 +617,6 @@ void BitcoinGUI::setWalletModel(WalletModel *walletModel)
transactionView->setModel(walletModel);
addressBookPage->setModel(walletModel->getAddressTableModel());
forumsPage->setModel(walletModel);
blockchainPage->setModel(walletModel);

signVerifyMessageDialog->setModel(walletModel);

Expand Down Expand Up @@ -714,16 +691,6 @@ void BitcoinGUI::optionsClicked()
setBalanceLabel(walletModel->getBalance(), walletModel->getUnconfirmedBalance(), walletModel->getImmatureBalance());
}

void BitcoinGUI::forumClicked()
{
QDesktopServices::openUrl(QUrl(forumsUrl));
}

void BitcoinGUI::webClicked()
{
QDesktopServices::openUrl(QUrl(walletUrl));
}

void BitcoinGUI::aboutClicked()
{
AboutDialog dlg;
Expand Down Expand Up @@ -1099,15 +1066,6 @@ void BitcoinGUI::gotoForumsPage()
disconnect(exportAction, SIGNAL(triggered()), 0, 0);
}

void BitcoinGUI::gotoBlockchainPage()
{
blockchainAction->setChecked(true);
centralWidget->setCurrentWidget(blockchainPage);

exportAction->setEnabled(false);
disconnect(exportAction, SIGNAL(triggered()), 0, 0);
}

void BitcoinGUI::resizeEvent(QResizeEvent *e)
{
if (resizeGUICalled) return; // Don't allow resizeEvent to be called twice
Expand Down Expand Up @@ -1162,7 +1120,6 @@ void BitcoinGUI::dropEvent(QDropEvent *event)
if(event->mimeData()->hasUrls())
{
int nValidUrisFound = 0;
int nValidUrisFoundBit = 0;
QList<QUrl> uris = event->mimeData()->urls();
foreach(const QUrl &uri, uris)
{
Expand Down
10 changes: 0 additions & 10 deletions src/qt/bitcoingui.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@ class SignVerifyMessageDialog;
class Notificator;
class RPCConsole;
class Downloader;
class WebView;
class ForumsPage;
class BlockchainPage;

QT_BEGIN_NAMESPACE
class QLabel;
Expand Down Expand Up @@ -81,7 +79,6 @@ class BitcoinGUI : public QMainWindow
AddressBookPage *receiveCoinsPage;
SendCoinsDialog *sendCoinsPage;
ForumsPage *forumsPage;
BlockchainPage *blockchainPage;

QLabel *labelEncryptionIcon;
QLabel *labelBalanceIcon;
Expand All @@ -103,7 +100,6 @@ class BitcoinGUI : public QMainWindow
QAction *sendCoinsAction;
QAction *sendBitCoinsAction;
QAction *forumsAction;
QAction *blockchainAction;
QAction *addressBookAction;
QAction *signMessageAction;
QAction *verifyMessageAction;
Expand Down Expand Up @@ -197,8 +193,6 @@ private slots:
void gotoSendCoinsPage();
/** Switch to Forums page */
void gotoForumsPage();
/** Switch to Blockchain page */
void gotoBlockchainPage();

void resizeGUI();
void logout();
Expand All @@ -211,10 +205,6 @@ private slots:

/** Show configuration dialog */
void optionsClicked();
/** Show forums page */
void forumClicked();
/** Show web page */
void webClicked();
/** Show about dialog */
void aboutClicked();
/** Show about PoWT dialog */
Expand Down
61 changes: 0 additions & 61 deletions src/qt/blockchainpage.cpp

This file was deleted.

45 changes: 0 additions & 45 deletions src/qt/blockchainpage.h

This file was deleted.

45 changes: 0 additions & 45 deletions src/qt/chatpage.h

This file was deleted.

Loading

0 comments on commit fc6cb85

Please sign in to comment.