38 #include <OpenMS/VISUAL/OpenMS_GUIConfig.h>
110 void fillComboBox_(QComboBox * & ptr,
const std::string * items,
int item_count);
116 void add2Buttons_(QPushButton * & ptr1, QString label1, QPushButton * & ptr2, QString label2);
A base class for all visualizer classes.
Definition: BaseVisualizerGUI.h:66
bool isEditable() const
Returns if the values are editable.
void finishAdding_()
Adds buttons common to all visualizers.
void addComboBox_(QComboBox *&ptr, QString label)
Adds a drop-down field to the grid layout.
void addTextEdit_(QTextEdit *&ptr, QString label)
Adds a text edit field to the grid layout.
void addLabel_(QString label)
Adds a label to the grid layout.
QPushButton * undo_button_
Undo button.
Definition: BaseVisualizerGUI.h:123
void addVSpacer_()
Adds vertical spacer.
void sendStatus(std::string status)
Sends a status message, if date is not in proper format.
void addListView_(QListWidget *&ptr, QString label)
Adds a list edit field to the grid layout.
BaseVisualizerGUI(bool editable=false, QWidget *parent=nullptr)
Constructor.
void addSeparator_()
Adds a horizontal line as a separator.
virtual void store()=0
Saves the changes made in the GUI to the object.
void addIntLineEdit_(QLineEdit *&ptr, QString label)
Adds a line edit field to the grid layout including a int validator.
void fillComboBox_(QComboBox *&ptr, const std::string *items, int item_count)
Fills a combo box with string items (the number of strings is determined by item_count).
void addLabel_(QString label, UInt row)
Adds a label to a certain row.
void addButton_(QPushButton *&ptr, QString label)
Adds a button to the next free position in the grid.
bool editable_
Edit flag.
Definition: BaseVisualizerGUI.h:129
UInt row_
Counter for the current grid row.
Definition: BaseVisualizerGUI.h:127
void addDoubleLineEdit_(QLineEdit *&ptr, QString label)
Adds a line edit field to the grid layout including a double validator.
void addLineEditButton_(QString label, QLineEdit *&ptr1, QPushButton *&ptr2, QString buttonlabel)
Adds a line edit field with label and button to the next free position in the grid.
void addLineEdit_(QLineEdit *&ptr, QString label)
Adds a line edit field with label to the grid layout.
QGridLayout * mainlayout_
The main layout.
Definition: BaseVisualizerGUI.h:125
void addBooleanComboBox_(QComboBox *&ptr, QString label)
Adds a boolean drop-down field to the grid layout ( 'true'=1, 'false'=0 ).
void add2Buttons_(QPushButton *&ptr1, QString label1, QPushButton *&ptr2, QString label2)
Adds two buttons in a row.
unsigned int UInt
Unsigned integer type.
Definition: Types.h:94
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47