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
+21
View File
@@ -141,6 +141,9 @@ void ToolboxWidget::setupUI()
"Mount your iPhone's filesystem on your PC", true, ""});
toolWidgets.append({iDescriptorTool::CableInfoWidget,
"View detailed cable and connection info", true, ""});
toolWidgets.append({iDescriptorTool::NetworkDevices,
"Discover and monitor devices on your network", false,
""});
for (int i = 0; i < toolWidgets.size(); ++i) {
const auto &tool = toolWidgets[i];
@@ -225,6 +228,9 @@ ClickableWidget *ToolboxWidget::createToolbox(iDescriptorTool tool,
case iDescriptorTool::UnmountDevImage:
title = "Unmount Dev Image";
break;
case iDescriptorTool::NetworkDevices:
title = "Network Devices";
break;
default:
title = "Unknown Tool";
break;
@@ -431,6 +437,21 @@ void ToolboxWidget::onToolboxClicked(iDescriptorTool tool)
cableInfoWidget->resize(600, 400);
cableInfoWidget->show();
} break;
case iDescriptorTool::NetworkDevices: {
// single instance lock
if (!m_networkDevicesWidget) {
m_networkDevicesWidget = new NetworkDevicesWidget();
m_networkDevicesWidget->setAttribute(Qt::WA_DeleteOnClose);
m_networkDevicesWidget->setWindowFlag(Qt::Window);
m_networkDevicesWidget->resize(500, 600);
connect(m_networkDevicesWidget, &QObject::destroyed, this,
[this]() { m_networkDevicesWidget = nullptr; });
m_networkDevicesWidget->show();
} else {
m_networkDevicesWidget->raise();
m_networkDevicesWidget->activateWindow();
}
} break;
default:
qDebug() << "Clicked on unimplemented tool";
break;