Debian Codegraph @

avogadro/qtplugins/selectiontool/selectiontoolwidget.h

raw
1 /******************************************************************************
2 This source file is part of the Avogadro project.
3 This source code is released under the 3-Clause BSD License, (see "LICENSE").
4 ******************************************************************************/
5
6 #ifndef AVOGADRO_QTPLUGINS_SELECTIONTOOLWIDGET_H
7 #define AVOGADRO_QTPLUGINS_SELECTIONTOOLWIDGET_H
8
9 #include <QtWidgets/QWidget>
10
11 #include <avogadro/core/vector.h>
12
13 namespace Avogadro {
14 namespace QtPlugins {
15
16 namespace Ui {
17 class SelectionToolWidget;
18 }
19
20 class SelectionToolWidget : public QWidget
21 {
22 Q_OBJECT
23
24 public:
25 explicit SelectionToolWidget(QWidget* parent = nullptr);
26 ~SelectionToolWidget() override;
27
28 void setDropDown(size_t current, size_t max);
29
30 signals:
31 void colorApplied(Vector3ub color);
32 void changeLayer(int layer);
33
34 private slots:
35 void userClickedColor();
36
37 private:
38 Ui::SelectionToolWidget* m_ui;
39 };
40
41 } // namespace QtPlugins
42 } // namespace Avogadro
43
44 #endif // AVOGADRO_QTPLUGINS_SELECTIONTOOLWIDGET_H