]> git.sesse.net Git - vlc/blobdiff - plugins/kde/kde_net.cpp
* ./BUGS: added a list of known bugs. Please add your findings!
[vlc] / plugins / kde / kde_net.cpp
index d348ac6193b61c7d7e4c7d63392f2179681c2a02..0f1d510ff785481d0c3e1d498e1e2792ee6c586c 100644 (file)
 #include <qvgroupbox.h>
 #include <qwidget.h>
 
-KNetDialog::KNetDialog( QWidget *parent, const char *name ) :
-               KDialogBase( parent, name, true, QString::null, Ok|Cancel, Ok, true )
+KNetDialog::KNetDialog( QWidget *parent, const char *name )
+           :KDialogBase( parent, name, true,
+                         QString::null, Ok|Cancel, Ok, true )
 {
-       QVBox *pageVBox = makeVBoxMainWidget();
+    QVBox *pageVBox = makeVBoxMainWidget();
 
-       QHBox *layout = new QHBox( pageVBox );
-       layout->setSpacing( 5 );
-       fButtonGroup = new QVButtonGroup( "Protocol", layout );
-       fTSButton = new QRadioButton( "TS", fButtonGroup);
-       fTSButton->setChecked( true );
-       fRTPButton = new QRadioButton( "RTP", fButtonGroup);
-       fRTPButton->setEnabled( false );
-       fHTTPButton = new QRadioButton( "HTTP", fButtonGroup);
-       fHTTPButton->setEnabled( false );
+    QHBox *layout = new QHBox( pageVBox );
+    layout->setSpacing( 5 );
+    fButtonGroup = new QVButtonGroup( "Protocol", layout );
+    fTSButton = new QRadioButton( "TS", fButtonGroup);
+    fTSButton->setChecked( true );
+    fRTPButton = new QRadioButton( "RTP", fButtonGroup);
+    fRTPButton->setEnabled( false );
+    fHTTPButton = new QRadioButton( "HTTP", fButtonGroup);
+    fHTTPButton->setEnabled( false );
 
-       QVGroupBox *serverVBox = new QVGroupBox( "Starting position", layout );
+    QVGroupBox *serverVBox = new QVGroupBox( "Starting position", layout );
 
-       QHBox *titleHBox = new QHBox( serverVBox );
-       QLabel *titleLabel = new QLabel( "Address ", titleHBox );
-       fAddress = new KLineEdit( "vls", titleHBox );
-       QHBox *portHBox = new QHBox( serverVBox );
-       QLabel *portLabel = new QLabel( "Port ", portHBox );
-       fPort = new QSpinBox( 0, 65535, 1, portHBox );
+    QHBox *titleHBox = new QHBox( serverVBox );
+    QLabel *titleLabel = new QLabel( "Address ", titleHBox );
+    fAddress = new KLineEdit( "vls", titleHBox );
+    QHBox *portHBox = new QHBox( serverVBox );
+    QLabel *portLabel = new QLabel( "Port ", portHBox );
+    fPort = new QSpinBox( 0, 65535, 1, portHBox );
 }
 
 KNetDialog::~KNetDialog()
@@ -51,26 +52,26 @@ KNetDialog::~KNetDialog()
 
 QString KNetDialog::protocol() const
 {
-       if ( fTSButton->isChecked() )
-       {
-               return ( QString( "ts" ) );
-       }
-       else if ( fRTPButton->isChecked() )
-       {
-               return ( QString( "rtp" ) );
-       }
-       else
-       {
-               return ( QString( "http" ) );
-       }
+    if ( fTSButton->isChecked() )
+    {
+        return ( QString( "ts" ) );
+    }
+    else if ( fRTPButton->isChecked() )
+    {
+        return ( QString( "rtp" ) );
+    }
+    else
+    {
+        return ( QString( "http" ) );
+    }
 }
 
 QString KNetDialog::server() const
 {
-       return ( fAddress->text() );
+    return ( fAddress->text() );
 }
 
 int KNetDialog::port() const
 {
-       return ( fPort->value() );
+    return ( fPort->value() );
 }