QTfrontend/ui/page/pagevideos.h
changeset 7392 bc3306c59a08
parent 7386 e82a076df09b
child 7447 01111960a48d
equal deleted inserted replaced
7390:27bfd8bbde7e 7392:bc3306c59a08
    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 
    43 
    44         GameUIConfig * config;
       
    45 
    44 
    46         QString format()
    45         QString format()
    47         { return comboAVFormats->itemData(comboAVFormats->currentIndex()).toString(); }
    46         { return comboAVFormats->itemData(comboAVFormats->currentIndex()).toString(); }
    48 
    47 
    49         QString videoCodec()
    48         QString videoCodec()
    55         void setDefaultCodecs();
    54         void setDefaultCodecs();
    56         bool tryCodecs(const QString & format, const QString & vcodec, const QString & acodec);
    55         bool tryCodecs(const QString & format, const QString & vcodec, const QString & acodec);
    57         void addRecorder(HWRecorder* pRecorder);
    56         void addRecorder(HWRecorder* pRecorder);
    58         bool tryQuit(HWForm *form);
    57         bool tryQuit(HWForm *form);
    59         QString getVideosInProgress(); // get multi-line string with list of videos in progress
    58         QString getVideosInProgress(); // get multi-line string with list of videos in progress
       
    59         void startEncoding(const QByteArray & record = QByteArray());
       
    60         void init(GameUIConfig * config);
    60 
    61 
    61     private:
    62     private:
    62         // virtuals from AbstractPage
    63         // virtuals from AbstractPage
    63         QLayout * bodyLayoutDefinition();
    64         QLayout * bodyLayoutDefinition();
    64         QLayout * footerLayoutDefinition();
    65         QLayout * footerLayoutDefinition();
    73         VideoItem* nameItem(int row);
    74         VideoItem* nameItem(int row);
    74         void play(int row);
    75         void play(int row);
    75         void updateDescription();
    76         void updateDescription();
    76         void clearTemp();
    77         void clearTemp();
    77         void clearThumbnail();
    78         void clearThumbnail();
       
    79 
       
    80         GameUIConfig * config;
    78 
    81 
    79         // options group
    82         // options group
    80         QComboBox *comboAVFormats;
    83         QComboBox *comboAVFormats;
    81         QComboBox *comboVideoCodecs;
    84         QComboBox *comboVideoCodecs;
    82         QComboBox *comboAudioCodecs;
    85         QComboBox *comboAudioCodecs;