-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscreenshot.h
More file actions
70 lines (54 loc) · 1.62 KB
/
screenshot.h
File metadata and controls
70 lines (54 loc) · 1.62 KB
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
// ===========================================================================
/// <summary>
/// screenshot.h
/// QtIntroduction
/// created by Mehrdad Soleimanimajd on 17.09.2019
/// </summary>
/// <created>ʆϒʅ, 17.09.2019</created>
/// <changed>ʆϒʅ, 27.06.2023</changed>
// ===========================================================================
#ifndef SCREENSHOT_H
#define SCREENSHOT_H
#include <qapplication.h>
//#include <qdesktopwidget.h>
#include <qwidget.h>
#include <qwidget.h>
#include <qlabel.h>
#include <qpushbutton.h>
#include <qboxlayout.h>
#include <qgroupbox.h>
#include <qpixmap.h>
#include <qscreen.h>
#include <qwindow.h>
#include <qstring.h>
#include <qstandardpaths.h>
#include <qdir.h>
#include <qfiledialog.h>
#include <qlist.h>
#include <qimagewriter.h>
#include <qmessagebox.h>
#include "style.h"
class ScreenShot : public QWidget
{
Q_OBJECT
private:
AppStyle* appStyle; // application theme
QPixmap pixmapShot; // screenshot entity
QLabel* lableScrShot; // screenshot form wrapper
QGroupBox* optionsGroupBox; // buttons group box
QPushButton* buttonSaveScrShot; // button
QPushButton* buttonNewScrShot;
void resizeEvent ( QResizeEvent* ) override; // resize event handler
void updateScrShot ( void ); // screenshot wrapper updater
bool initialized;
private slots:
void saveScrShot ( void ); // save screenshot
void shootScrShot ( void ); // take screenshot
public:
ScreenShot ( QWidget*, AppStyle* );
//~ScreenShot ( void );
const bool getInitialized ( void );
void updateStyle ( void ); // window stype updater
};
#endif // SCREENSHOT_H