14 #include <QMessageBox> 26 if(!filter->hasPresets()){
27 reportError(
"Cannot use filter "+filter->getName()+
" in the FilterPresetWidget because it does not have any presets.");
41 QDomElement element = mFilter->generatePresetFromCurrentlySetOptions(text);
51 reportWarning(
"It is not possible to delete one of the default presets");
55 if (QMessageBox::question(
this,
"Delete current preset",
"Do you really want to delete the current preset?", QMessageBox::Cancel | QMessageBox::Ok) != QMessageBox::Ok)
void reportError(QString msg)
boost::shared_ptr< class Filter > FilterPtr
void reportWarning(QString msg)
Namespace for all CustusX production code.