#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,
class QLineEdit;
class QString;
class QStringListModel;
+class QEvent;
class OpenPanel: public QWidget
{
- Q_OBJECT;
+ Q_OBJECT
public:
OpenPanel( QWidget *p, intf_thread_t *_p_intf ) : QWidget( p )
{
class FileOpenBox: public QFileDialog
{
- Q_OBJECT;
+ Q_OBJECT
public:
FileOpenBox( QWidget *parent, const QString &caption,
const QString &directory, const QString &filter ):
class FileOpenPanel: public OpenPanel
{
- Q_OBJECT;
+ Q_OBJECT
public:
FileOpenPanel( QWidget *, intf_thread_t * );
virtual ~FileOpenPanel();
if( event->type() == QEvent::Hide ||
event->type() == QEvent::HideToParent )
{
- msg_Warn( p_intf, "here" );
event->accept();
return true;
}
return false;
}
+ virtual void dropEvent( QDropEvent *);
+ virtual void dragEnterEvent( QDragEnterEvent * );
+ virtual void dragMoveEvent( QDragMoveEvent * );
+ virtual void dragLeaveEvent( QDragLeaveEvent * );
private:
Ui::OpenFile ui;
FileOpenBox *dialogBox;
class NetOpenPanel: public OpenPanel
{
- Q_OBJECT;
+ Q_OBJECT
public:
NetOpenPanel( QWidget *, intf_thread_t * );
virtual ~NetOpenPanel();
public slots:
virtual void updateMRL();
private slots:
- void updateProtocol( int );
- void updateCompleter();
+ void updateModel();
+};
+
+class UrlValidator : public QValidator
+{
+ Q_OBJECT
+public:
+ UrlValidator( QObject *parent ) : QValidator( parent ) { }
+ void fixup( QString& ) const;
+ QValidator::State validate( QString&, int& ) const;
};
class DiscOpenPanel: public OpenPanel
{
- Q_OBJECT;
+ Q_OBJECT
+ enum DiscType
+ {
+ None,
+ Dvd,
+ Vcd,
+ Cdda
+ };
public:
DiscOpenPanel( QWidget *, intf_thread_t * );
virtual ~DiscOpenPanel();
private:
Ui::OpenDisk ui;
char *psz_dvddiscpath, *psz_vcddiscpath, *psz_cddadiscpath;
- bool b_firstdvd, b_firstvcd, b_firstcdda;
+ DiscType m_discType;
public slots:
virtual void updateMRL() ;
private slots:
class CaptureOpenPanel: public OpenPanel
{
- Q_OBJECT;
+ Q_OBJECT
public:
CaptureOpenPanel( QWidget *, intf_thread_t * );
virtual ~CaptureOpenPanel();
QString advMRL;
QDialog *adv;
#ifdef WIN32
- QRadioButton *bdas, *bdat, *bdac, *bdaa;
+ QRadioButton *bdas, *bdat, *bdac, *bdaa, *bdaq;
QSpinBox *bdaCard, *bdaFreq, *bdaSrate;
QLabel *bdaSrateLabel, *bdaBandLabel;
QComboBox *bdaBandBox;
QLabel *dvbBandLabel, *dvbSrateLabel;
QSpinBox *v4lFreq, *pvrFreq, *pvrBitr;
QLineEdit *v4lVideoDevice, *v4lAudioDevice;
- QLineEdit *v4l2VideoDevice, *v4l2AudioDevice;
+ QComboBox *v4l2VideoDevice, *v4l2AudioDevice;
QLineEdit *pvrDevice, *pvrRadioDevice;
QComboBox *v4lNormBox, *v4l2StdBox, *pvrNormBox, *dvbBandBox;
QSpinBox *dvbCard, *dvbFreq, *dvbSrate;
QCheckBox *jackPace, *jackConnect;
QLineEdit *jackPortsSelected;
#endif
- QSpinBox *screenFPS;
+ QDoubleSpinBox *screenFPS;
public slots:
virtual void updateMRL();