Improve CryptoNoteCoin settings usage

This commit is contained in:
cryptonotefoundation 2015-04-30 15:11:48 +03:00
parent 585825c73f
commit 5a886fd7f4
63 changed files with 71 additions and 131 deletions

View file

@ -29,5 +29,5 @@ Replace URL with git remote repository of your coin.
**4. Build** **4. Build**
``` ```
mkdir build && cmake .. && make mkdir build && cd build && cmake .. && make
``` ```

View file

@ -2,7 +2,6 @@
// Distributed under the MIT/X11 software license, see the accompanying // Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php. // file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <QCoreApplication> #include <QCoreApplication>
#include <common/util.h> #include <common/util.h>

View file

@ -2,7 +2,6 @@
// Distributed under the MIT/X11 software license, see the accompanying // Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php. // file COPYING or http://www.opensource.org/licenses/mit-license.php.
#pragma once #pragma once
#include <QCommandLineParser> #include <QCommandLineParser>

View file

@ -2,7 +2,6 @@
// Distributed under the MIT/X11 software license, see the accompanying // Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php. // file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "CryptoNote.h" #include "CryptoNote.h"
#include "cryptonote_core/cryptonote_basic_impl.h" #include "cryptonote_core/cryptonote_basic_impl.h"
#include "cryptonote_core/cryptonote_format_utils.h" #include "cryptonote_core/cryptonote_format_utils.h"

View file

@ -2,7 +2,6 @@
// Distributed under the MIT/X11 software license, see the accompanying // Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php. // file COPYING or http://www.opensource.org/licenses/mit-license.php.
#pragma once #pragma once
#include <functional> #include <functional>

View file

