-
Notifications
You must be signed in to change notification settings - Fork 0
/
toolbar.h
45 lines (36 loc) · 977 Bytes
/
toolbar.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#ifndef TOOLBAR_H
#define TOOLBAR_H
#include <QWidget>
#include <QBoxLayout>
#include <QLabel>
#include "buttonpanel.h"
#include "settings.h"
#include "thumbnailslider.h"
class ToolBar : public QWidget
{
Q_OBJECT
public:
explicit ToolBar(ThumbnailManager* thumbnailManager, QWidget *parent = nullptr);
private:
ThumbnailManager* thumbnailManager;
QBoxLayout* layout;
QLabel* sliderLabel;
ThumbnailSlider* thumbnailSlider;
ButtonPanel* buttonPanel;
void createLayout();
void createButtonPanel();
void createSpacer();
void createSliderLabel();
void createThumbnailSlider();
void relaySignals();
void updateSliderLabel(int newValue);
void snapSliderToDefault(int value);
signals:
void filesChanged();
void thumbnailSliderMoved(int newValue);
void databaseTagsChanged();
public slots:
void sliderValueChangedReceiver(int newValue);
void importFiles(QStringList paths);
};
#endif // TOOLBAR_H