VirtualBox

Changeset 75221 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
Nov 2, 2018 9:53:25 AM (6 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:6699. Small refactoring in guest control related extra data

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  
    196196const char *UIExtraDataDefs::GUI_InformationWindowElements = "GUI/InformationWindowElements";
    197197const char *UIExtraDataDefs::GUI_GuestControl_ProcessControlSplitterHints = "GUI/GuestControl/ProcessControlSplitterHints";
    198 const char *UIExtraDataDefs::GUI_GuestControl_FileManagerSplitterHints = "GUI/GuestControl/FileManagerSplitterHints";
    199198const char *UIExtraDataDefs::GUI_GuestControl_FileManagerDialogGeometry = "GUI/GuestControl/FileManagerDialogGeometry";
    200199const char *UIExtraDataDefs::GUI_GuestControl_ProcessControlDialogGeometry = "GUI/GuestControl/ProcessControlDialogGeometry";
  • trunk/src/VBox/Frontends/VirtualBox/src/extradata/UIExtraDataDefs.h

    r75087 r75221  
    349349        SHARED_LIBRARY_STUFF extern const char *GUI_InformationWindowElements;
    350350        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      * @{ */
    352356        extern const char *GUI_GuestControl_FileManagerDialogGeometry;
    353         extern const char *GUI_GuestControl_ProcessControlDialogGeometry;
    354357    /** @} */
    355358
  • trunk/src/VBox/Frontends/VirtualBox/src/extradata/UIExtraDataManager.cpp

    r75087 r75221  
    20322032           << GUI_InformationWindowElements
    20332033           << GUI_GuestControl_ProcessControlSplitterHints
    2034            << GUI_GuestControl_FileManagerSplitterHints
    20352034           << GUI_GuestControl_FileManagerDialogGeometry
    20362035           << GUI_GuestControl_ProcessControlDialogGeometry
     
    41044103    /* Get corresponding extra-data: */
    41054104    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);
    41304105
    41314106    /* Parse loaded data: */
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette