#include "uipriv_qt5.hpp" #include #include char *uiOpenFile(uiWindow *parent) { return uiQt5StrdupQString(QFileDialog::getOpenFileName(uiValidateAndCastObjTo(parent))); } char *uiSaveFile(uiWindow *parent) { return uiQt5StrdupQString(QFileDialog::getSaveFileName(uiValidateAndCastObjTo(parent))); } void uiMsgBox(uiWindow *parent, const char *title, const char *description) { QMessageBox::information(uiValidateAndCastObjTo(parent), QString::fromUtf8(title), QString::fromUtf8(description)); } void uiMsgBoxError(uiWindow *parent, const char *title, const char *description) { QMessageBox::warning(uiValidateAndCastObjTo(parent), QString::fromUtf8(title), QString::fromUtf8(description)); }