 |
OpenMS
3.0.0
|
|
Go to the documentation of this file.
37 #include <QTableWidget>
74 QTableWidgetItem*
setAtBottomRow(
const QString& text,
size_t column_index,
const QColor& background,
const QColor& foreground = QColor(
"SomeInvalidColor"));
75 QTableWidgetItem*
setAtBottomRow(
const char* text,
size_t column_index,
const QColor& background,
const QColor& foreground = QColor(
"SomeInvalidColor"));
76 QTableWidgetItem*
setAtBottomRow(
const int i,
size_t column_index,
const QColor& background,
const QColor& foreground = QColor(
"SomeInvalidColor"));
77 QTableWidgetItem*
setAtBottomRow(
const double d,
size_t column_index,
const QColor& background,
const QColor& foreground = QColor(
"SomeInvalidColor"));
79 QTableWidgetItem*
setAtBottomRow(
const bool selected,
size_t column_index,
const QColor& background,
const QColor& foreground = QColor(
"SomeInvalidColor"));
81 QTableWidgetItem*
setAtBottomRow(QTableWidgetItem* item,
size_t column_index,
const QColor& background,
const QColor& foreground);
void hideColumns(const QStringList &header_names)
A better QTable for TOPPView, which supports exporting to TSV and conveniently adding data to cells a...
Definition: TableView.h:46
QStringList getHeaderNames(const WidgetHeader which, bool use_export_name=false)
Obtain header names, either from all, or only the visible columns.
~TableView() override=default
Destructor.
QString getHeaderName(const int header_column)
void resizeEvent(QResizeEvent *event) override
emits the resized signal
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47
void headerContextMenu_(const QPoint &)
Display header context menu; allows to show/hide columns.
void setMandatoryExportColumns(QStringList &cols)
Set the mandatory export columns cols which get exported even if the user decided to hide them.
void setHeaderExportName(const int header_column, const QString &export_name)
Set the export-name of a column, which will be returned in getHeaderNames() when use_export_name it t...
void resized()
emitted when the widget is resized
QString getHeaderExportName(const int header_column)
Gets the export-name of a column.
WidgetHeader
Enum to decide which headers(=column) names should be get/set in a table/tree widget.
Definition: CommonDefs.h:50
TableView(QWidget *parent=nullptr)
Constructor.
QTableWidgetItem * setAtBottomRow(const QString &text, size_t column_index, const QColor &background, const QColor &foreground=QColor("SomeInvalidColor"))
virtual void exportEntries()
Export table entries as currently shown in the table in TSV format (only for visible data)
QStringList mandatory_export_columns_
columns that are exported to tsv files even if they are hidden in the GUI
Definition: TableView.h:150
static void updateCheckBoxItem(QTableWidgetItem *item)
void setHeaders(const QStringList &headers)
sets the visible headers (and the number of columns)
void appendRow()
adds a new row to the bottom