* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
-#ifndef _SOUT_DIALOG_H_
-#define _SOUT_DIALOG_H_
+#ifndef QVLC_SOUT_DIALOG_H_
+#define QVLC_SOUT_DIALOG_H_ 1
#ifdef HAVE_CONFIG_H
# include "config.h"
#include "util/qvlcframe.hpp"
class QPushButton;
+class QToolButton;
class QCheckBox;
class QGridLayout;
class QTextEdit;
class SoutMrl
{
public:
- SoutMrl( const QString head = "")
+ SoutMrl( const QString& head = "")
{
mrl = head;
b_first = true;
return mrl;
}
- void begin( QString module )
+ void begin( const QString& module )
{
if( !b_first )
mrl += ":";
if( b_has_bracket )
mrl += "}";
}
- void option( const QString option, const QString value = "" )
+ void option( const QString& option, const QString& value = "" )
{
if( !b_has_bracket )
mrl += "{";
char *psz = config_StringEscape( qtu(value) );
if( psz )
{
- mrl += "=\"" + qfu( psz ) + "\"";
+ mrl += "=" + qfu( psz );
free( psz );
}
}
}
- void option( const QString name, const int i_value, const int i_precision = 10 )
+ void option( const QString& name, const int i_value, const int i_precision = 10 )
{
option( name, QString::number( i_value, i_precision ) );
}
- void option( const QString name, const double f_value )
+ void option( const QString& name, const double f_value )
{
option( name, QString::number( f_value ) );
}
- void option( const QString name, const QString base, const int i_value, const int i_precision = 10 )
+ void option( const QString& name, const QString& base, const int i_value, const int i_precision = 10 )
{
option( name, base + ":" + QString::number( i_value, i_precision ) );
}
Q_OBJECT;
public:
static SoutDialog* getInstance( QWidget *parent, intf_thread_t *p_intf,
- bool transcode_only )
+ QString mrl = "" )
{
if( !instance )
- instance = new SoutDialog( parent, p_intf, transcode_only );
+ instance = new SoutDialog( parent, p_intf, mrl );
else
{
/* Recenter the dialog on the parent */
instance->setParent( parent, Qt::Dialog );
- instance->b_transcode_only = transcode_only;
- instance->toggleSout();
}
return instance;
}
private:
Ui::Sout ui;
static SoutDialog *instance;
- SoutDialog( QWidget* parent, intf_thread_t *,
- bool _transcode_only = false );
- QPushButton *okButton;
+ SoutDialog( QWidget* parent, intf_thread_t *, QString mrl );
+
QString mrl;
- bool b_transcode_only;
+ QPushButton *okButton;
+ QToolButton *closeTabButton;
public slots:
void updateMRL();
private slots:
void ok();
void cancel();
- void toggleSout();
- void setOptions();
- void fileBrowse();
- void setRawOptions( bool );
- void changeUDPandRTPmess( bool );
- void RTPtoggled( bool );
+ void next();
+ void prev();
+ void closeTab();
+ void tabChanged( int );
+ void addDest();
};
#endif