VirtualBox

Ignore:
Timestamp:
Sep 6, 2021 12:32:06 PM (3 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:10067: A bit of minor fixes across whole the UICommon; Mostly refactoring and coding-style.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UICommon.h

    r91109 r91121  
    298298    /** @} */
    299299
    300     /** @name File-system stuff.
    301      * @{ */
    302         /** Returns full help file name. */
    303         static QString helpFile();
    304 
    305         /** Returns documents path. */
    306         static QString documentsPath();
    307 
    308         /** Returns whether passed @a strFileName ends with one of allowed extension in the @a extensions list. */
    309         static bool hasAllowedExtension(const QString &strFileName, const QStringList &extensions);
    310 
    311         /** Returns a file name (unique up to extension) wrt. @a strFullFolderPath folder content. Starts
    312           * searching strBaseFileName and adds suffixes until a unique file name is found. */
    313         static QString findUniqueFileName(const QString &strFullFolderPath, const QString &strBaseFileName);
    314     /** @} */
    315 
    316     /** @name Widget stuff.
    317      * @{ */
    318         /** Assigns minimum @a pSpinBox to correspond to @a cCount digits. */
    319         static void setMinimumWidthAccordingSymbolCount(QSpinBox *pSpinBox, int cCount);
    320     /** @} */
    321 
    322300    /** @name COM stuff.
    323301     * @{ */
     
    340318    /** @} */
    341319
    342     /** @name COM: Guest OS Type.
     320    /** @name COM: Guest OS Type stuff.
    343321     * @{ */
    344322        /** Returns the list of family IDs. */
     
    365343        static bool switchToMachine(CMachine &comMachine);
    366344        /** Launches certain @a comMachine in specified @a enmLaunchMode. */
    367         bool launchMachine(CMachine &comMachine, LaunchMode enmLaunchMode = LaunchMode_Default);
     345        static bool launchMachine(CMachine &comMachine, LaunchMode enmLaunchMode = LaunchMode_Default);
    368346
    369347        /** Opens session of certain @a enmLockType for VM with certain @a uId. */
     
    377355    /** @} */
    378356
    379     /** @name Cloud Virtual Machine stuff.
     357    /** @name COM: Cloud Virtual Machine stuff.
    380358     * @{ */
    381359        /** Notifies listeners about cloud VM was unregistered.
     
    425403          * @param  fUseLastFolder    Brings whether we should propose to use last used folder. */
    426404        QUuid openMediumWithFileOpenDialog(UIMediumDeviceType enmMediumType, QWidget *pParent = 0,
    427                                              const QString &strDefaultFolder = QString(), bool fUseLastFolder = false);
     405                                           const QString &strDefaultFolder = QString(), bool fUseLastFolder = false);
    428406
    429407        /** Creates and shows a UIMediumSelector dialog.
     
    469447          * @param  fPredictDiff  Brings whether medium will be marked differencing on attaching.
    470448          * @param  fUseHtml      Brings whether HTML subsets should be used in the generated output. */
    471         QString details(const CMedium &comMedium, bool fPredictDiff, bool fUseHtml = true);
     449        QString storageDetails(const CMedium &comMedium, bool fPredictDiff, bool fUseHtml = true);
    472450
    473451        /** Update extra data related to recently used/referred media.
     
    497475        /** Generates tool-tip for passed USB @a comWebcam. */
    498476        static QString toolTip(const CHostVideoInputDevice &comWebcam);
     477    /** @} */
     478
     479    /** @name File-system stuff.
     480     * @{ */
     481        /** Returns full help file name. */
     482        static QString helpFile();
     483
     484        /** Returns documents path. */
     485        static QString documentsPath();
     486
     487        /** Returns whether passed @a strFileName ends with one of allowed extension in the @a extensions list. */
     488        static bool hasAllowedExtension(const QString &strFileName, const QStringList &extensions);
     489
     490        /** Returns a file name (unique up to extension) wrt. @a strFullFolderPath folder content. Starts
     491          * searching strBaseFileName and adds suffixes until a unique file name is found. */
     492        static QString findUniqueFileName(const QString &strFullFolderPath, const QString &strBaseFileName);
     493    /** @} */
     494
     495    /** @name Widget stuff.
     496     * @{ */
     497        /** Assigns minimum @a pSpinBox to correspond to @a cCount digits. */
     498        static void setMinimumWidthAccordingSymbolCount(QSpinBox *pSpinBox, int cCount);
    499499    /** @} */
    500500
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