37 #include <OpenMS/VISUAL/OpenMS_GUIConfig.h> 66 OPENMS_GUI_DLLAPI
void openFolder(
const QString& folder);
71 const QString& caption,
79 OPENMS_GUI_DLLAPI
void startTOPPView(
const QStringList& args);
83 OPENMS_GUI_DLLAPI
void openURL(
const QString& target);
97 OPENMS_GUI_DLLAPI
void drawText(QPainter& painter,
const QStringList& text,
const QPoint& where,
const QColor& col_fg = QColor(
"invalid"),
const QColor& col_bg = QColor(
"invalid"),
98 const QFont& font = QFont(
"Courier"));
105 OPENMS_GUI_DLLAPI QRectF
getTextDimension(
const QStringList& text,
const QFont& font,
int& line_spacing);
109 OPENMS_GUI_DLLAPI QPointF
nearestPoint(
const QPointF& origin,
const QList<QPointF>& list);
117 OPENMS_GUI_DLLAPI QPointF
intersectionPoint(
const QRectF& rect,
const QPointF& p);
139 size_t placeItem(
double x_start,
double x_end);
170 bool currently_locked_{
false };
171 bool was_enabled_{
true };
203 QColor(129, 74, 25) ,
204 QColor(129, 38, 192) ,
206 QColor(129,197,122) ,
207 QColor(157,175,255) ,
211 QColor(233,222,187) ,
212 QColor(255,205,243) ,
217 template<
class COLOR_CLASS>
221 if (index >= COLOR_CLASS::NAMES::SIZE_OF_NAMES) index = index % COLOR_CLASS::NAMES::SIZE_OF_NAMES;
222 return COLOR_CLASS().values[index];
Type
Actual file types enum.
Definition: FileTypes.h:56
Definition: GUIHelpers.h:192
void openURL(const QString &target)
Definition: GUIHelpers.h:190
RAII class to disable the GUI and set a busy cursor and go back to the original state when this class...
Definition: GUIHelpers.h:148
Definition: GUIHelpers.h:186
QPointF intersectionPoint(const QRectF &rect, const QPointF &p)
Find the point on a rectangle where a ray/line from a point p to its center would intersect at...
StringList convert(const QStringList &in)
Definition: GUIHelpers.h:193
QString getSaveFilename(QWidget *parent, const QString &caption, const QString &dir, const FileTypeList &supported_file_types, bool add_all_filter, const FileTypes::Type fallback_extension)
Open a dialog to select a filename to save data to.
Definition: GUIHelpers.h:183
Definition: GUIHelpers.h:196
NAMES
Definition: GUIHelpers.h:181
Definition: GUIHelpers.h:184
void drawText(QPainter &painter, const QStringList &text, const QPoint &where, const QColor &col_fg=QColor("invalid"), const QColor &col_bg=QColor("invalid"), const QFont &font=QFont("Courier"))
draw a multi-line text at coordinates XY using a specific font and color
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47
holds a vector of known file types, e.g. as a way to specify supported input formats ...
Definition: FileTypes.h:149
const std::array< QColor, NAMES::SIZE_OF_NAMES > values
Definition: GUIHelpers.h:200
Definition: GUIHelpers.h:179
Definition: GUIHelpers.h:195
Definition: GUIHelpers.h:187
A heuristic: Given a set of levels (rows), try to add items at to topmost row which does not overlap ...
Definition: GUIHelpers.h:130
QPointF nearestPoint(const QPointF &origin, const QList< QPointF > &list)
Returns the point in the list that is nearest to origin.
void startTOPPView(const QStringList &args)
Open TOPPView (e.g. from within TOPPAS)
std::vector< double > rows_
store the largest x_end for each row
Definition: GUIHelpers.h:142
std::vector< String > StringList
Vector of String.
Definition: ListUtils.h:70
Definition: GUIHelpers.h:197
QRectF getTextDimension(const QStringList &text, const QFont &font, int &line_spacing)
Obtains the bounding rectangle of a text (useful to determine overlaps etc)
Definition: GUIHelpers.h:188
Definition: GUIHelpers.h:176
Definition: GUIHelpers.h:191
static QColor getColor(uint32_t index)
get a certain color. If index is larger than the maximum color, modulo operator will applied (cycling...
Definition: GUIHelpers.h:218
Definition: GUIHelpers.h:194
void openFolder(const QString &folder)
Definition: GUIHelpers.h:189
Definition: GUIHelpers.h:185