Changeset 91121 in vbox for trunk/src/VBox/Frontends/VirtualBox/src/globals/UICommon.h
- Timestamp:
- Sep 6, 2021 12:32:06 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/globals/UICommon.h
r91109 r91121 298 298 /** @} */ 299 299 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. Starts312 * 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 322 300 /** @name COM stuff. 323 301 * @{ */ … … 340 318 /** @} */ 341 319 342 /** @name COM: Guest OS Type .320 /** @name COM: Guest OS Type stuff. 343 321 * @{ */ 344 322 /** Returns the list of family IDs. */ … … 365 343 static bool switchToMachine(CMachine &comMachine); 366 344 /** 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); 368 346 369 347 /** Opens session of certain @a enmLockType for VM with certain @a uId. */ … … 377 355 /** @} */ 378 356 379 /** @name C loud Virtual Machine stuff.357 /** @name COM: Cloud Virtual Machine stuff. 380 358 * @{ */ 381 359 /** Notifies listeners about cloud VM was unregistered. … … 425 403 * @param fUseLastFolder Brings whether we should propose to use last used folder. */ 426 404 QUuid openMediumWithFileOpenDialog(UIMediumDeviceType enmMediumType, QWidget *pParent = 0, 427 405 const QString &strDefaultFolder = QString(), bool fUseLastFolder = false); 428 406 429 407 /** Creates and shows a UIMediumSelector dialog. … … 469 447 * @param fPredictDiff Brings whether medium will be marked differencing on attaching. 470 448 * @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); 472 450 473 451 /** Update extra data related to recently used/referred media. … … 497 475 /** Generates tool-tip for passed USB @a comWebcam. */ 498 476 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); 499 499 /** @} */ 500 500
Note:
See TracChangeset
for help on using the changeset viewer.