|
|
static bool | IsHeadless () |
| | True if the application doesn't show any window and only works in the background.
|
|
static void | SetHeadless (bool bHeadless) |
| | Set to true if the application doesn't show any window and only works in the background.
|
| static void | MessageBoxStatus (const xiiStatus &s, xiiStringView sFailureMsg, xiiStringView sSuccessMsg={}, bool bOnlySuccessMsgIfDetails=true) |
| | Copyright (c) Theophilus Eriata. All Rights Reserved.
|
|
static void | MessageBoxInformation (const xiiFormatString &msg) |
| | Shows an information message box.
|
|
static void | MessageBoxWarning (const xiiFormatString &msg) |
| | Shows an warning message box.
|
|
static QMessageBox::StandardButton | MessageBoxQuestion (const xiiFormatString &msg, QMessageBox::StandardButtons buttons, QMessageBox::StandardButton defaultButton) |
| | Shows a question message box and returns which button the user pressed.
|
| static void | ShowAllDocumentsTemporaryStatusBarMessage (const xiiFormatString &msg, xiiTime timeOut) |
|
static void | ShowAllDocumentsPermanentStatusBarMessage (const xiiFormatString &msg, Event::TextType type) |
|
static void | ShowGlobalStatusBarMessage (const xiiFormatString &msg) |
| | Shows a 'critical' message in all container windows (in red), which does not disappear, until it is replaced with another (empty) string.
|
|
static bool | OpenFileInDefaultProgram (xiiStringView sPath) |
| | Opens the given file in the program that is registered in the OS to handle that file type.
|
|
static void | OpenInExplorer (xiiStringView sPath, bool bIsFile) |
| | Opens the given file or folder in the Explorer.
|
|
static void | OpenWith (xiiStringView sPath) |
| | Shows the "Open With" dialog.
|
|
static xiiStatus | OpenInVsCode (const QStringList &arguments) |
| | Attempts to launch Visual Studio Code with the given command line.
|
| static const QIcon & | GetCachedIconResource (xiiStringView sIdentifier, xiiColor svgTintColor=xiiColor::MakeZero()) |
| static const QImage & | GetCachedImageResource (xiiStringView sIdentifier) |
| static const QPixmap & | GetCachedPixmapResource (xiiStringView sIdentifier) |
| static xiiResult | AddToGitIgnore (xiiStringView sGitIgnoreFile, xiiStringView sPattern) |
|
static void | CheckForUpdates () |
| | Raises the 'CheckForUpdates' event.
|
Returns a cached QIcon that was created from an internal Qt resource (e.g. 'QIcon(":QtNamespace/MyIcon.png")' ). Prevents creating the object over and over.
If svgTintColor is a non-zero color, and sIdentifier points to an .SVG file, then the first time the icon is requested with that color, a copy is made, and the SVG content is modified such that white ("#FFFFFF") gets replaced by the requested color. Thus multiple tints of the same icon can be created for different use cases. Usually this is used to get different shades of the same icon, such that it looks good on the target background.