reference

This documentation is automatically generated from the openFrameworks source code using doxygen and refers to the most recent release, version 0.12.0.

ofSystemUtils.cpp File Reference
#include "ofSystemUtils.h"
#include "ofFileUtils.h"
#include "ofLog.h"
#include "ofUtils.h"
#include "ofConstants.h"
#include <condition_variable>
#include <mutex>

Functions

void ofSystemAlertDialog (std::string errorMessage)
 show an error message in an alert dialog box
 
ofFileDialogResult ofSystemLoadDialog (std::string windowTitle, bool bFolderSelection, std::string defaultPath)
 show a file load dialog box
 
ofFileDialogResult ofSystemSaveDialog (std::string defaultName, std::string messageName)
 show a file save dialog box
 
std::string ofSystemTextBoxDialog (std::string question, std::string text)
 show a text entry dialog box
 

Function Documentation

◆ ofSystemAlertDialog()

void ofSystemAlertDialog ( std::string  errorMessage)

show an error message in an alert dialog box

◆ ofSystemLoadDialog()

ofFileDialogResult ofSystemLoadDialog ( std::string  windowTitle = "",
bool  bFolderSelection = false,
std::string  defaultPath = "" 
)

show a file load dialog box

Parameters
windowTitleoptional window title string, ie. "Load background image"
bFolderSelectionset to true to allow folder selection
defaultPathoptional default directory path to start the dialog in, ie. ofFilePath::getUserHomeDir()
Returns
dialog result with selection (if any)

◆ ofSystemSaveDialog()

ofFileDialogResult ofSystemSaveDialog ( std::string  defaultName,
std::string  messageName 
)

show a file save dialog box

Parameters
defaultNamesuggested filename to start dialog, ie "screenshot.png"
messageNamedescriptive text for the save action, ie. "Saving screenshot as"
Returns
dialog result with selection (if any)

◆ ofSystemTextBoxDialog()

std::string ofSystemTextBoxDialog ( std::string  question,
std::string  text = "" 
)

show a text entry dialog box

Parameters
questiondescriptive text for the text entry, ie. "What's your favorite color?"
textoptional default text entry string, ie. "blue"