SendFrame::SendFrame(QWidget* _parent) : QFrame(_parent), m_ui(new Ui::SendFrame), m_addressProvider(new AddressProvider(this)) { m_ui->setupUi(this); clearAllClicked(); mixinValueChanged(m_ui->m_mixinSlider->value()); remote_node_fee = 0; connect(&WalletAdapter::instance(), &WalletAdapter::walletSendTransactionCompletedSignal, this, &SendFrame::sendTransactionCompleted, Qt::QueuedConnection); connect(&WalletAdapter::instance(), &WalletAdapter::walletActualBalanceUpdatedSignal, this, &SendFrame::walletActualBalanceUpdated, Qt::QueuedConnection); connect(&WalletAdapter::instance(), &WalletAdapter::walletCloseCompletedSignal, this, &SendFrame::reset); m_ui->m_tickerLabel->setText(CurrencyAdapter::instance().getCurrencyTicker().toUpper()); m_ui->m_feeSpin->setSuffix(" " + CurrencyAdapter::instance().getCurrencyTicker().toUpper()); m_ui->m_donateSpin->setSuffix(" " + CurrencyAdapter::instance().getCurrencyTicker().toUpper()); m_ui->m_feeSpin->setMinimum(CurrencyAdapter::instance().formatAmount(CurrencyAdapter::instance().getMinimumFee()).toDouble()); m_ui->m_remote_label->hide(); QRegExp hexMatcher("^[0-9A-F]{64}$", Qt::CaseInsensitive); QValidator *validator = new QRegExpValidator(hexMatcher, this); m_ui->m_paymentIdEdit->setValidator(validator); QString connection = Settings::instance().getConnection(); if(connection.compare("remote") == 0) { QString remoteNodeUrl = Settings::instance().getCurrentRemoteNode() + "/feeaddress"; m_addressProvider->getAddress(remoteNodeUrl); connect(m_addressProvider, &AddressProvider::addressFoundSignal, this, &SendFrame::onAddressFound, Qt::QueuedConnection); } }
void Foam::shapeToCell::combine(topoSet& set, const bool add) const { if (type_ == "splitHex") { for (label cellI = 0; cellI < mesh_.nCells(); cellI++) { cellFeatures superCell(mesh_, featureCos, cellI); if (hexMatcher().isA(superCell.faces())) { addOrDelete(set, cellI, add); } } } else { const cellModel& wantedModel = *(cellModeller::lookup(type_)); const cellShapeList& cellShapes = mesh_.cellShapes(); forAll(cellShapes, cellI) { if (cellShapes[cellI].model() == wantedModel) { addOrDelete(set, cellI, add); } } } }