1 #ifndef BALL_VIEW_WIDGETS_COLOR_TABLE_H 2 #define BALL_VIEW_WIDGETS_COLOR_TABLE_H 4 #include <QtWidgets/QTableWidget> 6 #ifndef BALL_VIEW_KERNEL_PREFERENCESENTRY 10 #ifndef BALL_VIEW_KERNEL_COMMON_H 14 #ifndef BALL_VIEW_DATATYPE_COLORRGBA_H 34 void setNamesTitle(
const String&
string);
36 String getNamesTitle()
const;
38 void setContent(
const vector<String>& names,
const vector<ColorRGBA>& colors);
40 void setColors(
const vector<ColorRGBA>& colors);
49 virtual bool getValue(
String&)
const;
52 virtual bool setValue(
const String& value);
56 void beginEdit(
int row,
int col);
61 vector<ColorRGBA> colors_;
62 vector<String> names_;
63 bool setting_content_;
68 #endif //BALL_VIEW_WIDGETS_COLOR_TABLE_H
const vector< String > & getNames() const
const vector< ColorRGBA > & getColors() const