mirror of
https://github.com/AskDavis/Casinotest.git
synced 2026-01-01 05:05:57 -08:00
Exchanges widget
This commit is contained in:
@@ -177,212 +177,222 @@ QMAKE_CXXFLAGS_WARN_ON = -fdiagnostics-show-option -Wall -Wextra -Wformat -Wform
|
|||||||
# Input
|
# Input
|
||||||
DEPENDPATH += src src/json src/qt
|
DEPENDPATH += src src/json src/qt
|
||||||
HEADERS += src/qt/bitcoingui.h \
|
HEADERS += src/qt/bitcoingui.h \
|
||||||
src/qt/transactiontablemodel.h \
|
src/qt/transactiontablemodel.h \
|
||||||
src/qt/addresstablemodel.h \
|
src/qt/addresstablemodel.h \
|
||||||
src/qt/optionsdialog.h \
|
src/qt/optionsdialog.h \
|
||||||
src/qt/sendcoinsdialog.h \
|
src/qt/sendcoinsdialog.h \
|
||||||
src/qt/coincontroldialog.h \
|
src/qt/coincontroldialog.h \
|
||||||
src/qt/coincontroltreewidget.h \
|
src/qt/coincontroltreewidget.h \
|
||||||
src/qt/addressbookpage.h \
|
src/qt/addressbookpage.h \
|
||||||
src/qt/signverifymessagedialog.h \
|
src/qt/signverifymessagedialog.h \
|
||||||
src/qt/aboutdialog.h \
|
src/qt/aboutdialog.h \
|
||||||
src/qt/editaddressdialog.h \
|
src/qt/editaddressdialog.h \
|
||||||
src/qt/bitcoinaddressvalidator.h \
|
src/qt/bitcoinaddressvalidator.h \
|
||||||
src/alert.h \
|
src/alert.h \
|
||||||
src/addrman.h \
|
src/addrman.h \
|
||||||
src/base58.h \
|
src/base58.h \
|
||||||
src/bignum.h \
|
src/bignum.h \
|
||||||
src/checkpoints.h \
|
src/checkpoints.h \
|
||||||
src/coincontrol.h \
|
src/coincontrol.h \
|
||||||
src/compat.h \
|
src/compat.h \
|
||||||
src/sync.h \
|
src/sync.h \
|
||||||
src/util.h \
|
src/util.h \
|
||||||
src/hash.h \
|
src/hash.h \
|
||||||
src/uint256.h \
|
src/uint256.h \
|
||||||
src/serialize.h \
|
src/serialize.h \
|
||||||
src/main.h \
|
src/main.h \
|
||||||
src/net.h \
|
src/net.h \
|
||||||
src/key.h \
|
src/key.h \
|
||||||
src/db.h \
|
src/db.h \
|
||||||
src/walletdb.h \
|
src/walletdb.h \
|
||||||
src/script.h \
|
src/script.h \
|
||||||
src/init.h \
|
src/init.h \
|
||||||
src/bloom.h \
|
src/bloom.h \
|
||||||
src/mruset.h \
|
src/mruset.h \
|
||||||
src/checkqueue.h \
|
src/checkqueue.h \
|
||||||
src/json/json_spirit_writer_template.h \
|
src/json/json_spirit_writer_template.h \
|
||||||
src/json/json_spirit_writer.h \
|
src/json/json_spirit_writer.h \
|
||||||
src/json/json_spirit_value.h \
|
src/json/json_spirit_value.h \
|
||||||
src/json/json_spirit_utils.h \
|
src/json/json_spirit_utils.h \
|
||||||
src/json/json_spirit_stream_reader.h \
|
src/json/json_spirit_stream_reader.h \
|
||||||
src/json/json_spirit_reader_template.h \
|
src/json/json_spirit_reader_template.h \
|
||||||
src/json/json_spirit_reader.h \
|
src/json/json_spirit_reader.h \
|
||||||
src/json/json_spirit_error_position.h \
|
src/json/json_spirit_error_position.h \
|
||||||
src/json/json_spirit.h \
|
src/json/json_spirit.h \
|
||||||
src/qt/clientmodel.h \
|
src/qt/clientmodel.h \
|
||||||
src/qt/guiutil.h \
|
src/qt/guiutil.h \
|
||||||
src/qt/transactionrecord.h \
|
src/qt/transactionrecord.h \
|
||||||
src/qt/guiconstants.h \
|
src/qt/guiconstants.h \
|
||||||
src/qt/optionsmodel.h \
|
src/qt/optionsmodel.h \
|
||||||
src/qt/monitoreddatamapper.h \
|
src/qt/monitoreddatamapper.h \
|
||||||
src/qt/transactiondesc.h \
|
src/qt/transactiondesc.h \
|
||||||
src/qt/transactiondescdialog.h \
|
src/qt/transactiondescdialog.h \
|
||||||
src/qt/bitcoinamountfield.h \
|
src/qt/bitcoinamountfield.h \
|
||||||
src/wallet.h \
|
src/wallet.h \
|
||||||
src/keystore.h \
|
src/keystore.h \
|
||||||
src/qt/transactionfilterproxy.h \
|
src/qt/transactionfilterproxy.h \
|
||||||
src/qt/transactionview.h \
|
src/qt/transactionview.h \
|
||||||
src/qt/walletmodel.h \
|
src/qt/walletmodel.h \
|
||||||
src/qt/walletview.h \
|
src/qt/walletview.h \
|
||||||
src/qt/walletstack.h \
|
src/qt/walletstack.h \
|
||||||
src/qt/walletframe.h \
|
src/qt/walletframe.h \
|
||||||
src/bitcoinrpc.h \
|
src/bitcoinrpc.h \
|
||||||
src/qt/overviewpage.h \
|
src/qt/overviewpage.h \
|
||||||
src/qt/csvmodelwriter.h \
|
src/qt/csvmodelwriter.h \
|
||||||
src/crypter.h \
|
src/crypter.h \
|
||||||
src/qt/sendcoinsentry.h \
|
src/qt/sendcoinsentry.h \
|
||||||
src/qt/qvalidatedlineedit.h \
|
src/qt/qvalidatedlineedit.h \
|
||||||
src/qt/bitcoinunits.h \
|
src/qt/bitcoinunits.h \
|
||||||
src/qt/qvaluecombobox.h \
|
src/qt/qvaluecombobox.h \
|
||||||
src/qt/askpassphrasedialog.h \
|
src/qt/askpassphrasedialog.h \
|
||||||
src/protocol.h \
|
src/protocol.h \
|
||||||
src/qt/notificator.h \
|
src/qt/notificator.h \
|
||||||
src/qt/paymentserver.h \
|
src/qt/paymentserver.h \
|
||||||
src/allocators.h \
|
src/allocators.h \
|
||||||
src/ui_interface.h \
|
src/ui_interface.h \
|
||||||
src/qt/rpcconsole.h \
|
src/qt/rpcconsole.h \
|
||||||
src/scrypt.h \
|
src/scrypt.h \
|
||||||
src/version.h \
|
src/version.h \
|
||||||
src/netbase.h \
|
src/netbase.h \
|
||||||
src/clientversion.h \
|
src/clientversion.h \
|
||||||
src/txdb.h \
|
src/txdb.h \
|
||||||
src/leveldb.h \
|
src/leveldb.h \
|
||||||
src/threadsafety.h \
|
src/threadsafety.h \
|
||||||
src/limitedmap.h \
|
src/limitedmap.h \
|
||||||
src/qt/macnotificationhandler.h \
|
src/qt/macnotificationhandler.h \
|
||||||
src/qt/splashscreen.h \
|
src/qt/splashscreen.h \
|
||||||
src/qt/CSCPublicAPI/casinocoinwebapi.h \
|
src/qt/CSCPublicAPI/casinocoinwebapi.h \
|
||||||
src/qt/CSCPublicAPI/casinocoinwebapiparser.h \
|
src/qt/CSCPublicAPI/casinocoinwebapiparser.h \
|
||||||
src/qt/CSCPublicAPI/jsonactivepromotionsparser.h \
|
src/qt/CSCPublicAPI/jsonactivepromotionsparser.h \
|
||||||
src/qt/CSCPublicAPI/jsonactiveexchangesparser.h \
|
src/qt/CSCPublicAPI/jsonactiveexchangesparser.h \
|
||||||
src/qt/CSCPublicAPI/jsonsingleactivepromotion.h \
|
src/qt/CSCPublicAPI/jsonsingleactivepromotion.h \
|
||||||
src/qt/CSCPublicAPI/jsonsingleactiveexchange.h \
|
src/qt/CSCPublicAPI/jsonsingleactiveexchange.h \
|
||||||
src/qt/qtquick_controls/cpp/guibannercontrol.h \
|
src/qt/qtquick_controls/cpp/guibannercontrol.h \
|
||||||
src/qt/qtquick_controls/cpp/guibannerlistview.h \
|
src/qt/qtquick_controls/cpp/guibannerlistview.h \
|
||||||
src/qt/qtquick_controls/cpp/guibannerwidget.h \
|
src/qt/qtquick_controls/cpp/guibannerwidget.h \
|
||||||
src/qt/qtquick_controls/cpp/listiteminterface.h \
|
src/qt/qtquick_controls/cpp/listiteminterface.h \
|
||||||
src/qt/qtquick_controls/cpp/qmlbannerlistitem.h \
|
src/qt/qtquick_controls/cpp/qmlbannerlistitem.h \
|
||||||
src/qt/qtquick_controls/cpp/qmlbannerlistmodel.h \
|
src/qt/qtquick_controls/cpp/qmlbannerlistmodel.h \
|
||||||
src/qt/qtquick_controls/cpp/qmlimageprovider.h \
|
src/qt/qtquick_controls/cpp/qmlimageprovider.h \
|
||||||
src/qt/qtquick_controls/cpp/qmllistitem.h \
|
src/qt/qtquick_controls/cpp/qmllistitem.h \
|
||||||
src/qt/qtquick_controls/cpp/qmllistmodel.h \
|
src/qt/qtquick_controls/cpp/qmllistmodel.h \
|
||||||
src/qt/qtquick_controls/cpp/qmlmenutoolbarmodel.h \
|
src/qt/qtquick_controls/cpp/qmlmenutoolbarmodel.h \
|
||||||
src/qt/qtquick_controls/cpp/qmlmenutoolbaritem.h \
|
src/qt/qtquick_controls/cpp/qmlmenutoolbaritem.h \
|
||||||
src/qt/qtquick_controls/cpp/guimenutoolbarwidget.h \
|
src/qt/qtquick_controls/cpp/guimenutoolbarwidget.h \
|
||||||
src/qt/qtquick_controls/cpp/guimenutoolbarlistview.h \
|
src/qt/qtquick_controls/cpp/guimenutoolbarlistview.h \
|
||||||
src/qt/qtquick_controls/cpp/guimenutoolbarcontrol.h \
|
src/qt/qtquick_controls/cpp/guimenutoolbarcontrol.h \
|
||||||
src/qt/gui20_skin.h \
|
src/qt/gui20_skin.h \
|
||||||
src/qt/cscfusionstyle.h \
|
src/qt/cscfusionstyle.h \
|
||||||
src/qt/pryptopage.h \
|
src/qt/pryptopage.h \
|
||||||
src/qt/currencies.h \
|
src/qt/currencies.h \
|
||||||
src/qt/CSCPublicAPI/jsoncoininfoparser.h \
|
src/qt/CSCPublicAPI/jsoncoininfoparser.h \
|
||||||
src/qt/infopage.h
|
src/qt/infopage.h \
|
||||||
|
src/qt/qtquick_controls/cpp/guiexchangeswidget.h \
|
||||||
|
src/qt/qtquick_controls/cpp/qmlexchangeslistmodel.h \
|
||||||
|
src/qt/qtquick_controls/cpp/qmlexchangeslistitem.h \
|
||||||
|
src/qt/qtquick_controls/cpp/guiexchangeslistview.h \
|
||||||
|
src/qt/qtquick_controls/cpp/guiexchangescontrol.h
|
||||||
|
|
||||||
SOURCES += src/qt/bitcoin.cpp \
|
SOURCES += src/qt/bitcoin.cpp \
|
||||||
src/qt/bitcoingui.cpp \
|
src/qt/bitcoingui.cpp \
|
||||||
src/qt/transactiontablemodel.cpp \
|
src/qt/transactiontablemodel.cpp \
|
||||||
src/qt/addresstablemodel.cpp \
|
src/qt/addresstablemodel.cpp \
|
||||||
src/qt/optionsdialog.cpp \
|
src/qt/optionsdialog.cpp \
|
||||||
src/qt/sendcoinsdialog.cpp \
|
src/qt/sendcoinsdialog.cpp \
|
||||||
src/qt/coincontroldialog.cpp \
|
src/qt/coincontroldialog.cpp \
|
||||||
src/qt/coincontroltreewidget.cpp \
|
src/qt/coincontroltreewidget.cpp \
|
||||||
src/qt/addressbookpage.cpp \
|
src/qt/addressbookpage.cpp \
|
||||||
src/qt/signverifymessagedialog.cpp \
|
src/qt/signverifymessagedialog.cpp \
|
||||||
src/qt/aboutdialog.cpp \
|
src/qt/aboutdialog.cpp \
|
||||||
src/qt/editaddressdialog.cpp \
|
src/qt/editaddressdialog.cpp \
|
||||||
src/qt/bitcoinaddressvalidator.cpp \
|
src/qt/bitcoinaddressvalidator.cpp \
|
||||||
src/alert.cpp \
|
src/alert.cpp \
|
||||||
src/version.cpp \
|
src/version.cpp \
|
||||||
src/sync.cpp \
|
src/sync.cpp \
|
||||||
src/util.cpp \
|
src/util.cpp \
|
||||||
src/hash.cpp \
|
src/hash.cpp \
|
||||||
src/netbase.cpp \
|
src/netbase.cpp \
|
||||||
src/key.cpp \
|
src/key.cpp \
|
||||||
src/script.cpp \
|
src/script.cpp \
|
||||||
src/main.cpp \
|
src/main.cpp \
|
||||||
src/init.cpp \
|
src/init.cpp \
|
||||||
src/net.cpp \
|
src/net.cpp \
|
||||||
src/bloom.cpp \
|
src/bloom.cpp \
|
||||||
src/checkpoints.cpp \
|
src/checkpoints.cpp \
|
||||||
src/addrman.cpp \
|
src/addrman.cpp \
|
||||||
src/db.cpp \
|
src/db.cpp \
|
||||||
src/walletdb.cpp \
|
src/walletdb.cpp \
|
||||||
src/qt/clientmodel.cpp \
|
src/qt/clientmodel.cpp \
|
||||||
src/qt/guiutil.cpp \
|
src/qt/guiutil.cpp \
|
||||||
src/qt/transactionrecord.cpp \
|
src/qt/transactionrecord.cpp \
|
||||||
src/qt/optionsmodel.cpp \
|
src/qt/optionsmodel.cpp \
|
||||||
src/qt/monitoreddatamapper.cpp \
|
src/qt/monitoreddatamapper.cpp \
|
||||||
src/qt/transactiondesc.cpp \
|
src/qt/transactiondesc.cpp \
|
||||||
src/qt/transactiondescdialog.cpp \
|
src/qt/transactiondescdialog.cpp \
|
||||||
src/qt/bitcoinstrings.cpp \
|
src/qt/bitcoinstrings.cpp \
|
||||||
src/qt/bitcoinamountfield.cpp \
|
src/qt/bitcoinamountfield.cpp \
|
||||||
src/wallet.cpp \
|
src/wallet.cpp \
|
||||||
src/keystore.cpp \
|
src/keystore.cpp \
|
||||||
src/qt/transactionfilterproxy.cpp \
|
src/qt/transactionfilterproxy.cpp \
|
||||||
src/qt/transactionview.cpp \
|
src/qt/transactionview.cpp \
|
||||||
src/qt/walletmodel.cpp \
|
src/qt/walletmodel.cpp \
|
||||||
src/qt/walletview.cpp \
|
src/qt/walletview.cpp \
|
||||||
src/qt/walletstack.cpp \
|
src/qt/walletstack.cpp \
|
||||||
src/qt/walletframe.cpp \
|
src/qt/walletframe.cpp \
|
||||||
src/bitcoinrpc.cpp \
|
src/bitcoinrpc.cpp \
|
||||||
src/rpcdump.cpp \
|
src/rpcdump.cpp \
|
||||||
src/rpcnet.cpp \
|
src/rpcnet.cpp \
|
||||||
src/rpcmining.cpp \
|
src/rpcmining.cpp \
|
||||||
src/rpcwallet.cpp \
|
src/rpcwallet.cpp \
|
||||||
src/rpcblockchain.cpp \
|
src/rpcblockchain.cpp \
|
||||||
src/rpcrawtransaction.cpp \
|
src/rpcrawtransaction.cpp \
|
||||||
src/qt/overviewpage.cpp \
|
src/qt/overviewpage.cpp \
|
||||||
src/qt/csvmodelwriter.cpp \
|
src/qt/csvmodelwriter.cpp \
|
||||||
src/crypter.cpp \
|
src/crypter.cpp \
|
||||||
src/qt/sendcoinsentry.cpp \
|
src/qt/sendcoinsentry.cpp \
|
||||||
src/qt/qvalidatedlineedit.cpp \
|
src/qt/qvalidatedlineedit.cpp \
|
||||||
src/qt/bitcoinunits.cpp \
|
src/qt/bitcoinunits.cpp \
|
||||||
src/qt/qvaluecombobox.cpp \
|
src/qt/qvaluecombobox.cpp \
|
||||||
src/qt/askpassphrasedialog.cpp \
|
src/qt/askpassphrasedialog.cpp \
|
||||||
src/protocol.cpp \
|
src/protocol.cpp \
|
||||||
src/qt/notificator.cpp \
|
src/qt/notificator.cpp \
|
||||||
src/qt/paymentserver.cpp \
|
src/qt/paymentserver.cpp \
|
||||||
src/qt/rpcconsole.cpp \
|
src/qt/rpcconsole.cpp \
|
||||||
src/scrypt.cpp \
|
src/scrypt.cpp \
|
||||||
src/noui.cpp \
|
src/noui.cpp \
|
||||||
src/leveldb.cpp \
|
src/leveldb.cpp \
|
||||||
src/txdb.cpp \
|
src/txdb.cpp \
|
||||||
src/qt/splashscreen.cpp \
|
src/qt/splashscreen.cpp \
|
||||||
src/qt/CSCPublicAPI/casinocoinwebapi.cpp \
|
src/qt/CSCPublicAPI/casinocoinwebapi.cpp \
|
||||||
src/qt/CSCPublicAPI/casinocoinwebapiparser.cpp \
|
src/qt/CSCPublicAPI/casinocoinwebapiparser.cpp \
|
||||||
src/qt/CSCPublicAPI/jsonactivepromotionsparser.cpp \
|
src/qt/CSCPublicAPI/jsonactivepromotionsparser.cpp \
|
||||||
src/qt/CSCPublicAPI/jsonactiveexchangesparser.cpp \
|
src/qt/CSCPublicAPI/jsonactiveexchangesparser.cpp \
|
||||||
src/qt/CSCPublicAPI/jsonsingleactivepromotion.cpp \
|
src/qt/CSCPublicAPI/jsonsingleactivepromotion.cpp \
|
||||||
src/qt/CSCPublicAPI/jsonsingleactiveexchange.cpp \
|
src/qt/CSCPublicAPI/jsonsingleactiveexchange.cpp \
|
||||||
src/qt/qtquick_controls/cpp/guibannercontrol.cpp \
|
src/qt/qtquick_controls/cpp/guibannercontrol.cpp \
|
||||||
src/qt/qtquick_controls/cpp/guibannerlistview.cpp \
|
src/qt/qtquick_controls/cpp/guibannerlistview.cpp \
|
||||||
src/qt/qtquick_controls/cpp/guibannerwidget.cpp \
|
src/qt/qtquick_controls/cpp/guibannerwidget.cpp \
|
||||||
src/qt/qtquick_controls/cpp/qmlbannerlistitem.cpp \
|
src/qt/qtquick_controls/cpp/qmlbannerlistitem.cpp \
|
||||||
src/qt/qtquick_controls/cpp/qmlbannerlistmodel.cpp \
|
src/qt/qtquick_controls/cpp/qmlbannerlistmodel.cpp \
|
||||||
src/qt/qtquick_controls/cpp/qmlimageprovider.cpp \
|
src/qt/qtquick_controls/cpp/qmlimageprovider.cpp \
|
||||||
src/qt/qtquick_controls/cpp/qmllistitem.cpp \
|
src/qt/qtquick_controls/cpp/qmllistitem.cpp \
|
||||||
src/qt/qtquick_controls/cpp/qmllistmodel.cpp \
|
src/qt/qtquick_controls/cpp/qmllistmodel.cpp \
|
||||||
src/qt/qtquick_controls/cpp/qmlmenutoolbarmodel.cpp \
|
src/qt/qtquick_controls/cpp/qmlmenutoolbarmodel.cpp \
|
||||||
src/qt/qtquick_controls/cpp/qmlmenutoolbaritem.cpp \
|
src/qt/qtquick_controls/cpp/qmlmenutoolbaritem.cpp \
|
||||||
src/qt/qtquick_controls/cpp/guimenutoolbarwidget.cpp \
|
src/qt/qtquick_controls/cpp/guimenutoolbarwidget.cpp \
|
||||||
src/qt/qtquick_controls/cpp/guimenutoolbarlistview.cpp \
|
src/qt/qtquick_controls/cpp/guimenutoolbarlistview.cpp \
|
||||||
src/qt/qtquick_controls/cpp/guimenutoolbarcontrol.cpp \
|
src/qt/qtquick_controls/cpp/guimenutoolbarcontrol.cpp \
|
||||||
src/qt/gui20_skin.cpp \
|
src/qt/gui20_skin.cpp \
|
||||||
src/qt/cscfusionstyle.cpp \
|
src/qt/cscfusionstyle.cpp \
|
||||||
src/qt/pryptopage.cpp \
|
src/qt/pryptopage.cpp \
|
||||||
src/qt/currencies.cpp \
|
src/qt/currencies.cpp \
|
||||||
src/qt/CSCPublicAPI/jsoncoininfoparser.cpp \
|
src/qt/CSCPublicAPI/jsoncoininfoparser.cpp \
|
||||||
src/qt/infopage.cpp
|
src/qt/infopage.cpp \
|
||||||
|
src/qt/qtquick_controls/cpp/guiexchangeswidget.cpp \
|
||||||
|
src/qt/qtquick_controls/cpp/qmlexchangeslistmodel.cpp \
|
||||||
|
src/qt/qtquick_controls/cpp/qmlexchangeslistitem.cpp \
|
||||||
|
src/qt/qtquick_controls/cpp/guiexchangeslistview.cpp \
|
||||||
|
src/qt/qtquick_controls/cpp/guiexchangescontrol.cpp
|
||||||
|
|
||||||
|
|
||||||
RESOURCES += src/qt/bitcoin.qrc
|
RESOURCES += src/qt/bitcoin.qrc
|
||||||
@@ -462,6 +472,9 @@ OTHER_FILES += README.md \
|
|||||||
src/qt/qtquick_controls/qml/QmlGUIBannerControl.qml \
|
src/qt/qtquick_controls/qml/QmlGUIBannerControl.qml \
|
||||||
src/qt/qtquick_controls/qml/QmlGUIBannerListView.qml \
|
src/qt/qtquick_controls/qml/QmlGUIBannerListView.qml \
|
||||||
src/qt/qtquick_controls/qml/QmlGUIBannerWindow.qml \
|
src/qt/qtquick_controls/qml/QmlGUIBannerWindow.qml \
|
||||||
|
src/qt/qtquick_controls/qml/QmlGUIExchangesControl.qml \
|
||||||
|
src/qt/qtquick_controls/qml/QmlGUIExchangesListView.qml \
|
||||||
|
src/qt/qtquick_controls/qml/QmlGUIExchangesWindow.qml \
|
||||||
src/qt/qtquick_controls/qml/QmlGUIMenuToolbarWindow.qml \
|
src/qt/qtquick_controls/qml/QmlGUIMenuToolbarWindow.qml \
|
||||||
src/qt/qtquick_controls/qml/QmlGUIMenuToolbarListView.qml \
|
src/qt/qtquick_controls/qml/QmlGUIMenuToolbarListView.qml \
|
||||||
src/qt/qtquick_controls/qml/QmlGUIMenuToolbarControl.qml
|
src/qt/qtquick_controls/qml/QmlGUIMenuToolbarControl.qml
|
||||||
|
|||||||
@@ -132,5 +132,8 @@
|
|||||||
<file>qtquick_controls/qml/QmlGUIMenuToolbarWindow.qml</file>
|
<file>qtquick_controls/qml/QmlGUIMenuToolbarWindow.qml</file>
|
||||||
<file>qtquick_controls/qml/QmlGUIMenuToolbarListView.qml</file>
|
<file>qtquick_controls/qml/QmlGUIMenuToolbarListView.qml</file>
|
||||||
<file>qtquick_controls/qml/QmlGUIMenuToolbarControl.qml</file>
|
<file>qtquick_controls/qml/QmlGUIMenuToolbarControl.qml</file>
|
||||||
|
<file>qtquick_controls/qml/QmlGUIExchangesWindow.qml</file>
|
||||||
|
<file>qtquick_controls/qml/QmlGUIExchangesListView.qml</file>
|
||||||
|
<file>qtquick_controls/qml/QmlGUIExchangesControl.qml</file>
|
||||||
</qresource>
|
</qresource>
|
||||||
</RCC>
|
</RCC>
|
||||||
|
|||||||
@@ -29,37 +29,88 @@
|
|||||||
<property name="horizontalSpacing">
|
<property name="horizontalSpacing">
|
||||||
<number>15</number>
|
<number>15</number>
|
||||||
</property>
|
</property>
|
||||||
<item row="1" column="0">
|
<item row="0" column="1">
|
||||||
<widget class="QFrame" name="exchangeInfoBox">
|
<widget class="QFrame" name="newsItemsBox">
|
||||||
<property name="frameShape">
|
<property name="frameShape">
|
||||||
<enum>QFrame::StyledPanel</enum>
|
<enum>QFrame::StyledPanel</enum>
|
||||||
</property>
|
</property>
|
||||||
<property name="frameShadow">
|
<property name="frameShadow">
|
||||||
<enum>QFrame::Sunken</enum>
|
<enum>QFrame::Sunken</enum>
|
||||||
</property>
|
</property>
|
||||||
<widget class="QLabel" name="lblExchangesHeader">
|
<layout class="QGridLayout" name="gridLayout_3">
|
||||||
<property name="geometry">
|
<item row="0" column="0">
|
||||||
<rect>
|
<widget class="QLabel" name="lblNewsHeader">
|
||||||
<x>20</x>
|
<property name="font">
|
||||||
<y>10</y>
|
<font>
|
||||||
<width>351</width>
|
<pointsize>10</pointsize>
|
||||||
<height>21</height>
|
<weight>75</weight>
|
||||||
</rect>
|
<bold>true</bold>
|
||||||
</property>
|
</font>
|
||||||
<property name="font">
|
</property>
|
||||||
<font>
|
<property name="styleSheet">
|
||||||
<pointsize>10</pointsize>
|
<string notr="true">color: rgb(166, 27, 31);</string>
|
||||||
<weight>75</weight>
|
</property>
|
||||||
<bold>true</bold>
|
<property name="text">
|
||||||
</font>
|
<string>News</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="styleSheet">
|
</widget>
|
||||||
<string notr="true">color: rgb(166, 27, 31);</string>
|
</item>
|
||||||
</property>
|
<item row="1" column="0">
|
||||||
<property name="text">
|
<spacer name="verticalSpacer_2">
|
||||||
<string>Exchanges</string>
|
<property name="orientation">
|
||||||
</property>
|
<enum>Qt::Vertical</enum>
|
||||||
</widget>
|
</property>
|
||||||
|
<property name="sizeHint" stdset="0">
|
||||||
|
<size>
|
||||||
|
<width>20</width>
|
||||||
|
<height>40</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
</spacer>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="1" column="1">
|
||||||
|
<widget class="QFrame" name="casinoInfoBox">
|
||||||
|
<property name="frameShape">
|
||||||
|
<enum>QFrame::StyledPanel</enum>
|
||||||
|
</property>
|
||||||
|
<property name="frameShadow">
|
||||||
|
<enum>QFrame::Sunken</enum>
|
||||||
|
</property>
|
||||||
|
<layout class="QGridLayout" name="gridLayout_5">
|
||||||
|
<item row="0" column="0">
|
||||||
|
<widget class="QLabel" name="lblCasinosHeader">
|
||||||
|
<property name="font">
|
||||||
|
<font>
|
||||||
|
<pointsize>10</pointsize>
|
||||||
|
<weight>75</weight>
|
||||||
|
<bold>true</bold>
|
||||||
|
</font>
|
||||||
|
</property>
|
||||||
|
<property name="styleSheet">
|
||||||
|
<string notr="true">color: rgb(166, 27, 31);</string>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>Casinos</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="1" column="0">
|
||||||
|
<spacer name="verticalSpacer">
|
||||||
|
<property name="orientation">
|
||||||
|
<enum>Qt::Vertical</enum>
|
||||||
|
</property>
|
||||||
|
<property name="sizeHint" stdset="0">
|
||||||
|
<size>
|
||||||
|
<width>20</width>
|
||||||
|
<height>40</height>
|
||||||
|
</size>
|
||||||
|
</property>
|
||||||
|
</spacer>
|
||||||
|
</item>
|
||||||
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="0" column="0">
|
<item row="0" column="0">
|
||||||
@@ -74,6 +125,23 @@
|
|||||||
<enum>QFrame::Sunken</enum>
|
<enum>QFrame::Sunken</enum>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QGridLayout" name="gridLayout_2">
|
<layout class="QGridLayout" name="gridLayout_2">
|
||||||
|
<item row="0" column="0">
|
||||||
|
<widget class="QLabel" name="lblCasinosHeader_2">
|
||||||
|
<property name="font">
|
||||||
|
<font>
|
||||||
|
<pointsize>10</pointsize>
|
||||||
|
<weight>75</weight>
|
||||||
|
<bold>true</bold>
|
||||||
|
</font>
|
||||||
|
</property>
|
||||||
|
<property name="styleSheet">
|
||||||
|
<string notr="true">color: rgb(166, 27, 31);</string>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>Casinos</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
<item row="1" column="0">
|
<item row="1" column="0">
|
||||||
<layout class="QFormLayout" name="formCoinDetails">
|
<layout class="QFormLayout" name="formCoinDetails">
|
||||||
<property name="fieldGrowthPolicy">
|
<property name="fieldGrowthPolicy">
|
||||||
@@ -495,110 +563,51 @@
|
|||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</item>
|
</item>
|
||||||
<item row="0" column="0">
|
<item row="2" column="0">
|
||||||
<widget class="QLabel" name="lblCasinosHeader_2">
|
<spacer name="verticalSpacer_3">
|
||||||
<property name="font">
|
<property name="orientation">
|
||||||
<font>
|
<enum>Qt::Vertical</enum>
|
||||||
<family>MS Shell Dlg 2</family>
|
|
||||||
<pointsize>10</pointsize>
|
|
||||||
<weight>75</weight>
|
|
||||||
<bold>true</bold>
|
|
||||||
</font>
|
|
||||||
</property>
|
</property>
|
||||||
<property name="styleSheet">
|
<property name="sizeHint" stdset="0">
|
||||||
<string notr="true">color: rgb(166, 27, 31);</string>
|
<size>
|
||||||
|
<width>20</width>
|
||||||
|
<height>40</height>
|
||||||
|
</size>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
</spacer>
|
||||||
<string>Information</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="0" column="1">
|
<item row="1" column="0">
|
||||||
<widget class="QFrame" name="newsItemsBox">
|
<widget class="QFrame" name="exchangeInfoBox">
|
||||||
<property name="frameShape">
|
<property name="frameShape">
|
||||||
<enum>QFrame::StyledPanel</enum>
|
<enum>QFrame::StyledPanel</enum>
|
||||||
</property>
|
</property>
|
||||||
<property name="frameShadow">
|
<property name="frameShadow">
|
||||||
<enum>QFrame::Sunken</enum>
|
<enum>QFrame::Sunken</enum>
|
||||||
</property>
|
</property>
|
||||||
<widget class="QLabel" name="lblNewsHeader">
|
<layout class="QGridLayout" name="gridLayout_4">
|
||||||
<property name="geometry">
|
<item row="2" column="0">
|
||||||
<rect>
|
<spacer name="verticalSpacer_4">
|
||||||
<x>20</x>
|
<property name="orientation">
|
||||||
<y>10</y>
|
<enum>Qt::Vertical</enum>
|
||||||
<width>351</width>
|
</property>
|
||||||
<height>21</height>
|
<property name="sizeHint" stdset="0">
|
||||||
</rect>
|
<size>
|
||||||
</property>
|
<width>20</width>
|
||||||
<property name="font">
|
<height>40</height>
|
||||||
<font>
|
</size>
|
||||||
<pointsize>10</pointsize>
|
</property>
|
||||||
<weight>75</weight>
|
</spacer>
|
||||||
<bold>true</bold>
|
</item>
|
||||||
</font>
|
<item row="1" column="0">
|
||||||
</property>
|
<layout class="QVBoxLayout" name="verticalLayoutExchanges"/>
|
||||||
<property name="styleSheet">
|
</item>
|
||||||
<string notr="true">color: rgb(166, 27, 31);</string>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string>News</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="1" column="1">
|
|
||||||
<widget class="QFrame" name="casinoInfoBox">
|
|
||||||
<property name="frameShape">
|
|
||||||
<enum>QFrame::StyledPanel</enum>
|
|
||||||
</property>
|
|
||||||
<property name="frameShadow">
|
|
||||||
<enum>QFrame::Sunken</enum>
|
|
||||||
</property>
|
|
||||||
<widget class="QLabel" name="lblCasinosHeader">
|
|
||||||
<property name="geometry">
|
|
||||||
<rect>
|
|
||||||
<x>20</x>
|
|
||||||
<y>10</y>
|
|
||||||
<width>351</width>
|
|
||||||
<height>21</height>
|
|
||||||
</rect>
|
|
||||||
</property>
|
|
||||||
<property name="font">
|
|
||||||
<font>
|
|
||||||
<pointsize>10</pointsize>
|
|
||||||
<weight>75</weight>
|
|
||||||
<bold>true</bold>
|
|
||||||
</font>
|
|
||||||
</property>
|
|
||||||
<property name="styleSheet">
|
|
||||||
<string notr="true">color: rgb(166, 27, 31);</string>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string>Casinos</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="0" column="0">
|
|
||||||
<widget class="QFrame" name="coinInfoBox">
|
|
||||||
<property name="autoFillBackground">
|
|
||||||
<bool>false</bool>
|
|
||||||
</property>
|
|
||||||
<property name="frameShape">
|
|
||||||
<enum>QFrame::StyledPanel</enum>
|
|
||||||
</property>
|
|
||||||
<property name="frameShadow">
|
|
||||||
<enum>QFrame::Sunken</enum>
|
|
||||||
</property>
|
|
||||||
<layout class="QGridLayout" name="gridLayout_2">
|
|
||||||
<item row="0" column="0">
|
<item row="0" column="0">
|
||||||
<widget class="QLabel" name="lblCasinosHeader_2">
|
<widget class="QLabel" name="lblExchangesHeader">
|
||||||
<property name="font">
|
<property name="font">
|
||||||
<font>
|
<font>
|
||||||
<family>MS Shell Dlg 2</family>
|
|
||||||
<pointsize>10</pointsize>
|
<pointsize>10</pointsize>
|
||||||
<weight>75</weight>
|
<weight>75</weight>
|
||||||
<bold>true</bold>
|
<bold>true</bold>
|
||||||
@@ -608,435 +617,10 @@
|
|||||||
<string notr="true">color: rgb(166, 27, 31);</string>
|
<string notr="true">color: rgb(166, 27, 31);</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Information</string>
|
<string>Exchanges</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="1" column="0">
|
|
||||||
<layout class="QGridLayout" name="gridLayout_3">
|
|
||||||
<item row="0" column="0">
|
|
||||||
<layout class="QFormLayout" name="formCoinDetails">
|
|
||||||
<property name="fieldGrowthPolicy">
|
|
||||||
<enum>QFormLayout::AllNonFixedFieldsGrow</enum>
|
|
||||||
</property>
|
|
||||||
<property name="horizontalSpacing">
|
|
||||||
<number>15</number>
|
|
||||||
</property>
|
|
||||||
<property name="verticalSpacing">
|
|
||||||
<number>10</number>
|
|
||||||
</property>
|
|
||||||
<property name="leftMargin">
|
|
||||||
<number>10</number>
|
|
||||||
</property>
|
|
||||||
<property name="topMargin">
|
|
||||||
<number>10</number>
|
|
||||||
</property>
|
|
||||||
<property name="rightMargin">
|
|
||||||
<number>10</number>
|
|
||||||
</property>
|
|
||||||
<property name="bottomMargin">
|
|
||||||
<number>10</number>
|
|
||||||
</property>
|
|
||||||
<item row="0" column="0">
|
|
||||||
<widget class="QLabel" name="lblBlockHeight">
|
|
||||||
<property name="styleSheet">
|
|
||||||
<string notr="true"/>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string>Current number of blocks</string>
|
|
||||||
</property>
|
|
||||||
<property name="wordWrap">
|
|
||||||
<bool>true</bool>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="0" column="1">
|
|
||||||
<widget class="QLabel" name="txtBlockHeight">
|
|
||||||
<property name="font">
|
|
||||||
<font>
|
|
||||||
<weight>75</weight>
|
|
||||||
<bold>true</bold>
|
|
||||||
</font>
|
|
||||||
</property>
|
|
||||||
<property name="styleSheet">
|
|
||||||
<string notr="true"/>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string notr="true">-</string>
|
|
||||||
</property>
|
|
||||||
<property name="wordWrap">
|
|
||||||
<bool>true</bool>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="1" column="0">
|
|
||||||
<widget class="QLabel" name="lblLastBlockTime">
|
|
||||||
<property name="styleSheet">
|
|
||||||
<string notr="true"/>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string>Last block time</string>
|
|
||||||
</property>
|
|
||||||
<property name="wordWrap">
|
|
||||||
<bool>true</bool>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="1" column="1">
|
|
||||||
<widget class="QLabel" name="txtLastBlockTime">
|
|
||||||
<property name="font">
|
|
||||||
<font>
|
|
||||||
<weight>75</weight>
|
|
||||||
<bold>true</bold>
|
|
||||||
</font>
|
|
||||||
</property>
|
|
||||||
<property name="styleSheet">
|
|
||||||
<string notr="true"/>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string notr="true">-</string>
|
|
||||||
</property>
|
|
||||||
<property name="wordWrap">
|
|
||||||
<bool>true</bool>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="2" column="0">
|
|
||||||
<widget class="QLabel" name="lblCoinSupply">
|
|
||||||
<property name="styleSheet">
|
|
||||||
<string notr="true"/>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string>Coin Supply</string>
|
|
||||||
</property>
|
|
||||||
<property name="wordWrap">
|
|
||||||
<bool>true</bool>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="2" column="1">
|
|
||||||
<widget class="QLabel" name="txtCoinSupply">
|
|
||||||
<property name="palette">
|
|
||||||
<palette>
|
|
||||||
<active>
|
|
||||||
<colorrole role="WindowText">
|
|
||||||
<brush brushstyle="SolidPattern">
|
|
||||||
<color alpha="255">
|
|
||||||
<red>0</red>
|
|
||||||
<green>0</green>
|
|
||||||
<blue>0</blue>
|
|
||||||
</color>
|
|
||||||
</brush>
|
|
||||||
</colorrole>
|
|
||||||
<colorrole role="Button">
|
|
||||||
<brush brushstyle="SolidPattern">
|
|
||||||
<color alpha="255">
|
|
||||||
<red>255</red>
|
|
||||||
<green>255</green>
|
|
||||||
<blue>255</blue>
|
|
||||||
</color>
|
|
||||||
</brush>
|
|
||||||
</colorrole>
|
|
||||||
<colorrole role="Text">
|
|
||||||
<brush brushstyle="SolidPattern">
|
|
||||||
<color alpha="255">
|
|
||||||
<red>0</red>
|
|
||||||
<green>0</green>
|
|
||||||
<blue>0</blue>
|
|
||||||
</color>
|
|
||||||
</brush>
|
|
||||||
</colorrole>
|
|
||||||
<colorrole role="ButtonText">
|
|
||||||
<brush brushstyle="SolidPattern">
|
|
||||||
<color alpha="255">
|
|
||||||
<red>0</red>
|
|
||||||
<green>0</green>
|
|
||||||
<blue>0</blue>
|
|
||||||
</color>
|
|
||||||
</brush>
|
|
||||||
</colorrole>
|
|
||||||
<colorrole role="Base">
|
|
||||||
<brush brushstyle="SolidPattern">
|
|
||||||
<color alpha="255">
|
|
||||||
<red>255</red>
|
|
||||||
<green>255</green>
|
|
||||||
<blue>255</blue>
|
|
||||||
</color>
|
|
||||||
</brush>
|
|
||||||
</colorrole>
|
|
||||||
<colorrole role="Window">
|
|
||||||
<brush brushstyle="SolidPattern">
|
|
||||||
<color alpha="255">
|
|
||||||
<red>255</red>
|
|
||||||
<green>255</green>
|
|
||||||
<blue>255</blue>
|
|
||||||
</color>
|
|
||||||
</brush>
|
|
||||||
</colorrole>
|
|
||||||
</active>
|
|
||||||
<inactive>
|
|
||||||
<colorrole role="WindowText">
|
|
||||||
<brush brushstyle="SolidPattern">
|
|
||||||
<color alpha="255">
|
|
||||||
<red>0</red>
|
|
||||||
<green>0</green>
|
|
||||||
<blue>0</blue>
|
|
||||||
</color>
|
|
||||||
</brush>
|
|
||||||
</colorrole>
|
|
||||||
<colorrole role="Button">
|
|
||||||
<brush brushstyle="SolidPattern">
|
|
||||||
<color alpha="255">
|
|
||||||
<red>255</red>
|
|
||||||
<green>255</green>
|
|
||||||
<blue>255</blue>
|
|
||||||
</color>
|
|
||||||
</brush>
|
|
||||||
</colorrole>
|
|
||||||
<colorrole role="Text">
|
|
||||||
<brush brushstyle="SolidPattern">
|
|
||||||
<color alpha="255">
|
|
||||||
<red>0</red>
|
|
||||||
<green>0</green>
|
|
||||||
<blue>0</blue>
|
|
||||||
</color>
|
|
||||||
</brush>
|
|
||||||
</colorrole>
|
|
||||||
<colorrole role="ButtonText">
|
|
||||||
<brush brushstyle="SolidPattern">
|
|
||||||
<color alpha="255">
|
|
||||||
<red>0</red>
|
|
||||||
<green>0</green>
|
|
||||||
<blue>0</blue>
|
|
||||||
</color>
|
|
||||||
</brush>
|
|
||||||
</colorrole>
|
|
||||||
<colorrole role="Base">
|
|
||||||
<brush brushstyle="SolidPattern">
|
|
||||||
<color alpha="255">
|
|
||||||
<red>255</red>
|
|
||||||
<green>255</green>
|
|
||||||
<blue>255</blue>
|
|
||||||
</color>
|
|
||||||
</brush>
|
|
||||||
</colorrole>
|
|
||||||
<colorrole role="Window">
|
|
||||||
<brush brushstyle="SolidPattern">
|
|
||||||
<color alpha="255">
|
|
||||||
<red>255</red>
|
|
||||||
<green>255</green>
|
|
||||||
<blue>255</blue>
|
|
||||||
</color>
|
|
||||||
</brush>
|
|
||||||
</colorrole>
|
|
||||||
</inactive>
|
|
||||||
<disabled>
|
|
||||||
<colorrole role="WindowText">
|
|
||||||
<brush brushstyle="SolidPattern">
|
|
||||||
<color alpha="255">
|
|
||||||
<red>0</red>
|
|
||||||
<green>0</green>
|
|
||||||
<blue>0</blue>
|
|
||||||
</color>
|
|
||||||
</brush>
|
|
||||||
</colorrole>
|
|
||||||
<colorrole role="Button">
|
|
||||||
<brush brushstyle="SolidPattern">
|
|
||||||
<color alpha="255">
|
|
||||||
<red>255</red>
|
|
||||||
<green>255</green>
|
|
||||||
<blue>255</blue>
|
|
||||||
</color>
|
|
||||||
</brush>
|
|
||||||
</colorrole>
|
|
||||||
<colorrole role="Text">
|
|
||||||
<brush brushstyle="SolidPattern">
|
|
||||||
<color alpha="255">
|
|
||||||
<red>0</red>
|
|
||||||
<green>0</green>
|
|
||||||
<blue>0</blue>
|
|
||||||
</color>
|
|
||||||
</brush>
|
|
||||||
</colorrole>
|
|
||||||
<colorrole role="ButtonText">
|
|
||||||
<brush brushstyle="SolidPattern">
|
|
||||||
<color alpha="255">
|
|
||||||
<red>0</red>
|
|
||||||
<green>0</green>
|
|
||||||
<blue>0</blue>
|
|
||||||
</color>
|
|
||||||
</brush>
|
|
||||||
</colorrole>
|
|
||||||
<colorrole role="Base">
|
|
||||||
<brush brushstyle="SolidPattern">
|
|
||||||
<color alpha="255">
|
|
||||||
<red>255</red>
|
|
||||||
<green>255</green>
|
|
||||||
<blue>255</blue>
|
|
||||||
</color>
|
|
||||||
</brush>
|
|
||||||
</colorrole>
|
|
||||||
<colorrole role="Window">
|
|
||||||
<brush brushstyle="SolidPattern">
|
|
||||||
<color alpha="255">
|
|
||||||
<red>255</red>
|
|
||||||
<green>255</green>
|
|
||||||
<blue>255</blue>
|
|
||||||
</color>
|
|
||||||
</brush>
|
|
||||||
</colorrole>
|
|
||||||
</disabled>
|
|
||||||
</palette>
|
|
||||||
</property>
|
|
||||||
<property name="font">
|
|
||||||
<font>
|
|
||||||
<weight>75</weight>
|
|
||||||
<bold>true</bold>
|
|
||||||
</font>
|
|
||||||
</property>
|
|
||||||
<property name="styleSheet">
|
|
||||||
<string notr="true"/>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string notr="true">-</string>
|
|
||||||
</property>
|
|
||||||
<property name="wordWrap">
|
|
||||||
<bool>true</bool>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="3" column="0">
|
|
||||||
<widget class="QLabel" name="lblConnections">
|
|
||||||
<property name="styleSheet">
|
|
||||||
<string notr="true"/>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string>Number of connections</string>
|
|
||||||
</property>
|
|
||||||
<property name="wordWrap">
|
|
||||||
<bool>true</bool>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="3" column="1">
|
|
||||||
<widget class="QLabel" name="txtConnections">
|
|
||||||
<property name="font">
|
|
||||||
<font>
|
|
||||||
<weight>75</weight>
|
|
||||||
<bold>true</bold>
|
|
||||||
</font>
|
|
||||||
</property>
|
|
||||||
<property name="styleSheet">
|
|
||||||
<string notr="true"/>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string notr="true">-</string>
|
|
||||||
</property>
|
|
||||||
<property name="wordWrap">
|
|
||||||
<bool>true</bool>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="4" column="0">
|
|
||||||
<widget class="QLabel" name="lblDifficulty">
|
|
||||||
<property name="styleSheet">
|
|
||||||
<string notr="true"/>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string>Difficulty</string>
|
|
||||||
</property>
|
|
||||||
<property name="wordWrap">
|
|
||||||
<bool>true</bool>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="4" column="1">
|
|
||||||
<widget class="QLabel" name="txtDifficulty">
|
|
||||||
<property name="font">
|
|
||||||
<font>
|
|
||||||
<weight>75</weight>
|
|
||||||
<bold>true</bold>
|
|
||||||
</font>
|
|
||||||
</property>
|
|
||||||
<property name="styleSheet">
|
|
||||||
<string notr="true"/>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string notr="true">-</string>
|
|
||||||
</property>
|
|
||||||
<property name="wordWrap">
|
|
||||||
<bool>true</bool>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="5" column="0">
|
|
||||||
<widget class="QLabel" name="lblHashRate">
|
|
||||||
<property name="styleSheet">
|
|
||||||
<string notr="true"/>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string>Network Hashrate</string>
|
|
||||||
</property>
|
|
||||||
<property name="wordWrap">
|
|
||||||
<bool>true</bool>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="5" column="1">
|
|
||||||
<widget class="QLabel" name="txtHashRate">
|
|
||||||
<property name="font">
|
|
||||||
<font>
|
|
||||||
<weight>75</weight>
|
|
||||||
<bold>true</bold>
|
|
||||||
</font>
|
|
||||||
</property>
|
|
||||||
<property name="styleSheet">
|
|
||||||
<string notr="true"/>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string notr="true">-</string>
|
|
||||||
</property>
|
|
||||||
<property name="wordWrap">
|
|
||||||
<bool>true</bool>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="6" column="0">
|
|
||||||
<widget class="QLabel" name="lblTransactionCount">
|
|
||||||
<property name="styleSheet">
|
|
||||||
<string notr="true"/>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string>Transactions</string>
|
|
||||||
</property>
|
|
||||||
<property name="wordWrap">
|
|
||||||
<bool>true</bool>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="6" column="1">
|
|
||||||
<widget class="QLabel" name="txtTransactionCount">
|
|
||||||
<property name="font">
|
|
||||||
<font>
|
|
||||||
<weight>75</weight>
|
|
||||||
<bold>true</bold>
|
|
||||||
</font>
|
|
||||||
</property>
|
|
||||||
<property name="styleSheet">
|
|
||||||
<string notr="true"/>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string notr="true">-</string>
|
|
||||||
</property>
|
|
||||||
<property name="wordWrap">
|
|
||||||
<bool>true</bool>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
</layout>
|
|
||||||
</item>
|
|
||||||
</layout>
|
|
||||||
</item>
|
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
|||||||
@@ -7,15 +7,20 @@
|
|||||||
#include "bitcoinunits.h"
|
#include "bitcoinunits.h"
|
||||||
#include "main.h"
|
#include "main.h"
|
||||||
|
|
||||||
|
#include "qtquick_controls/cpp/guiexchangeswidget.h"
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
InfoPage::InfoPage(QWidget *parent) :
|
InfoPage::InfoPage(QWidget *parent) :
|
||||||
QDialog(parent),
|
QDialog(parent),
|
||||||
|
exchangesWidget( 0 ),
|
||||||
ui(new Ui::InfoPage)
|
ui(new Ui::InfoPage)
|
||||||
{
|
{
|
||||||
ui->setupUi(this);
|
ui->setupUi(this);
|
||||||
ui->casinoInfoBox->setVisible(false);
|
ui->casinoInfoBox->setVisible(false);
|
||||||
ui->newsItemsBox->setVisible(false);
|
ui->newsItemsBox->setVisible(false);
|
||||||
|
|
||||||
|
createExchangesWidget();
|
||||||
}
|
}
|
||||||
|
|
||||||
void InfoPage::setWalletModel(WalletModel *model)
|
void InfoPage::setWalletModel(WalletModel *model)
|
||||||
@@ -105,5 +110,12 @@ double InfoPage::GetNetworkHashRate(int lookup, int height) {
|
|||||||
|
|
||||||
InfoPage::~InfoPage()
|
InfoPage::~InfoPage()
|
||||||
{
|
{
|
||||||
delete ui;
|
delete ui;
|
||||||
|
}
|
||||||
|
|
||||||
|
void InfoPage::createExchangesWidget()
|
||||||
|
{
|
||||||
|
exchangesWidget = new GUIExchangesWidget( this );
|
||||||
|
exchangesWidget->PopulateExchangesFromWeb();
|
||||||
|
ui->verticalLayoutExchanges->addWidget( exchangesWidget->dockQmlToWidget() );
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,6 +5,7 @@
|
|||||||
|
|
||||||
class WalletModel;
|
class WalletModel;
|
||||||
class ClientModel;
|
class ClientModel;
|
||||||
|
class GUIExchangesWidget;
|
||||||
|
|
||||||
namespace Ui {
|
namespace Ui {
|
||||||
class InfoPage;
|
class InfoPage;
|
||||||
@@ -32,6 +33,9 @@ private:
|
|||||||
Ui::InfoPage *ui;
|
Ui::InfoPage *ui;
|
||||||
WalletModel *walletModel;
|
WalletModel *walletModel;
|
||||||
ClientModel *clientModel;
|
ClientModel *clientModel;
|
||||||
|
GUIExchangesWidget* exchangesWidget;
|
||||||
|
|
||||||
|
void createExchangesWidget();
|
||||||
double GetNetworkHashRate(int lookup, int height);
|
double GetNetworkHashRate(int lookup, int height);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
41
src/qt/qtquick_controls/cpp/guiexchangescontrol.cpp
Normal file
41
src/qt/qtquick_controls/cpp/guiexchangescontrol.cpp
Normal file
@@ -0,0 +1,41 @@
|
|||||||
|
#include "guiexchangescontrol.h"
|
||||||
|
#include "guiexchangeslistview.h"
|
||||||
|
#include "qmlexchangeslistmodel.h"
|
||||||
|
#include "qmlexchangeslistitem.h"
|
||||||
|
|
||||||
|
GUIExchangesControl::GUIExchangesControl( QQuickItem* a_pParent )
|
||||||
|
: QQuickItem( a_pParent )
|
||||||
|
, m_pExchangesView( 0 )
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
GUIExchangesControl::~GUIExchangesControl()
|
||||||
|
{
|
||||||
|
if ( m_pExchangesView )
|
||||||
|
{
|
||||||
|
delete m_pExchangesView;
|
||||||
|
m_pExchangesView = 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void GUIExchangesControl::InitializeExchangesView( GUIExchangesListView* a_pView )
|
||||||
|
{
|
||||||
|
if ( a_pView )
|
||||||
|
{
|
||||||
|
if ( m_pExchangesView )
|
||||||
|
{
|
||||||
|
delete m_pExchangesView;
|
||||||
|
}
|
||||||
|
m_pExchangesView = a_pView;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void GUIExchangesControl::slotPopulateListView( JsonActiveExchangesParser* a_pActiveExchanges )
|
||||||
|
{
|
||||||
|
if ( m_pExchangesView )
|
||||||
|
{
|
||||||
|
QmlExchangesListModel* pExchangesModel = new QmlExchangesListModel( *a_pActiveExchanges );
|
||||||
|
m_pExchangesView->SetModel( pExchangesModel );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
31
src/qt/qtquick_controls/cpp/guiexchangescontrol.h
Normal file
31
src/qt/qtquick_controls/cpp/guiexchangescontrol.h
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
#ifndef GUIEEXCHANGESCONTROL_H
|
||||||
|
#define GUIEEXCHANGESCONTROL_H
|
||||||
|
|
||||||
|
#include <QQuickItem>
|
||||||
|
|
||||||
|
#include "../../CSCPublicAPI/jsonactiveexchangesparser.h"
|
||||||
|
|
||||||
|
class GUIExchangesListView;
|
||||||
|
|
||||||
|
class GUIExchangesControl : public QQuickItem
|
||||||
|
{
|
||||||
|
Q_OBJECT
|
||||||
|
public:
|
||||||
|
GUIExchangesControl( QQuickItem* a_pParent = 0 );
|
||||||
|
virtual ~GUIExchangesControl();
|
||||||
|
|
||||||
|
Q_INVOKABLE void InitializeExchangesView( GUIExchangesListView* a_pView );
|
||||||
|
GUIExchangesListView* GetExchangesView() const { return m_pExchangesView; }
|
||||||
|
|
||||||
|
public slots:
|
||||||
|
void slotPopulateListView( JsonActiveExchangesParser* a_pActiveExchanges );
|
||||||
|
|
||||||
|
signals:
|
||||||
|
|
||||||
|
public slots:
|
||||||
|
|
||||||
|
private:
|
||||||
|
GUIExchangesListView* m_pExchangesView;
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif // GUIEEXCHANGESCONTROL_H
|
||||||
50
src/qt/qtquick_controls/cpp/guiexchangeslistview.cpp
Normal file
50
src/qt/qtquick_controls/cpp/guiexchangeslistview.cpp
Normal file
@@ -0,0 +1,50 @@
|
|||||||
|
#include "guiexchangeslistview.h"
|
||||||
|
|
||||||
|
#include "qmlexchangeslistitem.h"
|
||||||
|
#include "qmlexchangeslistmodel.h"
|
||||||
|
#include "qmllistmodel.h"
|
||||||
|
|
||||||
|
#include <QDesktopServices>
|
||||||
|
#include <QUrl>
|
||||||
|
|
||||||
|
GUIExchangesListView::GUIExchangesListView( QQuickItem* a_pParent )
|
||||||
|
: QQuickItem( a_pParent )
|
||||||
|
, m_pModel( 0 )
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
void GUIExchangesListView::Clear()
|
||||||
|
{
|
||||||
|
if ( m_pModel )
|
||||||
|
{
|
||||||
|
m_pModel->clear();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void GUIExchangesListView::OnClicked( int a_iItemIndex )
|
||||||
|
{
|
||||||
|
if ( m_pModel )
|
||||||
|
{
|
||||||
|
QString strUrl = m_pModel->GetData( a_iItemIndex, QmlExchangesListItem::ROLE_DESTINATION_URL ).toString();
|
||||||
|
QDesktopServices::openUrl( QUrl( strUrl ) );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
GUIExchangesListView::~GUIExchangesListView()
|
||||||
|
{
|
||||||
|
if ( m_pModel )
|
||||||
|
{
|
||||||
|
delete m_pModel;
|
||||||
|
m_pModel = 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void GUIExchangesListView::SetModel( QmlExchangesListModel* a_pModel )
|
||||||
|
{
|
||||||
|
if ( m_pModel )
|
||||||
|
{
|
||||||
|
delete m_pModel;
|
||||||
|
}
|
||||||
|
m_pModel = a_pModel;
|
||||||
|
emit signalModelChanged();
|
||||||
|
}
|
||||||
35
src/qt/qtquick_controls/cpp/guiexchangeslistview.h
Normal file
35
src/qt/qtquick_controls/cpp/guiexchangeslistview.h
Normal file
@@ -0,0 +1,35 @@
|
|||||||
|
#ifndef GUIEXCHANGESLISTVIEW_H
|
||||||
|
#define GUIEXCHANGESLISTVIEW_H
|
||||||
|
|
||||||
|
#include <QQuickItem>
|
||||||
|
|
||||||
|
class QmlListModel;
|
||||||
|
class QmlExchangesListModel;
|
||||||
|
class QmlExchangesListItem;
|
||||||
|
|
||||||
|
class GUIExchangesListView : public QQuickItem
|
||||||
|
{
|
||||||
|
Q_OBJECT
|
||||||
|
Q_PROPERTY( QmlExchangesListModel* p_pListModel MEMBER m_pModel NOTIFY signalModelChanged )
|
||||||
|
|
||||||
|
public:
|
||||||
|
explicit GUIExchangesListView( QQuickItem *a_pParent = 0 );
|
||||||
|
virtual ~GUIExchangesListView(); /** Destructor **/
|
||||||
|
|
||||||
|
void SetModel( QmlExchangesListModel* a_pModel );
|
||||||
|
QmlExchangesListModel* GetModel() const { return m_pModel; }
|
||||||
|
|
||||||
|
void Clear();
|
||||||
|
|
||||||
|
Q_INVOKABLE void OnClicked( int a_iItemIndex );
|
||||||
|
signals:
|
||||||
|
void signalModelChanged();
|
||||||
|
|
||||||
|
public slots:
|
||||||
|
|
||||||
|
private:
|
||||||
|
|
||||||
|
QmlExchangesListModel* m_pModel;
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif // GUIEXCHANGESLISTVIEW_H
|
||||||
104
src/qt/qtquick_controls/cpp/guiexchangeswidget.cpp
Normal file
104
src/qt/qtquick_controls/cpp/guiexchangeswidget.cpp
Normal file
@@ -0,0 +1,104 @@
|
|||||||
|
#include "guiexchangeswidget.h"
|
||||||
|
|
||||||
|
#include <QHBoxLayout>
|
||||||
|
#include <QCheckBox>
|
||||||
|
#include <QQuickView>
|
||||||
|
#include <QQmlContext>
|
||||||
|
|
||||||
|
#include "gui20_skin.h"
|
||||||
|
|
||||||
|
// qml
|
||||||
|
#include "guiexchangescontrol.h"
|
||||||
|
#include "guiexchangeslistview.h"
|
||||||
|
#include "qmlexchangeslistmodel.h"
|
||||||
|
#include "qmlexchangeslistitem.h"
|
||||||
|
#include "qmlimageprovider.h"
|
||||||
|
|
||||||
|
// web
|
||||||
|
#include "../../CSCPublicAPI/casinocoinwebapi.h"
|
||||||
|
#include "../../CSCPublicAPI/casinocoinwebapiparser.h"
|
||||||
|
|
||||||
|
|
||||||
|
GUIExchangesWidget::GUIExchangesWidget(QWidget *parent)
|
||||||
|
: QWidget(parent)
|
||||||
|
, m_pExchangesControl( 0 )
|
||||||
|
, m_pWebApiParserTemporary( new CasinoCoinWebAPIParser( this ) )
|
||||||
|
, m_pWebApiTemporary( new CasinoCoinWebAPI( this ) )
|
||||||
|
, m_pQmlImageProvider( 0 )
|
||||||
|
{
|
||||||
|
registerCustomQmlTypes();
|
||||||
|
connect( m_pWebApiTemporary, SIGNAL( signalResponseReady(const QByteArray&)), m_pWebApiParserTemporary, SLOT( slotParseAnswer(const QByteArray&)), Qt::UniqueConnection );
|
||||||
|
connect( m_pWebApiTemporary, SIGNAL( signalNetworkError(QNetworkReply::NetworkError,const QUrl)), m_pWebApiParserTemporary, SLOT( slotNetworkError(QNetworkReply::NetworkError,const QUrl)), Qt::UniqueConnection );
|
||||||
|
connect( m_pWebApiParserTemporary, SIGNAL( signalActiveExchangesParsed(JsonActiveExchangesParser*)), this, SLOT( slotPopulateFromWeb(JsonActiveExchangesParser*)), Qt::UniqueConnection );
|
||||||
|
}
|
||||||
|
|
||||||
|
GUIExchangesWidget::~GUIExchangesWidget()
|
||||||
|
{
|
||||||
|
// member objects are moved to qml engine and it manages their instances
|
||||||
|
}
|
||||||
|
|
||||||
|
void GUIExchangesWidget::registerCustomQmlTypes()
|
||||||
|
{
|
||||||
|
qmlRegisterType<GUIExchangesControl>("CasinoCoinControls", 1, 0, "GUIExchangesControl" );
|
||||||
|
qmlRegisterType<GUIExchangesListView>("CasinoCoinControls", 1, 0, "GUIExchangesListView" );
|
||||||
|
qmlRegisterType<QmlExchangesListModel>("CasinoCoinControls", 1, 0, "QmlExchangesListModel" );
|
||||||
|
}
|
||||||
|
|
||||||
|
QWidget* GUIExchangesWidget::dockQmlToWidget()
|
||||||
|
{
|
||||||
|
QQuickView* pExchangesWindow = new QQuickView;
|
||||||
|
QWidget* pPlaceHolder = 0;
|
||||||
|
if ( pExchangesWindow )
|
||||||
|
{
|
||||||
|
QQmlContext* pContext = pExchangesWindow->rootContext();
|
||||||
|
if ( pContext )
|
||||||
|
{
|
||||||
|
pContext->setContextProperty( "GUI20Skin", &GUI20Skin::Instance() );
|
||||||
|
}
|
||||||
|
QQmlEngine* pEngine = pExchangesWindow->engine();
|
||||||
|
if ( pEngine )
|
||||||
|
{
|
||||||
|
m_pQmlImageProvider = new QmlImageProvider();
|
||||||
|
pEngine->addImageProvider( "exchangesImages", m_pQmlImageProvider );
|
||||||
|
}
|
||||||
|
pExchangesWindow->setSource( QUrl( QStringLiteral( "qrc:/qml/qtquick_controls/qml/QmlGUIExchangesWindow.qml" ) ) );
|
||||||
|
QQuickItem* pRootObject = pExchangesWindow->rootObject();
|
||||||
|
if ( pRootObject )
|
||||||
|
{
|
||||||
|
m_pExchangesControl = pRootObject->findChild<GUIExchangesControl*>();
|
||||||
|
if ( m_pExchangesControl )
|
||||||
|
{
|
||||||
|
m_pExchangesControl->setWidth( 400 );
|
||||||
|
m_pExchangesControl->setHeight( 120 );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
pPlaceHolder = QWidget::createWindowContainer( pExchangesWindow, this );
|
||||||
|
if ( pPlaceHolder )
|
||||||
|
{
|
||||||
|
pPlaceHolder->setMinimumSize( 400, 120 );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return pPlaceHolder;
|
||||||
|
}
|
||||||
|
|
||||||
|
void GUIExchangesWidget::PopulateExchangesFromWeb()
|
||||||
|
{
|
||||||
|
if ( m_pWebApiTemporary )
|
||||||
|
{
|
||||||
|
m_pWebApiTemporary->GetActiveExchanges();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void GUIExchangesWidget::slotPopulateFromWeb( JsonActiveExchangesParser* a_pExchangesParser )
|
||||||
|
{
|
||||||
|
if ( a_pExchangesParser )
|
||||||
|
{
|
||||||
|
a_pExchangesParser->AddImagesToPool( m_pQmlImageProvider );
|
||||||
|
}
|
||||||
|
if ( m_pExchangesControl )
|
||||||
|
{
|
||||||
|
m_pExchangesControl->slotPopulateListView( a_pExchangesParser );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
39
src/qt/qtquick_controls/cpp/guiexchangeswidget.h
Normal file
39
src/qt/qtquick_controls/cpp/guiexchangeswidget.h
Normal file
@@ -0,0 +1,39 @@
|
|||||||
|
#ifndef GUIEXCHANGESWIDGET_H
|
||||||
|
#define GUIEXCHANGESWIDGET_H
|
||||||
|
|
||||||
|
#include <QWidget>
|
||||||
|
#include <QNetworkReply>
|
||||||
|
|
||||||
|
class CasinoCoinWebAPIParser;
|
||||||
|
class CasinoCoinWebAPI;
|
||||||
|
class GUIExchangesControl;
|
||||||
|
class QmlImageProvider;
|
||||||
|
class JsonActiveExchangesParser;
|
||||||
|
|
||||||
|
class GUIExchangesWidget : public QWidget
|
||||||
|
{
|
||||||
|
Q_OBJECT
|
||||||
|
|
||||||
|
public:
|
||||||
|
GUIExchangesWidget( QWidget *parent = 0) ;
|
||||||
|
~GUIExchangesWidget();
|
||||||
|
|
||||||
|
QWidget* dockQmlToWidget();
|
||||||
|
|
||||||
|
void PopulateExchangesFromWeb();
|
||||||
|
void PopulateExchangesLocally();
|
||||||
|
|
||||||
|
private:
|
||||||
|
void registerCustomQmlTypes();
|
||||||
|
|
||||||
|
GUIExchangesControl* m_pExchangesControl;
|
||||||
|
|
||||||
|
CasinoCoinWebAPIParser* m_pWebApiParserTemporary;
|
||||||
|
CasinoCoinWebAPI* m_pWebApiTemporary;
|
||||||
|
QmlImageProvider* m_pQmlImageProvider;
|
||||||
|
private slots:
|
||||||
|
void slotPopulateFromWeb( JsonActiveExchangesParser* a_pExchangesParser );
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif // GUIEXCHANGESWIDGET_H
|
||||||
57
src/qt/qtquick_controls/cpp/qmlexchangeslistitem.cpp
Normal file
57
src/qt/qtquick_controls/cpp/qmlexchangeslistitem.cpp
Normal file
@@ -0,0 +1,57 @@
|
|||||||
|
#include "qmlexchangeslistitem.h"
|
||||||
|
|
||||||
|
#include <QDebug>
|
||||||
|
|
||||||
|
QmlExchangesListItem::QmlExchangesListItem(QString a_strImageSource, QString a_strDestinationUrl, QString a_strExchangesName, double a_dBidPrice, double a_dAskPrice, double a_dLastPrice, QString a_strDescription, QObject* a_pParent )
|
||||||
|
: QmlListItem ( QVariant( a_strImageSource )
|
||||||
|
, QVariant( a_strDestinationUrl )
|
||||||
|
, QVariant( a_strExchangesName )
|
||||||
|
, QVariant( GetFormattedPrice( a_dBidPrice ) )
|
||||||
|
, QVariant( GetFormattedPrice( a_dAskPrice ) )
|
||||||
|
, QVariant( GetFormattedPrice( a_dLastPrice ) )
|
||||||
|
, QVariant( a_strDescription )
|
||||||
|
, a_pParent
|
||||||
|
)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
QmlExchangesListItem::QmlExchangesListItem( const JsonSingleActiveExchange& a_rExchangeDescription, QObject* a_pParent )
|
||||||
|
: QmlListItem ( QVariant( a_rExchangeDescription.getImageName() )
|
||||||
|
, QVariant( a_rExchangeDescription.getAccessUrl() )
|
||||||
|
, QVariant( a_rExchangeDescription.getExchangeName() )
|
||||||
|
, QVariant( GetFormattedPrice( a_rExchangeDescription.getLastBidPriceBTC() ) )
|
||||||
|
, QVariant( GetFormattedPrice( a_rExchangeDescription.getLastAskPriceBTC() ) )
|
||||||
|
, QVariant( GetFormattedPrice( a_rExchangeDescription.getLastPriceBTC() ) )
|
||||||
|
, QVariant( a_rExchangeDescription.getDescription() )
|
||||||
|
, a_pParent
|
||||||
|
)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
QmlExchangesListItem::QmlExchangesListItem( QObject* a_pParent )
|
||||||
|
: QmlListItem( QVariant( "" ), QVariant( "" ), QVariant( "" ), QVariant( "" ), QVariant( "" ), QVariant( "" ), QVariant( "" ), a_pParent )
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
QmlExchangesListItem::~QmlExchangesListItem()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
QHash<int, QByteArray> QmlExchangesListItem::RoleNames() const
|
||||||
|
{
|
||||||
|
QHash<int, QByteArray> aRoleNames;
|
||||||
|
aRoleNames[ROLE_IMAGE_SOURCE] = "m_imageSource";
|
||||||
|
aRoleNames[ROLE_DESTINATION_URL] = "m_destinationUrl";
|
||||||
|
aRoleNames[ROLE_EXCHANGE_NAME] = "m_exchangeName";
|
||||||
|
aRoleNames[ROLE_BID_PRICE] = "m_bidPrice";
|
||||||
|
aRoleNames[ROLE_ASK_PRICE] = "m_askPrice";
|
||||||
|
aRoleNames[ROLE_LAST_PRICE] = "m_lastPrice";
|
||||||
|
aRoleNames[ROLE_DESCRIPTION] = "m_description";
|
||||||
|
return aRoleNames;
|
||||||
|
}
|
||||||
|
|
||||||
|
QString QmlExchangesListItem::GetFormattedPrice(double a_dPrice)
|
||||||
|
{
|
||||||
|
return QString::number( a_dPrice, 'f', 8 );
|
||||||
|
}
|
||||||
47
src/qt/qtquick_controls/cpp/qmlexchangeslistitem.h
Normal file
47
src/qt/qtquick_controls/cpp/qmlexchangeslistitem.h
Normal file
@@ -0,0 +1,47 @@
|
|||||||
|
#ifndef QMLEXCHANGESLISTITEM_H
|
||||||
|
#define QMLEXCHANGESLISTITEM_H
|
||||||
|
|
||||||
|
#include "qmllistitem.h"
|
||||||
|
#include "../../CSCPublicAPI/jsonsingleactiveexchange.h"
|
||||||
|
|
||||||
|
class QmlExchangesListItem : public QmlListItem
|
||||||
|
{
|
||||||
|
Q_OBJECT
|
||||||
|
public:
|
||||||
|
enum EExchangesRoles /** User-specific model roles **/
|
||||||
|
{ ROLE_IMAGE_SOURCE = ROLE_1
|
||||||
|
, ROLE_DESTINATION_URL = ROLE_2
|
||||||
|
, ROLE_EXCHANGE_NAME = ROLE_3
|
||||||
|
, ROLE_BID_PRICE = ROLE_4
|
||||||
|
, ROLE_ASK_PRICE = ROLE_5
|
||||||
|
, ROLE_LAST_PRICE = ROLE_6
|
||||||
|
, ROLE_DESCRIPTION = ROLE_7
|
||||||
|
};
|
||||||
|
|
||||||
|
explicit QmlExchangesListItem
|
||||||
|
( QString a_strImageSource
|
||||||
|
, QString a_strDestinationUrl
|
||||||
|
, QString a_strExchangesName
|
||||||
|
, double a_dBidPrice
|
||||||
|
, double a_dAskPrice
|
||||||
|
, double a_dLastPrice
|
||||||
|
, QString a_strDescription
|
||||||
|
, QObject *a_pParent = 0
|
||||||
|
);
|
||||||
|
explicit QmlExchangesListItem ( const JsonSingleActiveExchange& a_rExchangeDescription
|
||||||
|
, QObject *a_pParent = 0
|
||||||
|
);
|
||||||
|
explicit QmlExchangesListItem( QObject *a_pParent = 0 );
|
||||||
|
virtual ~QmlExchangesListItem();
|
||||||
|
|
||||||
|
virtual QHash<int, QByteArray> RoleNames() const; /** Define class-specific roles **/
|
||||||
|
|
||||||
|
signals:
|
||||||
|
|
||||||
|
public slots:
|
||||||
|
|
||||||
|
private:
|
||||||
|
QString GetFormattedPrice( double a_dPrice );
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif // QMLEXCHANGESLISTITEM_H
|
||||||
30
src/qt/qtquick_controls/cpp/qmlexchangeslistmodel.cpp
Normal file
30
src/qt/qtquick_controls/cpp/qmlexchangeslistmodel.cpp
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
#include "qmlexchangeslistmodel.h"
|
||||||
|
|
||||||
|
#include "qmlexchangeslistitem.h"
|
||||||
|
|
||||||
|
#include "../../CSCPublicAPI/jsonactiveexchangesparser.h"
|
||||||
|
#include "../../CSCPublicAPI/jsonsingleactiveexchange.h"
|
||||||
|
|
||||||
|
#include <QDebug>
|
||||||
|
|
||||||
|
QmlExchangesListModel::QmlExchangesListModel( QObject* a_pParent )
|
||||||
|
: QmlListModel( new QmlExchangesListItem( 0 ), a_pParent )
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
QmlExchangesListModel::QmlExchangesListModel
|
||||||
|
( const JsonActiveExchangesParser& a_rActiveExchanges
|
||||||
|
, QObject* a_pParent
|
||||||
|
)
|
||||||
|
: QmlListModel( new QmlExchangesListItem( 0 ), a_pParent )
|
||||||
|
{
|
||||||
|
foreach( const JsonSingleActiveExchange& rExchange, a_rActiveExchanges.GetExchanges() )
|
||||||
|
{
|
||||||
|
append( new QmlExchangesListItem( rExchange, this ) );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
QmlExchangesListModel::~QmlExchangesListModel()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
26
src/qt/qtquick_controls/cpp/qmlexchangeslistmodel.h
Normal file
26
src/qt/qtquick_controls/cpp/qmlexchangeslistmodel.h
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
#ifndef QMLEXCHANGESLISTMODEL_H
|
||||||
|
#define QMLEXCHANGESLISTMODEL_H
|
||||||
|
|
||||||
|
#include "qmllistmodel.h"
|
||||||
|
|
||||||
|
class QmlExchangesListItem;
|
||||||
|
class JsonActiveExchangesParser;
|
||||||
|
|
||||||
|
class QmlExchangesListModel : public QmlListModel
|
||||||
|
{
|
||||||
|
Q_OBJECT
|
||||||
|
public:
|
||||||
|
explicit QmlExchangesListModel( QObject* a_pParent = 0 );
|
||||||
|
explicit QmlExchangesListModel
|
||||||
|
( const JsonActiveExchangesParser& a_rActiveExchanges
|
||||||
|
, QObject* a_pParent = 0
|
||||||
|
);
|
||||||
|
virtual ~QmlExchangesListModel(); /** Destructor **/
|
||||||
|
|
||||||
|
signals:
|
||||||
|
|
||||||
|
public slots:
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif // QMLEXCHANGESLISTMODEL_H
|
||||||
32
src/qt/qtquick_controls/qml/QmlGUIExchangesControl.qml
Normal file
32
src/qt/qtquick_controls/qml/QmlGUIExchangesControl.qml
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
import QtQuick 2.2
|
||||||
|
import CasinoCoinControls 1.0
|
||||||
|
|
||||||
|
GUIExchangesControl
|
||||||
|
{
|
||||||
|
id: id_ExchangesControl
|
||||||
|
|
||||||
|
property color colorBackgroundInWidget: GUI20Skin.colorFrameBackground
|
||||||
|
Rectangle
|
||||||
|
{
|
||||||
|
id: id_ExchangessArea
|
||||||
|
height: id_ExchangesControl.height
|
||||||
|
width: id_ExchangesControl.width
|
||||||
|
color: colorBackgroundInWidget
|
||||||
|
z: -1
|
||||||
|
|
||||||
|
anchors.fill: id_ExchangesControl
|
||||||
|
// anchors.horizontalCenter: id_ExchangesControl.horizontalCenter
|
||||||
|
// anchors.left: id_leftArrow.left
|
||||||
|
QmlGUIExchangesListView
|
||||||
|
{
|
||||||
|
id: id_ExchangesListView
|
||||||
|
|
||||||
|
anchors.fill: id_ExchangessArea
|
||||||
|
Component.onCompleted:
|
||||||
|
{
|
||||||
|
id_ExchangesControl.InitializeExchangesView( id_ExchangesListView )
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
164
src/qt/qtquick_controls/qml/QmlGUIExchangesListView.qml
Normal file
164
src/qt/qtquick_controls/qml/QmlGUIExchangesListView.qml
Normal file
@@ -0,0 +1,164 @@
|
|||||||
|
import QtQuick 2.0
|
||||||
|
import CasinoCoinControls 1.0
|
||||||
|
|
||||||
|
GUIExchangesListView
|
||||||
|
{
|
||||||
|
id: id_ExchangesView
|
||||||
|
|
||||||
|
property int m_iItemBorderWidth: 1
|
||||||
|
property int m_iColumnWidth: 0
|
||||||
|
property alias m_ListModel: id_listView.model
|
||||||
|
property alias m_PathView: id_listView
|
||||||
|
|
||||||
|
ListView
|
||||||
|
{
|
||||||
|
id: id_listView
|
||||||
|
anchors.fill: id_ExchangesView
|
||||||
|
|
||||||
|
clip: true
|
||||||
|
visible: true
|
||||||
|
interactive: contentHeight > id_listView.height ? true : false
|
||||||
|
|
||||||
|
model: id_ExchangesView.p_pListModel
|
||||||
|
delegate: id_elementDelegate
|
||||||
|
}
|
||||||
|
|
||||||
|
Component
|
||||||
|
{
|
||||||
|
id: id_elementDelegate
|
||||||
|
Rectangle
|
||||||
|
{
|
||||||
|
id: id_listElement
|
||||||
|
objectName: id_ExchangesView.objectName + "_Element" + index
|
||||||
|
|
||||||
|
width: 400
|
||||||
|
height: 100
|
||||||
|
Row
|
||||||
|
{
|
||||||
|
id: id_row
|
||||||
|
anchors.fill: id_listElement
|
||||||
|
Rectangle
|
||||||
|
{
|
||||||
|
id: id_imageRectangle
|
||||||
|
|
||||||
|
width: id_listElement.width / 3
|
||||||
|
height: 80
|
||||||
|
anchors.verticalCenter: id_row.verticalCenter
|
||||||
|
Image
|
||||||
|
{
|
||||||
|
id: id_exchangeImage
|
||||||
|
source: "image://exchangesImages/" + m_imageSource
|
||||||
|
scale: ( id_imageRectangle.height / height )
|
||||||
|
anchors.centerIn: id_imageRectangle
|
||||||
|
}
|
||||||
|
|
||||||
|
MouseArea
|
||||||
|
{
|
||||||
|
id: id_leftItemMouseArea
|
||||||
|
anchors.fill: id_imageRectangle
|
||||||
|
onClicked:
|
||||||
|
{
|
||||||
|
id_ExchangesView.OnClicked( index )
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Rectangle
|
||||||
|
{
|
||||||
|
id: id_otherInfoRectangle
|
||||||
|
|
||||||
|
width: id_listElement.width - id_imageRectangle.width
|
||||||
|
height: 90
|
||||||
|
anchors.verticalCenter: id_row.verticalCenter
|
||||||
|
Column
|
||||||
|
{
|
||||||
|
id: id_otherInfoColumn
|
||||||
|
anchors.fill: id_otherInfoRectangle
|
||||||
|
Rectangle
|
||||||
|
{
|
||||||
|
id: id_exchangeNameRectangle
|
||||||
|
width: id_otherInfoRectangle.width
|
||||||
|
height: id_otherInfoRectangle.height / 3
|
||||||
|
Text
|
||||||
|
{
|
||||||
|
id: id_exchangeNameText
|
||||||
|
anchors.fill: id_exchangeNameRectangle
|
||||||
|
text: qsTr( m_exchangeName )
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Rectangle
|
||||||
|
{
|
||||||
|
id: id_pricesRectangle
|
||||||
|
width: id_otherInfoRectangle.width
|
||||||
|
height: id_otherInfoRectangle.height / 3
|
||||||
|
Row
|
||||||
|
{
|
||||||
|
id: id_pricesRow
|
||||||
|
anchors.fill: id_pricesRectangle
|
||||||
|
Rectangle
|
||||||
|
{
|
||||||
|
id: id_priceBid
|
||||||
|
width: id_pricesRectangle.width / 3
|
||||||
|
height: id_pricesRectangle.height
|
||||||
|
Text
|
||||||
|
{
|
||||||
|
id: id_priceBidText
|
||||||
|
anchors.fill: id_priceBid
|
||||||
|
text: qsTr( m_bidPrice )
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Rectangle
|
||||||
|
{
|
||||||
|
id: id_priceAsk
|
||||||
|
width: id_pricesRectangle.width / 3
|
||||||
|
height: id_pricesRectangle.height
|
||||||
|
Text
|
||||||
|
{
|
||||||
|
id: id_priceAskText
|
||||||
|
anchors.fill: id_priceAsk
|
||||||
|
text: qsTr( m_askPrice )
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Rectangle
|
||||||
|
{
|
||||||
|
id: id_priceLast
|
||||||
|
width: id_pricesRectangle.width / 3
|
||||||
|
height: id_pricesRectangle.height
|
||||||
|
Text
|
||||||
|
{
|
||||||
|
id: id_priceLastText
|
||||||
|
anchors.fill: id_priceLast
|
||||||
|
text: qsTr( m_lastPrice )
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Rectangle
|
||||||
|
{
|
||||||
|
id: id_exchangeLink
|
||||||
|
width: id_otherInfoRectangle.width
|
||||||
|
height: id_otherInfoRectangle.height / 3
|
||||||
|
Text
|
||||||
|
{
|
||||||
|
id: id_exchangeLinkText
|
||||||
|
anchors.fill: id_exchangeLink
|
||||||
|
text: qsTr( "Go to site" )
|
||||||
|
MouseArea
|
||||||
|
{
|
||||||
|
id: id_linkMouseArea
|
||||||
|
anchors.fill: id_exchangeLinkText
|
||||||
|
onClicked:
|
||||||
|
{
|
||||||
|
id_ExchangesView.OnClicked( index )
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
14
src/qt/qtquick_controls/qml/QmlGUIExchangesWindow.qml
Normal file
14
src/qt/qtquick_controls/qml/QmlGUIExchangesWindow.qml
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
import QtQuick 2.2
|
||||||
|
|
||||||
|
Rectangle
|
||||||
|
{
|
||||||
|
id: id_root
|
||||||
|
QmlGUIExchangesControl
|
||||||
|
{
|
||||||
|
id: id_ExchangesControlMain
|
||||||
|
}
|
||||||
|
color: GUI20Skin.colorFrameBackground
|
||||||
|
width: id_ExchangesControlMain.width
|
||||||
|
height: id_ExchangesControlMain.height
|
||||||
|
}
|
||||||
|
|
||||||
Reference in New Issue
Block a user