Skip to content

Commit

Permalink
Qt GUI: Icons, Logo, Spinner, etc.
Browse files Browse the repository at this point in the history
Imported most Phoenixcoin GUI components.
Further Bitcoin to Phoenixcoin rebranding.
  • Loading branch information
ghostlander committed Feb 28, 2019
1 parent d95d5d6 commit 9f8ca35
Show file tree
Hide file tree
Showing 179 changed files with 776 additions and 758 deletions.
41 changes: 21 additions & 20 deletions phoenixcoin-qt.pro
Expand Up @@ -104,8 +104,8 @@ contains(USE_IPV6, -) {
DEFINES += USE_IPV6=$$USE_IPV6
}

contains(BITCOIN_NEED_QT_PLUGINS, 1) {
DEFINES += BITCOIN_NEED_QT_PLUGINS
contains(PHOENIXCOIN_NEED_QT_PLUGINS, 1) {
DEFINES += PHOENIXCOIN_NEED_QT_PLUGINS
QTPLUGIN += qcncodecs qjpcodecs qtwcodecs qkrcodecs qtaccessiblewidgets
}

Expand All @@ -124,7 +124,7 @@ QMAKE_CXXFLAGS_WARN_ON = -fdiagnostics-show-option -Wall -Wextra -Wformat -Wform

# Input
DEPENDPATH += src src/json src/qt
HEADERS += src/qt/bitcoingui.h \
HEADERS += src/qt/gui.h \
src/qt/transactiontablemodel.h \
src/qt/addresstablemodel.h \
src/qt/optionsdialog.h \
Expand All @@ -133,7 +133,7 @@ HEADERS += src/qt/bitcoingui.h \
src/qt/signverifymessagedialog.h \
src/qt/aboutdialog.h \
src/qt/editaddressdialog.h \
src/qt/bitcoinaddressvalidator.h \
src/qt/addressvalidator.h \
src/alert.h \
src/addrman.h \
src/base58.h \
Expand Down Expand Up @@ -171,19 +171,19 @@ HEADERS += src/qt/bitcoingui.h \
src/qt/monitoreddatamapper.h \
src/qt/transactiondesc.h \
src/qt/transactiondescdialog.h \
src/qt/bitcoinamountfield.h \
src/qt/amountfield.h \
src/wallet.h \
src/keystore.h \
src/qt/transactionfilterproxy.h \
src/qt/transactionview.h \
src/qt/walletmodel.h \
src/bitcoinrpc.h \
src/rpc.h \
src/qt/overviewpage.h \
src/qt/csvmodelwriter.h \
src/crypter.h \
src/qt/sendcoinsentry.h \
src/qt/qvalidatedlineedit.h \
src/qt/bitcoinunits.h \
src/qt/coinunits.h \
src/qt/qvaluecombobox.h \
src/qt/askpassphrasedialog.h \
src/protocol.h \
Expand All @@ -197,7 +197,8 @@ HEADERS += src/qt/bitcoingui.h \
src/clientversion.h \
src/neoscrypt.h

SOURCES += src/qt/bitcoin.cpp src/qt/bitcoingui.cpp \
SOURCES += src/qt/phoenixcoin.cpp \
src/qt/gui.cpp \
src/qt/transactiontablemodel.cpp \
src/qt/addresstablemodel.cpp \
src/qt/optionsdialog.cpp \
Expand All @@ -206,7 +207,7 @@ SOURCES += src/qt/bitcoin.cpp src/qt/bitcoingui.cpp \
src/qt/signverifymessagedialog.cpp \
src/qt/aboutdialog.cpp \
src/qt/editaddressdialog.cpp \
src/qt/bitcoinaddressvalidator.cpp \
src/qt/addressvalidator.cpp \
src/alert.cpp \
src/version.cpp \
src/sync.cpp \
Expand All @@ -229,14 +230,14 @@ SOURCES += src/qt/bitcoin.cpp src/qt/bitcoingui.cpp \
src/qt/monitoreddatamapper.cpp \
src/qt/transactiondesc.cpp \
src/qt/transactiondescdialog.cpp \
src/qt/bitcoinstrings.cpp \
src/qt/bitcoinamountfield.cpp \
src/qt/strings.cpp \
src/qt/amountfield.cpp \
src/wallet.cpp \
src/keystore.cpp \
src/qt/transactionfilterproxy.cpp \
src/qt/transactionview.cpp \
src/qt/walletmodel.cpp \
src/bitcoinrpc.cpp \
src/rpc.cpp \
src/rpcdump.cpp \
src/rpcnet.cpp \
src/rpcmining.cpp \
Expand All @@ -248,7 +249,7 @@ SOURCES += src/qt/bitcoin.cpp src/qt/bitcoingui.cpp \
src/crypter.cpp \
src/qt/sendcoinsentry.cpp \
src/qt/qvalidatedlineedit.cpp \
src/qt/bitcoinunits.cpp \
src/qt/coinunits.cpp \
src/qt/qvaluecombobox.cpp \
src/qt/askpassphrasedialog.cpp \
src/protocol.cpp \
Expand All @@ -260,7 +261,7 @@ SOURCES += src/qt/bitcoin.cpp src/qt/bitcoingui.cpp \
src/neoscrypt_asm.S

RESOURCES += \
src/qt/bitcoin.qrc
src/qt/phoenixcoin.qrc

FORMS += \
src/qt/forms/sendcoinsdialog.ui \
Expand All @@ -281,20 +282,20 @@ SOURCES += src/qt/qrcodedialog.cpp
FORMS += src/qt/forms/qrcodedialog.ui
}

