Files
iDescriptor/src/fileexplorerwidget.h
T
uncor3 8d7b027992 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.
2025-10-17 06:56:02 +00:00

50 lines
1.3 KiB
C++

#ifndef FILEEXPLORERWIDGET_H
#define FILEEXPLORERWIDGET_H
#include "iDescriptor.h"
#include <QHBoxLayout>
#include <QInputDialog>
#include <QLabel>
#include <QListWidget>
#include <QMenu>
#include <QPushButton>
#include <QSplitter>
#include <QStack>
#include <QStackedWidget>
#include <QString>
#include <QTreeWidget>
#include <QVBoxLayout>
#include <QWidget>
#include <libimobiledevice/afc.h>
class FileExplorerWidget : public QWidget
{
Q_OBJECT
public:
explicit FileExplorerWidget(iDescriptorDevice *device,
QWidget *parent = nullptr);
private slots:
void onSidebarItemClicked(QTreeWidgetItem *item, int column);
private:
QSplitter *m_mainSplitter;
QStackedWidget *m_stackedWidget;
afc_client_t currentAfcClient;
QTreeWidget *m_sidebarTree;
iDescriptorDevice *m_device;
// Tree items
QTreeWidgetItem *m_defaultAfcItem;
QTreeWidgetItem *m_jailbrokenAfcItem;
QTreeWidgetItem *m_favoritePlacesItem;
void setupSidebar();
void loadFavoritePlaces();
void saveFavoritePlace(const QString &alias, const QString &path);
void saveFavoritePlaceAfc2(const QString &alias, const QString &path);
void onSidebarContextMenuRequested(const QPoint &pos);
};
#endif // FILEEXPLORERWIDGET_H