Changeset 47998 in vbox for trunk/src/VBox
- Timestamp:
- Aug 22, 2013 3:46:10 PM (11 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/VBoxVMInformationDlg.cpp
r47774 r47998 116 116 connect (pMachineWindow->machineView(), SIGNAL (resizeHintDone()), this, SLOT (processStatistics())); 117 117 connect (mInfoStack, SIGNAL (currentChanged (int)), this, SLOT (onPageChanged (int))); 118 connect (&vboxGlobal(), SIGNAL (mediumEnumFinished (const VBoxMediaList &)), this, SLOT(updateDetails()));118 connect(&vboxGlobal(), SIGNAL(sigMediumEnumerationFinished(const VBoxMediaList&)), this, SLOT(updateDetails())); 119 119 connect (mStatTimer, SIGNAL (timeout()), this, SLOT (processStatistics())); 120 120 -
trunk/src/VBox/Frontends/VirtualBox/src/globals/VBoxGlobal.cpp
r47995 r47998 1799 1799 AssertReturnVoid(m_pMediumEnumerationThread); 1800 1800 1801 /* Emit mediumEnumStarted() afterwe set m_pMediumEnumerationThread to != NULL1801 /* Emit signal *after* we set m_pMediumEnumerationThread to != NULL 1802 1802 * to cause isMediaEnumerationStarted() to return TRUE from slots: */ 1803 emit mediumEnumStarted();1803 emit sigMediumEnumerationStarted(); 1804 1804 1805 1805 m_pMediumEnumerationThread->start(); … … 4035 4035 Assert (ev->mIterator != m_mediums.end()); 4036 4036 *(ev->mIterator) = ev->mMedium; 4037 emit mediumEnumerated(*ev->mIterator);4037 emit sigMediumEnumerated(*ev->mIterator); 4038 4038 } 4039 4039 else … … 4043 4043 delete m_pMediumEnumerationThread; 4044 4044 m_pMediumEnumerationThread = 0; 4045 emit mediumEnumFinished(m_mediums);4045 emit sigMediumEnumerationFinished(m_mediums); 4046 4046 } 4047 4047 -
trunk/src/VBox/Frontends/VirtualBox/src/globals/VBoxGlobal.h
r47995 r47998 385 385 386 386 /* Notifiers: Medium-enumeration stuff: */ 387 void mediumEnumStarted();388 void mediumEnumerated(const UIMedium &medum);389 void mediumEnumFinished(const VBoxMediaList &mediums);387 void sigMediumEnumerationStarted(); 388 void sigMediumEnumerated(const UIMedium &medium); 389 void sigMediumEnumerationFinished(const VBoxMediaList &mediums); 390 390 391 391 /** Emitted when a new media is added using #addMedia(). */ -
trunk/src/VBox/Frontends/VirtualBox/src/medium/UIMediumManager.cpp
r47995 r47998 490 490 mButtonBox->button (QDialogButtonBox::Cancel)->setVisible (mDoSelect); 491 491 492 /* Listen to "media enumeration started" signals */ 493 connect (&vboxGlobal(), SIGNAL (mediumEnumStarted()), 494 this, SLOT (mediumEnumStarted())); 495 /* Listen to "media enumeration" signals */ 496 connect (&vboxGlobal(), SIGNAL (mediumEnumerated (const UIMedium &)), 497 this, SLOT (mediumEnumerated (const UIMedium &))); 498 /* Listen to "media enumeration finished" signals */ 499 connect (&vboxGlobal(), SIGNAL (mediumEnumFinished (const VBoxMediaList &)), 500 this, SLOT (mediumEnumFinished (const VBoxMediaList &))); 492 /* Configure medium-enumeration connections: */ 493 connect(&vboxGlobal(), SIGNAL(sigMediumEnumerationStarted()), 494 this, SLOT(sltHandleMediumEnumerationStart())); 495 connect(&vboxGlobal(), SIGNAL(sigMediumEnumerated(const UIMedium&)), 496 this, SLOT(sltHandleMediumEnumerated(const UIMedium&))); 497 connect(&vboxGlobal(), SIGNAL(sigMediumEnumerationFinished(const VBoxMediaList&)), 498 this, SLOT(sltHandleMediumEnumerationFinish(const VBoxMediaList&))); 501 499 502 500 /* Listen to "media add" signals */ … … 528 526 /* Emulate the finished signal to reuse the code */ 529 527 if (!vboxGlobal().isMediaEnumerationStarted()) 530 mediumEnumFinished(list);528 sltHandleMediumEnumerationFinish(list); 531 529 } 532 530 … … 967 965 } 968 966 969 void UIMediumManager:: mediumEnumStarted()967 void UIMediumManager::sltHandleMediumEnumerationStart() 970 968 { 971 969 /* Reset inaccessible flags */ … … 1001 999 } 1002 1000 1003 void UIMediumManager:: mediumEnumerated(const UIMedium &aMedium)1001 void UIMediumManager::sltHandleMediumEnumerated(const UIMedium &aMedium) 1004 1002 { 1005 1003 mediumUpdated (aMedium); … … 1008 1006 } 1009 1007 1010 void UIMediumManager:: mediumEnumFinished(const VBoxMediaList &/* aList */)1008 void UIMediumManager::sltHandleMediumEnumerationFinish(const VBoxMediaList &/* aList */) 1011 1009 { 1012 1010 mProgressBar->setVisible (false); -
trunk/src/VBox/Frontends/VirtualBox/src/medium/UIMediumManager.h
r46756 r47998 81 81 void mediumRemoved (UIMediumType aType, const QString &aId); 82 82 83 void mediumEnumStarted();84 void mediumEnumerated(const UIMedium &aMedium);85 void mediumEnumFinished(const VBoxMediaList &aList);83 void sltHandleMediumEnumerationStart(); 84 void sltHandleMediumEnumerated(const UIMedium &aMedium); 85 void sltHandleMediumEnumerationFinish(const VBoxMediaList &aList); 86 86 87 87 void doNewMedium(); -
trunk/src/VBox/Frontends/VirtualBox/src/selector/UISelectorWindow.cpp
r47688 r47998 177 177 } 178 178 179 void UISelectorWindow::slt MediumEnumFinished()179 void UISelectorWindow::sltHandleMediumEnumerationFinish() 180 180 { 181 181 /* We try to warn about inaccessible mediums only once … … 1036 1036 /* Make sure user warned about inaccessible medium(s) 1037 1037 * even if enumeration had finished before selector window shown: */ 1038 QTimer::singleShot(0, this, SLOT(slt MediumEnumFinished()));1038 QTimer::singleShot(0, this, SLOT(sltHandleMediumEnumerationFinish())); 1039 1039 } 1040 1040 … … 1403 1403 { 1404 1404 /* Medium enumeration connections: */ 1405 connect(&vboxGlobal(), SIGNAL( mediumEnumFinished(const VBoxMediaList &)), this, SLOT(sltMediumEnumFinished()));1405 connect(&vboxGlobal(), SIGNAL(sigMediumEnumerationFinished(const VBoxMediaList &)), this, SLOT(sltHandleMediumEnumerationFinish())); 1406 1406 1407 1407 /* Menu-bar connections: */ -
trunk/src/VBox/Frontends/VirtualBox/src/selector/UISelectorWindow.h
r45377 r47998 65 65 66 66 /* Handler: Medium enumeration stuff: */ 67 void slt MediumEnumFinished();67 void sltHandleMediumEnumerationFinish(); 68 68 69 69 /* Handler: Menubar/status stuff: */ -
trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/details/UIGDetailsSet.cpp
r47401 r47998 346 346 347 347 /* Meidum-enumeration connections: */ 348 connect(&vboxGlobal(), SIGNAL( mediumEnumStarted()), this, SLOT(sltUpdateAppearance()));349 connect(&vboxGlobal(), SIGNAL( mediumEnumFinished(const VBoxMediaList &)), this, SLOT(sltUpdateAppearance()));348 connect(&vboxGlobal(), SIGNAL(sigMediumEnumerationStarted()), this, SLOT(sltUpdateAppearance())); 349 connect(&vboxGlobal(), SIGNAL(sigMediumEnumerationFinished(const VBoxMediaList &)), this, SLOT(sltUpdateAppearance())); 350 350 } 351 351 -
trunk/src/VBox/Frontends/VirtualBox/src/settings/UISettingsDialogSpecific.cpp
r47846 r47998 553 553 554 554 /* Allow to reset first-run flag just when medium enumeration was finished: */ 555 connect(&vboxGlobal(), SIGNAL( mediumEnumFinished(const VBoxMediaList &)), this, SLOT(sltAllowResetFirstRunFlag()));555 connect(&vboxGlobal(), SIGNAL(sigMediumEnumerationFinished(const VBoxMediaList &)), this, SLOT(sltAllowResetFirstRunFlag())); 556 556 557 557 /* Get corresponding machine (required to determine dialog type and page availability): */ -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsStorage.cpp
r47995 r47998 1831 1831 1832 1832 /* Setup connections */ 1833 connect (&vboxGlobal(), SIGNAL ( mediumEnumerated (const UIMedium &)),1834 this, SLOT ( mediumUpdated (const UIMedium &)));1833 connect (&vboxGlobal(), SIGNAL (sigMediumEnumerated (const UIMedium &)), 1834 this, SLOT (sltHandleMediumUpdated (const UIMedium &))); 1835 1835 connect (&vboxGlobal(), SIGNAL (mediumUpdated (const UIMedium &)), 1836 this, SLOT ( mediumUpdated (const UIMedium &)));1836 this, SLOT (sltHandleMediumUpdated (const UIMedium &))); 1837 1837 connect (&vboxGlobal(), SIGNAL (mediumRemoved (UIMediumType, const QString &)), 1838 this, SLOT ( mediumRemoved (UIMediumType, const QString &)));1838 this, SLOT (sltHandleMediumRemoved (UIMediumType, const QString &))); 1839 1839 connect (mAddCtrAction, SIGNAL (triggered (bool)), this, SLOT (addController())); 1840 1840 connect (mAddIDECtrAction, SIGNAL (triggered (bool)), this, SLOT (addIDEController())); … … 2271 2271 } 2272 2272 2273 void UIMachineSettingsStorage:: mediumUpdated(const UIMedium &aMedium)2273 void UIMachineSettingsStorage::sltHandleMediumUpdated(const UIMedium &aMedium) 2274 2274 { 2275 2275 QModelIndex rootIndex = mStorageModel->root(); … … 2292 2292 } 2293 2293 2294 void UIMachineSettingsStorage:: mediumRemoved(UIMediumType /* aType */, const QString &aMediumId)2294 void UIMachineSettingsStorage::sltHandleMediumRemoved(UIMediumType /* aType */, const QString &aMediumId) 2295 2295 { 2296 2296 QModelIndex rootIndex = mStorageModel->root(); -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsStorage.h
r47944 r47998 682 682 private slots: 683 683 684 void mediumUpdated(const UIMedium &aMedium);685 void mediumRemoved(UIMediumType aType, const QString &aMediumId);684 void sltHandleMediumUpdated(const UIMedium &aMedium); 685 void sltHandleMediumRemoved(UIMediumType aType, const QString &aMediumId); 686 686 687 687 void addController(); -
trunk/src/VBox/Frontends/VirtualBox/src/widgets/VBoxMediaComboBox.cpp
r47995 r47998 38 38 setSizePolicy (sp1); 39 39 40 /* Setup enumeration handlers*/41 connect (&vboxGlobal(), SIGNAL (mediumEnumStarted()),42 this, SLOT (mediumEnumStarted()));43 connect (&vboxGlobal(), SIGNAL (mediumEnumerated (const UIMedium&)),44 this, SLOT (mediumEnumerated (const UIMedium&)));40 /* Setup medium-enumeration handlers: */ 41 connect(&vboxGlobal(), SIGNAL(sigMediumEnumerationStarted()), 42 this, SLOT(sltHandleMediumEnumerationStart())); 43 connect(&vboxGlobal(), SIGNAL(sigMediumEnumerated (const UIMedium&)), 44 this, SLOT(sltHandleMediumEnumerated(const UIMedium&))); 45 45 46 46 /* Setup update handlers */ … … 168 168 169 169 170 void VBoxMediaComboBox:: mediumEnumStarted()170 void VBoxMediaComboBox::sltHandleMediumEnumerationStart() 171 171 { 172 172 refresh(); 173 173 } 174 174 175 void VBoxMediaComboBox:: mediumEnumerated(const UIMedium &aMedium)175 void VBoxMediaComboBox::sltHandleMediumEnumerated(const UIMedium &aMedium) 176 176 { 177 177 mediumUpdated (aMedium); -
trunk/src/VBox/Frontends/VirtualBox/src/widgets/VBoxMediaComboBox.h
r44528 r47998 52 52 protected slots: 53 53 54 void mediumEnumStarted();55 void mediumEnumerated(const UIMedium &);54 void sltHandleMediumEnumerationStart(); 55 void sltHandleMediumEnumerated(const UIMedium &); 56 56 57 57 void mediumAdded (const UIMedium &);
Note:
See TracChangeset
for help on using the changeset viewer.