Dash Core Source Documentation (0.16.0.1)
Find detailed information regarding the Dash Core source code.
transactionview.cpp
Go to the documentation of this file.
62 watchOnlyWidget->addItem(GUIUtil::getIcon("eye_plus"), "", TransactionFilterProxy::WatchOnlyFilter_Yes);
63 watchOnlyWidget->addItem(GUIUtil::getIcon("eye_minus"), "", TransactionFilterProxy::WatchOnlyFilter_No);
82 typeWidget->addItem(tr("Received with"), TransactionFilterProxy::TYPE(TransactionRecord::RecvWithAddress) |
84 typeWidget->addItem(tr("Sent to"), TransactionFilterProxy::TYPE(TransactionRecord::SendToAddress) |
86 typeWidget->addItem("PrivateSend", TransactionFilterProxy::TYPE(TransactionRecord::PrivateSend));
87 typeWidget->addItem(tr("PrivateSend Make Collateral Inputs"), TransactionFilterProxy::TYPE(TransactionRecord::PrivateSendMakeCollaterals));
88 typeWidget->addItem(tr("PrivateSend Create Denominations"), TransactionFilterProxy::TYPE(TransactionRecord::PrivateSendCreateDenominations));
89 typeWidget->addItem(tr("PrivateSend Denominate"), TransactionFilterProxy::TYPE(TransactionRecord::PrivateSendDenominate));
90 typeWidget->addItem(tr("PrivateSend Collateral Payment"), TransactionFilterProxy::TYPE(TransactionRecord::PrivateSendCollateralPayment));
91 typeWidget->addItem(tr("To yourself"), TransactionFilterProxy::TYPE(TransactionRecord::SendToSelf));
177 connect(mapperThirdPartyTxUrls, SIGNAL(mapped(QString)), this, SLOT(openThirdPartyTxUrl(QString)));
235 connect(transactionView->selectionModel(), SIGNAL(selectionChanged(QItemSelection, QItemSelection)), this, SLOT(computeSum()));
237 columnResizingFixer = new GUIUtil::TableViewLastColumnResizingFixer(transactionView, AMOUNT_MINIMUM_COLUMN_WIDTH, MINIMUM_COLUMN_WIDTH, this);
242 QStringList listUrls = _model->getOptionsModel()->getThirdPartyTxUrls().split("|", QString::SkipEmptyParts);
257 connect(_model->getOptionsModel(), SIGNAL(privateSendEnabledChanged()), this, SLOT(updatePrivateSendVisibility()));
360 // Replace "," by "." so BitcoinUnits::parse will not fail for users entering "," as decimal separator
364 if (BitcoinUnits::parse(model->getOptionsModel()->getDisplayUnit(), newAmount, &amount_parsed)) {
398 writer.addColumn(BitcoinUnits::getAmountColumnTitle(model->getOptionsModel()->getDisplayUnit()), 0, TransactionTableModel::FormattedAmountRole);
402 Q_EMIT message(tr("Exporting Failed"), tr("There was an error trying to save the transaction history to %1.").arg(filename),
406 Q_EMIT message(tr("Exporting Successful"), tr("The transaction history was successfully saved to %1.").arg(filename),
567 QString strAmount(BitcoinUnits::formatWithUnit(nDisplayUnit, amount, true, BitcoinUnits::separatorAlways));
568 if (amount < 0) strAmount = "<span style='" + GUIUtil::getThemedStyleQString(GUIUtil::ThemedStyle::TS_ERROR) + "'>" + strAmount + "</span>";
578 QDesktopServices::openUrl(QUrl::fromUserInput(url.replace("%s", selection.at(0).data(TransactionTableModel::TxHashRole).toString())));
600 dateFrom->setDate(QDate::fromString(settings.value("transactionDateFrom", defaultDateFrom).toString(), PERSISTENCE_DATE_FORMAT));
609 dateTo->setDate(QDate::fromString(settings.value("transactionDateTo", defaultDateTo).toString(), PERSISTENCE_DATE_FORMAT));
630 format.setForeground(QBrush(GUIUtil::getThemedQColor(GUIUtil::ThemedColor::DEFAULT), Qt::SolidPattern));
683 // Need to override default Ctrl+C action for amount as default behaviour is just to copy DisplayRole text
bool abandonTransaction(uint256 hash) const
Definition: walletmodel.cpp:801
void stretchColumnWidth(int column)
Definition: guiutil.cpp:813
TransactionView(QWidget *parent=0)
Definition: transactionview.cpp:46
void addColumn(const QString &title, int column, int role=Qt::EditRole)
Definition: csvmodelwriter.cpp:22
void openThirdPartyTxUrl(QString url)
Definition: transactionview.cpp:572
void setInfo(QString strWindowtitle, QString strQRCode, QString strTextInfo, QString strQRCodeTitle)
Definition: qrdialog.cpp:128
Definition: transactionview.h:44
QList< QModelIndex > getEntryData(QAbstractItemView *view, int column)
Return a field of the currently selected entry as a QString.
Definition: guiutil.cpp:514
QWidget * createDateRangeWidget()
Definition: transactionview.cpp:581
QModelIndex index(int row, int column, const QModelIndex &parent) const
Definition: addresstablemodel.cpp:324
int lookupAddress(const QString &address) const
Definition: addresstablemodel.cpp:443
Definition: transactionview.h:49
Definition: transactionview.h:48
QColor getThemedQColor(ThemedColor color)
Helper to get colors for various themes which can't be applied via css for some reason.
Definition: guiutil.cpp:204
void updateTransaction(const QString &hash, int status, bool showTransaction)
Definition: transactiontablemodel.cpp:280
void focusTransaction(const QModelIndex &)
Definition: transactionview.cpp:655
Definition: transactionview.h:46
Definition: transactionview.h:47
TransactionRecord * index(int idx)
Definition: transactiontablemodel.cpp:194
void setTypeFilter(quint32 modes)
Definition: transactionfilterproxy.cpp:78
static const char * PERSISTENCE_DATE_FORMAT
Date format for persistence.
Definition: transactionview.cpp:44
bool transactionCanBeAbandoned(uint256 hash) const
Definition: walletmodel.cpp:796
Definition: qrdialog.h:47
AddressTableModel * getAddressTableModel()
Definition: walletmodel.cpp:464
Transaction data, hex-encoded.
Definition: transactiontablemodel.h:65
static bool parse(int unit, const QString &value, CAmount *val_out)
Parse string to coin amount.
Definition: bitcoinunits.cpp:192
static QString getAmountColumnTitle(int unit)
Gets title for amount column including current display unit if optionsModel reference available */...
Definition: bitcoinunits.cpp:231
void setModel(AddressTableModel *model)
Definition: editaddressdialog.cpp:55
static const QDateTime MIN_DATE
Earliest date that can be represented (far in the past)
Definition: transactionfilterproxy.h:22
static const QDateTime MAX_DATE
Last date that can be represented (far in the future)
Definition: transactionfilterproxy.h:24
Whole transaction as plain text.
Definition: transactiontablemodel.h:67
QSignalMapper * mapperThirdPartyTxUrls
Definition: transactionview.h:72
void setDateRange(const QDateTime &from, const QDateTime &to)
Definition: transactionfilterproxy.cpp:64
void message(const QString &title, const QString &message, unsigned int style)
Fired when a message should be reported to the user.
void format(std::ostream &out, const char *fmt, const Args &... args)
Format list of arguments to the stream according to given format string.
Definition: tinyformat.h:967
Definition: ui_interface.h:23
QIcon getIcon(const QString &strIcon, const ThemedColor color, const ThemedColor colorAlternative, const QString &strIconPath)
Helper to get an icon colorized with the given color (replaces black) and colorAlternative (replaces ...
Definition: guiutil.cpp:216
Is transaction confirmed?
Definition: transactiontablemodel.h:69
Makes a QTableView last column feel as if it was being resized from its left border.
Definition: guiutil.h:221
Date and time this transaction was created.
Definition: transactiontablemodel.h:45
void updateWatchOnlyColumn(bool fHaveWatchOnly)
Definition: transactionview.cpp:707
TransactionTableModel * getTransactionTableModel()
Definition: walletmodel.cpp:469
Definition: ui_interface.h:72
bool eventFilter(QObject *obj, QEvent *event) override
Definition: transactionview.cpp:684
void setWatchOnlyFilter(WatchOnlyFilter filter)
Definition: transactionfilterproxy.cpp:90
void updateCalendarWidgets()
Definition: transactionview.cpp:626
void setMinAmount(const CAmount &minimum)
Definition: transactionfilterproxy.cpp:84
TransactionFilterProxy * transactionProxyModel
Definition: transactionview.h:63
bool fEnablePrivateSend
Definition: privatesend-client.h:213
static const quint32 COMMON_TYPES
Type filter bit field (all types but Darksend-SPAM)
Definition: transactionfilterproxy.h:28
Definition: transactionrecord.h:85
Definition: transactionview.h:43
void setModel(const QAbstractItemModel *model)
Definition: csvmodelwriter.cpp:17
Interface from Qt to configuration data structure for Bitcoin client.
Definition: optionsmodel.h:25
Filter the transaction list according to pre-specified rules.
Definition: transactionfilterproxy.h:14
void setAddress(const QString &address)
Definition: editaddressdialog.cpp:143
QString getSaveFileName(QWidget *parent, const QString &caption, const QString &dir, const QString &filter, QString *selectedSuffixOut)
Get save filename, mimics QFileDialog::getSaveFileName, except that it appends a default suffix when ...
Definition: guiutil.cpp:521
virtual void resizeEvent(QResizeEvent *event) override
Definition: transactionview.cpp:669
Dialog for editing an address and associated information.
Definition: editaddressdialog.h:22
QVariant data(const QModelIndex &index, int role) const
Definition: addresstablemodel.cpp:192
QString getThemedStyleQString(ThemedStyle style)
Helper to get css style strings which are injected into rich text through qt.
Definition: guiutil.cpp:210
void updatePrivateSendVisibility()
Definition: transactionview.cpp:713
Label of address related to transaction.
Definition: transactiontablemodel.h:57
static const quint32 ALL_TYPES
Type filter bit field (all types)
Definition: transactionfilterproxy.h:26
Definition: transactionview.h:45
void setSearchString(const QString &)
Definition: transactionfilterproxy.cpp:71
static QString formatWithUnit(int unit, const CAmount &amount, bool plussign=false, SeparatorStyle separators=separatorStandard)
Format as string (with unit)
Definition: bitcoinunits.cpp:162
void contextualMenu(const QPoint &)
Definition: transactionview.cpp:411
Formatted amount, without brackets when unconfirmed.
Definition: transactiontablemodel.h:71
void copyEntryData(QAbstractItemView *view, int column, int role)
Copy a field of the currently selected entry of a view to the clipboard.
Definition: guiutil.cpp:501
GUIUtil::TableViewLastColumnResizingFixer * columnResizingFixer
Definition: transactionview.h:82
void doubleClicked(const QModelIndex &)
Definition: bitcoinunits.h:70
Predefined combinations for certain default usage cases.
Definition: ui_interface.h:70