/*****************************************************************************
* open.hpp : Panels for the open dialogs
****************************************************************************
- * Copyright (C) 2006-2008 the VideoLAN team
+ * Copyright (C) 2006-2009 the VideoLAN team
* Copyright (C) 2007 Société des arts technologiques
* Copyright (C) 2007 Savoir-faire Linux
* $Id$
JACK_DEVICE
};
-static const char *psz_devModule[] = { "v4l", "v4l2", "pvr", "dvb", "bda",
- "dshow", "screen", "jack" };
-
class QWidget;
class QLineEdit;
class QString;
public slots:
virtual void updateMRL() = 0;
signals:
- void mrlUpdated( QString );
+ void mrlUpdated( QStringList, QString );
void methodChanged( QString method );
};
-class FileOpenBox: public QFileDialog
-{
- Q_OBJECT;
-public:
- FileOpenBox( QWidget *parent, const QString &caption,
- const QString &directory, const QString &filter ):
- QFileDialog( parent, caption, directory, filter ) {}
-public slots:
- void accept();
- void reject();
-};
-
class FileOpenPanel: public OpenPanel
{
Q_OBJECT;
virtual void accept() ;
private:
Ui::OpenFile ui;
- QStringList browse( QString );
- FileOpenBox *dialogBox;
- QLineEdit *lineFileEdit;
- QStringList fileCompleteList ;
public slots:
virtual void updateMRL();
private slots:
void browseFileSub();
- void toggleSubtitleFrame();
+ void browseFile();
+ void toggleSubtitleFrame( bool );
};
class NetOpenPanel: public OpenPanel