36 template <
class Po
int>
39 std::ostringstream ostr;
40 ostr <<
"QPoint(" << p.
x() <<
"," << p.
y() <<
")";
54 if (str ==
"darkBlue")
58 if (str ==
"darkCyan")
60 if (str ==
"darkGreen")
70 if (str ==
"darkYellow")
71 return Qt::darkYellow;
72 if (str ==
"lightGray")
74 if (str ==
"darkGray")
79 return Qt::darkMagenta;
81 return QColor(255, 165, 0);
88 auto sep =
new QAction(parent);
89 sep->setSeparator(
true);
95 action->setEnabled(
false);
100 inline std::ostream&
operator<<(std::ostream& o,
const QPointF& p)
102 return o <<
"[" << p.x() <<
"," << p.y() <<
"]";
std::string to_string(const MatrixHandle &mat)
Definition: Matrix.h:213
void y(const double)
Definition: Point.h:135
QColor to_color(const std::string &str)
Definition: Utility.h:48
void x(const double)
Definition: Point.h:125
QAction * disabled(QAction *action)
Definition: Utility.h:93
std::ostream & operator<<(std::ostream &o, const QPointF &p)
Definition: Utility.h:100
QAction * separatorAction(QWidget *parent)
Definition: Utility.h:86