Changeset 75221 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Nov 2, 2018 9:53:25 AM (6 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/extradata
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/extradata/UIExtraDataDefs.cpp
r75087 r75221 196 196 const char *UIExtraDataDefs::GUI_InformationWindowElements = "GUI/InformationWindowElements"; 197 197 const char *UIExtraDataDefs::GUI_GuestControl_ProcessControlSplitterHints = "GUI/GuestControl/ProcessControlSplitterHints"; 198 const char *UIExtraDataDefs::GUI_GuestControl_FileManagerSplitterHints = "GUI/GuestControl/FileManagerSplitterHints";199 198 const char *UIExtraDataDefs::GUI_GuestControl_FileManagerDialogGeometry = "GUI/GuestControl/FileManagerDialogGeometry"; 200 199 const char *UIExtraDataDefs::GUI_GuestControl_ProcessControlDialogGeometry = "GUI/GuestControl/ProcessControlDialogGeometry"; -
trunk/src/VBox/Frontends/VirtualBox/src/extradata/UIExtraDataDefs.h
r75087 r75221 349 349 SHARED_LIBRARY_STUFF extern const char *GUI_InformationWindowElements; 350 350 extern const char *GUI_GuestControl_ProcessControlSplitterHints; 351 extern const char *GUI_GuestControl_FileManagerSplitterHints; 351 extern const char *GUI_GuestControl_ProcessControlDialogGeometry; 352 /** @} */ 353 354 /** @name Guest Control UI related data 355 * @{ */ 352 356 extern const char *GUI_GuestControl_FileManagerDialogGeometry; 353 extern const char *GUI_GuestControl_ProcessControlDialogGeometry;354 357 /** @} */ 355 358 -
trunk/src/VBox/Frontends/VirtualBox/src/extradata/UIExtraDataManager.cpp
r75087 r75221 2032 2032 << GUI_InformationWindowElements 2033 2033 << GUI_GuestControl_ProcessControlSplitterHints 2034 << GUI_GuestControl_FileManagerSplitterHints2035 2034 << GUI_GuestControl_FileManagerDialogGeometry 2036 2035 << GUI_GuestControl_ProcessControlDialogGeometry … … 4104 4103 /* Get corresponding extra-data: */ 4105 4104 const QStringList data = extraDataStringList(GUI_GuestControl_ProcessControlSplitterHints); 4106 4107 /* Parse loaded data: */4108 QList<int> hints;4109 hints << (data.size() > 0 ? data[0].toInt() : 0);4110 hints << (data.size() > 1 ? data[1].toInt() : 0);4111 4112 /* Return hints: */4113 return hints;4114 }4115 4116 void UIExtraDataManager::setGuestControlFileManagerSplitterHints(const QList<int> &hints)4117 {4118 QStringList data;4119 data << (hints.size() > 0 ? QString::number(hints[0]) : QString());4120 data << (hints.size() > 1 ? QString::number(hints[1]) : QString());4121 4122 /* Re-cache corresponding extra-data: */4123 setExtraDataStringList(GUI_GuestControl_FileManagerSplitterHints, data);4124 }4125 4126 QList<int> UIExtraDataManager::guestControlFileManagerSplitterHints()4127 {4128 /* Get corresponding extra-data: */4129 const QStringList data = extraDataStringList(GUI_GuestControl_FileManagerSplitterHints);4130 4105 4131 4106 /* Parse loaded data: */
Note:
See TracChangeset
for help on using the changeset viewer.