RootUtils
UiUtils Namespace Reference

Functions

void showMessageBox (const char *text, const char *title="", EMsgBoxIcon icon=EMsgBoxIcon::kMBIconAsterisk)
 Displays ROOT message box with OK button. More...
 
Int_t showMessageBoxYesNo (const char *text, const char *title="", EMsgBoxIcon icon=EMsgBoxIcon::kMBIconQuestion)
 Displays ROOT message question box with "Yes" and "No" buttons. More...
 
TList * getFilePaths (Bool_t isMultiple=kTRUE)
 File picker dialog. More...
 

Detailed Description

Various ROOT GUI shortcuts such as message box, file picker.

Function Documentation

◆ getFilePaths()

TList * UiUtils::getFilePaths ( Bool_t  isMultiple = kTRUE)

File picker dialog.

Returns list of TObjStrings containing selected file paths.

Parameters
isMultipleBoolean value controls if file selection should be multiple.
titleOptional message to be displayed in a Message Box prior to the file picker.
Returns
TList* of TObjString* with full absolute paths.

◆ showMessageBox()

void UiUtils::showMessageBox ( const char *  text,
const char *  title = "",
EMsgBoxIcon  icon = EMsgBoxIcon::kMBIconAsterisk 
)

Displays ROOT message box with OK button.

Parameters
textMessage box text.
titleOptional message box text.
iconOptional message box icon.*
Returns
TList* of TObjString* with full absolute paths.

◆ showMessageBoxYesNo()

Int_t UiUtils::showMessageBoxYesNo ( const char *  text,
const char *  title = "",
EMsgBoxIcon  icon = EMsgBoxIcon::kMBIconQuestion 
)

Displays ROOT message question box with "Yes" and "No" buttons.

Parameters
textMessage box text.
titleOptional message box title.
iconOptional message box icon.*
Returns
Pressed button bit, EMsgBoxButton::kMBNo or EMsgBoxButton::kMBYes.