Files
iDescriptor/src/settingswidget.h
T
uncor3 d6282762b1 implement ssh connection
- Updated AppWidget to utilize QStackedWidget for better UI management, including loading and error states.
- Removed unnecessary includes and improved the organization of private methods in AppWidget.
- Enhanced DevDiskImagesWidget UI by adding a settings button and improving layout with shadows.
- Refactored DeviceInfoWidget to use QGroupBox for better visual grouping of device information.
- Replaced QProcess with libssh for SSH connections in JailbrokenWidget, improving reliability and performance.
- Added a timer to check SSH data and handle input/output more effectively.
- Improved SettingsManager to manage settings dialog display and lifecycle.
- Refactored SettingsWidget to be a QDialog for better user experience and removed unnecessary buttons.
- Adjusted layout margins across various widgets for a cleaner UI.
2025-10-03 06:45:34 -07:00

66 lines
1.4 KiB
C++

#ifndef SETTINGSWIDGET_H
#define SETTINGSWIDGET_H
#include <QCheckBox>
#include <QComboBox>
#include <QDialog>
#include <QLineEdit>
#include <QPushButton>
#include <QSpinBox>
#include <QWidget>
class SettingsWidget : public QDialog
{
Q_OBJECT
public:
explicit SettingsWidget(QWidget *parent = nullptr);
private slots:
void onBrowseButtonClicked();
void onCheckUpdatesClicked();
void onResetToDefaultsClicked();
void onApplyClicked();
void onSettingChanged();
private:
void setupUI();
void loadSettings();
void saveSettings();
void connectSignals();
void resetToDefaults();
// UI Elements
// General
QLineEdit *m_downloadPathEdit;
QCheckBox *m_autoUpdateCheck;
QComboBox *m_themeCombo;
// Device Connection
QSpinBox *m_connectionTimeout;
QCheckBox *m_autoDetectDevices;
QCheckBox *m_showDeviceNotifications;
// Developer Disk Images
QCheckBox *m_autoMountImages;
QCheckBox *m_autoDownloadImages;
QCheckBox *m_verifySignatures;
// File Operations
QCheckBox *m_showHiddenFiles;
QCheckBox *m_confirmDeletions;
QSpinBox *m_maxDownloads;
// Advanced
QCheckBox *m_enableDebugLogging;
QSpinBox *m_logRetention;
QCheckBox *m_expertMode;
// Buttons
QPushButton *m_checkUpdatesButton;
QPushButton *m_resetButton;
QPushButton *m_applyButton;
};
#endif // SETTINGSWIDGET_H