forked from atilacamurca/vokoscreen
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscreencast.h
306 lines (243 loc) · 7.75 KB
/
screencast.h
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
/* vokoscreen - A desktop recorder
* Copyright (C) 2011-2014 Volker Kohaupt
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301 USA
*/
#ifndef screencast_H
#define screencast_H
#include <QMainWindow>
#include <QPushButton>
#include <QComboBox>
#include <QSpinBox>
#include <QRadioButton>
#include <QScrollArea>
#include <QSystemTrayIcon>
#include <QMessageBox>
#include <QSettings>
#include <QLineEdit>
#include <QFileDialog>
#include <QDate>
#include <QStatusBar>
#include <QDesktopWidget>
#include <QDial>
#include "QvkSettings.h"
#include "regionselection.h"
#include "QvkMagnifier.h"
#include "QvkWebcamController.h"
#include "QvkAlsaDevice.h"
#include "QvkMail.h"
#include "QvkAlsaWatcher.h"
#include "QvkWinInfo.h"
#include "QvkCredits.h"
#include "QvkVersion.h"
#include "ui_QvkNoPlayerDialog.h"
//#ifdef QT4
#include <QxtGlobalShortcut>
//#endif
#include <QTest>
#include <QDateTime>
class screencast : public QMainWindow
{
Q_OBJECT
public:
screencast();
virtual ~screencast();
QString getFfmpegVersion();
QString getMkvmergeVersion();
QString getPactlVersion();
QString getOsRelease();
QString email;
QString homepage;
QString ffmpegString;
QString nameInMoviesLocation;
QString winID;
QString deltaXMove;
QString deltaYMove;
bool pause;
QStringList MoveWindowlist;
bool firststartWininfo;
bool moveWindow;
QString recordApplikation;
QvkCredits * credits;
public:
#ifndef NO_NEW_VERSION_CHECK
QvkVersion version;
#endif
public slots:
private slots:
void Stop(void);
void record(void);
void play();
void Countdown();
void PulseMultipleChoice();
void AudioOnOff();
void Pause();
void startRecord( QString RecordPathName );
QString myAlsa();
QString myAcodec();
void searchExternalPrograms();
QString getFileWithPath( QString ProgName );
void preRecord();
const QString myPulseDevice();
int getCountCheckedPulseDevices();
QString getPulseDeviceName( int value );
int getPulseInputDevicesCount();
QCheckBox * getCheckBoxPulseDevice( int value );
QString getPulseInputName( int value );
QString getPulseInputDevices( int value );
QString getPulseSample( int value );
void pulseUnloadModule();
QString mySample();
QString noMouse();
void windowMove();
void moveWindowPause();
void moveWindowGo();
// Tab Videooptionen
void setFrameStandardSpinbox();
void setVideocodecStandardComboBox();
void setAudiocodecStandardComboBox();
QString PathMoviesLocation();
QString PathTempLocation();
QString NameInMoviesLocation();
QString PauseNameInTmpLocation();
void saveVideoPath();
void selectRecorder();
void recorderLineEditTextChanged( QString recorder );
void makeAsoundrc();
bool searchProgramm( QString ProgName );
void stateChanged( QProcess::ProcessState newState );
void error ( QProcess::ProcessError error );
void readyReadStandardError();
void readyReadStandardOutput();
void saveSettings();
void WindowMinimized();
void stateChangedSystray( int );
void SystemTrayStart( QSystemTrayIcon::ActivationReason );
void SystemTrayStop( QSystemTrayIcon::ActivationReason );
void SystemTrayPause( QSystemTrayIcon::ActivationReason reason );
void SystemTrayGo( QSystemTrayIcon::ActivationReason reason );
void AreaOnOff();
void showMagnifier();
void MagnifierDialog();
void ShortcutWebcam();
void ShortcutPause();
void ShortcutMagnifier();
void uncheckMagnifier();
void send();
void AlsaWatcherEvent( QStringList CardxList );
void myVideoFileSystemWatcher( const QString & path );
void currentIndexChangedCodec( int index );
void currentIndexChangedFormat( int index );
void stateChangedAudio( int state );
void clickedAudioAlsa( bool checked );
void clickedAudioPulse( bool checked );
void valueChangedFrames( int i );
void clickedScreenSize();
void setRecordWidth( QString value );
QString getRecordWidth();
void setRecordHeight( QString value );
QString getRecordHeight();
void showCredits();
void creditsCloseEvent();
void showHomepage();
void myScreenCountChanged ( int newCount );
#ifndef NO_NEW_VERSION_CHECK
void buttonVersion();
#endif
private:
QString DISPLAY;
QTabWidget *tabWidget;
QPushButton *recordButton;
QPushButton *StopButton;
QPushButton *PauseButton;
QPushButton *PlayButton;
QPushButton *sendPushButton;
QCheckBox *webcamCheckBox;
QCheckBox *mirrorCheckBox;
QDial *rotateDial;
QRadioButton *radioButtonTopMiddle;
QRadioButton *radioButtonRightMiddle;
QRadioButton *radioButtonBottomMiddle;
QRadioButton *radioButtonLeftMiddle;
QProcess *SystemCall;
QRadioButton *AlsaRadioButton;
QComboBox *AlsaHwComboBox;
QCheckBox *AudioOnOffCheckbox;
QRadioButton * FullScreenRadioButton;
QRadioButton * WindowRadioButton;
QRadioButton *AreaRadioButton;
QCheckBox *MagnifierCheckBox;
QSpinBox * CountdownSpinBox;
QComboBox * ScreenComboBox;
QLabel *ChannelLabel;
QComboBox *VideoplayerComboBox;
QLabel *recordTimeLabel;
QLineEdit *SaveVideoPathLineEdit;
QLineEdit *RecorderLineEdit;
QRadioButton *PulseDeviceRadioButton;
QFrame *TabWidgetAudioFrame;
QFrame *TabWidgetVideoOptionFrame;
QFrame *TabWidgetMiscellaneousFrame;
QFrame *TabWidgetWebcamFrame;
QFrame *TabWidgetSocialFrame;
QSpinBox *FrameSpinBox;
QComboBox *VideocodecComboBox;
QComboBox *VideoContainerComboBox;
QComboBox *AudiocodecComboBox;
QCheckBox *HideMouseCheckbox;
QCheckBox *MinimizedCheckBox;
QTimer *windowMoveTimer;
QFrame *Pulseframe;
QScrollArea *scrollAreaPulse;
QCheckBox *namePulse;
QCheckBox *SystrayCheckBox;
QSystemTrayIcon *SystemTrayIconGreen;
QSystemTrayIcon *SystemTrayIconRed;
QSystemTrayIcon *SystemTrayIconYellow;
QSystemTrayIcon *SystemTrayIconBlue;
QvkMagnifier *magnifier;
regionselection *myregionselection;
QvkWebcamController *webcamController;
//#ifdef QT4
QxtGlobalShortcut *shortcutWebcam;
QxtGlobalShortcut *shortcutMagnifier;
QxtGlobalShortcut *shortcutPause;
QxtGlobalShortcut *shortcutStart;
QxtGlobalShortcut *shortcutStop;
//#endif
QvkWinInfo *vkWinInfo;
WId moveWindowID;
QList<QvkAlsaDevice *> AlsaDeviceList;
QLabel * statusBarLabelTime;
QLabel * statusBarLabelFps;
QLabel * statusBarLabelSize;
QLabel * statusBarLabelCodec;
QLabel * statusBarLabelFormat;
QLabel * statusBarLabelAudio;
QLabel * statusBarLabelFpsSettings;
QLabel * statusbarLabelScreenSize;
QLabel * statusBarProgForRecord;
QString screenRecordWidth;
QString screenRecordHeight;
QDateTime beginTime;
QPushButton * creditsQPushButton;
QPushButton * updateButton;
QvkSettings vkSettings;
protected:
void closeEvent( QCloseEvent * event );
void changeEvent(QEvent *e);
void styleChange( QStyle &asd );
};
#endif // screencast_H