* Add --pin option Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com> * Add --upload option Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com> * Add --accept-on-select option Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com> * Fix failing build on MacOS Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com> * Clean up option variable names in main Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com> * Remove missing --path error Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com> * Add tests for action options Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com> * Fix file extension config option Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com> * Fix --print-geometry bug Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com> * Replace Qt::endl with "\n" Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com> * Fix copy/upload task clipboard conflict Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com> * Fix endless loop when using --raw and --delay Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com> * Fix bug in upload handling Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com> * Show dialog after upload if --clipboard is set Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com> * Fix failing build on Mac and Win Signed-off-by: Haris Gušić <harisgusic.dev@gmail.com>
41 lines
847 B
C++
41 lines
847 B
C++
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
// SPDX-FileCopyrightText: 2017-2018 Alejandro Sirgo Rica & Contributors
|
|
|
|
#pragma once
|
|
|
|
#include <QDialog>
|
|
|
|
class QCheckBox;
|
|
class QPushButton;
|
|
class QVBoxLayout;
|
|
class QComboBox;
|
|
class QSpinBox;
|
|
class QLabel;
|
|
class ImageLabel;
|
|
|
|
class CaptureLauncher : public QDialog
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit CaptureLauncher(QDialog* parent = nullptr);
|
|
|
|
private:
|
|
void connectCaptureSlots();
|
|
void disconnectCaptureSlots();
|
|
|
|
private slots:
|
|
void startCapture();
|
|
void startDrag();
|
|
void captureTaken(uint id, QPixmap p, const QRect& selection);
|
|
void captureFailed(uint id);
|
|
|
|
private:
|
|
QSpinBox* m_delaySpinBox;
|
|
QComboBox* m_captureType;
|
|
QVBoxLayout* m_mainLayout;
|
|
QPushButton* m_launchButton;
|
|
QLabel* m_CaptureModeLabel;
|
|
ImageLabel* m_imageLabel;
|
|
uint m_id;
|
|
};
|