add toolbox network devices & enhance UI with new icons

- Added new icons to resources.qrc for improved UI representation.
- Implemented ZIconWidget for buttons in AfcExplorerWidget, replacing ClickableIconWidget.
- Introduced NetworkDevicesWidget for discovering and monitoring network devices.
- Updated AppInstallDialog to use QTemporaryDir for better temporary directory management.
- Enhanced FileExportDialog to prompt user for opening the export directory upon completion.
- Refactored styles in various widgets for consistency and improved theming support.
- Cleaned up unused code and comments across multiple files.
This commit is contained in:
uncor3
2025-10-13 13:35:39 -07:00
parent 119d395273
commit 0c23824a4e
32 changed files with 493 additions and 137 deletions
+49
View File
@@ -0,0 +1,49 @@
#ifndef NETWORKDEVICESWIDGET_H
#define NETWORKDEVICESWIDGET_H
#ifdef __linux__
#include "core/services/avahi/avahi_service.h"
#else
#include "core/services/dnssd/dnssd_service.h"
#endif
#include <QGroupBox>
#include <QLabel>
#include <QScrollArea>
#include <QVBoxLayout>
#include <QWidget>
class NetworkDevicesWidget : public QWidget
{
Q_OBJECT
public:
explicit NetworkDevicesWidget(QWidget *parent = nullptr);
~NetworkDevicesWidget();
private slots:
void onWirelessDeviceAdded(const NetworkDevice &device);
void onWirelessDeviceRemoved(const QString &deviceName);
private:
void setupUI();
void createDeviceCard(const NetworkDevice &device);
void clearDeviceCards();
void updateDeviceList();
QGroupBox *m_deviceGroup = nullptr;
QScrollArea *m_scrollArea = nullptr;
QWidget *m_scrollContent = nullptr;
QVBoxLayout *m_deviceLayout = nullptr;
QLabel *m_statusLabel = nullptr;
#ifdef __linux__
AvahiService *m_networkProvider = nullptr;
#else
DnssdService *m_networkProvider = nullptr;
#endif
QList<QWidget *> m_deviceCards;
};
#endif // NETWORKDEVICESWIDGET_H