implement settings, fix bugs and enhance ui

- Added new settings keys in SettingsManager for download path, auto-check updates, auto-raise window, switch to new device, unmount iFuse on exit, theme, and connection timeout.
- Implemented methods to get and set these new settings.
- Updated SettingsWidget to include UI elements for the new settings, including checkboxes and a combo box for theme selection.
- Refactored loadSettings and saveSettings methods to handle new settings.
- Removed deprecated settings UI elements to streamline the interface.
- Introduced VirtualLocation widget for managing virtual location settings with a map interface.
- Integrated QML for map visualization and input handling for latitude and longitude.
- Added functionality to apply virtual location settings to the connected device.
This commit is contained in:
uncor3
2025-10-17 06:56:02 +00:00
parent 0c23824a4e
commit 8d7b027992
55 changed files with 3602 additions and 1919 deletions
+55
View File
@@ -0,0 +1,55 @@
#ifndef DEVDISKIMAGEHELPER_H
#define DEVDISKIMAGEHELPER_H
#include "iDescriptor.h"
#include <QDialog>
#include <QLabel>
#include <QPushButton>
#include <QWidget>
class QProcessIndicator;
class DevDiskImageHelper : public QDialog
{
Q_OBJECT
public:
explicit DevDiskImageHelper(iDescriptorDevice *device,
QWidget *parent = nullptr);
// Start the mounting process
void start();
signals:
void mountingCompleted(bool success);
void downloadStarted();
void downloadCompleted(bool success);
private slots:
void checkAndMount();
void onMountButtonClicked();
void onRetryButtonClicked();
void onImageDownloadFinished(const QString &version, bool success,
const QString &errorMessage);
private:
void setupUI();
void showStatus(const QString &message, bool isError = false);
void showMountUI();
void showRetryUI(const QString &errorMessage);
void finishWithSuccess();
void finishWithError(const QString &errorMessage);
iDescriptorDevice *m_device;
QLabel *m_statusLabel;
QProcessIndicator *m_loadingIndicator;
QPushButton *m_mountButton;
QPushButton *m_retryButton;
QPushButton *m_cancelButton;
bool m_isDownloading;
bool m_isMounting;
QString m_downloadingVersion;
};
#endif // DEVDISKIMAGEHELPER_H