contains(BITCOIN_QT_TEST, 1) {
contains(PHOENIXCOIN_QT_TEST, 1) {
SOURCES += src/qt/test/test_main.cpp \
src/qt/test/uritests.cpp
HEADERS += src/qt/test/uritests.h
DEPENDPATH += src/qt/test
QT += testlib
TARGET = phoenixcoin-qt_test
DEFINES += BITCOIN_QT_TEST
DEFINES += PHOENIXCOIN_QT_TEST
}

CODECFORTR = UTF-8

# for lrelease/lupdate
# also add new translations to src/qt/bitcoin.qrc under translations/
# also add new translations to src/qt/phoenixcoin.qrc under translations/
TRANSLATIONS = $$files(src/qt/locale/phoenixcoin_*.ts)

isEmpty(QMAKE_LRELEASE) {
Expand All @@ -312,7 +313,7 @@ QMAKE_EXTRA_COMPILERS += TSQM

# "Other files" to show in Qt Creator
OTHER_FILES += \
doc/*.rst doc/*.txt doc/README README.md res/bitcoin-qt.rc src/test/*.cpp src/test/*.h src/qt/test/*.cpp src/qt/test/*.h
doc/*.rst doc/*.txt doc/README README.md res/phoenixcoin-qt.rc src/test/*.cpp src/test/*.h src/qt/test/*.cpp src/qt/test/*.h

# platform specific defaults, if not overridden on command line
isEmpty(BOOST_LIB_SUFFIX) {
Expand Down Expand Up @@ -345,7 +346,7 @@ isEmpty(BOOST_INCLUDE_PATH) {
}

windows:DEFINES += WIN32
windows:RC_FILE = src/qt/res/bitcoin-qt.rc
windows:RC_FILE = src/qt/res/phoenixcoin-qt.rc

windows:!contains(MINGW_THREAD_BUGFIX, 0) {
# At least qmake's win32-g++-cross profile is missing the -lmingwthrd
Expand All @@ -367,7 +368,7 @@ macx:HEADERS += src/qt/macdockiconhandler.h
macx:OBJECTIVE_SOURCES += src/qt/macdockiconhandler.mm
macx:LIBS += -framework Foundation -framework ApplicationServices -framework AppKit
macx:DEFINES += MAC_OSX MSG_NOSIGNAL=0
macx:ICON = src/qt/res/icons/bitcoin.icns
macx:ICON = src/qt/res/icons/phoenixcoin.icns
macx:TARGET = "Phoenixcoin-Qt"
macx:QMAKE_CFLAGS_THREAD += -pthread
macx:QMAKE_LFLAGS_THREAD += -pthread
Expand Down
Binary file added share/qt/img/reload.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions share/qt/img/reload.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed share/qt/img/reload.xcf
Binary file not shown.
24 changes: 9 additions & 15 deletions share/qt/make_spinner.py
@@ -1,25 +1,25 @@
#!/usr/bin/env python
# W.J. van der Laan, 2011
# Make spinning .mng animation from a .png
# Make spinning animation from a .png
# Requires imagemagick 6.7+
from __future__ import division
from os import path
from PIL import Image
from subprocess import Popen

SRC='img/reload_scaled.png'
DST='../../src/qt/res/movies/update_spinner.mng'
TMPDIR='/tmp'
TMPNAME='tmp-%03i.png'
NUMFRAMES=35
FRAMERATE=10.0
CONVERT='convert'
# The source icon is copyright (c) 2014 John Doering <ghostlander@phoenixcoin.org>
# under the terms of the MIT Licence (see ../../LICENCE)
SRC='img/reload.png'
TMPDIR='../../src/qt/res/movies/'
TMPNAME='spinner-%02i.png'
NUMFRAMES=25
CLOCKWISE=True
FLIP=False
DSIZE=(16,16)

im_src = Image.open(SRC)

if CLOCKWISE:
if FLIP:
im_src = im_src.transpose(Image.FLIP_LEFT_RIGHT)

def frame_to_filename(frame):
Expand All @@ -35,9 +35,3 @@ def frame_to_filename(frame):
outfile = frame_to_filename(frame)
im_new.save(outfile, 'png')
frame_files.append(outfile)

p = Popen([CONVERT, "-delay", str(FRAMERATE), "-dispose", "2"] + frame_files + [DST])
p.communicate()



7 changes: 4 additions & 3 deletions src/addrman.h
@@ -1,8 +1,9 @@
// Copyright (c) 2012 Pieter Wuille
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef _BITCOIN_ADDRMAN
#define _BITCOIN_ADDRMAN 1

#ifndef ADDRMAN
#define ADDRMAN 1

#include "netbase.h"
#include "protocol.h"
Expand Down Expand Up @@ -500,4 +501,4 @@ class CAddrMan
}
};

#endif
#endif /* ADDRMAN_H */
6 changes: 3 additions & 3 deletions src/alert.h
Expand Up @@ -3,8 +3,8 @@
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.

#ifndef _BITCOINALERT_H_
#define _BITCOINALERT_H_ 1
#ifndef ALERT_H
#define ALERT_H

#include <set>
#include <string>
Expand Down Expand Up @@ -99,4 +99,4 @@ class CAlert : public CUnsignedAlert
static CAlert getAlertByHash(const uint256 &hash);
};

#endif
#endif /* ALERT_H */
7 changes: 4 additions & 3 deletions src/allocators.h
Expand Up @@ -2,8 +2,9 @@
// Copyright (c) 2009-2012 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef BITCOIN_ALLOCATORS_H
#define BITCOIN_ALLOCATORS_H

#ifndef ALLOCATORS_H
#define ALLOCATORS_H

#include <string.h>
#include <string>
Expand Down Expand Up @@ -254,4 +255,4 @@ struct zero_after_free_allocator : public std::allocator<T>
// This is exactly like std::string, but with a custom allocator.
typedef std::basic_string<char, std::char_traits<char>, secure_allocator<char> > SecureString;

#endif
#endif /* ALLOCATORS_H */
7 changes: 4 additions & 3 deletions src/base58.h
Expand Up @@ -12,8 +12,9 @@
// - E-mail usually won't line-break if there's no punctuation to break at.
// - Double-clicking selects the whole number as one word if it's all alphanumeric.
//
#ifndef BITCOIN_BASE58_H
#define BITCOIN_BASE58_H

#ifndef BASE58_H
#define BASE58_H

#include <string>
#include <vector>
Expand Down Expand Up @@ -457,4 +458,4 @@ class CBitcoinSecret : public CBase58Data
}
};