@ -2,7 +2,6 @@
// Distributed under the MIT/X11 software license, see the accompanying // Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php. // file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "CurrencyAdapter.h" #include "CurrencyAdapter.h"
#include "CryptoNoteWalletConfig.h" #include "CryptoNoteWalletConfig.h"
@ -39,6 +38,10 @@ QString CurrencyAdapter::getCurrencyTicker() const {
return WALLET_CURRENCY_TICKER; return WALLET_CURRENCY_TICKER;
} }
quint64 CurrencyAdapter::getMinimumFee() const {
return m_currency.minimumFee();
}
QString CurrencyAdapter::formatAmount(quint64 _amount) const { QString CurrencyAdapter::formatAmount(quint64 _amount) const {
QString result = QString::number(_amount); QString result = QString::number(_amount);
if (result.length() < getNumberOfDecimalPlaces() + 1) { if (result.length() < getNumberOfDecimalPlaces() + 1) {

View file

@ -2,7 +2,6 @@
// Distributed under the MIT/X11 software license, see the accompanying // Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php. // file COPYING or http://www.opensource.org/licenses/mit-license.php.
#pragma once #pragma once
#include <QString> #include <QString>
@ -20,6 +19,7 @@ public:
QString getCurrencyDisplayName() const; QString getCurrencyDisplayName() const;
QString getCurrencyName() const; QString getCurrencyName() const;
QString getCurrencyTicker() const; QString getCurrencyTicker() const;
quint64 getMinimumFee() const;
quintptr getNumberOfDecimalPlaces() const; quintptr getNumberOfDecimalPlaces() const;
QString formatAmount(quint64 _amount) const; QString formatAmount(quint64 _amount) const;
quint64 parseAmount(const QString& _amountString) const; quint64 parseAmount(const QString& _amountString) const;

View file

@ -2,7 +2,6 @@
// Distributed under the MIT/X11 software license, see the accompanying // Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php. // file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <QCoreApplication> #include <QCoreApplication>
#include <QDateTime> #include <QDateTime>
#include <QDir> #include <QDir>
@ -111,8 +110,7 @@ CryptoNote::IWallet* NodeAdapter::createWallet() const {
bool NodeAdapter::init() { bool NodeAdapter::init() {
Q_ASSERT(m_node == nullptr); Q_ASSERT(m_node == nullptr);
// TODO Insert the right URL for the local daemon QUrl localNodeUrl = QUrl::fromUserInput(QString("127.0.0.1:%1").arg(cryptonote::RPC_DEFAULT_PORT));
QUrl localNodeUrl = QUrl::fromUserInput("");
m_node = createRpcNode(CurrencyAdapter::instance().getCurrency(), *this, localNodeUrl.host().toStdString(), localNodeUrl.port()); m_node = createRpcNode(CurrencyAdapter::instance().getCurrency(), *this, localNodeUrl.host().toStdString(), localNodeUrl.port());

View file

@ -2,7 +2,6 @@
// Distributed under the MIT/X11 software license, see the accompanying // Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php. // file COPYING or http://www.opensource.org/licenses/mit-license.php.
#pragma once #pragma once
#include <QObject> #include <QObject>

View file

@ -2,7 +2,6 @@
// Distributed under the MIT/X11 software license, see the accompanying // Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php. // file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <QApplication> #include <QApplication>
#include <QFile> #include <QFile>
#include <QJsonDocument> #include <QJsonDocument>

View file

@ -2,7 +2,6 @@
// Distributed under the MIT/X11 software license, see the accompanying // Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php. // file COPYING or http://www.opensource.org/licenses/mit-license.php.
#pragma once #pragma once
#include <QDir> #include <QDir>

View file

@ -2,7 +2,6 @@
// Distributed under the MIT/X11 software license, see the accompanying // Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php. // file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <csignal> #include <csignal>
#include "SignalHandler.h" #include "SignalHandler.h"

View file

@ -2,7 +2,6 @@
// Distributed under the MIT/X11 software license, see the accompanying // Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php. // file COPYING or http://www.opensource.org/licenses/mit-license.php.
#pragma once #pragma once
#include <QObject> #include <QObject>

View file

@ -2,7 +2,6 @@
// Distributed under the MIT/X11 software license, see the accompanying // Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php. // file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <QCoreApplication> #include <QCoreApplication>
#include <QDateTime> #include <QDateTime>
#include <QLocale> #include <QLocale>

View file

@ -2,7 +2,6 @@
// Distributed under the MIT/X11 software license, see the accompanying // Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php. // file COPYING or http://www.opensource.org/licenses/mit-license.php.
#pragma once #pragma once
#include <QMutex> #include <QMutex>

View file

@ -2,7 +2,6 @@
// Distributed under the MIT/X11 software license, see the accompanying // Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php. // file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "AboutDialog.h" #include "AboutDialog.h"
#include "CurrencyAdapter.h" #include "CurrencyAdapter.h"
#include "Settings.h" #include "Settings.h"

View file

@ -2,7 +2,6 @@
// Distributed under the MIT/X11 software license, see the accompanying // Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php. // file COPYING or http://www.opensource.org/licenses/mit-license.php.
#pragma once #pragma once
#include <QDialog> #include <QDialog>

View file

@ -2,7 +2,6 @@
// Distributed under the MIT/X11 software license, see the accompanying // Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php. // file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "AddressBookDialog.h" #include "AddressBookDialog.h"
#include "AddressBookModel.h" #include "AddressBookModel.h"

View file

@ -2,7 +2,6 @@
// Distributed under the MIT/X11 software license, see the accompanying // Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php. // file COPYING or http://www.opensource.org/licenses/mit-license.php.
#pragma once #pragma once
#include <QDialog> #include <QDialog>

View file

@ -2,7 +2,6 @@
// Distributed under the MIT/X11 software license, see the accompanying // Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php. // file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <QApplication> #include <QApplication>
#include <QClipboard> #include <QClipboard>

View file

@ -2,7 +2,6 @@
// Distributed under the MIT/X11 software license, see the accompanying // Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php. // file COPYING or http://www.opensource.org/licenses/mit-license.php.
#pragma once #pragma once
#include <QFrame> #include <QFrame>

View file

@ -2,7 +2,6 @@
// Distributed under the MIT/X11 software license, see the accompanying // Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php. // file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <QFile> #include <QFile>
#include <QJsonDocument> #include <QJsonDocument>
#include <QJsonObject> #include <QJsonObject>

View file

@ -2,7 +2,6 @@
// Distributed under the MIT/X11 software license, see the accompanying // Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php. // file COPYING or http://www.opensource.org/licenses/mit-license.php.
#pragma once #pragma once
#include <QAbstractItemModel> #include <QAbstractItemModel>

View file

@ -2,7 +2,6 @@
// Distributed under the MIT/X11 software license, see the accompanying // Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php. // file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "AnimatedLabel.h" #include "AnimatedLabel.h"
namespace WalletGui { namespace WalletGui {

View file

@ -2,7 +2,6 @@
// Distributed under the MIT/X11 software license, see the accompanying // Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php. // file COPYING or http://www.opensource.org/licenses/mit-license.php.
#pragma once #pragma once
#include <QLabel> #include <QLabel>

View file

@ -2,7 +2,6 @@
// Distributed under the MIT/X11 software license, see the accompanying // Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php. // file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "ChangePasswordDialog.h" #include "ChangePasswordDialog.h"
#include "ui_changepassworddialog.h" #include "ui_changepassworddialog.h"

View file

@ -2,7 +2,6 @@
// Distributed under the MIT/X11 software license, see the accompanying // Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php. // file COPYING or http://www.opensource.org/licenses/mit-license.php.
#pragma once #pragma once
#include <QDialog> #include <QDialog>

View file

@ -2,7 +2,6 @@
// Distributed under the MIT/X11 software license, see the accompanying // Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php. // file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <QMovie> #include <QMovie>
#include "CurrencyAdapter.h" #include "CurrencyAdapter.h"

View file

@ -2,7 +2,6 @@
// Distributed under the MIT/X11 software license, see the accompanying // Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php. // file COPYING or http://www.opensource.org/licenses/mit-license.php.
#pragma once #pragma once
#include <QWidget> #include <QWidget>

View file

@ -2,7 +2,6 @@
// Distributed under the MIT/X11 software license, see the accompanying // Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php. // file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <QCloseEvent> #include <QCloseEvent>
#include <QFileDialog> #include <QFileDialog>
#include <QInputDialog> #include <QInputDialog>

View file

@ -2,7 +2,6 @@
// Distributed under the MIT/X11 software license, see the accompanying // Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php. // file COPYING or http://www.opensource.org/licenses/mit-license.php.
#pragma once #pragma once
#include <QLabel> #include <QLabel>

View file

@ -2,7 +2,6 @@
// Distributed under the MIT/X11 software license, see the accompanying // Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php. // file COPYING or http://www.opensource.org/licenses/mit-license.php.
#import <objc/runtime.h> #import <objc/runtime.h>
#import <Cocoa/Cocoa.h> #import <Cocoa/Cocoa.h>

View file

@ -2,7 +2,6 @@
// Distributed under the MIT/X11 software license, see the accompanying // Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php. // file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "NewAddressDialog.h" #include "NewAddressDialog.h"
#include "ui_newaddressdialog.h" #include "ui_newaddressdialog.h"

View file

@ -2,7 +2,6 @@
// Distributed under the MIT/X11 software license, see the accompanying // Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php. // file COPYING or http://www.opensource.org/licenses/mit-license.php.
#pragma once #pragma once
#include <QDialog> #include <QDialog>

View file

@ -2,7 +2,6 @@
// Distributed under the MIT/X11 software license, see the accompanying // Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php. // file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "NewPasswordDialog.h" #include "NewPasswordDialog.h"
#include "ui_newpassworddialog.h" #include "ui_newpassworddialog.h"

View file

@ -2,7 +2,6 @@
// Distributed under the MIT/X11 software license, see the accompanying // Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php. // file COPYING or http://www.opensource.org/licenses/mit-license.php.
#pragma once #pragma once
#include <QDialog> #include <QDialog>

View file

@ -2,7 +2,6 @@
// Distributed under the MIT/X11 software license, see the accompanying // Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php. // file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "CurrencyAdapter.h" #include "CurrencyAdapter.h"
#include "OverviewFrame.h" #include "OverviewFrame.h"
#include "TransactionFrame.h" #include "TransactionFrame.h"

View file

@ -2,7 +2,6 @@
// Distributed under the MIT/X11 software license, see the accompanying // Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php. // file COPYING or http://www.opensource.org/licenses/mit-license.php.
#pragma once #pragma once
#include <QFrame> #include <QFrame>

View file

@ -2,7 +2,6 @@
// Distributed under the MIT/X11 software license, see the accompanying // Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php. // file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "PasswordDialog.h" #include "PasswordDialog.h"
#include "ui_passworddialog.h" #include "ui_passworddialog.h"

View file

@ -2,7 +2,6 @@
// Distributed under the MIT/X11 software license, see the accompanying // Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php. // file COPYING or http://www.opensource.org/licenses/mit-license.php.
#pragma once #pragma once
#include <QDialog> #include <QDialog>

View file

@ -2,7 +2,6 @@
// Distributed under the MIT/X11 software license, see the accompanying // Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php. // file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <QClipboard> #include <QClipboard>
#include "ReceiveFrame.h" #include "ReceiveFrame.h"

View file

@ -2,7 +2,6 @@
// Distributed under the MIT/X11 software license, see the accompanying // Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php. // file COPYING or http://www.opensource.org/licenses/mit-license.php.
#pragma once #pragma once
#include <QFrame> #include <QFrame>

View file

@ -2,7 +2,6 @@
// Distributed under the MIT/X11 software license, see the accompanying // Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php. // file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "RecentTransactionsModel.h" #include "RecentTransactionsModel.h"
#include "SortedTransactionsModel.h" #include "SortedTransactionsModel.h"

View file

@ -2,7 +2,6 @@
// Distributed under the MIT/X11 software license, see the accompanying // Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php. // file COPYING or http://www.opensource.org/licenses/mit-license.php.
#pragma once #pragma once
#include <QSortFilterProxyModel> #include <QSortFilterProxyModel>

View file

@ -2,7 +2,6 @@
// Distributed under the MIT/X11 software license, see the accompanying // Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php. // file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "AddressBookModel.h" #include "AddressBookModel.h"
#include "CurrencyAdapter.h" #include "CurrencyAdapter.h"
#include "MainWindow.h" #include "MainWindow.h"
@ -16,8 +15,6 @@
namespace WalletGui { namespace WalletGui {
const quint64 MINIMAL_FEE = 1000000;
SendFrame::SendFrame(QWidget* _parent) : QFrame(_parent), m_ui(new Ui::SendFrame) { SendFrame::SendFrame(QWidget* _parent) : QFrame(_parent), m_ui(new Ui::SendFrame) {
m_ui->setupUi(this); m_ui->setupUi(this);
clearAllClicked(); clearAllClicked();
@ -85,12 +82,7 @@ void SendFrame::sendClicked() {
} }
} }
quint64 fee = MINIMAL_FEE; quint64 fee = CurrencyAdapter::instance().getMinimumFee();
if (fee < MINIMAL_FEE) {
QCoreApplication::postEvent(&MainWindow::instance(), new ShowMessageEvent(tr("Minimum allowed fee is 0.01"), QtCriticalMsg));
return;
}
if (WalletAdapter::instance().isOpen()) { if (WalletAdapter::instance().isOpen()) {
WalletAdapter::instance().sendTransaction(walletTransfers, fee, m_ui->m_paymentIdEdit->text(), m_ui->m_mixinSlider->value()); WalletAdapter::instance().sendTransaction(walletTransfers, fee, m_ui->m_paymentIdEdit->text(), m_ui->m_mixinSlider->value());
} }
@ -100,11 +92,15 @@ void SendFrame::mixinValueChanged(int _value) {
m_ui->m_mixinEdit->setText(QString::number(_value)); m_ui->m_mixinEdit->setText(QString::number(_value));
} }
void SendFrame::sendTransactionCompleted(CryptoNote::TransactionId _id, bool _result, const QString& _errorText) { void SendFrame::sendTransactionCompleted(CryptoNote::TransactionId _id, bool _error, const QString& _errorText) {
Q_UNUSED(_id); Q_UNUSED(_id);
Q_UNUSED(_result); if (_error) {
Q_UNUSED(_errorText); QCoreApplication::postEvent(
clearAllClicked(); &MainWindow::instance(),
new ShowMessageEvent(_errorText, QtCriticalMsg));
} else {
clearAllClicked();
}
} }
void SendFrame::walletActualBalanceUpdated(quint64 _balance) { void SendFrame::walletActualBalanceUpdated(quint64 _balance) {

View file

@ -2,7 +2,6 @@
// Distributed under the MIT/X11 software license, see the accompanying // Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php. // file COPYING or http://www.opensource.org/licenses/mit-license.php.
#pragma once #pragma once
#include <QFrame> #include <QFrame>
@ -29,7 +28,7 @@ private:
QScopedPointer<Ui::SendFrame> m_ui; QScopedPointer<Ui::SendFrame> m_ui;
QList<TransferFrame*> m_transfers; QList<TransferFrame*> m_transfers;
void sendTransactionCompleted(CryptoNote::TransactionId _id, bool _result, const QString& _error_text); void sendTransactionCompleted(CryptoNote::TransactionId _id, bool _error, const QString& _error_text);
void walletActualBalanceUpdated(quint64 _balance); void walletActualBalanceUpdated(quint64 _balance);
Q_SLOT void addRecipientClicked(); Q_SLOT void addRecipientClicked();

View file

@ -2,7 +2,6 @@
// Distributed under the MIT/X11 software license, see the accompanying // Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php. // file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <QDateTime> #include <QDateTime>
#include "SortedTransactionsModel.h" #include "SortedTransactionsModel.h"

View file

@ -2,7 +2,6 @@
// Distributed under the MIT/X11 software license, see the accompanying // Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php. // file COPYING or http://www.opensource.org/licenses/mit-license.php.
#pragma once #pragma once
#include <QSortFilterProxyModel> #include <QSortFilterProxyModel>

View file

@ -2,7 +2,6 @@
// Distributed under the MIT/X11 software license, see the accompanying // Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php. // file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <QDateTime> #include <QDateTime>
#include "CurrencyAdapter.h" #include "CurrencyAdapter.h"

View file

@ -2,7 +2,6 @@
// Distributed under the MIT/X11 software license, see the accompanying // Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php. // file COPYING or http://www.opensource.org/licenses/mit-license.php.
#pragma once #pragma once
#include <QDialog> #include <QDialog>

View file

@ -2,7 +2,6 @@
// Distributed under the MIT/X11 software license, see the accompanying // Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php. // file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <QFontDatabase> #include <QFontDatabase>
#include "MainWindow.h" #include "MainWindow.h"

View file

@ -2,7 +2,6 @@
// Distributed under the MIT/X11 software license, see the accompanying // Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php. // file COPYING or http://www.opensource.org/licenses/mit-license.php.
#pragma once #pragma once
#include <QDataWidgetMapper> #include <QDataWidgetMapper>

View file

@ -2,7 +2,6 @@
// Distributed under the MIT/X11 software license, see the accompanying // Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php. // file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <QFileDialog> #include <QFileDialog>
#include <QLabel> #include <QLabel>

View file

@ -2,7 +2,6 @@
// Distributed under the MIT/X11 software license, see the accompanying // Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php. // file COPYING or http://www.opensource.org/licenses/mit-license.php.
#pragma once #pragma once
#include <QFrame> #include <QFrame>

View file

@ -2,7 +2,6 @@
// Distributed under the MIT/X11 software license, see the accompanying // Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php. // file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "SortedTransactionsModel.h" #include "SortedTransactionsModel.h"
#include "TransactionsListModel.h" #include "TransactionsListModel.h"
#include "TransactionsModel.h" #include "TransactionsModel.h"

View file

@ -2,7 +2,6 @@
// Distributed under the MIT/X11 software license, see the accompanying // Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php. // file COPYING or http://www.opensource.org/licenses/mit-license.php.
#pragma once #pragma once
#include <QSortFilterProxyModel> #include <QSortFilterProxyModel>

View file

@ -2,7 +2,6 @@
// Distributed under the MIT/X11 software license, see the accompanying // Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php. // file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <QDateTime> #include <QDateTime>
#include <QFont> #include <QFont>
#include <QMetaEnum> #include <QMetaEnum>

View file

@ -2,7 +2,6 @@
// Distributed under the MIT/X11 software license, see the accompanying // Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php. // file COPYING or http://www.opensource.org/licenses/mit-license.php.
#pragma once #pragma once
#include <QAbstractItemModel> #include <QAbstractItemModel>

View file

@ -2,7 +2,6 @@
// Distributed under the MIT/X11 software license, see the accompanying // Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php. // file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <QApplication> #include <QApplication>
#include <QClipboard> #include <QClipboard>

View file

@ -2,7 +2,6 @@
// Distributed under the MIT/X11 software license, see the accompanying // Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php. // file COPYING or http://www.opensource.org/licenses/mit-license.php.
#pragma once #pragma once
#include <QFrame> #include <QFrame>

View file

@ -2,7 +2,6 @@
// Distributed under the MIT/X11 software license, see the accompanying // Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php. // file COPYING or http://www.opensource.org/licenses/mit-license.php.
#pragma once #pragma once
#include <QEvent> #include <QEvent>

View file

@ -72,60 +72,6 @@
<property name="topMargin"> <property name="topMargin">
<number>5</number> <number>5</number>
</property> </property>
<item row="1" column="1">
<widget class="QSlider" name="m_mixinSlider">
<property name="maximumSize">
<size>
<width>200</width>
<height>16777215</height>
</size>
</property>
<property name="maximum">
<number>10</number>
</property>
<property name="pageStep">
<number>1</number>
</property>
<property name="value">
<number>2</number>
</property>
<property name="tracking">
<bool>false</bool>
</property>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="tickPosition">
<enum>QSlider::TicksBothSides</enum>
</property>
<property name="tickInterval">
<number>1</number>
</property>
</widget>
</item>
<item row="1" column="3">
<spacer name="horizontalSpacer">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::Expanding</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>298</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item row="0" column="0">
<widget class="QLabel" name="label_6">
<property name="text">
<string>PaymentID:</string>
</property>
</widget>
</item>
<item row="1" column="2"> <item row="1" column="2">
<widget class="QLineEdit" name="m_mixinEdit"> <widget class="QLineEdit" name="m_mixinEdit">
<property name="maximumSize"> <property name="maximumSize">
@ -158,6 +104,60 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="1" column="3">
<spacer name="horizontalSpacer">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::Expanding</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>298</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item row="0" column="0">
<widget class="QLabel" name="label_6">
<property name="text">
<string>PaymentID:</string>
</property>
</widget>
</item>
<item row="1" column="1">
<widget class="QSlider" name="m_mixinSlider">
<property name="maximumSize">
<size>
<width>200</width>
<height>16777215</height>
</size>
</property>
<property name="maximum">
<number>10</number>
</property>
<property name="pageStep">
<number>1</number>
</property>
<property name="value">
<number>1</number>
</property>
<property name="tracking">
<bool>false</bool>
</property>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="tickPosition">
<enum>QSlider::TicksBothSides</enum>
</property>
<property name="tickInterval">
<number>1</number>
</property>
</widget>
</item>
</layout> </layout>
</item> </item>
<item> <item>

View file

@ -2,7 +2,6 @@
// Distributed under the MIT/X11 software license, see the accompanying // Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php. // file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <QApplication> #include <QApplication>
#include <QCommandLineParser> #include <QCommandLineParser>
#include <QLocale> #include <QLocale>