Krita Source Code Documentation
Loading...
Searching...
No Matches
recorder_profile_settings.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2020 Dmitrii Utkin <loentar@gmail.com>
3 *
4 * SPDX-License-Identifier: LGPL-2.1-only
5 */
6
7#ifndef RECORDER_PROFILE_SETTINGS_H
8#define RECORDER_PROFILE_SETTINGS_H
9
10#include <QDialog>
11
12namespace Ui
13{
15}
16
17struct RecorderProfile;
18
19class RecorderProfileSettings : public QDialog
20{
21 Q_OBJECT
22
23public:
24 explicit RecorderProfileSettings(QWidget *parent = nullptr);
26
27 // returns true if profile changed
28 bool editProfile(RecorderProfile *profile, const RecorderProfile &defaultProfile);
29
30 void setPreview(const QString &preview);
31
32Q_SIGNALS:
33 void requestPreview(QString arguments);
34
35private Q_SLOTS:
36 void onInputChanged();
37 void onLinkActivated(const QString &link);
38 void onPreviewToggled(bool checked);
39
40private:
41 void fillProfile(const RecorderProfile &profile);
42
43private:
44 Ui::RecorderProfileSettings *ui;
45};
46
47#endif // RECORDER_PROFILE_SETTINGS_H
bool editProfile(RecorderProfile *profile, const RecorderProfile &defaultProfile)
void onLinkActivated(const QString &link)
void fillProfile(const RecorderProfile &profile)
Ui::RecorderProfileSettings * ui
void setPreview(const QString &preview)
RecorderProfileSettings(QWidget *parent=nullptr)
void requestPreview(QString arguments)