26#if ! defined (octave_QtHandlesUtils_h)
27#define octave_QtHandlesUtils_h 1
62 Qt::Alignment
fromHVAlign (
const std::string& halign,
63 const std::string& valign);
66 bool isDoubleClick =
false);
74 {
return dynamic_cast<typename
T::properties&
> (obj.get_properties ()); }
octave_scalar_map makeScrollEventStruct(QWheelEvent *event)
QImage makeImageFromCData(const octave_value &v, int width, int height)
QStringList fromStringVector(const string_vector &v)
QColor fromRgb(const Matrix &rgb)
QString fromStdString(const std::string &s)
std::string figureSelectionType(QMouseEvent *event, bool isDoubleClick)
QFont computeFont(const typename T::properties &props, int height)
Qt::Alignment fromHVAlign(const std::string &halign, const std::string &valign)
T::properties & properties(graphics_object obj)
Matrix toRgb(const QColor &c)
octave_scalar_map makeKeyEventStruct(QKeyEvent *event)
Cell toCellString(const QStringList &l)
std::string toStdString(const QString &s)
string_vector toStringVector(const QStringList &l)
Matrix figureCurrentPoint(const graphics_object &fig, QMouseEvent *event)