Changeset 1289 in vbox
- Timestamp:
- Mar 7, 2007 8:54:51 AM (18 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/include/VBoxSelectorWnd.h
r1177 r1289 65 65 66 66 void vmNew(); 67 void vmSettings (const QString &category = QString::null, int = 0); 67 void vmSettings (const QString &aCategory = QString::null, 68 const QString &aSubPage = QString::null); 68 69 void vmDelete(); 69 70 void vmStart(); -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxSelectorWnd.cpp
r1275 r1289 274 274 } 275 275 276 /** 276 /** 277 277 * The machine list @a aItem is used to access cached machine data w/o making 278 278 * unnecessary RPC calls. … … 308 308 } 309 309 310 /** 310 /** 311 311 * Called by the parent from machineStateChanged() and sessionStateChanged() 312 312 * signal handlers. We cannot connect to these signals ourselves because we … … 332 332 void VBoxVMDescriptionPage::goToSettings() 333 333 { 334 mParent->vmSettings ("#general", 2);334 mParent->vmSettings ("#general", "description"); 335 335 } 336 336 … … 673 673 * VBoxVMSettingsDlg::setup(). 674 674 */ 675 void VBoxSelectorWnd::vmSettings (const QString &category, intaSubPage)675 void VBoxSelectorWnd::vmSettings (const QString &category, const QString &aSubPage) 676 676 { 677 677 VBoxVMListBoxItem *item = (VBoxVMListBoxItem *) vmListBox->selectedItem(); -
trunk/src/VBox/Frontends/VirtualBox/ui/VBoxVMSettingsDlg.ui
r1281 r1289 2716 2716 <functions> 2717 2717 <function access="private">init()</function> 2718 <function>setup( const QString &, int)</function>2718 <function>setup( const QString &, const QString & )</function> 2719 2719 <function>getFromMachine( const CMachine & machine )</function> 2720 2720 <function returnType="COMResult">putBackToMachine()</function> -
trunk/src/VBox/Frontends/VirtualBox/ui/VBoxVMSettingsDlg.ui.h
r1281 r1289 922 922 * sign. 923 923 */ 924 void VBoxVMSettingsDlg::setup (const QString &aCategory, intaSubPage)924 void VBoxVMSettingsDlg::setup (const QString &aCategory, const QString &aSubPage) 925 925 { 926 926 if (!aCategory.isNull()) 927 927 { 928 /* search for first-level item */ 928 929 QListViewItem *item = listView->findItem (aCategory, listView_Link); 929 930 if (item) 930 931 { 931 932 listView->setSelected (item, true); 932 QObjectList *list = widgetStack->visibleWidget()->queryList ("QTabWidget");933 for (QObject *obj = list->first(); obj != NULL; obj = list->next())933 /* search for second-level item */ 934 if (!aSubPage.isNull()) 934 935 { 935 QTabWidget *tabStack = static_cast<QTabWidget*> (obj); 936 tabStack->setCurrentPage (aSubPage); 936 QObjectList *list = widgetStack->visibleWidget()->queryList ("QTabWidget"); 937 for (QObject *obj = list->first(); obj != NULL; obj = list->next()) 938 { 939 QTabWidget *tabWidget = static_cast<QTabWidget*> (obj); 940 for (int index = 0; index < tabWidget->count(); ++index) 941 if (tabWidget->page (index)->name() == aSubPage) 942 tabWidget->setCurrentPage (index); 943 } 937 944 } 938 945 }
Note:
See TracChangeset
for help on using the changeset viewer.