curvecolorpick.h
Go to the documentation of this file.
1 #ifndef CURVECOLORPICK_H
2 #define CURVECOLORPICK_H
3 
4 #include <QDialog>
5 #include <QListWidgetItem>
6 #include "color_wheel.hpp"
7 #include "color_preview.hpp"
8 
9 namespace Ui {
10 class CurveColorPick;
11 }
12 
13 class CurveColorPick : public QDialog
14 {
15  Q_OBJECT
16 
17 public:
18  explicit CurveColorPick(const std::map<std::string, QColor>& mapped_colors, QWidget *parent = 0);
19  ~CurveColorPick();
20 
21  bool anyColorModified() const ;
22 
23 private slots:
24  void on_pushButtonClose_clicked();
25 
26  void on_pushButtonUndo_clicked();
27 
28  void on_listWidget_itemClicked(QListWidgetItem *item);
29 
30  void on_colorChanged(QColor color);
31 
32 signals:
33  void changeColor(QString, QColor);
34 
35 private:
36  Ui::CurveColorPick *ui;
39 
40  const std::map<std::string, QColor>& _mapped_colors;
42 };
43 
44 #endif // CURVECOLORPICK_H
Display an analog widget that allows the selection of a HSV color.
Definition: color_wheel.hpp:35
color_widgets::ColorWheel * _color_wheel
color_widgets::ColorPreview * _color_preview
const std::map< std::string, QColor > & _mapped_colors
Ui::CurveColorPick * ui


plotjuggler
Author(s): Davide Faconti
autogenerated on Sat Jul 6 2019 03:44:17