X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=modules%2Fgui%2Fqt4%2Fdialogs_provider.hpp;h=e6212a0ab4c3bb5f1f3bb17c3dbd9d45f0aa1cb1;hb=712f983f22d2880e2fe8f1af101d8b314b87c26b;hp=269a2886ba69e47bee8d78380d5b0ed004305608;hpb=885113ae46f9ca51f3581e45da5dfadabffa70ee;p=vlc diff --git a/modules/gui/qt4/dialogs_provider.hpp b/modules/gui/qt4/dialogs_provider.hpp index 269a2886ba..e6212a0ab4 100644 --- a/modules/gui/qt4/dialogs_provider.hpp +++ b/modules/gui/qt4/dialogs_provider.hpp @@ -1,10 +1,11 @@ /***************************************************************************** * dialogs_provider.hpp : Dialogs provider **************************************************************************** - * Copyright (C) 2006 the VideoLAN team + * Copyright (C) 2006-2007 the VideoLAN team * $Id$ * * Authors: Clément Stenac + * Jean-Baptiste Kempf * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -18,7 +19,8 @@ * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA. *****************************************************************************/ + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA. + *****************************************************************************/ #ifndef _DIALOGS_PROVIDER_H_ #define _DIALOGS_PROVIDER_H_ @@ -33,6 +35,12 @@ #include #include +#define EXT_FILTER_MEDIA 0x01 +#define EXT_FILTER_VIDEO 0x02 +#define EXT_FILTER_AUDIO 0x04 +#define EXT_FILTER_PLAYLIST 0x08 +#define EXT_FILTER_SUBTITLE 0x10 + #define ADD_FILTER_MEDIA( string ) \ string += _("Media Files"); \ string += " ( "; \ @@ -62,6 +70,14 @@ string += _("All Files"); \ string += " (*.*)"; +#define OPEN_FILE_TAB 0x0 +#define OPEN_DISC_TAB 0x1 +#define OPEN_NETWORK_TAB 0x2 +#define OPEN_CAPTURE_TAB 0x3 + +#define OPEN_AND_PLAY 0x0 +#define OPEN_AND_STREAM 0x1 +#define OPEN_AND_SAVE 0x2 class QEvent; class QSignalMapper; @@ -90,9 +106,11 @@ public: virtual ~DialogsProvider(); QTimer *fixed_timer; - QStringList showSimpleOpen( QString help = QString(), bool all = true, - bool video = true, bool audio = true, - bool subs = false, bool pls = true ); + QStringList showSimpleOpen( QString help = QString(), + int filters = EXT_FILTER_MEDIA | + EXT_FILTER_VIDEO | EXT_FILTER_AUDIO | + EXT_FILTER_PLAYLIST, + QString path = QString() ); protected: friend class QVLCMenu; QSignalMapper *menusMapper; @@ -124,18 +142,20 @@ public slots: void openDiscDialog(); void PLAppendDialog(); void MLAppendDialog(); - void popupMenu( int ); void doInteraction( intf_dialog_args_t * ); void menuAction( QObject *); void menuUpdateAction( QObject *); void SDMenuAction( QString ); - void streamingDialog(); + void streamingDialog( QString mrl = "", bool b_stream = true ); + void openThenStreamingDialogs(); + void openThenTranscodingDialogs(); void openPlaylist(); void savePlaylist(); void PLAppendDir(); void MLAppendDir(); void quit(); void switchToSkins(); + void gotoTimeDialog(); void helpDialog(); void aboutDialog(); };