mirror of
https://github.com/iDescriptor/iDescriptor.git
synced 2026-06-22 03:45:51 +08:00
8d7b027992
- 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.
31 lines
879 B
C++
31 lines
879 B
C++
#ifndef DEVICEMENUWIDGET_H
|
|
#define DEVICEMENUWIDGET_H
|
|
#include "deviceinfowidget.h"
|
|
#include "fileexplorerwidget.h"
|
|
#include "gallerywidget.h"
|
|
#include "iDescriptor.h"
|
|
#include "installedappswidget.h"
|
|
#include <QStackedWidget>
|
|
#include <QWidget>
|
|
|
|
class DeviceMenuWidget : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit DeviceMenuWidget(iDescriptorDevice *device,
|
|
QWidget *parent = nullptr);
|
|
void switchToTab(const QString &tabName);
|
|
void init();
|
|
// ~DeviceMenuWidget();
|
|
private:
|
|
QStackedWidget *stackedWidget; // Pointer to the stacked widget
|
|
iDescriptorDevice *device; // Pointer to the iDescriptor device
|
|
DeviceInfoWidget *m_deviceInfoWidget;
|
|
InstalledAppsWidget *m_installedAppsWidget;
|
|
GalleryWidget *m_galleryWidget;
|
|
FileExplorerWidget *m_fileExplorerWidget;
|
|
signals:
|
|
};
|
|
|
|
#endif // DEVICEMENUWIDGET_H
|