equal
deleted
inserted
replaced
34 Q_OBJECT |
34 Q_OBJECT |
35 |
35 |
36 public: |
36 public: |
37 PageVideos(QWidget* parent = 0); |
37 PageVideos(QWidget* parent = 0); |
38 |
38 |
39 QSpinBox *framerateBox; |
|
40 QSpinBox *bitrateBox; |
|
41 QLineEdit *widthEdit; |
|
42 QLineEdit *heightEdit; |
|
43 QCheckBox *checkUseGameRes; |
|
44 QCheckBox *checkRecordAudio; |
|
45 |
|
46 QString format() |
|
47 { return comboAVFormats->itemData(comboAVFormats->currentIndex()).toString(); } |
|
48 |
|
49 QString videoCodec() |
|
50 { return comboVideoCodecs->itemData(comboVideoCodecs->currentIndex()).toString(); } |
|
51 |
|
52 QString audioCodec() |
|
53 { return comboAudioCodecs->itemData(comboAudioCodecs->currentIndex()).toString(); } |
|
54 |
|
55 void setDefaultCodecs(); |
|
56 bool tryCodecs(const QString & format, const QString & vcodec, const QString & acodec); |
|
57 void addRecorder(HWRecorder* pRecorder); |
39 void addRecorder(HWRecorder* pRecorder); |
58 bool tryQuit(HWForm *form); |
40 bool tryQuit(HWForm *form); |
59 QString getVideosInProgress(); // get multi-line string with list of videos in progress |
41 QString getVideosInProgress(); // get multi-line string with list of videos in progress |
60 void startEncoding(const QByteArray & record = QByteArray()); |
42 void startEncoding(const QByteArray & record = QByteArray()); |
61 void init(GameUIConfig * config); |
43 void init(GameUIConfig * config); |
81 VideoItem * itemFromReply(QNetworkReply* reply, int & row); |
63 VideoItem * itemFromReply(QNetworkReply* reply, int & row); |
82 |
64 |
83 GameUIConfig * config; |
65 GameUIConfig * config; |
84 QNetworkAccessManager* netManager; |
66 QNetworkAccessManager* netManager; |
85 |
67 |
86 // options group |
|
87 QComboBox *comboAVFormats; |
|
88 QComboBox *comboVideoCodecs; |
|
89 QComboBox *comboAudioCodecs; |
|
90 QPushButton *btnDefaults; |
|
91 |
|
92 // file list group |
68 // file list group |
93 QTableWidget *filesTable; |
69 QTableWidget *filesTable; |
94 QPushButton *btnOpenDir; |
70 QPushButton *btnOpenDir; |
95 |
71 |
96 // description group |
72 // description group |
103 bool nameChangedFromCode; |
79 bool nameChangedFromCode; |
104 |
80 |
105 int numRecorders, numUploads; |
81 int numRecorders, numUploads; |
106 |
82 |
107 private slots: |
83 private slots: |
108 void changeAVFormat(int index); |
|
109 void changeUseGameRes(int state); |
|
110 void changeRecordAudio(int state); |
|
111 void setDefaultOptions(); |
|
112 void encodingFinished(bool success); |
84 void encodingFinished(bool success); |
113 void updateProgress(float value); |
85 void updateProgress(float value); |
114 void cellDoubleClicked(int row, int column); |
86 void cellDoubleClicked(int row, int column); |
115 void cellChanged(int row, int column); |
87 void cellChanged(int row, int column); |
116 void currentCellChanged(); |
88 void currentCellChanged(); |