mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Preferenced UI: add dive download tab
Add a preferences tab for dive download, allowing resetting the buttons representing download connections in the Download panel. Signed-off-by: willemferguson <willemferguson@zoology.up.ac.za> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
f63f3eb4ae
commit
b24caa4e2d
11 changed files with 180 additions and 30 deletions
41
desktop-widgets/preferences/preferences_dc.cpp
Normal file
41
desktop-widgets/preferences/preferences_dc.cpp
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
// SPDX-License-Identifier: GPL-2.0
|
||||
#include "preferences_dc.h"
|
||||
#include "ui_preferences_dc.h"
|
||||
#include "core/dive.h"
|
||||
#include "core/settings/qPrefDisplay.h"
|
||||
#include "core/settings/qPrefCloudStorage.h"
|
||||
#include "core/settings/qPrefDiveComputer.h"
|
||||
|
||||
#include <QFileDialog>
|
||||
#include <QProcess>
|
||||
#include <QMessageBox>
|
||||
|
||||
PreferencesDc::PreferencesDc(): AbstractPreferencesWidget(tr("Dive download"), QIcon(":preferences-dc-icon"), 0 ), ui(new Ui::PreferencesDc())
|
||||
{
|
||||
ui->setupUi(this);
|
||||
const QSize BUTTON_SIZE = QSize(200, 22);
|
||||
ui->resetRememberedDCs->resize(BUTTON_SIZE);
|
||||
}
|
||||
|
||||
PreferencesDc::~PreferencesDc()
|
||||
{
|
||||
delete ui;
|
||||
}
|
||||
|
||||
void PreferencesDc::on_resetRememberedDCs_clicked()
|
||||
{
|
||||
qPrefDiveComputer::set_vendor1(QString());
|
||||
qPrefDiveComputer::set_vendor2(QString());
|
||||
qPrefDiveComputer::set_vendor3(QString());
|
||||
qPrefDiveComputer::set_vendor4(QString());
|
||||
}
|
||||
|
||||
|
||||
void PreferencesDc::refreshSettings()
|
||||
{
|
||||
}
|
||||
|
||||
void PreferencesDc::syncSettings()
|
||||
{
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue