#include <QInputDialog>
#include <QMessageBox>
-#include "config-feather.h"
#include "constants.h"
#include "dialog/BalanceDialog.h"
#include "dialog/DebugInfoDialog.h"
#include "utils/AsyncTask.h"
#include "utils/ColorScheme.h"
#include "utils/Icons.h"
-#include "utils/NetworkManager.h"
-#include "utils/os/tails.h"
#include "utils/SemanticVersion.h"
#include "utils/TorManager.h"
#include "utils/Updater.h"
ui->tabWidget->setCurrentIndex(Tabs::HISTORY);
}
-void MainWindow::showSendTab() {
- this->raise();
- ui->tabWidget->setCurrentIndex(Tabs::SEND);
-}
-
void MainWindow::fillSendTab(const QString &address, const QString &description) {
m_sendWidget->fill(address, description);
ui->tabWidget->setCurrentIndex(Tabs::SEND);
}
}
-void MainWindow::onExportHistoryCSV(bool checked) {
+void MainWindow::onExportHistoryCSV() {
if (m_wallet == nullptr)
return;
QString fn = QFileDialog::getSaveFileName(this, "Save CSV file", QDir::homePath(), "CSV (*.csv)");
QMessageBox::information(this, "CSV export", QString("Transaction history exported to %1").arg(fn));
}
-void MainWindow::onExportContactsCSV(bool checked) {
+void MainWindow::onExportContactsCSV() {
if (m_wallet == nullptr) return;
auto *model = m_wallet->addressBookModel();
if (model->rowCount() <= 0){
const QString targetDir = QFileDialog::getExistingDirectory(this, "Select CSV output directory ", QDir::homePath(), QFileDialog::ShowDirsOnly);
if(targetDir.isEmpty()) return;
- qint64 now = QDateTime::currentDateTime().currentMSecsSinceEpoch();
+ qint64 now = QDateTime::currentMSecsSinceEpoch();
QString fn = QString("%1/monero-contacts_%2.csv").arg(targetDir, QString::number(now / 1000));
if(model->writeCSV(fn))
QMessageBox::information(this, "Address book exported", QString("Address book exported to %1").arg(fn));
}
-void MainWindow::onCreateDesktopEntry(bool checked) {
+void MainWindow::onCreateDesktopEntry() {
auto msg = Utils::xdgDesktopEntryRegister() ? "Desktop entry created" : "Desktop entry not created due to an error.";
QMessageBox::information(this, "Desktop entry", msg);
}
Utils::externalLinkWarning(this, "https://docs.featherwallet.org");
}
-void MainWindow::onReportBug(bool checked) {
+void MainWindow::onReportBug() {
Utils::externalLinkWarning(this, "https://docs.featherwallet.org/guides/report-an-issue");
}
MainWindow::~MainWindow() {
qDebug() << "~MainWindow";
-};
\ No newline at end of file
+}
\ No newline at end of file
void menuProxySettingsClicked();
void menuToggleTabVisible(const QString &key);
void menuClearHistoryClicked();
- void onExportHistoryCSV(bool checked);
- void onExportContactsCSV(bool checked);
- void onCreateDesktopEntry(bool checked);
+ void onExportHistoryCSV();
+ void onExportContactsCSV();
+ void onCreateDesktopEntry();
void onShowDocumentation();
- void onReportBug(bool checked);
+ void onReportBug();
void onShowSettingsPage(int page);
// offline tx signing
void donateButtonClicked();
void showCalcWindow();
void payToMany();
- void showSendTab();
void showHistoryTab();
void showSendScreen(const CCSEntry &entry);
void skinChanged(const QString &skinName);