/*****************************************************************************
* open.hpp : Panels for the open dialogs
****************************************************************************
- * Copyright (C) 2006-2007 the VideoLAN team
+ * Copyright (C) 2006-2008 the VideoLAN team
* Copyright (C) 2007 Société des arts technologiques
* Copyright (C) 2007 Savoir-faire Linux
* $Id$
# include "config.h"
#endif
-#include <vlc/vlc.h>
-
-#include <QFileDialog>
+#include "components/preferences_widgets.hpp"
#include "ui/open_file.h"
#include "ui/open_disk.h"
#include "ui/open_net.h"
#include "ui/open_capture.h"
-#include "components/preferences_widgets.hpp"
+#include <QFileDialog>
-#ifdef HAVE_LIMITS_H
-# include <limits.h>
-#endif
+#include <limits.h>
#define setSpinBoxFreq( spinbox ){ spinbox->setRange ( 0, INT_MAX ); \
spinbox->setAccelerated( true ); }
+enum
+{
+ NO_PROTO,
+ HTTP_PROTO,
+ HTTPS_PROTO,
+ MMS_PROTO,
+ FTP_PROTO,
+ RTSP_PROTO,
+ RTP_PROTO,
+ UDP_PROTO,
+ RTMP_PROTO
+};
+
enum
{
V4L_DEVICE,
static const char *psz_devModule[] = { "v4l", "v4l2", "pvr", "dvb", "bda",
"dshow", "screen", "jack" };
-
class QWidget;
class QLineEdit;
class QString;
+class QStringListModel;
class OpenPanel: public QWidget
{
QFileDialog( parent, caption, directory, filter ) {}
public slots:
void accept();
+ void reject();
};
class FileOpenPanel: public OpenPanel
virtual void clear() ;
private:
Ui::OpenNetwork ui;
+ QStringListModel *mrlList;
public slots:
virtual void updateMRL();
private slots:
void updateProtocol( int );
+ void updateCompleter();
};
class DiscOpenPanel: public OpenPanel
private slots:
void browseDevice();
void updateButtons() ;
+ void eject();
};
virtual void clear() ;
private:
Ui::OpenCapture ui;
+ bool isInitialized;
+
QString advMRL;
QDialog *adv;
#ifdef WIN32
- QRadioButton *bdas, *bdat, *bdac;
+ QRadioButton *bdas, *bdat, *bdac, *bdaa;
QSpinBox *bdaCard, *bdaFreq, *bdaSrate;
QLabel *bdaSrateLabel, *bdaBandLabel;
QComboBox *bdaBandBox;
QCheckBox *jackPace, *jackConnect;
QLineEdit *jackPortsSelected;
#endif
+ QSpinBox *screenFPS;
public slots:
virtual void updateMRL();
+ void initialize();
private slots:
void updateButtons();
void advancedDialog();