#endif
#endif /* BASE58_H */
7 changes: 4 additions & 3 deletions src/bignum.h
Expand Up @@ -2,8 +2,9 @@
// Copyright (c) 2009-2012 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef BITCOIN_BIGNUM_H
#define BITCOIN_BIGNUM_H

#ifndef BIGNUM_H
#define BIGNUM_H

#include <stdexcept>
#include <vector>
Expand Down Expand Up @@ -545,4 +546,4 @@ inline bool operator>=(const CBigNum& a, const CBigNum& b) { return (BN_cmp(&a,
inline bool operator<(const CBigNum& a, const CBigNum& b) { return (BN_cmp(&a, &b) < 0); }
inline bool operator>(const CBigNum& a, const CBigNum& b) { return (BN_cmp(&a, &b) > 0); }

#endif
#endif /* BIGNUM_H */
7 changes: 4 additions & 3 deletions src/checkpoints.h
@@ -1,8 +1,9 @@
// Copyright (c) 2009-2012 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef BITCOIN_CHECKPOINT_H
#define BITCOIN_CHECKPOINT_H

#ifndef CHECKPOINTS_H
#define CHECKPOINTS_H

#include <map>

Expand All @@ -24,4 +25,4 @@ namespace Checkpoints
CBlockIndex* GetLastCheckpoint(const std::map<uint256, CBlockIndex*>& mapBlockIndex);
}

#endif
#endif /* CHECKPOINTS_H */
4 changes: 2 additions & 2 deletions src/clientversion.h
Expand Up @@ -5,7 +5,7 @@
// client versioning
//

// These need to be macros, as version.cpp's and bitcoin-qt.rc's voodoo requires it
// These need to be macros, as version.cpp's and phoenixcoin-qt.rc's voodoo requires it
#define CLIENT_VERSION_MAJOR 0
#define CLIENT_VERSION_MINOR 7
#define CLIENT_VERSION_REVISION 0
Expand All @@ -16,4 +16,4 @@
#define STRINGIZE(X) DO_STRINGIZE(X)
#define DO_STRINGIZE(X) #X

#endif // CLIENTVERSION_H
#endif /* CLIENTVERSION_H */
8 changes: 4 additions & 4 deletions src/compat.h
Expand Up @@ -2,8 +2,9 @@
// Copyright (c) 2009-2012 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef _BITCOIN_COMPAT_H
#define _BITCOIN_COMPAT_H 1

#ifndef COMPAT_H
#define COMPAT_H

#ifdef WIN32
#define _WIN32_WINNT 0x0501
Expand Down Expand Up @@ -59,5 +60,4 @@ inline int myclosesocket(SOCKET& hSocket)
}
#define closesocket(s) myclosesocket(s)


#endif
#endif /* COMPAT_H */
7 changes: 4 additions & 3 deletions src/crypter.h
@@ -1,8 +1,9 @@
// Copyright (c) 2009-2012 The Bitcoin Developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef __CRYPTER_H__
#define __CRYPTER_H__

#ifndef CRYPTER_H
#define CRYPTER_H

#include "allocators.h" /* for SecureString */
#include "key.h"
Expand Down Expand Up @@ -104,4 +105,4 @@ class CCrypter
bool EncryptSecret(CKeyingMaterial& vMasterKey, const CSecret &vchPlaintext, const uint256& nIV, std::vector<unsigned char> &vchCiphertext);
bool DecryptSecret(const CKeyingMaterial& vMasterKey, const std::vector<unsigned char> &vchCiphertext, const uint256& nIV, CSecret &vchPlaintext);

#endif
#endif /* CRYPTER_H */
7 changes: 4 additions & 3 deletions src/db.h
Expand Up @@ -2,8 +2,9 @@
// Copyright (c) 2009-2012 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef BITCOIN_DB_H
#define BITCOIN_DB_H

#ifndef DB_H
#define DB_H

#include "main.h"

Expand Down Expand Up @@ -359,4 +360,4 @@ class CAddrDB
bool Read(CAddrMan& addr);
};

#endif // BITCOIN_DB_H
#endif /* DB_H */

0 comments on commit 9f8ca35

Please sign in to comment.