Revision 4,
1.2 KB
checked in by ajaworski, 13 years ago
(diff) |
Added modified SAGE sources
|
Line | |
---|
1 | #ifndef CAPTUREWINDOW_H |
---|
2 | #define CAPTUREWINDOW_H |
---|
3 | |
---|
4 | #include <QMainWindow> |
---|
5 | #include <QCloseEvent> |
---|
6 | #include <QtDebug> |
---|
7 | #include <QTimer> |
---|
8 | #include <QDir> |
---|
9 | #include <QImage> |
---|
10 | #include <QPainter> |
---|
11 | #include <QDesktopWidget> |
---|
12 | #include "ui_capturewindow.h" |
---|
13 | |
---|
14 | #if defined(__APPLE__) |
---|
15 | // Mac Headers |
---|
16 | #include <CoreFoundation/CoreFoundation.h> |
---|
17 | #include <ApplicationServices/ApplicationServices.h> |
---|
18 | #include <OpenGL/OpenGL.h> |
---|
19 | #include <OpenGL/gl.h> |
---|
20 | #include <OpenGL/glext.h> |
---|
21 | #endif |
---|
22 | |
---|
23 | |
---|
24 | class CaptureWindow : public QMainWindow |
---|
25 | { |
---|
26 | Q_OBJECT |
---|
27 | public: |
---|
28 | explicit CaptureWindow(QWidget *parent = 0); |
---|
29 | |
---|
30 | protected: |
---|
31 | void closeEvent(QCloseEvent *event); |
---|
32 | |
---|
33 | public slots: |
---|
34 | void onStart(); |
---|
35 | void onStop(); |
---|
36 | void onPause(); |
---|
37 | void update(); |
---|
38 | void fsIP(QString); |
---|
39 | void frameRate(int); |
---|
40 | void compression(int); |
---|
41 | void cursor(int); |
---|
42 | |
---|
43 | private: |
---|
44 | Ui_CaptureWindow ui; |
---|
45 | int fps; |
---|
46 | double startt; |
---|
47 | int count; |
---|
48 | bool started; |
---|
49 | bool dxt; |
---|
50 | bool showcursor; |
---|
51 | QTimer *timer; |
---|
52 | QImage *cursor_icon, *desktop; |
---|
53 | int WW, HH; |
---|
54 | QString fsip; |
---|
55 | |
---|
56 | #if defined(__APPLE__) |
---|
57 | CGLContextObj glContextObj; |
---|
58 | #endif |
---|
59 | |
---|
60 | private: |
---|
61 | void capture(char* m_pFrameRGB,int x,int y,int cx,int cy); |
---|
62 | }; |
---|
63 | |
---|
64 | #endif // CAPTUREWINDOW_H |
---|
Note: See
TracBrowser
for help on using the repository browser.