Changeset 175 for smplayer/vendor/current/src/filepropertiesdialog.cpp
- Timestamp:
- May 3, 2016, 2:14:41 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
smplayer/vendor/current/src/filepropertiesdialog.cpp
r163 r175 1 1 /* smplayer, GUI front-end for mplayer. 2 Copyright (C) 2006-201 4Ricardo Villalba <rvm@users.sourceforge.net>2 Copyright (C) 2006-2016 Ricardo Villalba <rvm@users.sourceforge.net> 3 3 4 4 This program is free software; you can redistribute it and/or modify … … 24 24 #include "images.h" 25 25 #include "infofile.h" 26 26 #include "playerid.h" 27 27 28 28 FilePropertiesDialog::FilePropertiesDialog( QWidget* parent, Qt::WindowFlags f ) … … 37 37 connect( applyButton, SIGNAL(clicked()), this, SLOT(apply()) ); 38 38 39 #if ALLOW_DEMUXER_CODEC_CHANGE 39 40 codecs_set = false; 40 41 // Read codec info from InfoReader: 42 InfoReader *i = InfoReader::obj(); 43 setCodecs( i->vcList(), i->acList(), i->demuxerList() ); 41 #else 42 // Hide unused tabs 43 int i = tabWidget->indexOf(demuxer_page); 44 if (i != -1) tabWidget->removeTab(i); 45 i = tabWidget->indexOf(vc_page); 46 if (i != -1) tabWidget->removeTab(i); 47 i = tabWidget->indexOf(ac_page); 48 if (i != -1) tabWidget->removeTab(i); 49 #endif 44 50 45 51 retranslateStrings(); … … 73 79 #endif 74 80 81 #if ALLOW_DEMUXER_CODEC_CHANGE 82 int tab_idx = 4; 83 #else 84 int tab_idx = 1; 85 #endif 86 tabWidget->setTabText(tab_idx, tr("O&ptions for %1").arg(PLAYER_NAME) ); 87 groupBox->setTitle( tr("Additional Options for %1").arg(PLAYER_NAME) ); 88 options_info_label->setText( tr("Here you can pass extra options to %1.").arg(PLAYER_NAME) +"<br>"+ 89 tr("Write them separated by spaces.") + "<br>" + tr("Example:") + " -volume 50 -fps 25" ); 75 90 } 76 91 … … 90 105 } 91 106 107 #if ALLOW_DEMUXER_CODEC_CHANGE 92 108 void FilePropertiesDialog::setCodecs(InfoList vc, InfoList ac, InfoList demuxer) 93 109 { … … 96 112 demuxerlist = demuxer; 97 113 114 qSort(vclist); 115 qSort(aclist); 116 qSort(demuxerlist); 117 118 vc_listbox->clear(); 119 ac_listbox->clear(); 120 demuxer_listbox->clear(); 121 98 122 InfoList::iterator it; 99 123 … … 110 134 } 111 135 112 codecs_set = true; 136 codecs_set = true; 113 137 } 114 138 … … 189 213 return -1; 190 214 } 215 #endif 191 216 192 217 void FilePropertiesDialog::setMplayerAdditionalArguments(QString args) {
Note:
See TracChangeset
for help on using the changeset viewer.