Changeset 97f221eb4d6876bb37de2e4c3adbc622b4908101
- Timestamp:
- 21/12/07 01:40:47
(10 months ago)
- Author:
- Jean-Baptiste Kempf <jb@videolan.org>
- git-committer:
- Jean-Baptiste Kempf <jb@videolan.org> 1198197647 +0000
- git-parent:
[fee86c5d53af1cfb6edca8404348201c12469c17]
- git-author:
- Jean-Baptiste Kempf <jb@videolan.org> 1198197647 +0000
- Message:
Qt4 - Small open dialog refactoring for use for vlm dialog.
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r9649521 |
r97f221e |
|
| 2 | 2 | * open.cpp : Advanced open dialog |
|---|
| 3 | 3 | ***************************************************************************** |
|---|
| 4 | | * Copyright (C) 2006-2007 the VideoLAN team |
|---|
| | 4 | * Copyright ( C ) 2006-2007 the VideoLAN team |
|---|
| 5 | 5 | * $Id$ |
|---|
| 6 | 6 | * |
|---|
| … | … | |
| 10 | 10 | * it under the terms of the GNU General Public License as published by |
|---|
| 11 | 11 | * the Free Software Foundation; either version 2 of the License, or |
|---|
| 12 | | * (at your option) any later version. |
|---|
| | 12 | * ( at your option ) any later version. |
|---|
| 13 | 13 | * |
|---|
| 14 | 14 | * This program is distributed in the hope that it will be useful, |
|---|
| … | … | |
| 34 | 34 | OpenDialog *OpenDialog::instance = NULL; |
|---|
| 35 | 35 | |
|---|
| 36 | | OpenDialog::OpenDialog( QWidget *parent, intf_thread_t *_p_intf, bool modal, |
|---|
| | 36 | OpenDialog* OpenDialog::getInstance( QWidget *parent, intf_thread_t *p_intf, |
|---|
| | 37 | int _action_flag, bool modal ) |
|---|
| | 38 | { |
|---|
| | 39 | /* Creation */ |
|---|
| | 40 | if( !instance ) |
|---|
| | 41 | instance = new OpenDialog( parent, p_intf, modal, _action_flag ); |
|---|
| | 42 | else |
|---|
| | 43 | { |
|---|
| | 44 | /* Request the instance but change small details: |
|---|
| | 45 | - Button menu |
|---|
| | 46 | - Modality on top of the parent dialog */ |
|---|
| | 47 | instance->i_action_flag = _action_flag; |
|---|
| | 48 | instance->setMenuAction(); |
|---|
| | 49 | if( modal ) instance->setWindowModality( Qt::WindowModal ); |
|---|
| | 50 | } |
|---|
| | 51 | return instance; |
|---|
| | 52 | } |
|---|
| | 53 | |
|---|
| | 54 | OpenDialog::OpenDialog( QWidget *parent, |
|---|
| | 55 | intf_thread_t *_p_intf, |
|---|
| | 56 | bool modal, |
|---|
| 37 | 57 | int _action_flag ) : QVLCDialog( parent, _p_intf ) |
|---|
| 38 | 58 | { |
|---|
| 39 | | setModal( modal ); |
|---|
| 40 | 59 | i_action_flag = _action_flag; |
|---|
| | 60 | |
|---|
| | 61 | if( modal ) /* Select mode */ |
|---|
| | 62 | { |
|---|
| | 63 | setWindowModality( Qt::WindowModal ); |
|---|
| | 64 | i_action_flag = SELECT; |
|---|
| | 65 | } |
|---|
| 41 | 66 | |
|---|
| 42 | 67 | /* Basic Creation of the Window */ |
|---|
| 43 | 68 | ui.setupUi( this ); |
|---|
| 44 | | setWindowTitle( qtr("Open" ) ); |
|---|
| 45 | | resize( 410, 300); |
|---|
| | 69 | setWindowTitle( qtr( "Open" ) ); |
|---|
| | 70 | resize( 410, 300 ); |
|---|
| 46 | 71 | |
|---|
| 47 | 72 | /* Tab definition and creation */ |
|---|
| 48 | | fileOpenPanel = new FileOpenPanel( ui.Tab, p_intf ); |
|---|
| 49 | | discOpenPanel = new DiscOpenPanel( ui.Tab, p_intf ); |
|---|
| 50 | | netOpenPanel = new NetOpenPanel( ui.Tab, p_intf ); |
|---|
| | 73 | fileOpenPanel = new FileOpenPanel( ui.Tab, p_intf ); |
|---|
| | 74 | discOpenPanel = new DiscOpenPanel( ui.Tab, p_intf ); |
|---|
| | 75 | netOpenPanel = new NetOpenPanel( ui.Tab, p_intf ); |
|---|
| 51 | 76 | captureOpenPanel = new CaptureOpenPanel( ui.Tab, p_intf ); |
|---|
| 52 | 77 | |
|---|
| … | … | |
| 56 | 81 | ui.Tab->insertTab( OPEN_NETWORK_TAB, netOpenPanel, qtr( "&Network" ) ); |
|---|
| 57 | 82 | ui.Tab->insertTab( OPEN_CAPTURE_TAB, captureOpenPanel, |
|---|
| 58 | | qtr( "Capture &Device" ) ); |
|---|
| | 83 | qtr( "Capture &Device" ) ); |
|---|
| 59 | 84 | |
|---|
| 60 | 85 | /* Hide the Slave input widgets */ |
|---|
| … | … | |
| 63 | 88 | ui.slaveBrowseButton->hide(); |
|---|
| 64 | 89 | |
|---|
| 65 | | /* Hide the advancedPanel */ |
|---|
| 66 | | if(! config_GetInt( p_intf, "qt-adv-options") ) |
|---|
| 67 | | ui.advancedFrame->hide(); |
|---|
| 68 | | else |
|---|
| 69 | | ui.advancedCheckBox->setChecked( true ); |
|---|
| 70 | | |
|---|
| 71 | 90 | /* Buttons Creation */ |
|---|
| 72 | 91 | QSizePolicy buttonSizePolicy( QSizePolicy::Expanding, QSizePolicy::Minimum ); |
|---|
| … | … | |
| 78 | 97 | playButton->setText( qtr( "&Play" ) ); |
|---|
| 79 | 98 | playButton->setSizePolicy( buttonSizePolicy ); |
|---|
| 80 | | playButton->setMinimumSize( QSize(90, 0) ); |
|---|
| | 99 | playButton->setMinimumSize( QSize( 90, 0 ) ); |
|---|
| 81 | 100 | playButton->setPopupMode( QToolButton::MenuButtonPopup ); |
|---|
| 82 | 101 | playButton->setToolButtonStyle( Qt::ToolButtonTextOnly ); |
|---|
| … | … | |
| 87 | 106 | cancelButton->setSizePolicy( buttonSizePolicy ); |
|---|
| 88 | 107 | |
|---|
| | 108 | /* Select Button */ |
|---|
| | 109 | selectButton = new QPushButton; |
|---|
| | 110 | selectButton->setText( qtr( "Select" ) ); |
|---|
| | 111 | selectButton->setSizePolicy( buttonSizePolicy ); |
|---|
| | 112 | |
|---|
| 89 | 113 | /* Menu for the Play button */ |
|---|
| 90 | 114 | QMenu * openButtonMenu = new QMenu( "Open" ); |
|---|
| 91 | 115 | openButtonMenu->addAction( qtr( "&Enqueue" ), this, SLOT( enqueue() ), |
|---|
| 92 | | QKeySequence( "Alt+E") ); |
|---|
| | 116 | QKeySequence( "Alt+E" ) ); |
|---|
| 93 | 117 | openButtonMenu->addAction( qtr( "&Play" ), this, SLOT( play() ), |
|---|
| 94 | 118 | QKeySequence( "Alt+P" ) ); |
|---|
| … | … | |
| 100 | 124 | playButton->setMenu( openButtonMenu ); |
|---|
| 101 | 125 | |
|---|
| 102 | | ui.buttonsBox->addButton( playButton, QDialogButtonBox::AcceptRole ); |
|---|
| | 126 | /* Add the three Buttons */ |
|---|
| | 127 | ui.buttonsBox->addButton( playButton, QDialogButtonBox::ActionRole ); |
|---|
| | 128 | ui.buttonsBox->addButton( selectButton, QDialogButtonBox::AcceptRole ); |
|---|
| 103 | 129 | ui.buttonsBox->addButton( cancelButton, QDialogButtonBox::RejectRole ); |
|---|
| 104 | 130 | |
|---|
| | 131 | /* At creation time, modify the default buttons */ |
|---|
| | 132 | setMenuAction(); |
|---|
| | 133 | |
|---|
| 105 | 134 | /* Force MRL update on tab change */ |
|---|
| 106 | | CONNECT( ui.Tab, currentChanged(int), this, signalCurrent() ); |
|---|
| 107 | | |
|---|
| 108 | | CONNECT( fileOpenPanel, mrlUpdated( QString ), this, updateMRL(QString) ); |
|---|
| 109 | | CONNECT( netOpenPanel, mrlUpdated( QString ), this, updateMRL(QString) ); |
|---|
| 110 | | CONNECT( discOpenPanel, mrlUpdated( QString ), this, updateMRL(QString) ); |
|---|
| 111 | | CONNECT( captureOpenPanel, mrlUpdated( QString ), this, updateMRL(QString) ); |
|---|
| | 135 | CONNECT( ui.Tab, currentChanged( int ), this, signalCurrent() ); |
|---|
| | 136 | |
|---|
| | 137 | CONNECT( fileOpenPanel, mrlUpdated( QString ), this, updateMRL( QString ) ); |
|---|
| | 138 | CONNECT( netOpenPanel, mrlUpdated( QString ), this, updateMRL( QString ) ); |
|---|
| | 139 | CONNECT( discOpenPanel, mrlUpdated( QString ), this, updateMRL( QString ) ); |
|---|
| | 140 | CONNECT( captureOpenPanel, mrlUpdated( QString ), this, updateMRL( QString ) ); |
|---|
| 112 | 141 | |
|---|
| 113 | 142 | CONNECT( fileOpenPanel, methodChanged( QString ), |
|---|
| 114 | | this, newCachingMethod(QString) ); |
|---|
| | 143 | this, newCachingMethod( QString ) ); |
|---|
| 115 | 144 | CONNECT( netOpenPanel, methodChanged( QString ), |
|---|
| 116 | | this, newCachingMethod(QString) ); |
|---|
| | 145 | this, newCachingMethod( QString ) ); |
|---|
| 117 | 146 | CONNECT( discOpenPanel, methodChanged( QString ), |
|---|
| 118 | | this, newCachingMethod(QString) ); |
|---|
| | 147 | this, newCachingMethod( QString ) ); |
|---|
| 119 | 148 | CONNECT( captureOpenPanel, methodChanged( QString ), |
|---|
| 120 | | this, newCachingMethod(QString) ); |
|---|
| | 149 | this, newCachingMethod( QString ) ); |
|---|
| 121 | 150 | |
|---|
| 122 | 151 | /* Advanced frame Connects */ |
|---|
| 123 | | CONNECT( ui.slaveText, textChanged(QString), this, updateMRL() ); |
|---|
| 124 | | CONNECT( ui.cacheSpinBox, valueChanged(int), this, updateMRL() ); |
|---|
| 125 | | CONNECT( ui.startTimeSpinBox, valueChanged(int), this, updateMRL() ); |
|---|
| | 152 | CONNECT( ui.slaveText, textChanged( QString ), this, updateMRL() ); |
|---|
| | 153 | CONNECT( ui.cacheSpinBox, valueChanged( int ), this, updateMRL() ); |
|---|
| | 154 | CONNECT( ui.startTimeSpinBox, valueChanged( int ), this, updateMRL() ); |
|---|
| 126 | 155 | BUTTONACT( ui.advancedCheckBox , toggleAdvancedPanel() ); |
|---|
| 127 | 156 | |
|---|
| 128 | 157 | /* Buttons action */ |
|---|
| 129 | 158 | BUTTONACT( playButton, selectSlots() ); |
|---|
| | 159 | BUTTONACT( selectButton, close() ); |
|---|
| 130 | 160 | BUTTONACT( cancelButton, cancel() ); |
|---|
| 131 | 161 | |
|---|
| 132 | | /* At creation time, modify the default buttons */ |
|---|
| 133 | | if ( i_action_flag ) setMenuAction(); |
|---|
| | 162 | /* Hide the advancedPanel */ |
|---|
| | 163 | if( !config_GetInt( p_intf, "qt-adv-options" ) ) |
|---|
| | 164 | ui.advancedFrame->hide(); |
|---|
| | 165 | else |
|---|
| | 166 | ui.advancedCheckBox->setChecked( true ); |
|---|
| 134 | 167 | |
|---|
| 135 | 168 | /* Initialize caching */ |
|---|
| 136 | 169 | storedMethod = ""; |
|---|
| 137 | 170 | newCachingMethod( "file-caching" ); |
|---|
| 138 | | |
|---|
| 139 | | mainHeight = advHeight = 0; |
|---|
| 140 | 171 | } |
|---|
| 141 | 172 | |
|---|
| 142 | 173 | OpenDialog::~OpenDialog() |
|---|
| 143 | | { |
|---|
| 144 | | } |
|---|
| | 174 | {} |
|---|
| 145 | 175 | |
|---|
| 146 | 176 | /* Finish the dialog and decide if you open another one after */ |
|---|
| 147 | 177 | void OpenDialog::setMenuAction() |
|---|
| 148 | 178 | { |
|---|
| 149 | | switch ( i_action_flag ) |
|---|
| 150 | | { |
|---|
| 151 | | case OPEN_AND_STREAM: |
|---|
| 152 | | playButton->setText( qtr( "&Stream" ) ); |
|---|
| 153 | | break; |
|---|
| 154 | | case OPEN_AND_SAVE: |
|---|
| 155 | | playButton->setText( qtr( "&Convert / Save" ) ); |
|---|
| 156 | | break; |
|---|
| 157 | | case OPEN_AND_ENQUEUE: |
|---|
| 158 | | playButton->setText( qtr( "&Enqueue" ) ); |
|---|
| 159 | | break; |
|---|
| 160 | | case OPEN_AND_PLAY: |
|---|
| 161 | | default: |
|---|
| 162 | | playButton->setText( qtr( "&Play" ) ); |
|---|
| 163 | | } |
|---|
| | 179 | if( i_action_flag == SELECT ) |
|---|
| | 180 | { |
|---|
| | 181 | playButton->hide(); |
|---|
| | 182 | selectButton->show(); |
|---|
| | 183 | } |
|---|
| | 184 | else |
|---|
| | 185 | { |
|---|
| | 186 | switch ( i_action_flag ) |
|---|
| | 187 | { |
|---|
| | 188 | case OPEN_AND_STREAM: |
|---|
| | 189 | playButton->setText( qtr( "&Stream" ) ); |
|---|
| | 190 | break; |
|---|
| | 191 | case OPEN_AND_SAVE: |
|---|
| | 192 | playButton->setText( qtr( "&Convert / Save" ) ); |
|---|
| | 193 | break; |
|---|
| | 194 | case OPEN_AND_ENQUEUE: |
|---|
| | 195 | playButton->setText( qtr( "&Enqueue" ) ); |
|---|
| | 196 | break; |
|---|
| | 197 | case OPEN_AND_PLAY: |
|---|
| | 198 | default: |
|---|
| | 199 | playButton->setText( qtr( "&Play" ) ); |
|---|
| | 200 | } |
|---|
| | 201 | playButton->show(); |
|---|
| | 202 | selectButton->hide(); |
|---|
| | 203 | } |
|---|
| 164 | 204 | } |
|---|
| 165 | 205 | |
|---|
| 166 | 206 | void OpenDialog::showTab( int i_tab=0 ) |
|---|
| 167 | 207 | { |
|---|
| 168 | | this->show(); |
|---|
| 169 | 208 | ui.Tab->setCurrentIndex( i_tab ); |
|---|
| 170 | | } |
|---|
| 171 | | |
|---|
| 172 | | void OpenDialog::signalCurrent() { |
|---|
| 173 | | if (ui.Tab->currentWidget() != NULL) |
|---|
| 174 | | (dynamic_cast<OpenPanel *>( ui.Tab->currentWidget() ))->updateMRL(); |
|---|
| | 209 | show(); |
|---|
| | 210 | } |
|---|
| | 211 | |
|---|
| | 212 | /* Function called on signal currentChanged triggered */ |
|---|
| | 213 | void OpenDialog::signalCurrent() |
|---|
| | 214 | { |
|---|
| | 215 | if( ui.Tab->currentWidget() != NULL ) |
|---|
| | 216 | ( dynamic_cast<OpenPanel *>( ui.Tab->currentWidget() ) )->updateMRL(); |
|---|
| 175 | 217 | } |
|---|
| 176 | 218 | |
|---|
| 177 | 219 | void OpenDialog::toggleAdvancedPanel() |
|---|
| 178 | 220 | { |
|---|
| 179 | | //FIXME does not work under Windows |
|---|
| 180 | | if( ui.advancedFrame->isVisible() ) { |
|---|
| | 221 | if( ui.advancedFrame->isVisible() ) |
|---|
| | 222 | { |
|---|
| 181 | 223 | ui.advancedFrame->hide(); |
|---|
| 182 | | #ifndef WIN32 |
|---|
| 183 | | setMinimumHeight( 1 ); |
|---|
| 184 | | resize( width(), mainHeight ); |
|---|
| 185 | | #endif |
|---|
| 186 | | } else { |
|---|
| 187 | | #ifndef WIN32 |
|---|
| 188 | | if( mainHeight == 0 ) |
|---|
| 189 | | mainHeight = height(); |
|---|
| 190 | | #endif |
|---|
| 191 | | |
|---|
| | 224 | //FIXME: Clear Bug here. Qt ? |
|---|
| | 225 | resize( size().width(), size().height() - ui.advancedFrame->height() ); |
|---|
| | 226 | } |
|---|
| | 227 | else |
|---|
| | 228 | { |
|---|
| 192 | 229 | ui.advancedFrame->show(); |
|---|
| 193 | | #ifndef WIN32 |
|---|
| 194 | | if( advHeight == 0 ) { |
|---|
| 195 | | advHeight = height() - mainHeight; |
|---|
| 196 | | } |
|---|
| 197 | | resize( width(), mainHeight + advHeight ); |
|---|
| 198 | | #endif |
|---|
| 199 | 230 | } |
|---|
| 200 | 231 | } |
|---|
| … | … | |
| 206 | 237 | void OpenDialog::cancel() |
|---|
| 207 | 238 | { |
|---|
| | 239 | /* Clear the panels */ |
|---|
| 208 | 240 | for( int i = 0; i < OPEN_TAB_MAX; i++ ) |
|---|
| 209 | | dynamic_cast<OpenPanel*>(ui.Tab->widget( i ))->clear(); |
|---|
| 210 | | toggleVisible(); |
|---|
| 211 | | if( isModal() ) reject(); |
|---|
| | 241 | dynamic_cast<OpenPanel*>( ui.Tab->widget( i ) )->clear(); |
|---|
| | 242 | |
|---|
| | 243 | /* Clear the variables */ |
|---|
| | 244 | mrl.clear(); |
|---|
| | 245 | mainMRL.clear(); |
|---|
| | 246 | |
|---|
| | 247 | /* If in Select Mode, reject instead of hiding */ |
|---|
| | 248 | if( windowModality() != Qt::NonModal ) reject(); |
|---|
| | 249 | else hide(); |
|---|
| 212 | 250 | } |
|---|
| 213 | 251 | |
|---|
| … | … | |
| 215 | 253 | void OpenDialog::close() |
|---|
| 216 | 254 | { |
|---|
| 217 | | selectSlots(); |
|---|
| | 255 | if( windowModality() != Qt::NonModal ) |
|---|
| | 256 | accept(); |
|---|
| | 257 | else |
|---|
| | 258 | selectSlots(); |
|---|
| 218 | 259 | } |
|---|
| 219 | 260 | |
|---|
| … | … | |
| 248 | 289 | } |
|---|
| 249 | 290 | |
|---|
| 250 | | void OpenDialog::transcode() |
|---|
| 251 | | { |
|---|
| 252 | | stream( true ); |
|---|
| 253 | | } |
|---|
| 254 | | |
|---|
| 255 | | void OpenDialog::stream( bool b_transcode_only ) |
|---|
| 256 | | { |
|---|
| 257 | | /* not finished FIXME */ |
|---|
| 258 | | /* Should go through the finish function */ |
|---|
| 259 | | THEDP->streamingDialog( mrl, b_transcode_only ); |
|---|
| 260 | | } |
|---|
| 261 | 291 | |
|---|
| 262 | 292 | void OpenDialog::finish( bool b_enqueue = false ) |
|---|
| … | … | |
| 265 | 295 | mrl = ui.advancedLineInput->text(); |
|---|
| 266 | 296 | |
|---|
| 267 | | if( !isModal() ) |
|---|
| | 297 | if( windowModality() == Qt::NonModal ) |
|---|
| 268 | 298 | { |
|---|
| 269 | 299 | QStringList tempMRL = SeparateEntries( mrl ); |
|---|
| … | … | |
| 301 | 331 | } |
|---|
| 302 | 332 | |
|---|
| | 333 | void OpenDialog::transcode() |
|---|
| | 334 | { |
|---|
| | 335 | stream( true ); |
|---|
| | 336 | } |
|---|
| | 337 | |
|---|
| | 338 | void OpenDialog::stream( bool b_transcode_only ) |
|---|
| | 339 | { |
|---|
| | 340 | mrl = ui.advancedLineInput->text(); |
|---|
| | 341 | toggleVisible(); |
|---|
| | 342 | THEDP->streamingDialog( mrl, b_transcode_only ); |
|---|
| | 343 | } |
|---|
| 303 | 344 | |
|---|
| 304 | 345 | /* Update the MRL */ |
|---|
| r352de5a |
r97f221e |
|
| 41 | 41 | public: |
|---|
| 42 | 42 | static OpenDialog * getInstance( QWidget *parent, intf_thread_t *p_intf, |
|---|
| 43 | | int _action_flag = 0 ) |
|---|
| 44 | | { |
|---|
| 45 | | if( !instance ) |
|---|
| 46 | | instance = new OpenDialog( parent, p_intf, false, _action_flag ); |
|---|
| 47 | | else |
|---|
| 48 | | { |
|---|
| 49 | | instance->i_action_flag = _action_flag; |
|---|
| 50 | | instance->setMenuAction(); |
|---|
| 51 | | } |
|---|
| 52 | | return instance; |
|---|
| 53 | | } |
|---|
| 54 | | OpenDialog( QWidget *parent, intf_thread_t *, bool modal, |
|---|
| 55 | | int _action_flag = 0 ); |
|---|
| | 43 | int _action_flag = 0, bool modal = false ); |
|---|
| | 44 | |
|---|
| 56 | 45 | virtual ~OpenDialog(); |
|---|
| 57 | 46 | |
|---|
| 58 | 47 | void showTab( int ); |
|---|
| 59 | | |
|---|
| 60 | | QString mrl; |
|---|
| 61 | | QString mainMRL; |
|---|
| | 48 | QString getMRL(){ return mrl; } |
|---|
| 62 | 49 | |
|---|
| 63 | 50 | public slots: |
|---|
| … | … | |
| 67 | 54 | void enqueue(); |
|---|
| 68 | 55 | void transcode(); |
|---|
| | 56 | |
|---|
| 69 | 57 | private: |
|---|
| | 58 | OpenDialog( QWidget *parent, intf_thread_t *, bool modal, |
|---|
| | 59 | int _action_flag = 0 ); |
|---|
| | 60 | |
|---|
| 70 | 61 | static OpenDialog *instance; |
|---|
| 71 | 62 | input_thread_t *p_input; |
|---|
| | 63 | |
|---|
| | 64 | QString mrl; |
|---|
| | 65 | QString mainMRL; |
|---|
| | 66 | QString storedMethod; |
|---|
| 72 | 67 | |
|---|
| 73 | 68 | Ui::Open ui; |
|---|
| … | … | |
| 77 | 72 | CaptureOpenPanel *captureOpenPanel; |
|---|
| 78 | 73 | |
|---|
| 79 | | QString storedMethod; |
|---|
| 80 | | QString mrlSub; |
|---|
| 81 | | int advHeight, mainHeight; |
|---|
| 82 | 74 | int i_action_flag; |
|---|
| 83 | 75 | QStringList SeparateEntries( QString ); |
|---|
| 84 | 76 | |
|---|
| 85 | | QPushButton *cancelButton; |
|---|
| | 77 | QPushButton *cancelButton, *selectButton; |
|---|
| 86 | 78 | QToolButton *playButton; |
|---|
| | 79 | |
|---|
| 87 | 80 | void finish( bool ); |
|---|
| 88 | 81 | |
|---|
| r4c9b6e2 |
r97f221e |
|
| 128 | 128 | case INTF_DIALOG_WIZARD: |
|---|
| 129 | 129 | case INTF_DIALOG_STREAMWIZARD: |
|---|
| | 130 | openThenStreamingDialogs(); break; |
|---|
| 130 | 131 | #ifdef UPDATE_CHECK |
|---|
| 131 | 132 | case INTF_DIALOG_UPDATEVLC: |
|---|
| … | … | |
| 250 | 251 | /* Unimplemmented yet - Usefull ? */ |
|---|
| 251 | 252 | void DialogsProvider::MLAppendDialog() |
|---|
| 252 | | { |
|---|
| 253 | | } |
|---|
| | 253 | {} |
|---|
| 254 | 254 | |
|---|
| 255 | 255 | /** |
|---|
| … | … | |
| 415 | 415 | ****************************************************************************/ |
|---|
| 416 | 416 | |
|---|
| 417 | | //FIXME !! |
|---|
| 418 | 417 | void DialogsProvider::streamingDialog( QString mrl, bool b_transcode_only ) |
|---|
| 419 | 418 | { |
|---|
| … | … | |
| 422 | 421 | if( s->exec() == QDialog::Accepted ) |
|---|
| 423 | 422 | { |
|---|
| 424 | | msg_Err( p_intf, "mrl %s", qta( s->getMrl() ) ); |
|---|
| | 423 | msg_Err( p_intf, "Sout mrl %s", qta( s->getMrl() ) ); |
|---|
| 425 | 424 | /* Just do it */ |
|---|
| 426 | 425 | int i_len = strlen( qtu( s->getMrl() ) ) + 10; |
|---|
| r4c9b6e2 |
r97f221e |
|
| 85 | 85 | OPEN_AND_STREAM, |
|---|
| 86 | 86 | OPEN_AND_SAVE, |
|---|
| 87 | | OPEN_AND_ENQUEUE |
|---|
| | 87 | OPEN_AND_ENQUEUE, |
|---|
| | 88 | SELECT |
|---|
| 88 | 89 | }; |
|---|
| 89 | 90 | |
|---|
| r5f73c52 |
r97f221e |
|
| 15 | 15 | </property> |
|---|
| 16 | 16 | <property name="sizePolicy" > |
|---|
| 17 | | <sizepolicy> |
|---|
| 18 | | <hsizetype>5</hsizetype> |
|---|
| 19 | | <vsizetype>1</vsizetype> |
|---|
| | 17 | <sizepolicy vsizetype="Maximum" hsizetype="Preferred" > |
|---|
| 20 | 18 | <horstretch>0</horstretch> |
|---|
| 21 | 19 | <verstretch>0</verstretch> |
|---|
| … | … | |
| 26 | 24 | </property> |
|---|
| 27 | 25 | <layout class="QVBoxLayout" > |
|---|
| 28 | | <property name="margin" > |
|---|
| 29 | | <number>9</number> |
|---|
| 30 | | </property> |
|---|
| 31 | 26 | <property name="spacing" > |
|---|
| 32 | 27 | <number>6</number> |
|---|
| 33 | 28 | </property> |
|---|
| | 29 | <property name="leftMargin" > |
|---|
| | 30 | <number>9</number> |
|---|
| | 31 | </property> |
|---|
| | 32 | <property name="topMargin" > |
|---|
| | 33 | <number>9</number> |
|---|
| | 34 | </property> |
|---|
| | 35 | <property name="rightMargin" > |
|---|
| | 36 | <number>9</number> |
|---|
| | 37 | </property> |
|---|
| | 38 | <property name="bottomMargin" > |
|---|
| | 39 | <number>9</number> |
|---|
| | 40 | </property> |
|---|
| 34 | 41 | <item> |
|---|
| 35 | 42 | <widget class="QTabWidget" name="Tab" > |
|---|
| 36 | 43 | <property name="sizePolicy" > |
|---|
| 37 | | <sizepolicy> |
|---|
| 38 | | <hsizetype>5</hsizetype> |
|---|
| 39 | | <vsizetype>0</vsizetype> |
|---|
| | 44 | <sizepolicy vsizetype="Fixed" hsizetype="Preferred" > |
|---|
| 40 | 45 | <horstretch>0</horstretch> |
|---|
| 41 | 46 | <verstretch>0</verstretch> |
|---|
| … | … | |
| 60 | 65 | <widget class="QFrame" name="advancedFrame" > |
|---|
| 61 | 66 | <property name="sizePolicy" > |
|---|
| 62 | | <sizepolicy> |
|---|
| 63 | | <hsizetype>1</hsizetype> |
|---|
| 64 | | <vsizetype>5</vsizetype> |
|---|
| | 67 | <sizepolicy vsizetype="Preferred" hsizetype="Minimum" > |
|---|
| 65 | 68 | <horstretch>0</horstretch> |
|---|
| 66 | 69 | <verstretch>0</verstretch> |
|---|
| … | … | |
| 71 | 74 | </property> |
|---|
| 72 | 75 | <layout class="QGridLayout" > |
|---|
| 73 | | <property name="margin" > |
|---|
| | 76 | <property name="leftMargin" > |
|---|
| 74 | 77 | <number>9</number> |
|---|
| 75 | 78 | </property> |
|---|
| 76 | | <property name="spacing" > |
|---|
| | 79 | <property name="topMargin" > |
|---|
| | 80 | <number>9</number> |
|---|
| | 81 | </property> |
|---|
| | 82 | <property name="rightMargin" > |
|---|
| | 83 | <number>9</number> |
|---|
| | 84 | </property> |
|---|
| | 85 | <property name="bottomMargin" > |
|---|
| | 86 | <number>9</number> |
|---|
| | 87 | </property> |
|---|
| | 88 | <property name="horizontalSpacing" > |
|---|
| | 89 | <number>6</number> |
|---|
| | 90 | </property> |
|---|
| | 91 | <property name="verticalSpacing" > |
|---|
| 77 | 92 | <number>6</number> |
|---|
| 78 | 93 | </property> |
|---|
| … | … | |
| 87 | 102 | <widget class="QSpinBox" name="startTimeSpinBox" > |
|---|
| 88 | 103 | <property name="sizePolicy" > |
|---|
| 89 | | <sizepolicy> |
|---|
| 90 | | <hsizetype>0</hsizetype> |
|---|
| 91 | | <vsizetype>0</vsizetype> |
|---|
| | 104 | <sizepolicy vsizetype="Fixed" hsizetype="Fixed" > |
|---|
| 92 | 105 | <horstretch>0</horstretch> |
|---|
| 93 | 106 | <verstretch>0</verstretch> |
|---|
| … | … | |
| 111 | 124 | <widget class="QLabel" name="cacheLabel" > |
|---|
| 112 | 125 | <property name="sizePolicy" > |
|---|
| 113 | | <sizepolicy> |
|---|
| 114 | | <hsizetype>0</hsizetype> |
|---|
| 115 | | <vsizetype>5</vsizetype> |
|---|
| | 126 | <sizepolicy vsizetype="Preferred" hsizetype="Fixed" > |
|---|
| 116 | 127 | <horstretch>0</horstretch> |
|---|
| 117 | 128 | <verstretch>0</verstretch> |
|---|
| … | … | |
| 181 | 192 | <widget class="QSpinBox" name="cacheSpinBox" > |
|---|
| 182 | 193 | <property name="sizePolicy" > |
|---|
| 183 | | <sizepolicy> |
|---|
| 184 | | <hsizetype>0</hsizetype> |
|---|
| 185 | | <vsizetype>0</vsizetype> |
|---|
| | 194 | <sizepolicy vsizetype="Fixed" hsizetype="Fixed" > |
|---|
| 186 | 195 | <horstretch>0</horstretch> |
|---|
| 187 | 196 | <verstretch>0</verstretch> |
|---|
| … | … | |
| 223 | 232 | <item> |
|---|
| 224 | 233 | <layout class="QHBoxLayout" > |
|---|
| 225 | | <property name="margin" > |
|---|
| 226 | | <number>0</number> |
|---|
| 227 | | </property> |
|---|
| 228 | 234 | <property name="spacing" > |
|---|
| 229 | 235 | <number>6</number> |
|---|
| | 236 | </property> |
|---|
| | 237 | <property name="leftMargin" > |
|---|
| | 238 | <number>0</number> |
|---|
| | 239 | </property> |
|---|
| | 240 | <property name="topMargin" > |
|---|
| | 241 | <number>0</number> |
|---|
| | 242 | </property> |
|---|
| | 243 | <property name="rightMargin" > |
|---|
| | 244 | <number>0</number> |
|---|
| | 245 | </property> |
|---|
| | 246 | <property name="bottomMargin" > |
|---|
| | 247 | <number>0</number> |
|---|
| 230 | 248 | </property> |
|---|
| 231 | 249 | <item> |
|---|