]> git.sesse.net Git - vlc/blobdiff - modules/gui/qt4/dialogs_provider.hpp
Disable update checking per default, re-enable with --enable-update-check
[vlc] / modules / gui / qt4 / dialogs_provider.hpp
index 2c18f931789fb02db794a7d3360ba0073c29300e..2d3533bd14d53ad18257b9a08971867292a22a25 100644 (file)
@@ -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 <zorglub@videolan.org>
+ *          Jean-Baptiste Kempf <jb@videolan.org>
  *
  * 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
  *
  * 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_
 
-#include <QObject>
-#include <QTimer>
-#include <QApplication>
-
-#include "dialogs/interaction.hpp"
-
 #include <assert.h>
 #include <vlc/vlc.h>
 #include <vlc_interface.h>
 
-#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
+#include "dialogs/interaction.hpp"
+
+#include <QObject>
+#include <QTimer>
+#include <QApplication>
 
-#define ADD_FILTER_MEDIA( string )   \
-    string += _("Media Files");      \
-    string += " ( ";                 \
-    string += EXTENSIONS_MEDIA;      \
+#define ADD_FILTER_MEDIA( string )     \
+    string += qtr( "Media Files" );    \
+    string += " ( ";                   \
+    string += EXTENSIONS_MEDIA;        \
     string += ");;";
-#define ADD_FILTER_VIDEO( string )   \
-    string += _("Video Files");      \
-    string += " ( ";                 \
-    string += EXTENSIONS_VIDEO;      \
+#define ADD_FILTER_VIDEO( string )     \
+    string += qtr( "Video Files" );    \
+    string += " ( ";                   \
+    string += EXTENSIONS_VIDEO;        \
     string += ");;";
-#define ADD_FILTER_AUDIO( string )   \
-    string += _("Audio Files");      \
-    string += " ( ";                 \
-    string += EXTENSIONS_AUDIO;      \
+#define ADD_FILTER_AUDIO( string )     \
+    string += qtr( "Audio Files" );    \
+    string += " ( ";                   \
+    string += EXTENSIONS_AUDIO;        \
     string += ");;";
-#define ADD_FILTER_PLAYLIST( string )\
-    string += _("Playlist Files");   \
-    string += " ( ";                 \
-    string += EXTENSIONS_PLAYLIST;   \
+#define ADD_FILTER_PLAYLIST( string )  \
+    string += qtr( "Playlist Files" ); \
+    string += " ( ";                   \
+    string += EXTENSIONS_PLAYLIST;     \
     string += ");;";
-#define ADD_FILTER_SUBTITLE( string )\
-    string += _("Subtitles Files");   \
-    string += " ( ";                 \
-    string += EXTENSIONS_SUBTITLE;   \
+#define ADD_FILTER_SUBTITLE( string )  \
+    string += qtr( "Subtitles Files" );\
+    string += " ( ";                   \
+    string += EXTENSIONS_SUBTITLE;     \
     string += ");;";
-#define ADD_FILTER_ALL( string )     \
-    string += _("All Files");        \
+#define ADD_FILTER_ALL( string )       \
+    string += qtr( "All Files" );      \
     string += " (*.*)";
 
-#define OPEN_FILE_TAB           0x0
-#define OPEN_DISC_TAB           0x1
-#define OPEN_NETWORK_TAB        0x2
-#define OPEN_CAPTURE_TAB        0x3
+enum {
+    EXT_FILTER_MEDIA     =  0x01,
+    EXT_FILTER_VIDEO     =  0x02,
+    EXT_FILTER_AUDIO     =  0x04,
+    EXT_FILTER_PLAYLIST  =  0x08,
+    EXT_FILTER_SUBTITLE  =  0x10,
+};
+
+enum {
+    OPEN_FILE_TAB,
+    OPEN_DISC_TAB,
+    OPEN_NETWORK_TAB,
+    OPEN_CAPTURE_TAB,
+    OPEN_TAB_MAX
+};
+
+enum {
+    OPEN_AND_PLAY,
+    OPEN_AND_STREAM,
+    OPEN_AND_SAVE,
+    OPEN_AND_ENQUEUE
+};
 
 class QEvent;
 class QSignalMapper;
@@ -118,6 +132,11 @@ private:
     void addFromSimple( bool, bool );
 
 public slots:
+    void doInteraction( intf_dialog_args_t * );
+    void menuAction( QObject *);
+    void menuUpdateAction( QObject * );
+    void SDMenuAction( QString );
+
     void playlistDialog();
     void bookmarksDialog();
     void mediaInfoDialog();
@@ -125,32 +144,40 @@ public slots:
     void prefsDialog();
     void extendedDialog();
     void messagesDialog();
+    void vlmDialog();
+    void helpDialog();
+#ifdef UPDATE_CHECK
+    void updateDialog();
+#endif
+    void aboutDialog();
+    void gotoTimeDialog();
+    void podcastConfigureDialog();
+
+    void simpleOpenDialog();
     void simplePLAppendDialog();
     void simpleMLAppendDialog();
-    void simpleOpenDialog();
+
     void openDialog();
-    void openDialog(int );
+    void openDialog( int );
+    void openDiscDialog();
     void openFileDialog();
     void openNetDialog();
     void openCaptureDialog();
-    void openDiscDialog();
+
     void PLAppendDialog();
     void MLAppendDialog();
-    void doInteraction( intf_dialog_args_t * );
-    void menuAction( QObject *);
-    void menuUpdateAction( QObject *);
-    void SDMenuAction( QString );
-    void streamingDialog( QString mrl = "");
-    void openThenStreamingDialogs();
-    void openPlaylist();
-    void savePlaylist();
     void PLAppendDir();
     void MLAppendDir();
-    void quit();
+
+    void streamingDialog( QString mrl = "", bool b_stream = true );
+    void openThenStreamingDialogs();
+    void openThenTranscodingDialogs();
+
+    void openAPlaylist();
+    void saveAPlaylist();
+
     void switchToSkins();
-    void gotoTimeDialog();
-    void helpDialog();
-    void aboutDialog();
+    void quit();
 };
 
 #endif