Changeset 75087 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Oct 26, 2018 9:59:37 AM (6 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox
- Files:
-
- 2 deleted
- 17 edited
- 2 copied
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/Makefile.kmk
r75062 r75087 844 844 src/runtime/information/UIVMInformationDialog.h \ 845 845 src/runtime/guestctrl/UIGuestControlConsole.h \ 846 src/runtime/guestctrl/UIGuestControlDialog.h \847 846 src/runtime/guestctrl/UIGuestControlFileManager.h \ 847 src/runtime/guestctrl/UIGuestControlFileManagerDialog.h \ 848 848 src/runtime/guestctrl/UIGuestControlFileModel.h \ 849 849 src/runtime/guestctrl/UIGuestControlFileTable.h \ 850 850 src/runtime/guestctrl/UIGuestControlInterface.h \ 851 851 src/runtime/guestctrl/UIGuestControlTreeItem.h \ 852 src/runtime/guestctrl/UIGuestControlWidget.h \853 852 src/runtime/guestctrl/UIGuestFileTable.h \ 853 src/runtime/guestctrl/UIGuestProcessControlDialog.h \ 854 854 src/runtime/guestctrl/UIGuestProcessControlWidget.h \ 855 855 src/runtime/guestctrl/UIHostFileTable.h \ … … 994 994 src/runtime/information/UIVMInformationDialog.h \ 995 995 src/runtime/guestctrl/UIGuestControlConsole.h \ 996 src/runtime/guestctrl/UIGuestControlDialog.h \997 996 src/runtime/guestctrl/UIGuestControlFileManager.h \ 997 src/runtime/guestctrl/UIGuestControlFileManagerDialog.h \ 998 998 src/runtime/guestctrl/UIGuestControlFileModel.h \ 999 999 src/runtime/guestctrl/UIGuestControlFileTable.h \ 1000 1000 src/runtime/guestctrl/UIGuestControlInterface.h \ 1001 1001 src/runtime/guestctrl/UIGuestControlTreeItem.h \ 1002 src/runtime/guestctrl/UIGuestControlWidget.h \1003 1002 src/runtime/guestctrl/UIGuestFileTable.h \ 1003 src/runtime/guestctrl/UIGuestProcessControlDialog.h \ 1004 1004 src/runtime/guestctrl/UIGuestProcessControlWidget.h \ 1005 1005 src/runtime/guestctrl/UIHostFileTable.h \ … … 1545 1545 src/runtime/information/UIVMInformationDialog.cpp \ 1546 1546 src/runtime/guestctrl/UIGuestControlConsole.cpp \ 1547 src/runtime/guestctrl/UIGuestControlDialog.cpp \1548 1547 src/runtime/guestctrl/UIGuestControlFileManager.cpp \ 1548 src/runtime/guestctrl/UIGuestControlFileManagerDialog.cpp \ 1549 1549 src/runtime/guestctrl/UIGuestControlFileModel.cpp \ 1550 1550 src/runtime/guestctrl/UIGuestControlFileTable.cpp \ 1551 1551 src/runtime/guestctrl/UIGuestControlInterface.cpp \ 1552 1552 src/runtime/guestctrl/UIGuestControlTreeItem.cpp \ 1553 src/runtime/guestctrl/UIGuestControlWidget.cpp \1554 1553 src/runtime/guestctrl/UIGuestFileTable.cpp \ 1554 src/runtime/guestctrl/UIGuestProcessControlDialog.cpp \ 1555 1555 src/runtime/guestctrl/UIGuestProcessControlWidget.cpp \ 1556 1556 src/runtime/guestctrl/UIHostFileTable.cpp \ … … 1719 1719 src/runtime/information/UIVMInformationDialog.cpp \ 1720 1720 src/runtime/guestctrl/UIGuestControlConsole.cpp \ 1721 src/runtime/guestctrl/UIGuestControlDialog.cpp \1722 1721 src/runtime/guestctrl/UIGuestControlFileManager.cpp \ 1722 src/runtime/guestctrl/UIGuestControlFileManagerDialog.cpp \ 1723 1723 src/runtime/guestctrl/UIGuestControlFileModel.cpp \ 1724 1724 src/runtime/guestctrl/UIGuestControlFileTable.cpp \ 1725 1725 src/runtime/guestctrl/UIGuestControlInterface.cpp \ 1726 1726 src/runtime/guestctrl/UIGuestControlTreeItem.cpp \ 1727 src/runtime/guestctrl/UIGuestControlWidget.cpp \1728 1727 src/runtime/guestctrl/UIGuestFileTable.cpp \ 1729 1728 src/runtime/guestctrl/UIGuestProcessControlWidget.cpp \ 1729 src/runtime/guestctrl/UIGuestProcessControlDialog.cpp \ 1730 1730 src/runtime/guestctrl/UIHostFileTable.cpp \ 1731 1731 src/runtime/normal/UIKeyboardHandlerNormal.cpp \ -
trunk/src/VBox/Frontends/VirtualBox/src/converter/UIConverterBackendGlobal.cpp
r75018 r75087 546 546 switch (runtimeMenuMachineActionType) 547 547 { 548 case UIExtraDataMetaDefs::RuntimeMenuMachineActionType_SettingsDialog: strResult = "SettingsDialog"; break; 549 case UIExtraDataMetaDefs::RuntimeMenuMachineActionType_TakeSnapshot: strResult = "TakeSnapshot"; break; 550 case UIExtraDataMetaDefs::RuntimeMenuMachineActionType_InformationDialog: strResult = "InformationDialog"; break; 551 case UIExtraDataMetaDefs::RuntimeMenuMachineActionType_GuestControlDialog: strResult = "GuestControlDialog"; break; 552 case UIExtraDataMetaDefs::RuntimeMenuMachineActionType_Pause: strResult = "Pause"; break; 553 case UIExtraDataMetaDefs::RuntimeMenuMachineActionType_Reset: strResult = "Reset"; break; 554 case UIExtraDataMetaDefs::RuntimeMenuMachineActionType_Detach: strResult = "Detach"; break; 555 case UIExtraDataMetaDefs::RuntimeMenuMachineActionType_SaveState: strResult = "SaveState"; break; 556 case UIExtraDataMetaDefs::RuntimeMenuMachineActionType_Shutdown: strResult = "Shutdown"; break; 557 case UIExtraDataMetaDefs::RuntimeMenuMachineActionType_PowerOff: strResult = "PowerOff"; break; 558 case UIExtraDataMetaDefs::RuntimeMenuMachineActionType_Nothing: strResult = "Nothing"; break; 559 case UIExtraDataMetaDefs::RuntimeMenuMachineActionType_All: strResult = "All"; break; 548 case UIExtraDataMetaDefs::RuntimeMenuMachineActionType_SettingsDialog: strResult = "SettingsDialog"; break; 549 case UIExtraDataMetaDefs::RuntimeMenuMachineActionType_TakeSnapshot: strResult = "TakeSnapshot"; break; 550 case UIExtraDataMetaDefs::RuntimeMenuMachineActionType_InformationDialog: strResult = "InformationDialog"; break; 551 case UIExtraDataMetaDefs::RuntimeMenuMachineActionType_GuestControlFileManagerDialog: strResult = "GuestControlFileManagerDialog"; break; 552 case UIExtraDataMetaDefs::RuntimeMenuMachineActionType_GuestProcessControlDialog: strResult = "GuestProcessControlDialog"; break; 553 case UIExtraDataMetaDefs::RuntimeMenuMachineActionType_Pause: strResult = "Pause"; break; 554 case UIExtraDataMetaDefs::RuntimeMenuMachineActionType_Reset: strResult = "Reset"; break; 555 case UIExtraDataMetaDefs::RuntimeMenuMachineActionType_Detach: strResult = "Detach"; break; 556 case UIExtraDataMetaDefs::RuntimeMenuMachineActionType_SaveState: strResult = "SaveState"; break; 557 case UIExtraDataMetaDefs::RuntimeMenuMachineActionType_Shutdown: strResult = "Shutdown"; break; 558 case UIExtraDataMetaDefs::RuntimeMenuMachineActionType_PowerOff: strResult = "PowerOff"; break; 559 case UIExtraDataMetaDefs::RuntimeMenuMachineActionType_Nothing: strResult = "Nothing"; break; 560 case UIExtraDataMetaDefs::RuntimeMenuMachineActionType_All: strResult = "All"; break; 560 561 default: 561 562 { … … 573 574 * to search through the keys using 'case-insensitive' rule: */ 574 575 QStringList keys; QList<UIExtraDataMetaDefs::RuntimeMenuMachineActionType> values; 575 keys << "SettingsDialog"; values << UIExtraDataMetaDefs::RuntimeMenuMachineActionType_SettingsDialog; 576 keys << "TakeSnapshot"; values << UIExtraDataMetaDefs::RuntimeMenuMachineActionType_TakeSnapshot; 577 keys << "InformationDialog"; values << UIExtraDataMetaDefs::RuntimeMenuMachineActionType_InformationDialog; 578 keys << "GuestControlDialog"; values << UIExtraDataMetaDefs::RuntimeMenuMachineActionType_GuestControlDialog; 579 keys << "Pause"; values << UIExtraDataMetaDefs::RuntimeMenuMachineActionType_Pause; 580 keys << "Reset"; values << UIExtraDataMetaDefs::RuntimeMenuMachineActionType_Reset; 581 keys << "Detach"; values << UIExtraDataMetaDefs::RuntimeMenuMachineActionType_Detach; 582 keys << "SaveState"; values << UIExtraDataMetaDefs::RuntimeMenuMachineActionType_SaveState; 583 keys << "Shutdown"; values << UIExtraDataMetaDefs::RuntimeMenuMachineActionType_Shutdown; 584 keys << "PowerOff"; values << UIExtraDataMetaDefs::RuntimeMenuMachineActionType_PowerOff; 585 keys << "Nothing"; values << UIExtraDataMetaDefs::RuntimeMenuMachineActionType_Nothing; 586 keys << "All"; values << UIExtraDataMetaDefs::RuntimeMenuMachineActionType_All; 576 keys << "SettingsDialog"; values << UIExtraDataMetaDefs::RuntimeMenuMachineActionType_SettingsDialog; 577 keys << "TakeSnapshot"; values << UIExtraDataMetaDefs::RuntimeMenuMachineActionType_TakeSnapshot; 578 keys << "InformationDialog"; values << UIExtraDataMetaDefs::RuntimeMenuMachineActionType_InformationDialog; 579 keys << "GuestControlFileManagerDialog"; values << UIExtraDataMetaDefs::RuntimeMenuMachineActionType_GuestControlFileManagerDialog; 580 keys << "GuestProcessControlDialog"; values << UIExtraDataMetaDefs::RuntimeMenuMachineActionType_GuestProcessControlDialog; 581 keys << "Pause"; values << UIExtraDataMetaDefs::RuntimeMenuMachineActionType_Pause; 582 keys << "Reset"; values << UIExtraDataMetaDefs::RuntimeMenuMachineActionType_Reset; 583 keys << "Detach"; values << UIExtraDataMetaDefs::RuntimeMenuMachineActionType_Detach; 584 keys << "SaveState"; values << UIExtraDataMetaDefs::RuntimeMenuMachineActionType_SaveState; 585 keys << "Shutdown"; values << UIExtraDataMetaDefs::RuntimeMenuMachineActionType_Shutdown; 586 keys << "PowerOff"; values << UIExtraDataMetaDefs::RuntimeMenuMachineActionType_PowerOff; 587 keys << "Nothing"; values << UIExtraDataMetaDefs::RuntimeMenuMachineActionType_Nothing; 588 keys << "All"; values << UIExtraDataMetaDefs::RuntimeMenuMachineActionType_All; 587 589 /* Invalid type for unknown words: */ 588 590 if (!keys.contains(strRuntimeMenuMachineActionType, Qt::CaseInsensitive)) -
trunk/src/VBox/Frontends/VirtualBox/src/extradata/UIExtraDataDefs.cpp
r75057 r75087 197 197 const char *UIExtraDataDefs::GUI_GuestControl_ProcessControlSplitterHints = "GUI/GuestControl/ProcessControlSplitterHints"; 198 198 const char *UIExtraDataDefs::GUI_GuestControl_FileManagerSplitterHints = "GUI/GuestControl/FileManagerSplitterHints"; 199 const char *UIExtraDataDefs::GUI_GuestControl_DialogGeometry = "GUI/GuestControl/DialogGeometry"; 199 const char *UIExtraDataDefs::GUI_GuestControl_FileManagerDialogGeometry = "GUI/GuestControl/FileManagerDialogGeometry"; 200 const char *UIExtraDataDefs::GUI_GuestControl_ProcessControlDialogGeometry = "GUI/GuestControl/ProcessControlDialogGeometry"; 200 201 201 202 /* Virtual Machine: Close dialog: */ -
trunk/src/VBox/Frontends/VirtualBox/src/extradata/UIExtraDataDefs.h
r75057 r75087 350 350 extern const char *GUI_GuestControl_ProcessControlSplitterHints; 351 351 extern const char *GUI_GuestControl_FileManagerSplitterHints; 352 extern const char *GUI_GuestControl_DialogGeometry; 352 extern const char *GUI_GuestControl_FileManagerDialogGeometry; 353 extern const char *GUI_GuestControl_ProcessControlDialogGeometry; 353 354 /** @} */ 354 355 … … 466 467 enum RuntimeMenuMachineActionType 467 468 { 468 RuntimeMenuMachineActionType_Invalid = 0, 469 RuntimeMenuMachineActionType_SettingsDialog = RT_BIT(0), 470 RuntimeMenuMachineActionType_TakeSnapshot = RT_BIT(1), 471 RuntimeMenuMachineActionType_InformationDialog = RT_BIT(2), 472 RuntimeMenuMachineActionType_GuestControlDialog = RT_BIT(3), 473 RuntimeMenuMachineActionType_Pause = RT_BIT(4), 474 RuntimeMenuMachineActionType_Reset = RT_BIT(5), 475 RuntimeMenuMachineActionType_Detach = RT_BIT(6), 476 RuntimeMenuMachineActionType_SaveState = RT_BIT(7), 477 RuntimeMenuMachineActionType_Shutdown = RT_BIT(8), 478 RuntimeMenuMachineActionType_PowerOff = RT_BIT(9), 479 RuntimeMenuMachineActionType_Nothing = RT_BIT(10), 480 RuntimeMenuMachineActionType_All = 0xFFFF 469 RuntimeMenuMachineActionType_Invalid = 0, 470 RuntimeMenuMachineActionType_SettingsDialog = RT_BIT(0), 471 RuntimeMenuMachineActionType_TakeSnapshot = RT_BIT(1), 472 RuntimeMenuMachineActionType_InformationDialog = RT_BIT(2), 473 RuntimeMenuMachineActionType_GuestControlFileManagerDialog = RT_BIT(3), 474 RuntimeMenuMachineActionType_GuestProcessControlDialog = RT_BIT(4), 475 RuntimeMenuMachineActionType_Pause = RT_BIT(5), 476 RuntimeMenuMachineActionType_Reset = RT_BIT(6), 477 RuntimeMenuMachineActionType_Detach = RT_BIT(7), 478 RuntimeMenuMachineActionType_SaveState = RT_BIT(8), 479 RuntimeMenuMachineActionType_Shutdown = RT_BIT(9), 480 RuntimeMenuMachineActionType_PowerOff = RT_BIT(10), 481 RuntimeMenuMachineActionType_Nothing = RT_BIT(11), 482 RuntimeMenuMachineActionType_All = 0xFFFF 481 483 }; 482 484 -
trunk/src/VBox/Frontends/VirtualBox/src/extradata/UIExtraDataManager.cpp
r75057 r75087 2033 2033 << GUI_GuestControl_ProcessControlSplitterHints 2034 2034 << GUI_GuestControl_FileManagerSplitterHints 2035 << GUI_GuestControl_DialogGeometry 2035 << GUI_GuestControl_FileManagerDialogGeometry 2036 << GUI_GuestControl_ProcessControlDialogGeometry 2036 2037 << GUI_DefaultCloseAction << GUI_RestrictedCloseActions 2037 2038 << GUI_LastCloseAction << GUI_CloseActionHook … … 4137 4138 } 4138 4139 4139 QRect UIExtraDataManager::guestControlDialogGeometry(QWidget *pWidget, const QRect &defaultGeometry) 4140 QRect UIExtraDataManager::guestControlFileManagerDialogGeometry(QWidget *pWidget, const QRect &defaultGeometry) 4141 { 4142 return dialogGeometry(GUI_GuestControl_FileManagerDialogGeometry, pWidget, defaultGeometry); 4143 } 4144 4145 bool UIExtraDataManager::guestControlFileManagerDialogShouldBeMaximized() 4140 4146 { 4141 4147 /* Get corresponding extra-data: */ 4142 const QStringList data = extraDataStringList(GUI_GuestControl_DialogGeometry); 4143 4144 /* Parse loaded data: */ 4145 int iX = 0, iY = 0, iW = 0, iH = 0; 4146 bool fOk = data.size() >= 4; 4147 do 4148 { 4149 if (!fOk) break; 4150 iX = data[0].toInt(&fOk); 4151 if (!fOk) break; 4152 iY = data[1].toInt(&fOk); 4153 if (!fOk) break; 4154 iW = data[2].toInt(&fOk); 4155 if (!fOk) break; 4156 iH = data[3].toInt(&fOk); 4157 } 4158 while (0); 4159 4160 /* Use geometry (loaded or default): */ 4161 QRect geometry = fOk ? QRect(iX, iY, iW, iH) : defaultGeometry; 4162 4163 /* Take hint-widget into account: */ 4164 if (pWidget) 4165 geometry.setSize(geometry.size().expandedTo(pWidget->minimumSizeHint())); 4166 4167 /* In Windows Qt fails to reposition out of screen window properly, so doing it ourselves: */ 4168 #ifdef VBOX_WS_WIN 4169 /* Get available-geometry [of screen with point (iX, iY) if possible]: */ 4170 const QRect availableGeometry = fOk ? gpDesktop->availableGeometry(QPoint(iX, iY)) : 4171 gpDesktop->availableGeometry(); 4172 4173 /* Make sure resulting geometry is within current bounds: */ 4174 if (!availableGeometry.contains(geometry)) 4175 geometry = VBoxGlobal::getNormalized(geometry, QRegion(availableGeometry)); 4176 #endif /* VBOX_WS_WIN */ 4177 4178 /* Return result: */ 4179 return geometry; 4180 } 4181 4182 bool UIExtraDataManager::guestControlDialogShouldBeMaximized() 4183 { 4184 /* Get corresponding extra-data: */ 4185 const QStringList data = extraDataStringList(GUI_GuestControl_DialogGeometry); 4148 const QStringList data = extraDataStringList(GUI_GuestControl_FileManagerDialogGeometry); 4186 4149 4187 4150 /* Make sure 5th item has required value: */ … … 4189 4152 } 4190 4153 4191 void UIExtraDataManager::setGuestControlDialogGeometry(const QRect &geometry, bool fMaximized) 4192 { 4193 /* Serialize passed values: */ 4194 QStringList data; 4195 data << QString::number(geometry.x()); 4196 data << QString::number(geometry.y()); 4197 data << QString::number(geometry.width()); 4198 data << QString::number(geometry.height()); 4199 if (fMaximized) 4200 data << GUI_Geometry_State_Max; 4201 4202 /* Re-cache corresponding extra-data: */ 4203 setExtraDataStringList(GUI_GuestControl_DialogGeometry, data); 4204 } 4154 void UIExtraDataManager::setGuestControlFileManagerDialogGeometry(const QRect &geometry, bool fMaximized) 4155 { 4156 setDialogGeometry(GUI_GuestControl_FileManagerDialogGeometry, geometry, fMaximized); 4157 } 4158 4159 QRect UIExtraDataManager::guestProcessControlDialogGeometry(QWidget *pWidget, const QRect &defaultGeometry) 4160 { 4161 return dialogGeometry(GUI_GuestControl_ProcessControlDialogGeometry, pWidget, defaultGeometry); 4162 } 4163 4164 bool UIExtraDataManager::guestProcessControlDialogShouldBeMaximized() 4165 { 4166 /* Get corresponding extra-data: */ 4167 const QStringList data = extraDataStringList(GUI_GuestControl_ProcessControlDialogGeometry); 4168 4169 /* Make sure 5th item has required value: */ 4170 return data.size() == 5 && data[4] == GUI_Geometry_State_Max; 4171 } 4172 4173 void UIExtraDataManager::setGuestProcessControlDialogGeometry(const QRect &geometry, bool fMaximized) 4174 { 4175 setDialogGeometry(GUI_GuestControl_ProcessControlDialogGeometry, geometry, fMaximized); 4176 } 4177 4205 4178 4206 4179 QMap<InformationElementType, bool> UIExtraDataManager::informationWindowElements() … … 4784 4757 } 4785 4758 4759 QRect UIExtraDataManager::dialogGeometry(const QString &strKey, QWidget *pWidget, const QRect &defaultGeometry) 4760 { 4761 /* Get corresponding extra-data: */ 4762 const QStringList data = extraDataStringList(strKey); 4763 4764 /* Parse loaded data: */ 4765 int iX = 0, iY = 0, iW = 0, iH = 0; 4766 bool fOk = data.size() >= 4; 4767 do 4768 { 4769 if (!fOk) break; 4770 iX = data[0].toInt(&fOk); 4771 if (!fOk) break; 4772 iY = data[1].toInt(&fOk); 4773 if (!fOk) break; 4774 iW = data[2].toInt(&fOk); 4775 if (!fOk) break; 4776 iH = data[3].toInt(&fOk); 4777 } 4778 while (0); 4779 4780 /* Use geometry (loaded or default): */ 4781 QRect geometry = fOk ? QRect(iX, iY, iW, iH) : defaultGeometry; 4782 4783 /* Take hint-widget into account: */ 4784 if (pWidget) 4785 geometry.setSize(geometry.size().expandedTo(pWidget->minimumSizeHint())); 4786 4787 /* In Windows Qt fails to reposition out of screen window properly, so doing it ourselves: */ 4788 #ifdef VBOX_WS_WIN 4789 /* Get available-geometry [of screen with point (iX, iY) if possible]: */ 4790 const QRect availableGeometry = fOk ? gpDesktop->availableGeometry(QPoint(iX, iY)) : 4791 gpDesktop->availableGeometry(); 4792 4793 /* Make sure resulting geometry is within current bounds: */ 4794 if (!availableGeometry.contains(geometry)) 4795 geometry = VBoxGlobal::getNormalized(geometry, QRegion(availableGeometry)); 4796 #endif /* VBOX_WS_WIN */ 4797 4798 /* Return result: */ 4799 return geometry; 4800 } 4801 4802 void UIExtraDataManager::setDialogGeometry(const QString &strKey, const QRect &geometry, bool fMaximized) 4803 { 4804 /* Serialize passed values: */ 4805 QStringList data; 4806 data << QString::number(geometry.x()); 4807 data << QString::number(geometry.y()); 4808 data << QString::number(geometry.width()); 4809 data << QString::number(geometry.height()); 4810 if (fMaximized) 4811 data << GUI_Geometry_State_Max; 4812 4813 /* Re-cache corresponding extra-data: */ 4814 setExtraDataStringList(strKey, data); 4815 } 4816 4786 4817 #include "UIExtraDataManager.moc" -
trunk/src/VBox/Frontends/VirtualBox/src/extradata/UIExtraDataManager.h
r75057 r75087 624 624 /** @} */ 625 625 626 /** @name Virtual Machine: Guest Control dialog626 /** @name Virtual Machine: Guest Control related dialogs 627 627 * @{ */ 628 628 void setGuestControlProcessControlSplitterHints(const QList<int> &hints); … … 630 630 QList<int> guestControlProcessControlSplitterHints(); 631 631 QList<int> guestControlFileManagerSplitterHints(); 632 QRect guestControlDialogGeometry(QWidget *pWidget, const QRect &defaultGeometry); 633 bool guestControlDialogShouldBeMaximized(); 634 void setGuestControlDialogGeometry(const QRect &geometry, bool fMaximized); 632 QRect guestControlFileManagerDialogGeometry(QWidget *pWidget, const QRect &defaultGeometry); 633 bool guestControlFileManagerDialogShouldBeMaximized(); 634 void setGuestControlFileManagerDialogGeometry(const QRect &geometry, bool fMaximized); 635 QRect guestProcessControlDialogGeometry(QWidget *pWidget, const QRect &defaultGeometry); 636 bool guestProcessControlDialogShouldBeMaximized(); 637 void setGuestProcessControlDialogGeometry(const QRect &geometry, bool fMaximized); 635 638 /** @} */ 636 639 … … 755 758 QString toFeatureRestricted(bool fRestricted); 756 759 760 QRect dialogGeometry(const QString &strKey, QWidget *pWidget, const QRect &defaultGeometry); 761 void setDialogGeometry(const QString &strKey, const QRect &geometry, bool fMaximized); 762 757 763 /** Returns string consisting of @a strBase appended with @a uScreenIndex for the *non-primary* screen-index. 758 764 * If @a fSameRuleForPrimary is 'true' same rule will be used for *primary* screen-index. Used for storing per-screen extra-data. */ -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIActionPoolRuntime.cpp
r75062 r75087 230 230 }; 231 231 232 /** Simple action extension, used as 'Show Guest Control Dialog' action class. */233 class UIActionSimpleRuntimeShowGuestControl Dialog : public UIActionSimple234 { 235 Q_OBJECT; 236 237 public: 238 239 /** Constructs action passing @a pParent to the base-class. */ 240 UIActionSimpleRuntimeShowGuestControl Dialog(UIActionPool *pParent)232 /** Simple action extension, used as 'Show Guest Control File Manager Dialog' action class. */ 233 class UIActionSimpleRuntimeShowGuestControlFileManagerDialog : public UIActionSimple 234 { 235 Q_OBJECT; 236 237 public: 238 239 /** Constructs action passing @a pParent to the base-class. */ 240 UIActionSimpleRuntimeShowGuestControlFileManagerDialog(UIActionPool *pParent) 241 241 : UIActionSimple(pParent, ":/session_info_16px.png", ":/session_info_disabled_16px.png", true) 242 242 {} … … 247 247 virtual int extraDataID() const /* override */ 248 248 { 249 return UIExtraDataMetaDefs::RuntimeMenuMachineActionType_GuestControl Dialog;250 } 251 /** Returns action extra-data key. */ 252 virtual QString extraDataKey() const /* override */ 253 { 254 return gpConverter->toInternalString(UIExtraDataMetaDefs::RuntimeMenuMachineActionType_GuestControl Dialog);255 } 256 /** Returns whether action is allowed. */ 257 virtual bool isAllowed() const /* override */ 258 { 259 return actionPool()->toRuntime()->isAllowedInMenuMachine(UIExtraDataMetaDefs::RuntimeMenuMachineActionType_GuestControl Dialog);260 } 261 262 /** Returns shortcut extra-data ID. */ 263 virtual QString shortcutExtraDataID() const /* override */ 264 { 265 return QString("GuestControl Dialog");249 return UIExtraDataMetaDefs::RuntimeMenuMachineActionType_GuestControlFileManagerDialog; 250 } 251 /** Returns action extra-data key. */ 252 virtual QString extraDataKey() const /* override */ 253 { 254 return gpConverter->toInternalString(UIExtraDataMetaDefs::RuntimeMenuMachineActionType_GuestControlFileManagerDialog); 255 } 256 /** Returns whether action is allowed. */ 257 virtual bool isAllowed() const /* override */ 258 { 259 return actionPool()->toRuntime()->isAllowedInMenuMachine(UIExtraDataMetaDefs::RuntimeMenuMachineActionType_GuestControlFileManagerDialog); 260 } 261 262 /** Returns shortcut extra-data ID. */ 263 virtual QString shortcutExtraDataID() const /* override */ 264 { 265 return QString("GuestControlFileManagerDialog"); 266 266 } 267 267 … … 275 275 virtual void retranslateUi() /* override */ 276 276 { 277 setName(QApplication::translate("UIActionPool", "Guest Control...")); 278 setStatusTip(QApplication::translate("UIActionPool", "Display the virtual machine guest control window")); 279 } 280 }; 277 setName(QApplication::translate("UIActionPool", "File Manager...")); 278 setStatusTip(QApplication::translate("UIActionPool", "Display the virtual machine guest control file manager window")); 279 } 280 }; 281 282 /** Simple action extension, used as 'Show Guest Process Control Dialog' action class. */ 283 class UIActionSimpleRuntimeShowGuestProcessControlDialog : public UIActionSimple 284 { 285 Q_OBJECT; 286 287 public: 288 289 /** Constructs action passing @a pParent to the base-class. */ 290 UIActionSimpleRuntimeShowGuestProcessControlDialog(UIActionPool *pParent) 291 : UIActionSimple(pParent, ":/session_info_16px.png", ":/session_info_disabled_16px.png", true) 292 {} 293 294 protected: 295 296 /** Returns action extra-data ID. */ 297 virtual int extraDataID() const /* override */ 298 { 299 return UIExtraDataMetaDefs::RuntimeMenuMachineActionType_GuestProcessControlDialog; 300 } 301 /** Returns action extra-data key. */ 302 virtual QString extraDataKey() const /* override */ 303 { 304 return gpConverter->toInternalString(UIExtraDataMetaDefs::RuntimeMenuMachineActionType_GuestProcessControlDialog); 305 } 306 /** Returns whether action is allowed. */ 307 virtual bool isAllowed() const /* override */ 308 { 309 return actionPool()->toRuntime()->isAllowedInMenuMachine(UIExtraDataMetaDefs::RuntimeMenuMachineActionType_GuestProcessControlDialog); 310 } 311 312 /** Returns shortcut extra-data ID. */ 313 virtual QString shortcutExtraDataID() const /* override */ 314 { 315 return QString("GuestProcessControlDialog"); 316 } 317 318 /** Returns default shortcut. */ 319 virtual QKeySequence defaultShortcut(UIActionPoolType) const /* override */ 320 { 321 return QKeySequence(); 322 } 323 324 /** Handles translation event. */ 325 virtual void retranslateUi() /* override */ 326 { 327 setName(QApplication::translate("UIActionPool", "Guest Process Control...")); 328 setStatusTip(QApplication::translate("UIActionPool", "Display the virtual machine guest process control window")); 329 } 330 }; 331 281 332 282 333 /** Toggle action extension, used as 'Pause' action class. */ … … 3234 3285 m_pool[UIActionIndexRT_M_Machine_S_TakeSnapshot] = new UIActionSimpleRuntimePerformTakeSnapshot(this); 3235 3286 m_pool[UIActionIndexRT_M_Machine_S_ShowInformation] = new UIActionSimpleRuntimeShowInformationDialog(this); 3236 m_pool[UIActionIndexRT_M_Machine_S_ShowGuestControl] = new UIActionSimpleRuntimeShowGuestControlDialog(this); 3287 m_pool[UIActionIndexRT_M_Machine_S_ShowGuestControlFileManager] = new UIActionSimpleRuntimeShowGuestControlFileManagerDialog(this); 3288 m_pool[UIActionIndexRT_M_Machine_S_ShowGuestProcessControl] = new UIActionSimpleRuntimeShowGuestProcessControlDialog(this); 3237 3289 m_pool[UIActionIndexRT_M_Machine_T_Pause] = new UIActionToggleRuntimePause(this); 3238 3290 m_pool[UIActionIndexRT_M_Machine_S_Reset] = new UIActionSimpleRuntimePerformReset(this); … … 3537 3589 fSeparator = addAction(pMenu, action(UIActionIndexRT_M_Machine_S_ShowInformation)) || fSeparator; 3538 3590 #ifdef VBOX_GUI_WITH_GUEST_CONTROL_UI 3539 fSeparator = addAction(pMenu, action(UIActionIndexRT_M_Machine_S_ShowGuestControl)) || fSeparator; 3591 fSeparator = addAction(pMenu, action(UIActionIndexRT_M_Machine_S_ShowGuestControlFileManager)) || fSeparator; 3592 fSeparator = addAction(pMenu, action(UIActionIndexRT_M_Machine_S_ShowGuestProcessControl)) || fSeparator; 3540 3593 #endif 3541 3594 /* Separator: */ -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIActionPoolRuntime.h
r75062 r75087 46 46 UIActionIndexRT_M_Machine_S_TakeSnapshot, 47 47 UIActionIndexRT_M_Machine_S_ShowInformation, 48 UIActionIndexRT_M_Machine_S_ShowGuestControl, 48 UIActionIndexRT_M_Machine_S_ShowGuestControlFileManager, 49 UIActionIndexRT_M_Machine_S_ShowGuestProcessControl, 49 50 UIActionIndexRT_M_Machine_T_Pause, 50 51 UIActionIndexRT_M_Machine_S_Reset, -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineLogic.cpp
r75062 r75087 66 66 # include "UIAddDiskEncryptionPasswordDialog.h" 67 67 # include "UIVMInformationDialog.h" 68 # include "UIGuestControlDialog.h" 68 # include "UIGuestControlFileManagerDialog.h" 69 # include "UIGuestProcessControlDialog.h" 69 70 70 71 … … 1112 1113 connect(actionPool()->action(UIActionIndexRT_M_Machine_S_ShowInformation), SIGNAL(triggered()), 1113 1114 this, SLOT(sltShowInformationDialog())); 1114 connect(actionPool()->action(UIActionIndexRT_M_Machine_S_ShowGuestControl), SIGNAL(triggered()), 1115 this, SLOT(sltShowGuestControlDialog())); 1115 connect(actionPool()->action(UIActionIndexRT_M_Machine_S_ShowGuestControlFileManager), SIGNAL(triggered()), 1116 this, SLOT(sltShowGuestControlFileManagerDialog())); 1117 connect(actionPool()->action(UIActionIndexRT_M_Machine_S_ShowGuestProcessControl), SIGNAL(triggered()), 1118 this, SLOT(sltShowGuestProcessControlDialog())); 1116 1119 connect(actionPool()->action(UIActionIndexRT_M_Machine_T_Pause), SIGNAL(toggled(bool)), 1117 1120 this, SLOT(sltPause(bool))); … … 1783 1786 } 1784 1787 1785 void UIMachineLogic::sltShowGuestControl Dialog()1788 void UIMachineLogic::sltShowGuestControlFileManagerDialog() 1786 1789 { 1787 1790 if (machine().isNull() || !activeMachineWindow()) … … 1793 1796 1794 1797 QIManagerDialog *pGuestControlDialog; 1795 UIGuestControl DialogFactory dialogFactory(actionPool(), console().GetGuest(), machine().GetName());1798 UIGuestControlFileManagerDialogFactory dialogFactory(actionPool(), console().GetGuest(), machine().GetName()); 1796 1799 dialogFactory.prepare(pGuestControlDialog, activeMachineWindow()); 1797 1800 if (pGuestControlDialog) … … 1804 1807 pGuestControlDialog->activateWindow(); 1805 1808 connect(pGuestControlDialog, &QIManagerDialog::sigClose, 1806 this, &UIMachineLogic::sltCloseGuestControl Window);1807 } 1808 } 1809 1810 void UIMachineLogic::sltCloseGuestControl Window()1809 this, &UIMachineLogic::sltCloseGuestControlFileManagerDialog); 1810 } 1811 } 1812 1813 void UIMachineLogic::sltCloseGuestControlFileManagerDialog() 1811 1814 { 1812 1815 QIManagerDialog* pDialog = qobject_cast<QIManagerDialog*>(sender()); … … 1817 1820 m_pGuestControlDialog = 0; 1818 1821 pDialog->close(); 1819 UIGuestControlDialogFactory().cleanup(pDialog); 1822 UIGuestControlFileManagerDialogFactory().cleanup(pDialog); 1823 } 1824 1825 void UIMachineLogic::sltShowGuestProcessControlDialog() 1826 { 1827 if (machine().isNull() || !activeMachineWindow()) 1828 return; 1829 1830 /* Create a logviewer only if we don't have one already */ 1831 if (m_pGuestControlDialog) 1832 return; 1833 1834 QIManagerDialog *pGuestControlDialog; 1835 UIGuestProcessControlDialogFactory dialogFactory(actionPool(), console().GetGuest(), machine().GetName()); 1836 dialogFactory.prepare(pGuestControlDialog, activeMachineWindow()); 1837 if (pGuestControlDialog) 1838 { 1839 m_pGuestControlDialog = pGuestControlDialog; 1840 1841 /* Show instance: */ 1842 pGuestControlDialog->show(); 1843 pGuestControlDialog->setWindowState(pGuestControlDialog->windowState() & ~Qt::WindowMinimized); 1844 pGuestControlDialog->activateWindow(); 1845 connect(pGuestControlDialog, &QIManagerDialog::sigClose, 1846 this, &UIMachineLogic::sltCloseGuestProcessControlDialog); 1847 } 1848 } 1849 1850 void UIMachineLogic::sltCloseGuestProcessControlDialog() 1851 { 1852 QIManagerDialog* pDialog = qobject_cast<QIManagerDialog*>(sender()); 1853 if (m_pGuestControlDialog != pDialog || !pDialog) 1854 return; 1855 1856 /* Set the m_pLogViewerDialog to NULL before closing the dialog. or we will have redundant deletes*/ 1857 m_pGuestControlDialog = 0; 1858 pDialog->close(); 1859 UIGuestProcessControlDialogFactory().cleanup(pDialog); 1820 1860 } 1821 1861 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineLogic.h
r75062 r75087 274 274 void sltTakeSnapshot(); 275 275 void sltShowInformationDialog(); 276 void sltShowGuestControlDialog(); 277 void sltCloseGuestControlWindow(); 276 void sltShowGuestControlFileManagerDialog(); 277 void sltCloseGuestControlFileManagerDialog(); 278 void sltShowGuestProcessControlDialog(); 279 void sltCloseGuestProcessControlDialog(); 278 280 void sltReset(); 279 281 void sltPause(bool fOn); -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/guestctrl/UIGuestControlFileManager.cpp
r75057 r75087 36 36 # include "QITreeWidget.h" 37 37 # include "QIWithRetranslateUI.h" 38 # include "UIActionPool.h" 38 39 # include "UIErrorString.h" 39 40 # include "UIExtraDataManager.h" … … 228 229 if (m_pUserNameEdit) 229 230 { 230 m_pUserNameEdit->setToolTip(QApplication::translate("UIGuest ControlWidget", "User name to authenticate session creation"));231 m_pUserNameEdit->setPlaceholderText(QApplication::translate("UIGuest ControlWidget", "User Name"));231 m_pUserNameEdit->setToolTip(QApplication::translate("UIGuestProcessControlWidget", "User name to authenticate session creation")); 232 m_pUserNameEdit->setPlaceholderText(QApplication::translate("UIGuestProcessControlWidget", "User Name")); 232 233 233 234 } 234 235 if (m_pPasswordEdit) 235 236 { 236 m_pPasswordEdit->setToolTip(QApplication::translate("UIGuest ControlWidget", "Password to authenticate session creation"));237 m_pPasswordEdit->setPlaceholderText(QApplication::translate("UIGuest ControlWidget", "Password"));237 m_pPasswordEdit->setToolTip(QApplication::translate("UIGuestProcessControlWidget", "Password to authenticate session creation")); 238 m_pPasswordEdit->setPlaceholderText(QApplication::translate("UIGuestProcessControlWidget", "Password")); 238 239 } 239 240 240 241 if (m_pCreateButton) 241 m_pCreateButton->setText(QApplication::translate("UIGuest ControlWidget", "Create Session"));242 m_pCreateButton->setText(QApplication::translate("UIGuestProcessControlWidget", "Create Session")); 242 243 if (m_pCloseButton) 243 m_pCloseButton->setText(QApplication::translate("UIGuest ControlWidget", "Close Session"));244 m_pCloseButton->setText(QApplication::translate("UIGuestProcessControlWidget", "Close Session")); 244 245 } 245 246 … … 285 286 *********************************************************************************************************************************/ 286 287 287 UIGuestControlFileManager::UIGuestControlFileManager(QWidget *pParent, const CGuest &comGuest) 288 UIGuestControlFileManager::UIGuestControlFileManager(EmbedTo enmEmbedding, UIActionPool *pActionPool, 289 const CGuest &comGuest, QWidget *pParent) 288 290 : QIWithRetranslateUI<QWidget>(pParent) 289 291 , m_iMaxRecursionDepth(1) … … 302 304 , m_pGuestFileTable(0) 303 305 , m_pHostFileTable(0) 306 , m_enmEmbedding(enmEmbedding) 307 , m_pActionPool(pActionPool) 304 308 { 305 309 prepareGuestListener(); … … 325 329 if (m_pCopyGuestToHost) 326 330 { 327 m_pCopyGuestToHost->setText(QApplication::translate("UIGuest ControlWidget", "Copy the selected object(s) from guest to host"));328 m_pCopyGuestToHost->setToolTip(QApplication::translate("UIGuest ControlWidget", "Copy the selected object(s) from guest to host"));329 m_pCopyGuestToHost->setStatusTip(QApplication::translate("UIGuest ControlWidget", "Copy the selected object(s) from guest to host"));331 m_pCopyGuestToHost->setText(QApplication::translate("UIGuestProcessControlWidget", "Copy the selected object(s) from guest to host")); 332 m_pCopyGuestToHost->setToolTip(QApplication::translate("UIGuestProcessControlWidget", "Copy the selected object(s) from guest to host")); 333 m_pCopyGuestToHost->setStatusTip(QApplication::translate("UIGuestProcessControlWidget", "Copy the selected object(s) from guest to host")); 330 334 } 331 335 332 336 if (m_pCopyHostToGuest) 333 337 { 334 m_pCopyHostToGuest->setText(QApplication::translate("UIGuest ControlWidget", "Copy the selected object(s) from host to guest"));335 m_pCopyHostToGuest->setToolTip(QApplication::translate("UIGuest ControlWidget", "Copy the selected object(s) from host to guest"));336 m_pCopyHostToGuest->setStatusTip(QApplication::translate("UIGuest ControlWidget", "Copy the selected object(s) from host to guest"));337 } 338 339 340 m_pTabWidget->setTabText(0, QApplication::translate("UIGuest ControlWidget", "Log"));341 m_pTabWidget->setTabText(1, QApplication::translate("UIGuest ControlWidget", "File Operations"));342 m_pTabWidget->setTabText(2, QApplication::translate("UIGuest ControlWidget", "Terminal"));338 m_pCopyHostToGuest->setText(QApplication::translate("UIGuestProcessControlWidget", "Copy the selected object(s) from host to guest")); 339 m_pCopyHostToGuest->setToolTip(QApplication::translate("UIGuestProcessControlWidget", "Copy the selected object(s) from host to guest")); 340 m_pCopyHostToGuest->setStatusTip(QApplication::translate("UIGuestProcessControlWidget", "Copy the selected object(s) from host to guest")); 341 } 342 343 344 m_pTabWidget->setTabText(0, QApplication::translate("UIGuestProcessControlWidget", "Log")); 345 m_pTabWidget->setTabText(1, QApplication::translate("UIGuestProcessControlWidget", "File Operations")); 346 m_pTabWidget->setTabText(2, QApplication::translate("UIGuestProcessControlWidget", "Terminal")); 343 347 344 348 } -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/guestctrl/UIGuestControlFileManager.h
r75000 r75087 30 30 31 31 /* GUI includes: */ 32 #include "QIManagerDialog.h" 32 33 #include "QIWithRetranslateUI.h" 33 34 #include "UIMainEventListener.h" … … 40 41 class QITabWidget; 41 42 class CGuestSessionStateChangedEvent; 43 class UIActionPool; 42 44 class UIFileOperationsList; 43 45 class UIGuestControlConsole; … … 73 75 public: 74 76 75 UIGuestControlFileManager(QWidget *pParent, const CGuest &comGuest); 77 UIGuestControlFileManager(EmbedTo enmEmbedding, UIActionPool *pActionPool, 78 const CGuest &comGuest, QWidget *pParent); 76 79 ~UIGuestControlFileManager(); 77 80 //const UIGuestControlFileManagerSettings& settings() const; … … 143 146 CEventListener m_comSessionListener; 144 147 CEventListener m_comGuestListener; 148 const EmbedTo m_enmEmbedding; 149 UIActionPool *m_pActionPool; 150 145 151 //UIGuestControlFileManagerSettings m_settings; 146 152 }; -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/guestctrl/UIGuestControlFileManagerDialog.cpp
r75086 r75087 1 1 /* $Id$ */ 2 2 /** @file 3 * VBox Qt GUI - UIGuestControl Dialog class implementation.3 * VBox Qt GUI - UIGuestControlFileManagerDialog class implementation. 4 4 */ 5 5 … … 28 28 # include "UIExtraDataManager.h" 29 29 # include "UIIconPool.h" 30 # include "UIGuestControl Dialog.h"31 # include "UIGuestControl Widget.h"30 # include "UIGuestControlFileManager.h" 31 # include "UIGuestControlFileManagerDialog.h" 32 32 # include "VBoxGlobal.h" 33 33 # ifdef VBOX_WS_MAC … … 39 39 40 40 /********************************************************************************************************************************* 41 * Class UIGuestControl DialogFactory implementation.*41 * Class UIGuestControlFileManagerDialogFactory implementation. * 42 42 *********************************************************************************************************************************/ 43 43 44 UIGuestControl DialogFactory::UIGuestControlDialogFactory(UIActionPool *pActionPool /* = 0 */,44 UIGuestControlFileManagerDialogFactory::UIGuestControlFileManagerDialogFactory(UIActionPool *pActionPool /* = 0 */, 45 45 const CGuest &comGuest /* = CGuest() */, 46 46 const QString &strMachineName /* = QString() */) … … 51 51 } 52 52 53 void UIGuestControl DialogFactory::create(QIManagerDialog *&pDialog, QWidget *pCenterWidget)53 void UIGuestControlFileManagerDialogFactory::create(QIManagerDialog *&pDialog, QWidget *pCenterWidget) 54 54 { 55 pDialog = new UIGuestControl Dialog(pCenterWidget, m_pActionPool, m_comGuest, m_strMachineName);55 pDialog = new UIGuestControlFileManagerDialog(pCenterWidget, m_pActionPool, m_comGuest, m_strMachineName); 56 56 } 57 57 58 58 59 59 /********************************************************************************************************************************* 60 * Class UIGuestControl Dialog implementation.*60 * Class UIGuestControlFileManagerDialog implementation. * 61 61 *********************************************************************************************************************************/ 62 62 63 UIGuestControl Dialog::UIGuestControlDialog(QWidget *pCenterWidget,63 UIGuestControlFileManagerDialog::UIGuestControlFileManagerDialog(QWidget *pCenterWidget, 64 64 UIActionPool *pActionPool, 65 65 const CGuest &comGuest, … … 72 72 } 73 73 74 void UIGuestControl Dialog::retranslateUi()74 void UIGuestControlFileManagerDialog::retranslateUi() 75 75 { 76 76 /* Translate window title: */ 77 77 setWindowTitle(tr("%1 - Guest Control").arg(m_strMachineName)); 78 78 /* Translate buttons: */ 79 button(ButtonType_Close)->setText(UIGuestControl Widget::tr("Close"));79 button(ButtonType_Close)->setText(UIGuestControlFileManager::tr("Close")); 80 80 } 81 81 82 void UIGuestControl Dialog::configure()82 void UIGuestControlFileManagerDialog::configure() 83 83 { 84 84 /* Apply window icons: */ 85 setWindowIcon(UIIconPool::iconSetFull(":/vm_show_logs_32px.png", ":/vm_show_logs_16px.png"));85 //setWindowIcon(UIIconPool::iconSetFull(":/vm_show_logs_32px.png", ":/vm_show_logs_16px.png")); 86 86 } 87 87 88 void UIGuestControl Dialog::configureCentralWidget()88 void UIGuestControlFileManagerDialog::configureCentralWidget() 89 89 { 90 90 /* Create widget: */ 91 UIGuestControlWidget *pWidget = new UIGuestControlWidget(EmbedTo_Dialog, m_pActionPool, m_comGuest, true /* show toolbar */, this); 91 UIGuestControlFileManager *pWidget = new UIGuestControlFileManager(EmbedTo_Dialog, m_pActionPool, 92 m_comGuest, this); 92 93 93 94 if (pWidget) … … 107 108 } 108 109 109 void UIGuestControl Dialog::finalize()110 void UIGuestControlFileManagerDialog::finalize() 110 111 { 111 112 /* Apply language settings: */ … … 113 114 } 114 115 115 void UIGuestControl Dialog::loadSettings()116 void UIGuestControlFileManagerDialog::loadSettings() 116 117 { 117 118 const QRect desktopRect = gpDesktop->availableGeometry(this); … … 124 125 125 126 /* Load geometry from extradata: */ 126 QRect geometry = gEDataManager->guestControl DialogGeometry(this, defaultGeometry);127 QRect geometry = gEDataManager->guestControlFileManagerDialogGeometry(this, defaultGeometry); 127 128 128 129 /* Restore geometry: */ 129 LogRel2(("GUI: UIGuestControl Dialog: Restoring geometry to: Origin=%dx%d, Size=%dx%d\n",130 LogRel2(("GUI: UIGuestControlFileManagerDialog: Restoring geometry to: Origin=%dx%d, Size=%dx%d\n", 130 131 geometry.x(), geometry.y(), geometry.width(), geometry.height())); 131 132 setDialogGeometry(geometry); 132 133 } 133 134 134 void UIGuestControl Dialog::saveSettings() const135 void UIGuestControlFileManagerDialog::saveSettings() const 135 136 { 136 137 /* Save window geometry to extradata: */ … … 139 140 /* darwinIsWindowMaximized expects a non-const QWidget*. thus const_cast: */ 140 141 QWidget *pw = const_cast<QWidget*>(qobject_cast<const QWidget*>(this)); 141 gEDataManager->setGuestControlDialog Geometry(saveGeometry, ::darwinIsWindowMaximized(pw));142 gEDataManager->setGuestControlDialogFileManagerDialogGeometry(saveGeometry, ::darwinIsWindowMaximized(pw)); 142 143 #else /* !VBOX_WS_MAC */ 143 gEDataManager->setGuestControl DialogGeometry(saveGeometry, isMaximized());144 gEDataManager->setGuestControlFileManagerDialogGeometry(saveGeometry, isMaximized()); 144 145 #endif /* !VBOX_WS_MAC */ 145 LogRel2(("GUI: Guest Control Dialog: Geometry saved as: Origin=%dx%d, Size=%dx%d\n",146 LogRel2(("GUI: Guest Control File Manager Dialog: Geometry saved as: Origin=%dx%d, Size=%dx%d\n", 146 147 saveGeometry.x(), saveGeometry.y(), saveGeometry.width(), saveGeometry.height())); 147 148 } 148 149 149 bool UIGuestControl Dialog::shouldBeMaximized() const150 bool UIGuestControlFileManagerDialog::shouldBeMaximized() const 150 151 { 151 return gEDataManager->guestControl DialogShouldBeMaximized();152 return gEDataManager->guestControlFileManagerDialogShouldBeMaximized(); 152 153 } 153 154 154 void UIGuestControl Dialog::sltSetCloseButtonShortCut(QKeySequence shortcut)155 void UIGuestControlFileManagerDialog::sltSetCloseButtonShortCut(QKeySequence shortcut) 155 156 { 156 157 if (button(ButtonType_Close)) -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/guestctrl/UIGuestControlFileManagerDialog.h
r75086 r75087 1 1 /* $Id$ */ 2 2 /** @file 3 * VBox Qt GUI - UIGuestControl Dialog class declaration.3 * VBox Qt GUI - UIGuestControlFileManagerDialog class declaration. 4 4 */ 5 5 … … 16 16 */ 17 17 18 #ifndef ___UIGuestControl Dialog_h___19 #define ___UIGuestControl Dialog_h___18 #ifndef ___UIGuestControlFileManagerDialog_h___ 19 #define ___UIGuestControlFileManagerDialog_h___ 20 20 21 21 /* Qt includes: */ … … 34 34 class QVBoxLayout; 35 35 class UIActionPool; 36 class UIGuestControl Dialog;36 class UIGuestControlFileManagerDialog; 37 37 class CGuest; 38 38 39 39 40 40 /** QIManagerDialogFactory extension used as a factory for the Guest Control dialog. */ 41 class UIGuestControl DialogFactory : public QIManagerDialogFactory41 class UIGuestControlFileManagerDialogFactory : public QIManagerDialogFactory 42 42 { 43 43 public: 44 44 45 UIGuestControl DialogFactory(UIActionPool *pActionPool = 0, const CGuest &comGuest = CGuest(), const QString &strMachineName = QString());45 UIGuestControlFileManagerDialogFactory(UIActionPool *pActionPool = 0, const CGuest &comGuest = CGuest(), const QString &strMachineName = QString()); 46 46 47 47 protected: … … 58 58 59 59 /** QIManagerDialog extension providing GUI with the dialog displaying guest control releated logs. */ 60 class UIGuestControl Dialog : public QIWithRetranslateUI<QIManagerDialog>60 class UIGuestControlFileManagerDialog : public QIWithRetranslateUI<QIManagerDialog> 61 61 { 62 62 Q_OBJECT; … … 68 68 * @param pActionPool Passes the action-pool reference. 69 69 * @param comGuest Passes the com-guest reference. */ 70 UIGuestControl Dialog(QWidget *pCenterWidget, UIActionPool *pActionPool, const CGuest &comGuest, const QString &strMachineName = QString());70 UIGuestControlFileManagerDialog(QWidget *pCenterWidget, UIActionPool *pActionPool, const CGuest &comGuest, const QString &strMachineName = QString()); 71 71 72 72 protected: … … 111 111 112 112 113 #endif /* !___UIGuestControl Dialog_h___ */113 #endif /* !___UIGuestControlFileManagerDialog_h___ */ -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/guestctrl/UIGuestControlFileTable.cpp
r75057 r75087 329 329 if (!menu) 330 330 return; 331 /* I know this is ugly: */ 332 bool isGuestFileTable = qobject_cast<UIGuestFileTable*>(parent()); 333 //setText(QApplication::translate("UIGuestControlWidget", "Host System")); 334 QAction *pActionGoUp = menu->addAction(QApplication::translate("UIGuestControlWidget","Go up")); 331 332 QAction *pActionGoUp = menu->addAction(QApplication::translate("UIGuestControlFileManager","Go up")); 335 333 if (pActionGoUp) 336 334 { … … 338 336 connect(pActionGoUp, &QAction::triggered, this, &UIGuestControlFileView::sigGoUp); 339 337 } 340 QAction *pActionGoHome = menu->addAction(QApplication::translate("UIGuestControl Widget", "Go home"));338 QAction *pActionGoHome = menu->addAction(QApplication::translate("UIGuestControlFileManager", "Go home")); 341 339 if (pActionGoHome) 342 340 { … … 345 343 } 346 344 347 QAction *pActionRefresh = menu->addAction(QApplication::translate("UIGuestControl Widget", "Refresh"));345 QAction *pActionRefresh = menu->addAction(QApplication::translate("UIGuestControlFileManager", "Refresh")); 348 346 if (pActionRefresh) 349 347 { … … 353 351 354 352 menu->addSeparator(); 355 QAction *pActionDelete = menu->addAction(QApplication::translate("UIGuestControl Widget", "Delete"));353 QAction *pActionDelete = menu->addAction(QApplication::translate("UIGuestControlFileManager", "Delete")); 356 354 if (pActionDelete) 357 355 { … … 361 359 } 362 360 363 QAction *pActionRename = menu->addAction(QApplication::translate("UIGuestControl Widget", "Rename"));361 QAction *pActionRename = menu->addAction(QApplication::translate("UIGuestControlFileManager", "Rename")); 364 362 if (pActionRename) 365 363 { … … 370 368 } 371 369 372 QAction *pActionCreateNewDirectory = menu->addAction(QApplication::translate("UIGuestControl Widget", "Create New Directory"));370 QAction *pActionCreateNewDirectory = menu->addAction(QApplication::translate("UIGuestControlFileManager", "Create New Directory")); 373 371 if (pActionCreateNewDirectory) 374 372 { … … 381 379 QAction *pActionPaste = 0; 382 380 381 bool isGuestFileTable = qobject_cast<UIGuestFileTable*>(parent()); 382 383 383 if (isGuestFileTable) 384 384 { 385 pActionCopy = menu->addAction(QApplication::translate("UIGuestControl Widget", "Copy"));385 pActionCopy = menu->addAction(QApplication::translate("UIGuestControlFileManager", "Copy")); 386 386 if (pActionCopy) 387 387 { … … 391 391 } 392 392 393 pActionCut = menu->addAction(QApplication::translate("UIGuestControl Widget", "Cut"));393 pActionCut = menu->addAction(QApplication::translate("UIGuestControlFileManager", "Cut")); 394 394 if (pActionCut) 395 395 { … … 399 399 } 400 400 401 pActionPaste = menu->addAction(QApplication::translate("UIGuestControl Widget", "Paste"));401 pActionPaste = menu->addAction(QApplication::translate("UIGuestControlFileManager", "Paste")); 402 402 if (pActionPaste) 403 403 { … … 408 408 409 409 menu->addSeparator(); 410 QAction *pActionShowProperties = menu->addAction(QApplication::translate("UIGuestControl Widget", "Properties"));410 QAction *pActionShowProperties = menu->addAction(QApplication::translate("UIGuestControlFileManager", "Properties")); 411 411 if (pActionShowProperties) 412 412 { … … 1435 1435 if (m_pGoUp) 1436 1436 { 1437 m_pGoUp->setText(QApplication::translate("UIGuestControl Widget", "Move one level up"));1438 m_pGoUp->setToolTip(QApplication::translate("UIGuestControl Widget", "Move one level up"));1439 m_pGoUp->setStatusTip(QApplication::translate("UIGuestControl Widget", "Move one level up"));1437 m_pGoUp->setText(QApplication::translate("UIGuestControlFileManager", "Move one level up")); 1438 m_pGoUp->setToolTip(QApplication::translate("UIGuestControlFileManager", "Move one level up")); 1439 m_pGoUp->setStatusTip(QApplication::translate("UIGuestControlFileManager", "Move one level up")); 1440 1440 } 1441 1441 1442 1442 if (m_pGoHome) 1443 1443 { 1444 m_pGoHome->setText(QApplication::translate("UIGuestControl Widget", "Go to home directory"));1445 m_pGoHome->setToolTip(QApplication::translate("UIGuestControl Widget", "Go to home directory"));1446 m_pGoHome->setStatusTip(QApplication::translate("UIGuestControl Widget", "Go to home directory"));1444 m_pGoHome->setText(QApplication::translate("UIGuestControlFileManager", "Go to home directory")); 1445 m_pGoHome->setToolTip(QApplication::translate("UIGuestControlFileManager", "Go to home directory")); 1446 m_pGoHome->setStatusTip(QApplication::translate("UIGuestControlFileManager", "Go to home directory")); 1447 1447 } 1448 1448 1449 1449 if (m_pRename) 1450 1450 { 1451 m_pRename->setText(QApplication::translate("UIGuestControl Widget", "Rename the selected item"));1452 m_pRename->setToolTip(QApplication::translate("UIGuestControl Widget", "Rename the selected item"));1453 m_pRename->setStatusTip(QApplication::translate("UIGuestControl Widget", "Rename the selected item"));1451 m_pRename->setText(QApplication::translate("UIGuestControlFileManager", "Rename the selected item")); 1452 m_pRename->setToolTip(QApplication::translate("UIGuestControlFileManager", "Rename the selected item")); 1453 m_pRename->setStatusTip(QApplication::translate("UIGuestControlFileManager", "Rename the selected item")); 1454 1454 } 1455 1455 1456 1456 if (m_pRefresh) 1457 1457 { 1458 m_pRefresh->setText(QApplication::translate("UIGuestControl Widget", "Refresh"));1459 m_pRefresh->setToolTip(QApplication::translate("UIGuestControl Widget", "Refresh the current directory"));1460 m_pRefresh->setStatusTip(QApplication::translate("UIGuestControl Widget", "Refresh the current directory"));1458 m_pRefresh->setText(QApplication::translate("UIGuestControlFileManager", "Refresh")); 1459 m_pRefresh->setToolTip(QApplication::translate("UIGuestControlFileManager", "Refresh the current directory")); 1460 m_pRefresh->setStatusTip(QApplication::translate("UIGuestControlFileManager", "Refresh the current directory")); 1461 1461 } 1462 1462 if (m_pDelete) 1463 1463 { 1464 m_pDelete->setText(QApplication::translate("UIGuestControl Widget", "Delete"));1465 m_pDelete->setToolTip(QApplication::translate("UIGuestControl Widget", "Delete the selected item(s)"));1466 m_pDelete->setStatusTip(QApplication::translate("UIGuestControl Widget", "Delete the selected item(s)"));1464 m_pDelete->setText(QApplication::translate("UIGuestControlFileManager", "Delete")); 1465 m_pDelete->setToolTip(QApplication::translate("UIGuestControlFileManager", "Delete the selected item(s)")); 1466 m_pDelete->setStatusTip(QApplication::translate("UIGuestControlFileManager", "Delete the selected item(s)")); 1467 1467 } 1468 1468 1469 1469 if (m_pCreateNewDirectory) 1470 1470 { 1471 m_pCreateNewDirectory->setText(QApplication::translate("UIGuestControl Widget", "Create new directory"));1472 m_pCreateNewDirectory->setToolTip(QApplication::translate("UIGuestControl Widget", "Create new directory"));1473 m_pCreateNewDirectory->setStatusTip(QApplication::translate("UIGuestControl Widget", "Create new directory"));1471 m_pCreateNewDirectory->setText(QApplication::translate("UIGuestControlFileManager", "Create new directory")); 1472 m_pCreateNewDirectory->setToolTip(QApplication::translate("UIGuestControlFileManager", "Create new directory")); 1473 m_pCreateNewDirectory->setStatusTip(QApplication::translate("UIGuestControlFileManager", "Create new directory")); 1474 1474 } 1475 1475 1476 1476 if (m_pCopy) 1477 1477 { 1478 m_pCopy->setText(QApplication::translate("UIGuestControl Widget", "Copy the selected item"));1479 m_pCopy->setToolTip(QApplication::translate("UIGuestControl Widget", "Copy the selected item(s)"));1480 m_pCopy->setStatusTip(QApplication::translate("UIGuestControl Widget", "Copy the selected item(s)"));1478 m_pCopy->setText(QApplication::translate("UIGuestControlFileManager", "Copy the selected item")); 1479 m_pCopy->setToolTip(QApplication::translate("UIGuestControlFileManager", "Copy the selected item(s)")); 1480 m_pCopy->setStatusTip(QApplication::translate("UIGuestControlFileManager", "Copy the selected item(s)")); 1481 1481 1482 1482 } … … 1484 1484 if (m_pCut) 1485 1485 { 1486 m_pCut->setText(QApplication::translate("UIGuestControl Widget", "Cut the selected item(s)"));1487 m_pCut->setToolTip(QApplication::translate("UIGuestControl Widget", "Cut the selected item(s)"));1488 m_pCut->setStatusTip(QApplication::translate("UIGuestControl Widget", "Cut the selected item(s)"));1486 m_pCut->setText(QApplication::translate("UIGuestControlFileManager", "Cut the selected item(s)")); 1487 m_pCut->setToolTip(QApplication::translate("UIGuestControlFileManager", "Cut the selected item(s)")); 1488 m_pCut->setStatusTip(QApplication::translate("UIGuestControlFileManager", "Cut the selected item(s)")); 1489 1489 1490 1490 } … … 1492 1492 if ( m_pPaste) 1493 1493 { 1494 m_pPaste->setText(QApplication::translate("UIGuestControl Widget", "Paste the copied item(s)"));1495 m_pPaste->setToolTip(QApplication::translate("UIGuestControl Widget", "Paste the copied item(s)"));1496 m_pPaste->setStatusTip(QApplication::translate("UIGuestControl Widget", "Paste the copied item(s)"));1494 m_pPaste->setText(QApplication::translate("UIGuestControlFileManager", "Paste the copied item(s)")); 1495 m_pPaste->setToolTip(QApplication::translate("UIGuestControlFileManager", "Paste the copied item(s)")); 1496 m_pPaste->setStatusTip(QApplication::translate("UIGuestControlFileManager", "Paste the copied item(s)")); 1497 1497 } 1498 1498 1499 1499 if (m_pShowProperties) 1500 1500 { 1501 m_pShowProperties->setText(QApplication::translate("UIGuestControl Widget", "Show the properties of the selected item(s)"));1502 m_pShowProperties->setToolTip(QApplication::translate("UIGuestControl Widget", "Show the properties of the selected item(s)"));1503 m_pShowProperties->setStatusTip(QApplication::translate("UIGuestControl Widget", "Show the properties of the selected item(s)"));1501 m_pShowProperties->setText(QApplication::translate("UIGuestControlFileManager", "Show the properties of the selected item(s)")); 1502 m_pShowProperties->setToolTip(QApplication::translate("UIGuestControlFileManager", "Show the properties of the selected item(s)")); 1503 m_pShowProperties->setStatusTip(QApplication::translate("UIGuestControlFileManager", "Show the properties of the selected item(s)")); 1504 1504 } 1505 1505 1506 1506 if (m_pSelectAll) 1507 1507 { 1508 m_pSelectAll->setText(QApplication::translate("UIGuestControl Widget", "Select All"));1509 m_pSelectAll->setToolTip(QApplication::translate("UIGuestControl Widget", "Select All"));1510 m_pSelectAll->setStatusTip(QApplication::translate("UIGuestControl Widget", "Select All"));1508 m_pSelectAll->setText(QApplication::translate("UIGuestControlFileManager", "Select All")); 1509 m_pSelectAll->setToolTip(QApplication::translate("UIGuestControlFileManager", "Select All")); 1510 m_pSelectAll->setStatusTip(QApplication::translate("UIGuestControlFileManager", "Select All")); 1511 1511 } 1512 1512 1513 1513 if (m_pInvertSelection) 1514 1514 { 1515 m_pInvertSelection->setText(QApplication::translate("UIGuestControl Widget", "Invert Selection"));1516 m_pInvertSelection->setToolTip(QApplication::translate("UIGuestControl Widget", "Invert Selection"));1517 m_pInvertSelection->setStatusTip(QApplication::translate("UIGuestControl Widget", "Invert Selection"));1515 m_pInvertSelection->setText(QApplication::translate("UIGuestControlFileManager", "Invert Selection")); 1516 m_pInvertSelection->setToolTip(QApplication::translate("UIGuestControlFileManager", "Invert Selection")); 1517 m_pInvertSelection->setStatusTip(QApplication::translate("UIGuestControlFileManager", "Invert Selection")); 1518 1518 } 1519 1519 } -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/guestctrl/UIGuestFileTable.cpp
r75057 r75087 162 162 { 163 163 if (m_pLocationLabel) 164 m_pLocationLabel->setText(QApplication::translate("UIGuestControl Widget", "Guest System"));164 m_pLocationLabel->setText(QApplication::translate("UIGuestControlFileManager", "Guest System")); 165 165 UIGuestControlFileTable::retranslateUi(); 166 166 } -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/guestctrl/UIGuestProcessControlDialog.cpp
r75078 r75087 1 1 /* $Id$ */ 2 2 /** @file 3 * VBox Qt GUI - UIGuest ControlDialog class implementation.3 * VBox Qt GUI - UIGuestProcessControlDialog class implementation. 4 4 */ 5 5 … … 28 28 # include "UIExtraDataManager.h" 29 29 # include "UIIconPool.h" 30 # include "UIGuest ControlDialog.h"31 # include "UIGuest ControlWidget.h"30 # include "UIGuestProcessControlDialog.h" 31 # include "UIGuestProcessControlWidget.h" 32 32 # include "VBoxGlobal.h" 33 33 # ifdef VBOX_WS_MAC … … 39 39 40 40 /********************************************************************************************************************************* 41 * Class UIGuest ControlDialogFactory implementation.*41 * Class UIGuestProcessControlDialogFactory implementation. * 42 42 *********************************************************************************************************************************/ 43 43 44 UIGuest ControlDialogFactory::UIGuestControlDialogFactory(UIActionPool *pActionPool /* = 0 */,44 UIGuestProcessControlDialogFactory::UIGuestProcessControlDialogFactory(UIActionPool *pActionPool /* = 0 */, 45 45 const CGuest &comGuest /* = CGuest() */, 46 46 const QString &strMachineName /* = QString() */) … … 51 51 } 52 52 53 void UIGuest ControlDialogFactory::create(QIManagerDialog *&pDialog, QWidget *pCenterWidget)53 void UIGuestProcessControlDialogFactory::create(QIManagerDialog *&pDialog, QWidget *pCenterWidget) 54 54 { 55 pDialog = new UIGuest ControlDialog(pCenterWidget, m_pActionPool, m_comGuest, m_strMachineName);55 pDialog = new UIGuestProcessControlDialog(pCenterWidget, m_pActionPool, m_comGuest, m_strMachineName); 56 56 } 57 57 58 58 59 59 /********************************************************************************************************************************* 60 * Class UIGuest ControlDialog implementation.*60 * Class UIGuestProcessControlDialog implementation. * 61 61 *********************************************************************************************************************************/ 62 62 63 UIGuest ControlDialog::UIGuestControlDialog(QWidget *pCenterWidget,63 UIGuestProcessControlDialog::UIGuestProcessControlDialog(QWidget *pCenterWidget, 64 64 UIActionPool *pActionPool, 65 65 const CGuest &comGuest, … … 72 72 } 73 73 74 void UIGuest ControlDialog::retranslateUi()74 void UIGuestProcessControlDialog::retranslateUi() 75 75 { 76 76 /* Translate window title: */ 77 77 setWindowTitle(tr("%1 - Guest Control").arg(m_strMachineName)); 78 78 /* Translate buttons: */ 79 button(ButtonType_Close)->setText(UIGuest ControlWidget::tr("Close"));79 button(ButtonType_Close)->setText(UIGuestProcessControlWidget::tr("Close")); 80 80 } 81 81 82 void UIGuest ControlDialog::configure()82 void UIGuestProcessControlDialog::configure() 83 83 { 84 84 /* Apply window icons: */ … … 86 86 } 87 87 88 void UIGuest ControlDialog::configureCentralWidget()88 void UIGuestProcessControlDialog::configureCentralWidget() 89 89 { 90 90 /* Create widget: */ 91 UIGuest ControlWidget *pWidget = new UIGuestControlWidget(EmbedTo_Dialog, m_pActionPool, m_comGuest, true /* show toolbar */,this);91 UIGuestProcessControlWidget *pWidget = new UIGuestProcessControlWidget(EmbedTo_Dialog, m_pActionPool, m_comGuest, this); 92 92 93 93 if (pWidget) … … 107 107 } 108 108 109 void UIGuest ControlDialog::finalize()109 void UIGuestProcessControlDialog::finalize() 110 110 { 111 111 /* Apply language settings: */ … … 113 113 } 114 114 115 void UIGuest ControlDialog::loadSettings()115 void UIGuestProcessControlDialog::loadSettings() 116 116 { 117 117 const QRect desktopRect = gpDesktop->availableGeometry(this); … … 124 124 125 125 /* Load geometry from extradata: */ 126 QRect geometry = gEDataManager->guest ControlDialogGeometry(this, defaultGeometry);126 QRect geometry = gEDataManager->guestProcessControlDialogGeometry(this, defaultGeometry); 127 127 128 128 /* Restore geometry: */ 129 LogRel2(("GUI: UIGuest ControlDialog: Restoring geometry to: Origin=%dx%d, Size=%dx%d\n",129 LogRel2(("GUI: UIGuestProcessControlDialog: Restoring geometry to: Origin=%dx%d, Size=%dx%d\n", 130 130 geometry.x(), geometry.y(), geometry.width(), geometry.height())); 131 131 setDialogGeometry(geometry); 132 132 } 133 133 134 void UIGuest ControlDialog::saveSettings() const134 void UIGuestProcessControlDialog::saveSettings() const 135 135 { 136 136 /* Save window geometry to extradata: */ … … 139 139 /* darwinIsWindowMaximized expects a non-const QWidget*. thus const_cast: */ 140 140 QWidget *pw = const_cast<QWidget*>(qobject_cast<const QWidget*>(this)); 141 gEDataManager->setGuest ControlDialogGeometry(saveGeometry, ::darwinIsWindowMaximized(pw));141 gEDataManager->setGuestProcessControlDialogGeometry(saveGeometry, ::darwinIsWindowMaximized(pw)); 142 142 #else /* !VBOX_WS_MAC */ 143 gEDataManager->setGuest ControlDialogGeometry(saveGeometry, isMaximized());143 gEDataManager->setGuestProcessControlDialogGeometry(saveGeometry, isMaximized()); 144 144 #endif /* !VBOX_WS_MAC */ 145 LogRel2(("GUI: Guest Control Dialog: Geometry saved as: Origin=%dx%d, Size=%dx%d\n",145 LogRel2(("GUI: Guest Process Control Dialog: Geometry saved as: Origin=%dx%d, Size=%dx%d\n", 146 146 saveGeometry.x(), saveGeometry.y(), saveGeometry.width(), saveGeometry.height())); 147 147 } 148 148 149 bool UIGuest ControlDialog::shouldBeMaximized() const149 bool UIGuestProcessControlDialog::shouldBeMaximized() const 150 150 { 151 return gEDataManager->guest ControlDialogShouldBeMaximized();151 return gEDataManager->guestProcessControlDialogShouldBeMaximized(); 152 152 } 153 153 154 void UIGuest ControlDialog::sltSetCloseButtonShortCut(QKeySequence shortcut)154 void UIGuestProcessControlDialog::sltSetCloseButtonShortCut(QKeySequence shortcut) 155 155 { 156 156 if (button(ButtonType_Close)) -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/guestctrl/UIGuestProcessControlDialog.h
r75078 r75087 1 1 /* $Id$ */ 2 2 /** @file 3 * VBox Qt GUI - UIGuest ControlDialog class declaration.3 * VBox Qt GUI - UIGuestProcessControlDialog class declaration. 4 4 */ 5 5 … … 16 16 */ 17 17 18 #ifndef ___UIGuest ControlDialog_h___19 #define ___UIGuest ControlDialog_h___18 #ifndef ___UIGuestProcessControlDialog_h___ 19 #define ___UIGuestProcessControlDialog_h___ 20 20 21 21 /* Qt includes: */ … … 34 34 class QVBoxLayout; 35 35 class UIActionPool; 36 class UIGuest ControlDialog;36 class UIGuestProcessControlDialog; 37 37 class CGuest; 38 38 39 39 40 40 /** QIManagerDialogFactory extension used as a factory for the Guest Control dialog. */ 41 class UIGuest ControlDialogFactory : public QIManagerDialogFactory41 class UIGuestProcessControlDialogFactory : public QIManagerDialogFactory 42 42 { 43 43 public: 44 44 45 UIGuest ControlDialogFactory(UIActionPool *pActionPool = 0, const CGuest &comGuest = CGuest(), const QString &strMachineName = QString());45 UIGuestProcessControlDialogFactory(UIActionPool *pActionPool = 0, const CGuest &comGuest = CGuest(), const QString &strMachineName = QString()); 46 46 47 47 protected: … … 58 58 59 59 /** QIManagerDialog extension providing GUI with the dialog displaying guest control releated logs. */ 60 class UIGuest ControlDialog : public QIWithRetranslateUI<QIManagerDialog>60 class UIGuestProcessControlDialog : public QIWithRetranslateUI<QIManagerDialog> 61 61 { 62 62 Q_OBJECT; … … 68 68 * @param pActionPool Passes the action-pool reference. 69 69 * @param comGuest Passes the com-guest reference. */ 70 UIGuest ControlDialog(QWidget *pCenterWidget, UIActionPool *pActionPool, const CGuest &comGuest, const QString &strMachineName = QString());70 UIGuestProcessControlDialog(QWidget *pCenterWidget, UIActionPool *pActionPool, const CGuest &comGuest, const QString &strMachineName = QString()); 71 71 72 72 protected: … … 111 111 112 112 113 #endif /* !___UIGuest ControlDialog_h___ */113 #endif /* !___UIGuestProcessControlDialog_h___ */ -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/guestctrl/UIGuestProcessControlWidget.cpp
r75057 r75087 165 165 }; 166 166 167 UIGuestProcessControlWidget::UIGuestProcessControlWidget(QWidget *pParent, const CGuest &comGuest) 168 : QWidget(pParent) 167 UIGuestProcessControlWidget::UIGuestProcessControlWidget(EmbedTo enmEmbedding, UIActionPool *pActionPool, 168 const CGuest &comGuest, QWidget *pParent) 169 :QIWithRetranslateUI<QWidget>(pParent) 169 170 , m_comGuest(comGuest) 170 171 , m_pMainLayout(0) … … 173 174 , m_pConsole(0) 174 175 , m_pControlInterface(0) 176 , m_enmEmbedding(enmEmbedding) 177 , m_pActionPool(pActionPool) 175 178 , m_pQtListener(0) 176 179 { … … 186 189 saveSettings(); 187 190 } 191 192 void UIGuestProcessControlWidget::retranslateUi() 193 { 194 } 195 188 196 189 197 void UIGuestProcessControlWidget::prepareObjects() -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/guestctrl/UIGuestProcessControlWidget.h
r75057 r75087 28 28 29 29 /* GUI includes: */ 30 #include "QIManagerDialog.h" 31 #include "QIWithRetranslateUI.h" 30 32 #include "UIMainEventListener.h" 31 33 … … 34 36 class QVBoxLayout; 35 37 class QSplitter; 38 class UIActionPool; 36 39 class UIGuestControlConsole; 37 40 class UIGuestControlInterface; … … 42 45 /** QWidget extension 43 46 * providing GUI with guest session information and control tab in session-information window. */ 44 class UIGuestProcessControlWidget : public Q Widget47 class UIGuestProcessControlWidget : public QIWithRetranslateUI<QWidget> 45 48 { 46 49 Q_OBJECT; … … 48 51 public: 49 52 50 UIGuestProcessControlWidget(QWidget *pParent, const CGuest &comGuest); 53 UIGuestProcessControlWidget(EmbedTo enmEmbedding, UIActionPool *pActionPool, 54 const CGuest &comGuest, QWidget *pParent); 51 55 ~UIGuestProcessControlWidget(); 56 57 protected: 58 59 void retranslateUi(); 52 60 53 61 private slots: … … 82 90 UIGuestControlConsole *m_pConsole; 83 91 UIGuestControlInterface *m_pControlInterface; 92 const EmbedTo m_enmEmbedding; 93 UIActionPool *m_pActionPool; 84 94 85 95 /** Holds the Qt event listener instance. */ -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/guestctrl/UIHostFileTable.cpp
r75057 r75087 134 134 { 135 135 if (m_pLocationLabel) 136 m_pLocationLabel->setText(QApplication::translate("UIGuestControl Widget", "Host System"));136 m_pLocationLabel->setText(QApplication::translate("UIGuestControlFileManager", "Host System")); 137 137 UIGuestControlFileTable::retranslateUi(); 138 138 }
Note:
See TracChangeset
for help on using the changeset viewer.