SGL
gclipboard.h
1 /*
2  * File: gclipboard.h
3  * ------------------
4  *
5  * @author Marty Stepp
6  * @version 2018/09/07
7  * - added doc comments for new documentation generation
8  * @version 2018/08/23
9  * - renamed to gclipboard.h to replace Java version
10  * @version 2018/07/19
11  * - initial version
12  */
13 
14 
15 #ifndef _gclipboard_h
16 #define _gclipboard_h
17 
18 #include <QKeyEvent>
19 #include <string>
20 
25 class GClipboard {
26 public:
30  static string get();
31 
36  static bool isCopy(QKeyEvent* event);
37 
42  static bool isCut(QKeyEvent* event);
43 
48  static bool isPaste(QKeyEvent* event);
49 
54  static void set(const string& text);
55 
56 private:
57  GClipboard(); // prevent construction
58 };
59 
60 #endif // _gclipboard_h
static bool isCopy(QKeyEvent *event)
Returns true if the given event represents a "copy" operation.
Definition: gclipboard.cpp:34
static bool isCut(QKeyEvent *event)
Returns true if the given event represents a "cut" operation.
Definition: gclipboard.cpp:41
The GClipboard class contains static methods you can use to get and set the contents of the system cl...
Definition: gclipboard.h:25
static bool isPaste(QKeyEvent *event)
Returns true if the given event represents a "paste" operation.
Definition: gclipboard.cpp:50