Changeset View
Changeset View
Standalone View
Standalone View
src/SpectacleCore.cpp
Show All 12 Lines | |||||
13 | * | 13 | * | ||
14 | * You should have received a copy of the GNU Lesser General Public License | 14 | * You should have received a copy of the GNU Lesser General Public License | ||
15 | * along with this program; if not, write to the Free Software | 15 | * along with this program; if not, write to the Free Software | ||
16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, | 16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, | ||
17 | * Boston, MA 02110-1301, USA. | 17 | * Boston, MA 02110-1301, USA. | ||
18 | */ | 18 | */ | ||
19 | 19 | | |||
20 | #include "SpectacleCore.h" | 20 | #include "SpectacleCore.h" | ||
21 | #include "SpectacleConfig.h" | | |||
22 | | ||||
23 | #include <QClipboard> | | |||
24 | #include <QDir> | | |||
25 | #include <QTimer> | | |||
26 | #include <QDebug> | | |||
27 | #include <QMimeData> | | |||
28 | #include <QDrag> | | |||
29 | | ||||
30 | #include <KMessageBox> | | |||
31 | #include <KNotification> | | |||
32 | #include <KWindowSystem> | | |||
33 | #include <KLocalizedString> | | |||
34 | #include <KRun> | | |||
35 | #include <KConfigGroup> | | |||
36 | #include <KSharedConfig> | | |||
37 | 21 | | |||
38 | #include "Config.h" | 22 | #include "Config.h" | ||
rkflx: Please keep this. | |||||
39 | #include "PlatformBackends/DummyImageGrabber.h" | 23 | #include "PlatformBackends/DummyImageGrabber.h" | ||
40 | #ifdef XCB_FOUND | 24 | #ifdef XCB_FOUND | ||
41 | #include "PlatformBackends/X11ImageGrabber.h" | 25 | #include "PlatformBackends/X11ImageGrabber.h" | ||
42 | #endif | 26 | #endif | ||
43 | #include "PlatformBackends/KWinWaylandImageGrabber.h" | 27 | #include "PlatformBackends/KWinWaylandImageGrabber.h" | ||
44 | 28 | | |||
29 | #include <KLocalizedString> | ||||
30 | #include <KMessageBox> | ||||
31 | #include <KNotification> | ||||
32 | #include <KRun> | ||||
33 | #include <KWindowSystem> | ||||
34 | | ||||
35 | #include <QClipboard> | ||||
36 | #include <QDebug> | ||||
37 | #include <QDir> | ||||
38 | #include <QDrag> | ||||
39 | #include <QMimeData> | ||||
40 | #include <QTimer> | ||||
41 | | ||||
45 | SpectacleCore::SpectacleCore(StartMode startMode, ImageGrabber::GrabMode grabMode, QString &saveFileName, | 42 | SpectacleCore::SpectacleCore(StartMode startMode, ImageGrabber::GrabMode grabMode, QString &saveFileName, | ||
46 | qint64 delayMsec, bool notifyOnGrab, QObject *parent) : | 43 | qint64 delayMsec, bool notifyOnGrab, QObject *parent) : | ||
47 | QObject(parent), | 44 | QObject(parent), | ||
48 | mExportManager(ExportManager::instance()), | 45 | mExportManager(ExportManager::instance()), | ||
49 | mStartMode(startMode), | 46 | mStartMode(startMode), | ||
50 | mNotify(notifyOnGrab), | 47 | mNotify(notifyOnGrab), | ||
51 | mImageGrabber(nullptr), | 48 | mImageGrabber(nullptr), | ||
52 | mMainWindow(nullptr), | 49 | mMainWindow(nullptr), | ||
▲ Show 20 Lines • Show All 253 Lines • Show Last 20 Lines |
Please keep this.