37 #include <OpenMS/VISUAL/OpenMS_GUIConfig.h> 67 OPENMS_GUI_DLLAPI
void openFolder(
const QString& folder);
72 const QString& caption,
80 OPENMS_GUI_DLLAPI
void startTOPPView(
const QStringList& args);
84 OPENMS_GUI_DLLAPI
void openURL(
const QString& target);
98 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"),
99 const QFont& font = QFont(
"Courier"));
106 OPENMS_GUI_DLLAPI QRectF
getTextDimension(
const QStringList& text,
const QFont& font,
int& line_spacing);
128 size_t placeItem(
double x_start,
double x_end);
159 bool currently_locked_{
false };
160 bool was_enabled_{
true };
192 QColor(129, 74, 25) ,
193 QColor(129, 38, 192) ,
195 QColor(129,197,122) ,
196 QColor(157,175,255) ,
200 QColor(233,222,187) ,
201 QColor(255,205,243) ,
206 template<
class COLOR_CLASS>
210 if (index >= COLOR_CLASS::NAMES::SIZE_OF_NAMES) index = index % COLOR_CLASS::NAMES::SIZE_OF_NAMES;
211 return COLOR_CLASS().values[index];
Type
Actual file types enum.
Definition: FileTypes.h:56
Definition: GUIHelpers.h:181
void openURL(const QString &target)
Definition: GUIHelpers.h:179
RAII class to disable the GUI and set a busy cursor and go back to the original state when this class...
Definition: GUIHelpers.h:137
Definition: GUIHelpers.h:175
StringList convert(const QStringList &in)
Definition: GUIHelpers.h:182
Definition: GUIHelpers.h:172
Definition: GUIHelpers.h:185
NAMES
Definition: GUIHelpers.h:170
Definition: GUIHelpers.h:173
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:189
Definition: GUIHelpers.h:168
Definition: GUIHelpers.h:184
Definition: GUIHelpers.h:176
A heuristic: Given a set of levels (rows), try to add items at to topmost row which does not overlap ...
Definition: GUIHelpers.h:119
void startTOPPView(const QStringList &args)
Open TOPPView (e.g. from within TOPPAS)
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
std::vector< double > rows_
store the largest x_end for each row
Definition: GUIHelpers.h:131
std::vector< String > StringList
Vector of String.
Definition: ListUtils.h:70
Definition: GUIHelpers.h:186
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:177
Definition: GUIHelpers.h:165
Definition: GUIHelpers.h:180
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:207
Definition: GUIHelpers.h:183
void openFolder(const QString &folder)
Definition: GUIHelpers.h:178
QString getSaveFilename(QWidget *parent, const QString &caption, const QString &dir, 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:174