equal
deleted
inserted
replaced
18 |
18 |
19 |
19 |
20 #ifndef PAGE_VIDEOS_H |
20 #ifndef PAGE_VIDEOS_H |
21 #define PAGE_VIDEOS_H |
21 #define PAGE_VIDEOS_H |
22 |
22 |
23 #include <QPixmap> |
|
24 #include "AbstractPage.h" |
23 #include "AbstractPage.h" |
25 |
24 |
|
25 class QNetworkAccessManager; |
26 class GameUIConfig; |
26 class GameUIConfig; |
27 class HWRecorder; |
27 class HWRecorder; |
28 class VideoItem; |
28 class VideoItem; |
29 class HWForm; |
29 class HWForm; |
30 |
30 |
38 QSpinBox *framerateBox; |
38 QSpinBox *framerateBox; |
39 QLineEdit *widthEdit; |
39 QLineEdit *widthEdit; |
40 QLineEdit *heightEdit; |
40 QLineEdit *heightEdit; |
41 QCheckBox *checkUseGameRes; |
41 QCheckBox *checkUseGameRes; |
42 QCheckBox *checkRecordAudio; |
42 QCheckBox *checkRecordAudio; |
43 |
|
44 |
43 |
45 QString format() |
44 QString format() |
46 { return comboAVFormats->itemData(comboAVFormats->currentIndex()).toString(); } |
45 { return comboAVFormats->itemData(comboAVFormats->currentIndex()).toString(); } |
47 |
46 |
48 QString videoCodec() |
47 QString videoCodec() |
74 VideoItem* nameItem(int row); |
73 VideoItem* nameItem(int row); |
75 void play(int row); |
74 void play(int row); |
76 void updateDescription(); |
75 void updateDescription(); |
77 void clearTemp(); |
76 void clearTemp(); |
78 void clearThumbnail(); |
77 void clearThumbnail(); |
|
78 void setProgress(int row, VideoItem* item, float value); |
79 |
79 |
80 GameUIConfig * config; |
80 GameUIConfig * config; |
|
81 QNetworkAccessManager* netManager; |
81 |
82 |
82 // options group |
83 // options group |
83 QComboBox *comboAVFormats; |
84 QComboBox *comboAVFormats; |
84 QComboBox *comboVideoCodecs; |
85 QComboBox *comboVideoCodecs; |
85 QComboBox *comboAudioCodecs; |
86 QComboBox *comboAudioCodecs; |
88 // file list group |
89 // file list group |
89 QTableWidget *filesTable; |
90 QTableWidget *filesTable; |
90 QPushButton *btnOpenDir; |
91 QPushButton *btnOpenDir; |
91 |
92 |
92 // description group |
93 // description group |
93 QPushButton *btnPlay, *btnDelete; |
94 QPushButton *btnPlay, *btnDelete, *btnToYouTube; |
94 QLabel *labelDesc; |
95 QLabel *labelDesc; |
95 QLabel *labelThumbnail; |
96 QLabel *labelThumbnail; |
96 |
97 |
97 // this flag is used to distinguish if cell was changed from code or by user |
98 // this flag is used to distinguish if cell was changed from code or by user |
98 // (in signal cellChanged) |
99 // (in signal cellChanged) |
99 bool nameChangedFromCode; |
100 bool nameChangedFromCode; |
100 |
101 |
101 int numRecorders; |
102 int numRecorders, numUploads; |
102 |
103 |
103 private slots: |
104 private slots: |
104 void changeAVFormat(int index); |
105 void changeAVFormat(int index); |
105 void changeUseGameRes(int state); |
106 void changeUseGameRes(int state); |
106 void changeRecordAudio(int state); |
107 void changeRecordAudio(int state); |
112 void currentCellChanged(int row, int column, int previousRow, int previousColumn); |
113 void currentCellChanged(int row, int column, int previousRow, int previousColumn); |
113 void playSelectedFile(); |
114 void playSelectedFile(); |
114 void deleteSelectedFiles(); |
115 void deleteSelectedFiles(); |
115 void openVideosDirectory(); |
116 void openVideosDirectory(); |
116 void updateFileList(const QString & path); |
117 void updateFileList(const QString & path); |
|
118 void uploadToYouTube(); |
|
119 void uploadProgress(qint64 bytesSent, qint64 bytesTotal); |
|
120 void uploadFinished(); |
117 }; |
121 }; |
118 |
122 |
119 #endif // PAGE_VIDEOS_H |
123 #endif // PAGE_VIDEOS_H |