mirror of
https://github.com/iDescriptor/iDescriptor.git
synced 2026-06-22 03:45:51 +08:00
implement WelcomeWidget , fix bugs , add tutorial videos
- Introduced WelcomeWidget to display a welcome message when no devices are connected, replacing the previous "No devices detected" page in MainWindow. - Replaced ClickableLabel with ZLabel in ifusewidget.h for improved UI consistency. - Removed PCFileExplorerWidget and its associated header file, streamlining the codebase. - Updated PhotoImportDialog to improve server start process and UI elements, including renaming buttons and adjusting labels. - Modified RealtimeScreenWidget to increase delay before initializing screenshot service for better reliability. - Enhanced SimpleHttpServer to include a method for retrieving the JSON file name. - Updated ToolboxWidget to integrate WirelessPhotoImportWidget, allowing for wireless photo imports. - Added WirelessPhotoImportWidget to facilitate the selection and import of photos, including a tutorial video feature. - Created a new WelcomeWidget to guide users on connecting their iOS devices.
This commit is contained in:
@@ -64,6 +64,8 @@ DeviceManagerWidget::DeviceManagerWidget(QWidget *parent)
|
||||
removePendingDevice(udid);
|
||||
emit updateNoDevicesConnected();
|
||||
});
|
||||
onDeviceSelectionChanged(
|
||||
AppContext::sharedInstance()->getCurrentDeviceSelection());
|
||||
}
|
||||
|
||||
void DeviceManagerWidget::setupUI()
|
||||
@@ -83,7 +85,8 @@ void DeviceManagerWidget::setupUI()
|
||||
m_mainLayout->addWidget(m_stackedWidget);
|
||||
|
||||
// Connect signals
|
||||
connect(m_sidebar, &DeviceSidebarWidget::deviceSelectionChanged, this,
|
||||
connect(AppContext::sharedInstance(),
|
||||
&AppContext::currentDeviceSelectionChanged, this,
|
||||
&DeviceManagerWidget::onDeviceSelectionChanged);
|
||||
}
|
||||
|
||||
@@ -269,10 +272,9 @@ void DeviceManagerWidget::setCurrentDevice(const std::string &uuid)
|
||||
QWidget *widget = m_deviceWidgets[uuid].first;
|
||||
m_stackedWidget->setCurrentWidget(widget);
|
||||
|
||||
// Update sidebar selection
|
||||
m_sidebar->setCurrentSelection(DeviceSelection(uuid));
|
||||
|
||||
emit deviceChanged(uuid);
|
||||
// Update sidebar selection through the AppContext to keep state consistent
|
||||
AppContext::sharedInstance()->setCurrentDeviceSelection(
|
||||
DeviceSelection(uuid));
|
||||
}
|
||||
|
||||
std::string DeviceManagerWidget::getCurrentDevice() const
|
||||
|
||||
Reference in New Issue
Block a user