"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/GUI/PageOutput.cpp" between
ssr-0.4.1.tar.gz and ssr-0.4.2.tar.gz

About: SimpleScreenRecorder is a screen (video-audio) recorder for Linux.

PageOutput.cpp  (ssr-0.4.1):PageOutput.cpp  (ssr-0.4.2)
skipping to change at line 227 skipping to change at line 227
" WebM is supported by default in Firefox, Chrome and Opera, an d plugins are available for Internet Explorer and Safari.\n" " WebM is supported by default in Firefox, Chrome and Opera, an d plugins are available for Internet Explorer and Safari.\n"
" It supports only VP8 and Vorbis.\n" " It supports only VP8 and Vorbis.\n"
"- OGG supports only Theora and Vorbis.")); "- OGG supports only Theora and Vorbis."));
m_label_container_av = new QLabel(tr("Container name:"), groupbox_file); m_label_container_av = new QLabel(tr("Container name:"), groupbox_file);
m_combobox_container_av = new QComboBox(groupbox_file); m_combobox_container_av = new QComboBox(groupbox_file);
for(unsigned int i = 0; i < m_containers_av.size(); ++i) { for(unsigned int i = 0; i < m_containers_av.size(); ++i) {
ContainerData &c = m_containers_av[i]; ContainerData &c = m_containers_av[i];
m_combobox_container_av->addItem(c.avname); m_combobox_container_av->addItem(c.avname);
} }
m_combobox_container_av->setToolTip(tr("For advanced user s. You can use any libav/ffmpeg format, but many of them are not useful or may n ot work.")); m_combobox_container_av->setToolTip(tr("For advanced user s. You can use any libav/ffmpeg format, but many of them are not useful or may n ot work."));
m_label_container_warning = new QLabel(tr("Warning: This
format will produce unreadable files if the recording is interrupted! Consider u
sing MKV instead."), groupbox_file);
m_label_container_warning->setWordWrap(true);
connect(m_combobox_container, SIGNAL(activated(int)), thi s, SLOT(OnUpdateSuffixAndContainerFields())); connect(m_combobox_container, SIGNAL(activated(int)), thi s, SLOT(OnUpdateSuffixAndContainerFields()));
connect(m_combobox_container_av, SIGNAL(activated(int)), this, SLOT(OnUpdateSuffixAndContainerFields())); connect(m_combobox_container_av, SIGNAL(activated(int)), this, SLOT(OnUpdateSuffixAndContainerFields()));
connect(button_browse, SIGNAL(clicked()), this, SLOT(OnBr owse())); connect(button_browse, SIGNAL(clicked()), this, SLOT(OnBr owse()));
QGridLayout *layout = new QGridLayout(groupbox_file); QGridLayout *layout = new QGridLayout(groupbox_file);
layout->addWidget(label_file, 0, 0); layout->addWidget(label_file, 0, 0);
layout->addWidget(m_lineedit_file, 0, 1); layout->addWidget(m_lineedit_file, 0, 1);
layout->addWidget(button_browse, 0, 2); layout->addWidget(button_browse, 0, 2);
{ {
QHBoxLayout *layout2 = new QHBoxLayout(); QHBoxLayout *layout2 = new QHBoxLayout();
layout->addLayout(layout2, 1, 0, 1, 3); layout->addLayout(layout2, 1, 0, 1, 3);
layout2->addWidget(m_checkbox_separate_files); layout2->addWidget(m_checkbox_separate_files);
layout2->addWidget(m_checkbox_add_timestamp); layout2->addWidget(m_checkbox_add_timestamp);
} }
layout->addWidget(label_container, 2, 0); layout->addWidget(label_container, 2, 0);
layout->addWidget(m_combobox_container, 2, 1, 1, 2); layout->addWidget(m_combobox_container, 2, 1, 1, 2);
layout->addWidget(m_label_container_av, 3, 0); layout->addWidget(m_label_container_av, 3, 0);
layout->addWidget(m_combobox_container_av, 3, 1, 1, 2); layout->addWidget(m_combobox_container_av, 3, 1, 1, 2);
layout->addWidget(m_label_container_warning, 4, 0, 1, 3);
} }
QGroupBox *groupbox_video = new QGroupBox(tr("Video"), scrollarea _contents); QGroupBox *groupbox_video = new QGroupBox(tr("Video"), scrollarea _contents);
{ {
QLabel *label_video_codec = new QLabel(tr("Codec:"), grou pbox_video); QLabel *label_video_codec = new QLabel(tr("Codec:"), grou pbox_video);
m_combobox_video_codec = new QComboBox(groupbox_video); m_combobox_video_codec = new QComboBox(groupbox_video);
for(unsigned int i = 0; i < VIDEO_CODEC_COUNT; ++i) { for(unsigned int i = 0; i < VIDEO_CODEC_COUNT; ++i) {
m_combobox_video_codec->addItem(m_video_codecs[i] .name); m_combobox_video_codec->addItem(m_video_codecs[i] .name);
} }
m_combobox_video_codec->setToolTip(tr("The codec that wil l be used to compress the video stream.\n" m_combobox_video_codec->setToolTip(tr("The codec that wil l be used to compress the video stream.\n"
"- H.264 (libx264) is by far the best codec - high quality and very fast.\n" "- H.264 (libx264) is by far the best codec - high quality and very fast.\n"
skipping to change at line 627 skipping to change at line 630
} }
void PageOutput::OnUpdateContainerFields() { void PageOutput::OnUpdateContainerFields() {
enum_container container = GetContainer(); enum_container container = GetContainer();
unsigned int container_av = GetContainerAV(); unsigned int container_av = GetContainerAV();
// show/hide fields // show/hide fields
GroupVisible({m_label_container_av, m_combobox_container_av}, (container == CONTAINER_OTHER)); GroupVisible({m_label_container_av, m_combobox_container_av}, (container == CONTAINER_OTHER));
// show/hide warning
m_label_container_warning->setVisible(GetContainerAVName() == "mp4");
// mark uninstalled or unsupported codecs // mark uninstalled or unsupported codecs
for(unsigned int i = 0; i < VIDEO_CODEC_OTHER; ++i) { for(unsigned int i = 0; i < VIDEO_CODEC_OTHER; ++i) {
QString name = m_video_codecs[i].name; QString name = m_video_codecs[i].name;
if(!AVCodecIsInstalled(m_video_codecs[i].avname)) if(!AVCodecIsInstalled(m_video_codecs[i].avname))
name += " (" + tr("not installed") + ")"; name += " (" + tr("not installed") + ")";
else if(container != CONTAINER_OTHER && !m_containers[container]. supported_video_codecs.count((enum_video_codec) i)) else if(container != CONTAINER_OTHER && !m_containers[container]. supported_video_codecs.count((enum_video_codec) i))
name += " (" + tr("not supported by container") + ")"; name += " (" + tr("not supported by container") + ")";
m_combobox_video_codec->setItemText(i, name); m_combobox_video_codec->setItemText(i, name);
} }
for(unsigned int i = 0; i < AUDIO_CODEC_OTHER; ++i) { for(unsigned int i = 0; i < AUDIO_CODEC_OTHER; ++i) {
 End of changes. 3 change blocks. 
0 lines changed or deleted 8 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)