VirtualBox

Changeset 57540 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Aug 25, 2015 4:46:17 PM (10 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
102352
Message:

FE/Qt: 7958: Adding few more screen-geometry related wrappers to VBoxGlobal. Will be reused in other places.

Location:
trunk/src/VBox/Frontends/VirtualBox/src/globals
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/VBoxGlobal.cpp

    r57481 r57540  
    364364    /* Redirect call to QDesktopWidget: */
    365365    return QApplication::desktop()->availableGeometry(iHostScreenIndex);
     366}
     367
     368const QRect     VBoxGlobal::screenGeometry(QWidget *pWidget /* = 0 */) const
     369{
     370    /* Redirect to existing wrapper: */
     371    return screenGeometry(QApplication::desktop()->screenNumber(pWidget));
     372}
     373
     374const QRect     VBoxGlobal::availableGeometry(QWidget *pWidget /* = 0 */) const
     375{
     376    /* Redirect to existing wrapper: */
     377    return availableGeometry(QApplication::desktop()->screenNumber(pWidget));
    366378}
    367379
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/VBoxGlobal.h

    r57480 r57540  
    140140    bool isVBoxSVCAvailable() const { return m_fVBoxSVCAvailable; }
    141141
    142     /** Returns the geometry of the host-screen with @a iHostScreenIndex.
    143       * @note The default screen is used if @a iHostScreenIndex is -1. */
    144     const QRect screenGeometry(int iHostScreenIndex = -1) const;
    145     /** Returns the available-geometry of the host-screen with @a iHostScreenIndex.
    146       * @note The default screen is used if @a iHostScreenIndex is -1. */
    147     const QRect availableGeometry(int iHostScreenIndex = -1) const;
     142    /** @name Host-screen geometry stuff
     143      * @{ */
     144        /** Returns the geometry of the host-screen with @a iHostScreenIndex.
     145          * @note The default screen is used if @a iHostScreenIndex is -1. */
     146        const QRect     screenGeometry(int iHostScreenIndex = -1) const;
     147        /** Returns the available-geometry of the host-screen with @a iHostScreenIndex.
     148          * @note The default screen is used if @a iHostScreenIndex is -1. */
     149        const QRect     availableGeometry(int iHostScreenIndex = -1) const;
     150
     151        /** Returns the geometry of the host-screen which contains @a pWidget.
     152          * @note The default screen is used if @a pWidget is 0. */
     153        const QRect     screenGeometry(QWidget *pWidget = 0) const;
     154        /** Returns the available-geometry of the host-screen which contains @a pWidget.
     155          * @note The default screen is used if @a pWidget is 0. */
     156        const QRect     availableGeometry(QWidget *pWidget = 0) const;
     157    /** @} */
    148158
    149159    VBoxGlobalSettings &settings() { return gset; }
     
    533543    X11WMType m_enmWindowManagerType;
    534544
    535     /** X11: Holds the desktop-widget watchdog instance aware of host-screen geometry changes. */
    536     UIDesktopWidgetWatchdog *m_pDesktopWidgetWatchdog;
     545    /** @name Host-screen geometry stuff
     546      * @{ */
     547        /** X11: Holds the desktop-widget watchdog instance aware of host-screen geometry changes. */
     548        UIDesktopWidgetWatchdog *m_pDesktopWidgetWatchdog;
     549    /** @} */
    537550#endif /* Q_WS_X11 */
    538551
     
    541554    /** The --restore-current option. */
    542555    bool mRestoreCurrentSnapshot;
     556
    543557    /** @name Ad-hoc VM reconfiguration.
    544558     * @{ */
    545     /** Floppy image. */
    546     QString m_strFloppyImage;
    547     /** DVD image. */
    548     QString m_strDvdImage;
     559        /** Floppy image. */
     560        QString m_strFloppyImage;
     561        /** DVD image. */
     562        QString m_strDvdImage;
    549563    /** @} */
     564
    550565    /** @name VMM options
    551566     * @{ */
    552     /** The --disable-patm option. */
    553     bool mDisablePatm;
    554     /** The --disable-csam option. */
    555     bool mDisableCsam;
    556     /** The --recompile-supervisor option. */
    557     bool mRecompileSupervisor;
    558     /** The --recompile-user option. */
    559     bool mRecompileUser;
    560     /** The --execute-all-in-iem option. */
    561     bool mExecuteAllInIem;
    562     /** The --warp-factor option value. */
    563     uint32_t mWarpPct;
     567        /** The --disable-patm option. */
     568        bool mDisablePatm;
     569        /** The --disable-csam option. */
     570        bool mDisableCsam;
     571        /** The --recompile-supervisor option. */
     572        bool mRecompileSupervisor;
     573        /** The --recompile-user option. */
     574        bool mRecompileUser;
     575        /** The --execute-all-in-iem option. */
     576        bool mExecuteAllInIem;
     577        /** The --warp-factor option value. */
     578        uint32_t mWarpPct;
    564579    /** @} */
    565580
Note: See TracChangeset for help on using the changeset viewer.

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