47 #ifndef _MIRA_QTUTILS_H_ 48 #define _MIRA_QTUTILS_H_ 56 #include <QFileDialog> 63 namespace mira {
namespace QtUtils {
168 const QString& caption = QString(),
169 const QString& dir = QString(),
170 const QString& filter = QString(),
171 QString* selectedFilter = NULL,
172 QFileDialog::Options options = QFileDialog::DontUseNativeDialog);
181 const QString& caption = QString(),
182 const QString& dir = QString(),
183 const QString& filter = QString(),
184 QString* selectedFilter = NULL,
185 QFileDialog::Options options = QFileDialog::DontUseNativeDialog,
186 const QStringList& enforceExtension = QStringList());
191 const QString& caption = QString(),
192 const QString& dir = QString(),
193 QFileDialog::Options options = QFileDialog::DontUseNativeDialog | QFileDialog::ShowDirsOnly);
MIRA_GUI_WIDGETS_EXPORT QString getOpenFileName(QWidget *parent=NULL, const QString &caption=QString(), const QString &dir=QString(), const QString &filter=QString(), QString *selectedFilter=NULL, QFileDialog::Options options=QFileDialog::DontUseNativeDialog)
Enforce the use of non-native FileDialog-methods to prevent platform depending behavior differences...
specialize cv::DataType for our ImgPixel and inherit from cv::DataType<Vec>
Definition: IOService.h:67
MIRA_GUI_WIDGETS_EXPORT void fromQImage(const QImage &qimage, Img<> &oImg)
Convert a QImage to an image.
MIRA_GUI_WIDGETS_EXPORT QString getExistingDirectory(QWidget *parent=NULL, const QString &caption=QString(), const QString &dir=QString(), QFileDialog::Options options=QFileDialog::DontUseNativeDialog|QFileDialog::ShowDirsOnly)
Enforce the use of non-native FileDialog-methods to prevent platform depending behavior differences...
class for typed images.
Definition: Img.h:797
Header file containing Img classes that wrap cv::Mat.
MIRA_GUI_WIDGETS_EXPORT QImage asQImage(Img8U1 &img)
Create QImage wrapper for 8bit unsigned image (sharing img's memory).
MIRA_GUI_WIDGETS_EXPORT QImage makeQImage(const Img8U1 &img)
Create QImage from 8bit unsigned image.
MIRA_GUI_WIDGETS_EXPORT void setTransform(QGraphicsItem *item, const RigidTransform2f &t)
Applies a transform (translation and rotation) to a graphics scene item.
MIRA_GUI_WIDGETS_EXPORT QString getSaveFileName(QWidget *parent=NULL, const QString &caption=QString(), const QString &dir=QString(), const QString &filter=QString(), QString *selectedFilter=NULL, QFileDialog::Options options=QFileDialog::DontUseNativeDialog, const QStringList &enforceExtension=QStringList())
Enforce the use of non-native FileDialog-methods to prevent platform depending behavior differences...
MIRA_GUI_WIDGETS_EXPORT void initPainterFrom(QPainter &painter, const QWidget &widget)
Init painter's pen, background and font from widget.