CuteLogger
Fast and simple logging solution for Qt based applications
toolbarwidget.h
1/*
2 * Copyright (c) 2025 Meltytech, LLC
3 *
4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 3 of the License, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
16 */
17
18#ifndef SCREENCAPTURETOOLBAR_H
19#define SCREENCAPTURETOOLBAR_H
20
21#include <QCheckBox>
22#include <QPushButton>
23#include <QWidget>
24
25class ScreenCapture;
26
27class ScreenCaptureToolbar : public QWidget
28{
29 Q_OBJECT
30
31public:
32 explicit ScreenCaptureToolbar(bool isRecordingMode, QWidget *parent = nullptr);
33 ~ScreenCaptureToolbar();
34
35signals:
36 void captureModeSelected(int mode, bool minimizeShotcut, bool recordAudio);
37
38protected:
39 void paintEvent(QPaintEvent *event) override;
40
41private slots:
42 void onFullscreenClicked();
43 void onRectangleClicked();
44 void onWindowClicked();
45
46private:
47 bool m_isRecordingMode;
48 QPushButton *m_fullscreenButton;
49 QPushButton *m_rectangleButton;
50 QPushButton *m_windowButton;
51 QCheckBox *m_minimizeCheckbox;
52 QCheckBox *m_audioCheckbox;
53};
54
55#endif // TOOLBARWIDGET_H