Fabcoin Core  0.16.2
P2P Digital Currency
transactionview.cpp
Go to the documentation of this file.
1 // Copyright (c) 2011-2017 The Bitcoin Core developers
2 // Distributed under the MIT software license, see the accompanying
3 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
4 
5 #include <transactionview.h>
6 
7 #include <addresstablemodel.h>
8 #include <fabcoinunits.h>
9 #include <csvmodelwriter.h>
10 #include <editaddressdialog.h>
11 #include <guiutil.h>
12 #include <optionsmodel.h>
13 #include <platformstyle.h>
14 #include <sendcoinsdialog.h>
15 #include <transactiondescdialog.h>
16 #include <transactionfilterproxy.h>
17 #include <transactionrecord.h>
18 #include <transactiontablemodel.h>
19 #include <walletmodel.h>
20 #include <styleSheet.h>
21 
22 #include <ui_interface.h>
23 
24 #include <QComboBox>
25 #include <QDateTimeEdit>
26 #include <QDesktopServices>
27 #include <QDoubleValidator>
28 #include <QHBoxLayout>
29 #include <QHeaderView>
30 #include <QLabel>
31 #include <QLineEdit>
32 #include <QMenu>
33 #include <QPoint>
34 #include <QScrollBar>
35 #include <QSignalMapper>
36 #include <QTableView>
37 #include <QTimer>
38 #include <QUrl>
39 #include <QVBoxLayout>
40 
41 TransactionView::TransactionView(const PlatformStyle *platformStyle, QWidget *parent) :
42  QWidget(parent), model(0), transactionProxyModel(0),
43  transactionView(0), abandonAction(0), bumpFeeAction(0), columnResizingFixer(0)
44 {
45  // Build filter row
46  setContentsMargins(0,0,0,0);
47 
48  QHBoxLayout *hlayout = new QHBoxLayout();
49  hlayout->setContentsMargins(6,6,6,6);
50  hlayout->setSpacing(10);
51  hlayout->addSpacing(STATUS_COLUMN_WIDTH);
52 
53  watchOnlyWidget = new QComboBox(this);
54  watchOnlyWidget->setObjectName("watchOnlyWidget");
57  watchOnlyWidget->addItem(platformStyle->TableColorIcon(":/icons/eye_minus", PlatformStyle::Normal), "", TransactionFilterProxy::WatchOnlyFilter_No);
58  hlayout->addWidget(watchOnlyWidget);
59 
60  dateWidget = new QComboBox(this);
61  dateWidget->setFixedWidth(DATE_COLUMN_WIDTH -10);
62 
63  dateWidget->addItem(tr("All"), All);
64  dateWidget->addItem(tr("Today"), Today);
65  dateWidget->addItem(tr("This week"), ThisWeek);
66  dateWidget->addItem(tr("This month"), ThisMonth);
67  dateWidget->addItem(tr("Last month"), LastMonth);
68  dateWidget->addItem(tr("This year"), ThisYear);
69  dateWidget->addItem(tr("Range..."), Range);
70  hlayout->addWidget(dateWidget);
71 
72  typeWidget = new QComboBox(this);
73  typeWidget->setFixedWidth(TYPE_COLUMN_WIDTH -10);
74 
75  typeWidget->addItem(tr("All"), TransactionFilterProxy::ALL_TYPES);
85 
86  hlayout->addWidget(typeWidget);
87 
88  addressWidget = new QLineEdit(this);
89 #if QT_VERSION >= 0x040700
90  addressWidget->setPlaceholderText(tr("Enter address or label to search"));
91 #endif
92  hlayout->addWidget(addressWidget);
93 
94  amountWidget = new QLineEdit(this);
95 #if QT_VERSION >= 0x040700
96  amountWidget->setPlaceholderText(tr("Min amount"));
97 #endif
98  amountWidget->setFixedWidth(AMOUNT_MINIMUM_COLUMN_WIDTH -10);
99  amountWidget->setValidator(new QDoubleValidator(0, 1e20, 8, this));
100  hlayout->addWidget(amountWidget);
101 
102  // Delay before filtering transactions in ms
103  static const int input_filter_delay = 200;
104 
105  QTimer* amount_typing_delay = new QTimer(this);
106  amount_typing_delay->setSingleShot(true);
107  amount_typing_delay->setInterval(input_filter_delay);
108 
109  QTimer* prefix_typing_delay = new QTimer(this);
110  prefix_typing_delay->setSingleShot(true);
111  prefix_typing_delay->setInterval(input_filter_delay);
112 
113  QVBoxLayout *vlayout = new QVBoxLayout(this);
114  vlayout->setContentsMargins(0,0,0,0);
115  vlayout->setSpacing(0);
116 
117  QTableView *view = new QTableView(this);
118  vlayout->addLayout(hlayout);
119  vlayout->addWidget(createDateRangeWidget());
120  vlayout->addWidget(view);
121  vlayout->setSpacing(0);
122  int width = view->verticalScrollBar()->sizeHint().width();
123  // Cover scroll bar width with spacing
124  if (platformStyle->getUseExtraSpacing()) {
125  hlayout->addSpacing(width+2);
126  } else {
127  hlayout->addSpacing(width);
128  }
129  // Always show scroll bar
130  view->setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOn);
131  view->setTabKeyNavigation(false);
132  view->setContextMenuPolicy(Qt::CustomContextMenu);
133 
134  view->installEventFilter(this);
135 
136  transactionView = view;
137  transactionView->setObjectName("transactionView");
138 
139  // Actions
140  abandonAction = new QAction(tr("Abandon transaction"), this);
141  bumpFeeAction = new QAction(tr("Increase transaction fee"), this);
142  bumpFeeAction->setObjectName("bumpFeeAction");
143  QAction *copyAddressAction = new QAction(tr("Copy address"), this);
144  QAction *copyLabelAction = new QAction(tr("Copy label"), this);
145  QAction *copyAmountAction = new QAction(tr("Copy amount"), this);
146  QAction *copyTxIDAction = new QAction(tr("Copy transaction ID"), this);
147  QAction *copyTxHexAction = new QAction(tr("Copy raw transaction"), this);
148  QAction *copyTxPlainText = new QAction(tr("Copy full transaction details"), this);
149  QAction *editLabelAction = new QAction(tr("Edit label"), this);
150  QAction *showDetailsAction = new QAction(tr("Show transaction details"), this);
151 
152  contextMenu = new QMenu(this);
153  contextMenu->setObjectName("contextMenu");
154  contextMenu->addAction(copyAddressAction);
155  contextMenu->addAction(copyLabelAction);
156  contextMenu->addAction(copyAmountAction);
157  contextMenu->addAction(copyTxIDAction);
158  contextMenu->addAction(copyTxHexAction);
159  contextMenu->addAction(copyTxPlainText);
160  contextMenu->addAction(showDetailsAction);
161  contextMenu->addSeparator();
162  contextMenu->addAction(bumpFeeAction);
163  contextMenu->addAction(abandonAction);
164  contextMenu->addAction(editLabelAction);
165 
166  mapperThirdPartyTxUrls = new QSignalMapper(this);
167 
168  // Connect actions
169  connect(mapperThirdPartyTxUrls, SIGNAL(mapped(QString)), this, SLOT(openThirdPartyTxUrl(QString)));
170 
171  connect(dateWidget, SIGNAL(activated(int)), this, SLOT(chooseDate(int)));
172  connect(typeWidget, SIGNAL(activated(int)), this, SLOT(chooseType(int)));
173  connect(watchOnlyWidget, SIGNAL(activated(int)), this, SLOT(chooseWatchonly(int)));
174  connect(amountWidget, SIGNAL(textChanged(QString)), amount_typing_delay, SLOT(start()));
175  connect(amount_typing_delay, SIGNAL(timeout()), this, SLOT(changedAmount()));
176  connect(addressWidget, SIGNAL(textChanged(QString)), prefix_typing_delay, SLOT(start()));
177  connect(prefix_typing_delay, SIGNAL(timeout()), this, SLOT(changedPrefix()));
178 
179  connect(view, SIGNAL(doubleClicked(QModelIndex)), this, SIGNAL(doubleClicked(QModelIndex)));
180  connect(view, SIGNAL(customContextMenuRequested(QPoint)), this, SLOT(contextualMenu(QPoint)));
181 
182  connect(bumpFeeAction, SIGNAL(triggered()), this, SLOT(bumpFee()));
183  connect(abandonAction, SIGNAL(triggered()), this, SLOT(abandonTx()));
184  connect(copyAddressAction, SIGNAL(triggered()), this, SLOT(copyAddress()));
185  connect(copyLabelAction, SIGNAL(triggered()), this, SLOT(copyLabel()));
186  connect(copyAmountAction, SIGNAL(triggered()), this, SLOT(copyAmount()));
187  connect(copyTxIDAction, SIGNAL(triggered()), this, SLOT(copyTxID()));
188  connect(copyTxHexAction, SIGNAL(triggered()), this, SLOT(copyTxHex()));
189  connect(copyTxPlainText, SIGNAL(triggered()), this, SLOT(copyTxPlainText()));
190  connect(editLabelAction, SIGNAL(triggered()), this, SLOT(editLabel()));
191  connect(showDetailsAction, SIGNAL(triggered()), this, SLOT(showDetails()));
192 }
193 
195 {
196  this->model = _model;
197  if(_model)
198  {
200  transactionProxyModel->setSourceModel(_model->getTransactionTableModel());
201  transactionProxyModel->setDynamicSortFilter(true);
202  transactionProxyModel->setSortCaseSensitivity(Qt::CaseInsensitive);
203  transactionProxyModel->setFilterCaseSensitivity(Qt::CaseInsensitive);
204 
205  transactionProxyModel->setSortRole(Qt::EditRole);
206 
207  transactionView->setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
209  transactionView->setAlternatingRowColors(true);
210  transactionView->setSelectionBehavior(QAbstractItemView::SelectRows);
211  transactionView->setSelectionMode(QAbstractItemView::ExtendedSelection);
212  transactionView->setSortingEnabled(true);
213  transactionView->sortByColumn(TransactionTableModel::Date, Qt::DescendingOrder);
214  transactionView->verticalHeader()->hide();
215 
221 
223 
224  if (_model->getOptionsModel())
225  {
226  // Add third party transaction URLs to context menu
227  QStringList listUrls = _model->getOptionsModel()->getThirdPartyTxUrls().split("|", QString::SkipEmptyParts);
228  for (int i = 0; i < listUrls.size(); ++i)
229  {
230  QString host = QUrl(listUrls[i].trimmed(), QUrl::StrictMode).host();
231  if (!host.isEmpty())
232  {
233  QAction *thirdPartyTxUrlAction = new QAction(host, this); // use host as menu item label
234  if (i == 0)
235  contextMenu->addSeparator();
236  contextMenu->addAction(thirdPartyTxUrlAction);
237  connect(thirdPartyTxUrlAction, SIGNAL(triggered()), mapperThirdPartyTxUrls, SLOT(map()));
238  mapperThirdPartyTxUrls->setMapping(thirdPartyTxUrlAction, listUrls[i].trimmed());
239  }
240  }
241  }
242 
243  // show/hide column Watch-only
245 
246  // Watch-only signal
247  connect(_model, SIGNAL(notifyWatchonlyChanged(bool)), this, SLOT(updateWatchOnlyColumn(bool)));
248  }
249 }
250 
252 {
254  return;
255  QDate current = QDate::currentDate();
256  dateRangeWidget->setVisible(false);
257  switch(dateWidget->itemData(idx).toInt())
258  {
259  case All:
263  break;
264  case Today:
266  QDateTime(current),
268  break;
269  case ThisWeek: {
270  // Find last Monday
271  QDate startOfWeek = current.addDays(-(current.dayOfWeek()-1));
273  QDateTime(startOfWeek),
275 
276  } break;
277  case ThisMonth:
279  QDateTime(QDate(current.year(), current.month(), 1)),
281  break;
282  case LastMonth:
284  QDateTime(QDate(current.year(), current.month(), 1).addMonths(-1)),
285  QDateTime(QDate(current.year(), current.month(), 1)));
286  break;
287  case ThisYear:
289  QDateTime(QDate(current.year(), 1, 1)),
291  break;
292  case Range:
293  dateRangeWidget->setVisible(true);
295  break;
296  }
297 }
298 
300 {
302  return;
304  typeWidget->itemData(idx).toInt());
305 }
306 
308 {
310  return;
313 }
314 
316 {
318  return;
320 }
321 
323 {
325  return;
326  CAmount amount_parsed = 0;
327  if (FabcoinUnits::parse(model->getOptionsModel()->getDisplayUnit(), amountWidget->text(), &amount_parsed)) {
328  transactionProxyModel->setMinAmount(amount_parsed);
329  }
330  else
331  {
333  }
334 }
335 
337 {
338  if (!model || !model->getOptionsModel()) {
339  return;
340  }
341 
342  // CSV is currently the only supported format
343  QString filename = GUIUtil::getSaveFileName(this,
344  tr("Export Transaction History"), QString(),
345  tr("Comma separated file (*.csv)"), nullptr);
346 
347  if (filename.isNull())
348  return;
349 
350  CSVModelWriter writer(filename);
351 
352  // name, column, role
354  writer.addColumn(tr("Confirmed"), 0, TransactionTableModel::ConfirmedRole);
355  if (model && model->haveWatchOnly())
356  writer.addColumn(tr("Watch-only"), TransactionTableModel::Watchonly);
357  writer.addColumn(tr("Date"), 0, TransactionTableModel::DateRole);
358  writer.addColumn(tr("Type"), TransactionTableModel::Type, Qt::EditRole);
359  writer.addColumn(tr("Label"), 0, TransactionTableModel::LabelRole);
360  writer.addColumn(tr("Address"), 0, TransactionTableModel::AddressRole);
362  writer.addColumn(tr("ID"), 0, TransactionTableModel::TxIDRole);
363 
364  if(!writer.write()) {
365  Q_EMIT message(tr("Exporting Failed"), tr("There was an error trying to save the transaction history to %1.").arg(filename),
367  }
368  else {
369  Q_EMIT message(tr("Exporting Successful"), tr("The transaction history was successfully saved to %1.").arg(filename),
371  }
372 }
373 
374 void TransactionView::contextualMenu(const QPoint &point)
375 {
376  QModelIndex index = transactionView->indexAt(point);
377  QModelIndexList selection = transactionView->selectionModel()->selectedRows(0);
378  if (selection.empty())
379  return;
380 
381  // check if transaction can be abandoned, disable context menu action in case it doesn't
382  uint256 hash;
383  hash.SetHex(selection.at(0).data(TransactionTableModel::TxHashRole).toString().toStdString());
384  abandonAction->setEnabled(model->transactionCanBeAbandoned(hash));
385  bumpFeeAction->setEnabled(model->transactionCanBeBumped(hash));
386 
387  if(index.isValid())
388  {
389  contextMenu->popup(transactionView->viewport()->mapToGlobal(point));
390  }
391 }
392 
394 {
395  if(!transactionView || !transactionView->selectionModel())
396  return;
397  QModelIndexList selection = transactionView->selectionModel()->selectedRows(0);
398 
399  // get the hash from the TxHashRole (QVariant / QString)
400  uint256 hash;
401  QString hashQStr = selection.at(0).data(TransactionTableModel::TxHashRole).toString();
402  hash.SetHex(hashQStr.toStdString());
403 
404  // Abandon the wallet transaction over the walletModel
405  model->abandonTransaction(hash);
406 
407  // Update the table
409 }
410 
412 {
413  if(!transactionView || !transactionView->selectionModel())
414  return;
415  QModelIndexList selection = transactionView->selectionModel()->selectedRows(0);
416 
417  // get the hash from the TxHashRole (QVariant / QString)
418  uint256 hash;
419  QString hashQStr = selection.at(0).data(TransactionTableModel::TxHashRole).toString();
420  hash.SetHex(hashQStr.toStdString());
421 
422  // Bump tx fee over the walletModel
423  if (model->bumpFee(hash)) {
424  // Update the table
426  }
427 }
428 
430 {
432 }
433 
435 {
437 }
438 
440 {
442 }
443 
445 {
447 }
448 
450 {
452 }
453 
455 {
457 }
458 
460 {
461  if(!transactionView->selectionModel() ||!model)
462  return;
463  QModelIndexList selection = transactionView->selectionModel()->selectedRows();
464  if(!selection.isEmpty())
465  {
466  AddressTableModel *addressBook = model->getAddressTableModel();
467  if(!addressBook)
468  return;
469  QString address = selection.at(0).data(TransactionTableModel::AddressRole).toString();
470  if(address.isEmpty())
471  {
472  // If this transaction has no associated address, exit
473  return;
474  }
475  // Is address in address book? Address book can miss address when a transaction is
476  // sent from outside the UI.
477  int idx = addressBook->lookupAddress(address);
478  if(idx != -1)
479  {
480  // Edit sending / receiving address
481  QModelIndex modelIdx = addressBook->index(idx, 0, QModelIndex());
482  // Determine type of address, launch appropriate editor dialog type
483  QString type = modelIdx.data(AddressTableModel::TypeRole).toString();
484 
485  EditAddressDialog dlg(
489  dlg.setModel(addressBook);
490  dlg.loadRow(idx);
491  dlg.exec();
492  }
493  else
494  {
495  // Add sending address
497  this);
498  dlg.setModel(addressBook);
499  dlg.setAddress(address);
500  dlg.exec();
501  }
502  }
503 }
504 
506 {
507  if(!transactionView->selectionModel())
508  return;
509  QModelIndexList selection = transactionView->selectionModel()->selectedRows();
510  if(!selection.isEmpty())
511  {
512  TransactionDescDialog *dlg = new TransactionDescDialog(selection.at(0));
513  dlg->setAttribute(Qt::WA_DeleteOnClose);
514  dlg->show();
515  }
516 }
517 
519 {
520  if(!transactionView || !transactionView->selectionModel())
521  return;
522  QModelIndexList selection = transactionView->selectionModel()->selectedRows(0);
523  if(!selection.isEmpty())
524  QDesktopServices::openUrl(QUrl::fromUserInput(url.replace("%s", selection.at(0).data(TransactionTableModel::TxHashRole).toString())));
525 }
526 
528 {
529  dateRangeWidget = new QFrame();
530  dateRangeWidget->setFrameStyle(QFrame::Panel | QFrame::Raised);
531  dateRangeWidget->setContentsMargins(1,1,1,8);
532  QHBoxLayout *layout = new QHBoxLayout(dateRangeWidget);
533  layout->setContentsMargins(0,0,0,0);
534  layout->addSpacing(23);
535  layout->addWidget(new QLabel(tr("Range:")));
536 
537  dateFrom = new QDateTimeEdit(this);
538  dateFrom->setDisplayFormat("dd/MM/yy");
539  dateFrom->setCalendarPopup(true);
540  dateFrom->setMinimumWidth(100);
541  dateFrom->setDate(QDate::currentDate().addDays(-7));
542  layout->addWidget(dateFrom);
543  layout->addWidget(new QLabel(tr("to")));
544 
545  dateTo = new QDateTimeEdit(this);
546  dateTo->setDisplayFormat("dd/MM/yy");
547  dateTo->setCalendarPopup(true);
548  dateTo->setMinimumWidth(100);
549  dateTo->setDate(QDate::currentDate());
550  layout->addWidget(dateTo);
551  layout->addStretch();
552 
553  // Hide by default
554  dateRangeWidget->setVisible(false);
555 
556  // Notify on change
557  connect(dateFrom, SIGNAL(dateChanged(QDate)), this, SLOT(dateRangeChanged()));
558  connect(dateTo, SIGNAL(dateChanged(QDate)), this, SLOT(dateRangeChanged()));
559 
560  return dateRangeWidget;
561 }
562 
564 {
566  return;
568  QDateTime(dateFrom->date()),
569  QDateTime(dateTo->date()).addDays(1));
570 }
571 
572 void TransactionView::focusTransaction(const QModelIndex &idx)
573 {
575  return;
576  QModelIndex targetIdx = transactionProxyModel->mapFromSource(idx);
577  transactionView->scrollTo(targetIdx);
578  transactionView->setCurrentIndex(targetIdx);
579  transactionView->setFocus();
580 }
581 
582 // We override the virtual resizeEvent of the QWidget to adjust tables column
583 // sizes as the tables width is proportional to the dialogs width.
584 void TransactionView::resizeEvent(QResizeEvent* event)
585 {
586  QWidget::resizeEvent(event);
588 }
589 
590 // Need to override default Ctrl+C action for amount as default behaviour is just to copy DisplayRole text
591 bool TransactionView::eventFilter(QObject *obj, QEvent *event)
592 {
593  if (event->type() == QEvent::KeyPress)
594  {
595  QKeyEvent *ke = static_cast<QKeyEvent *>(event);
596  if (ke->key() == Qt::Key_C && ke->modifiers().testFlag(Qt::ControlModifier))
597  {
599  return true;
600  }
601  }
602  return QWidget::eventFilter(obj, event);
603 }
604 
605 // show/hide column Watch-only
606 void TransactionView::updateWatchOnlyColumn(bool fHaveWatchOnly)
607 {
608  watchOnlyWidget->setVisible(fHaveWatchOnly);
609  transactionView->setColumnHidden(TransactionTableModel::Watchonly, !fHaveWatchOnly);
610 }
uint8_t data[WIDTH]
Definition: uint256.h:29
TransactionView(const PlatformStyle *platformStyle, QWidget *parent=0)
bool eventFilter(QObject *obj, QEvent *event)
void addColumn(const QString &title, int column, int role=Qt::EditRole)
QModelIndex index(int row, int column, const QModelIndex &parent) const
void openThirdPartyTxUrl(QString url)
bool abandonTransaction(uint256 hash) const
QWidget * createDateRangeWidget()
Dialog showing transaction details.
int lookupAddress(const QString &address) const
QAction * abandonAction
bool bumpFee(uint256 hash)
void updateTransaction(const QString &hash, int status, bool showTransaction)
void focusTransaction(const QModelIndex &)
QIcon TableColorIcon(const QString &resourcename, TableColorType type) const
TransactionRecord * index(int idx)
void setTypeFilter(quint32 modes)
static bool parse(int unit, const QString &value, CAmount *val_out)
Parse string to coin amount.
QTableView * transactionView
AddressTableModel * getAddressTableModel()
Export a Qt table model to a CSV file.
Transaction data, hex-encoded.
TransactionTableModel * parent
bool transactionCanBeAbandoned(uint256 hash) const
void chooseWatchonly(int idx)
void setAddressPrefix(const QString &addrPrefix)
static quint32 TYPE(int type)
int64_t CAmount
Amount in lius (Can be negative)
Definition: amount.h:15
QDateTimeEdit * dateTo
const char * url
Definition: rpcconsole.cpp:59
void setModel(AddressTableModel *model)
static const QDateTime MIN_DATE
Earliest date that can be represented (far in the past)
virtual void resizeEvent(QResizeEvent *event)
static const QDateTime MAX_DATE
Last date that can be represented (far in the future)
Whole transaction as plain text.
QSignalMapper * mapperThirdPartyTxUrls
void setDateRange(const QDateTime &from, const QDateTime &to)
void message(const QString &title, const QString &message, unsigned int style)
Fired when a message should be reported to the user.
Makes a QTableView last column feel as if it was being resized from its left border.
Definition: guiutil.h:158
Date and time this transaction was created.
void updateWatchOnlyColumn(bool fHaveWatchOnly)
TransactionTableModel * getTransactionTableModel()
int getDisplayUnit()
Definition: optionsmodel.h:70
bool transactionCanBeBumped(uint256 hash) const
void setWatchOnlyFilter(WatchOnlyFilter filter)
Qt model of the address book in the core.
void setMinAmount(const CAmount &minimum)
TransactionFilterProxy * transactionProxyModel
QComboBox * watchOnlyWidget
256-bit opaque blob.
Definition: uint256.h:132
void chooseDate(int idx)
static QString getAmountColumnTitle(int unit)
Gets title for amount column including current display unit if optionsModel reference available */...
void setModel(const QAbstractItemModel *model)
void setModel(WalletModel *model)
QLineEdit * amountWidget
PlatformStyle::TableColorType type
Definition: rpcconsole.cpp:61
QComboBox * typeWidget
Filter the transaction list according to pre-specified rules.
void setAddress(const QString &address)
Interface to Fabcoin wallet from Qt view code.
Definition: walletmodel.h:103
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:309
static const QString Receive
Specifies receive address.
Dialog for editing an address and associated information.
QFrame * dateRangeWidget
bool haveWatchOnly() const
Label of address related to transaction.
static const quint32 ALL_TYPES
Type filter bit field (all types)
QLineEdit * addressWidget
void contextualMenu(const QPoint &)
struct evm_uint160be address(struct evm_env *env)
Definition: capi.c:13
Formatted amount, without brackets when unconfirmed.
bool getUseExtraSpacing() const
Definition: platformstyle.h:22
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:277
void chooseType(int idx)
QAction * bumpFeeAction
GUIUtil::TableViewLastColumnResizingFixer * columnResizingFixer
QDateTimeEdit * dateFrom
void SetHex(const char *psz)
Definition: uint256.cpp:39
bool write()
Perform export of the model to CSV.
void doubleClicked(const QModelIndex &)
Type of address (Send or Receive)
WalletModel * model
OptionsModel * getOptionsModel()
Predefined combinations for certain default usage cases.
Definition: ui_interface.h:69
QComboBox * dateWidget
QString getThirdPartyTxUrls()
Definition: optionsmodel.h:71