Skip to content

Commit 0f09eed

Browse files
authored
Merge pull request #16 from Mrs-X/Testnet
Bittrex (re-) Integration
2 parents 922122e + 098c5d4 commit 0f09eed

File tree

7 files changed

+17
-3
lines changed

7 files changed

+17
-3
lines changed

src/Makefile.qt.include

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -414,3 +414,4 @@ moc_%.cpp: %.h
414414
@test -f $(LRELEASE)
415415
@$(MKDIR_P) $(@D)
416416
$(AM_V_GEN) QT_SELECT=$(QT_SELECT) $(LRELEASE) -silent $< -qm $@
417+

src/qt/bitcoingui.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ BitcoinGUI::BitcoinGUI(const NetworkStyle *networkStyle, QWidget *parent) :
145145
{
146146
/** Create wallet frame*/
147147
walletFrame = new WalletFrame(this);
148+
tradingWindow = new tradingDialog(this); // Bittrex trading
148149
} else
149150
#endif // ENABLE_WALLET
150151
{

src/qt/bitcoingui.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ class BitcoinGUI : public QMainWindow
116116
QAction *openConfEditorAction;
117117
QAction *showBackupsAction;
118118
QAction *openAction;
119+
QAction *openTradingwindowAction;
119120
QAction *showHelpMessageAction;
120121

121122
QSystemTrayIcon *trayIcon;

src/qt/walletframe.cpp

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,13 +119,20 @@ void WalletFrame::gotoHistoryPage()
119119
i.value()->gotoHistoryPage();
120120
}
121121

122-
void WalletFrame::gotoMasternodePage()
122+
void WalletFrame::gotoMasternodePage() // Masternode list
123123
{
124124
QMap<QString, WalletView*>::const_iterator i;
125125
for (i = mapWalletViews.constBegin(); i != mapWalletViews.constEnd(); ++i)
126126
i.value()->gotoMasternodePage();
127127
}
128128

129+
void WalletFrame::gotoTradingPage() // Bittrex trading
130+
{
131+
QMap<QString, WalletView*>::const_iterator i;
132+
for (i = mapWalletViews.constBegin(); i != mapWalletViews.constEnd(); ++i)
133+
i.value()->gotoTradingPage();
134+
}
135+
129136
void WalletFrame::gotoReceiveCoinsPage()
130137
{
131138
QMap<QString, WalletView*>::const_iterator i;

src/qt/walletframe.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,9 @@ public slots:
5757
/** Switch to receive coins page */
5858
void gotoReceiveCoinsPage();
5959
/** Switch to send coins page */
60-
void gotoSendCoinsPage(QString addr = "");
60+
void gotoSendCoinsPage(QString addr = "");
61+
/** Switch to Bittrex trading page */
62+
void gotoTradingPage();
6163

6264
/** Show Sign/Verify Message dialog and switch to sign message tab */
6365
void gotoSignMessageTab(QString addr = "");

src/qt/walletview.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ WalletView::WalletView(QWidget *parent):
3838
{
3939
// Create tabs
4040
overviewPage = new OverviewPage();
41-
41+
tradingPage = new tradingDialog(this);
4242
transactionsPage = new QWidget(this);
4343
QVBoxLayout *vbox = new QVBoxLayout();
4444
QHBoxLayout *hbox_buttons = new QHBoxLayout();

src/qt/walletview.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,8 @@ public slots:
7676
void gotoHistoryPage();
7777
/** Switch to masternode page */
7878
void gotoMasternodePage();
79+
/** Switch to Bittrex trading page */
80+
void gotoTradingPage();
7981
/** Switch to receive coins page */
8082
void gotoReceiveCoinsPage();
8183
/** Switch to send coins page */

0 commit comments

Comments
 (0)