X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=modules%2Fgui%2Fqt4%2Fdialogs%2Fopen.hpp;h=73a07e48bb84d8422f0658c8d662ac94d84a58ec;hb=d0389324b91b56a96bc6bbcb2c417ca824a892ab;hp=3af33971fea61b3ea7a87a4a47301e57941f8e60;hpb=c45048df5ea0ac61f646433b99d7731cb4140792;p=vlc diff --git a/modules/gui/qt4/dialogs/open.hpp b/modules/gui/qt4/dialogs/open.hpp index 3af33971fe..73a07e48bb 100644 --- a/modules/gui/qt4/dialogs/open.hpp +++ b/modules/gui/qt4/dialogs/open.hpp @@ -28,13 +28,30 @@ # include "config.h" #endif -#include +#include #include "util/qvlcframe.hpp" #include "dialogs_provider.hpp" #include "ui/open.h" #include "components/open_panels.hpp" +enum { + OPEN_FILE_TAB, + OPEN_DISC_TAB, + OPEN_NETWORK_TAB, + OPEN_CAPTURE_TAB, + OPEN_TAB_MAX +}; + +enum { + OPEN_AND_PLAY, + OPEN_AND_ENQUEUE, + OPEN_AND_STREAM, + OPEN_AND_SAVE, + SELECT /* Special mode to select a MRL (for VLM or similar */ +}; + + class QString; class QTabWidget; @@ -43,7 +60,7 @@ class OpenDialog : public QVLCDialog Q_OBJECT; public: static OpenDialog * getInstance( QWidget *parent, intf_thread_t *p_intf, - int _action_flag = 0, bool modal = false ); + bool b_rawInstance = false, int _action_flag = 0, bool b_selectMode = false ); static void killInstance() { @@ -52,7 +69,7 @@ public: } virtual ~OpenDialog(); - void showTab( int ); + void showTab( int = OPEN_FILE_TAB ); QString getMRL(){ return mrl; } public slots: @@ -63,7 +80,7 @@ public slots: void transcode(); private: - OpenDialog( QWidget *parent, intf_thread_t *, bool modal, + OpenDialog( QWidget *parent, intf_thread_t *, bool b_selectMode, int _action_flag = 0 ); static OpenDialog *instance;