From: Jean-Baptiste Kempf Date: Mon, 30 Apr 2007 19:49:26 +0000 (+0000) Subject: Qt4 - Menus. Add the missing dialogs calls. If someone wants to write VLM and Bookmar... X-Git-Tag: 0.9.0-test0~7562 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=e1b1fc71d5583ff58739d83c96dc15cd52859463;p=vlc Qt4 - Menus. Add the missing dialogs calls. If someone wants to write VLM and Bookmarks dialogs... --- diff --git a/include/vlc_intf_strings.h b/include/vlc_intf_strings.h index f26b75b7a2..dd7c28d172 100644 --- a/include/vlc_intf_strings.h +++ b/include/vlc_intf_strings.h @@ -43,6 +43,8 @@ #define I_MENU_MSG N_("Messages...") #define I_MENU_EXT N_("Extended settings...") #define I_MENU_GOTOTIME N_("Go to specific time...") +#define I_MENU_BOOKMARK N_("Bookmarks...") +#define I_MENU_VLM N_("VLM Configuration...") #define I_MENU_ABOUT N_("About VLC media player...") diff --git a/modules/gui/qt4/dialogs_provider.cpp b/modules/gui/qt4/dialogs_provider.cpp index b0e414f44a..ef44530703 100644 --- a/modules/gui/qt4/dialogs_provider.cpp +++ b/modules/gui/qt4/dialogs_provider.cpp @@ -116,6 +116,7 @@ void DialogsProvider::customEvent( QEvent *event ) case INTF_DIALOG_INTERACTION: doInteraction( de->p_arg ); break; case INTF_DIALOG_VLM: + vlmDialog(); break; case INTF_DIALOG_WIZARD: case INTF_DIALOG_UPDATEVLC: case INTF_DIALOG_EXIT: @@ -152,6 +153,12 @@ void DialogsProvider::gotoTimeDialog() GotoTimeDialog::getInstance( p_intf )->toggleVisible(); } +void DialogsProvider::vlmDialog() +{ + /* FIXME */ + /* VLMDialog::getInstance( p_intf )->toggleVisible(); */ +} + void DialogsProvider::helpDialog() { HelpDialog::getInstance( p_intf )->toggleVisible(); @@ -174,6 +181,8 @@ void DialogsProvider::mediaCodecDialog() void DialogsProvider::bookmarksDialog() { + /* FIXME */ + /* BookmarkDialog::getInstance( p_intf )->toggleVisible(); */ } /**************************************************************************** diff --git a/modules/gui/qt4/dialogs_provider.hpp b/modules/gui/qt4/dialogs_provider.hpp index 028f13dd73..765be192b8 100644 --- a/modules/gui/qt4/dialogs_provider.hpp +++ b/modules/gui/qt4/dialogs_provider.hpp @@ -157,6 +157,7 @@ public slots: void hideMenus(); void switchToSkins(); void gotoTimeDialog(); + void vlmDialog(); void helpDialog(); void aboutDialog(); }; diff --git a/modules/gui/qt4/menus.cpp b/modules/gui/qt4/menus.cpp index e2856c947b..071c0de102 100644 --- a/modules/gui/qt4/menus.cpp +++ b/modules/gui/qt4/menus.cpp @@ -240,7 +240,10 @@ QMenu *QVLCMenu::ToolsMenu( intf_thread_t *p_intf, MainInterface *mi, DP_SADD( qtr(I_MENU_MSG), "", "", messagesDialog(), "Ctrl+M" ); DP_SADD( qtr(I_MENU_INFO) , "", "", mediaInfoDialog(), "Ctrl+J" ); DP_SADD( qtr(I_MENU_CODECINFO) , "", "", mediaCodecDialog(), "Ctrl+I" ); - DP_SADD( qtr(I_MENU_GOTOTIME), "","",gotoTimeDialog(), "Ctrl+T" ); + DP_SADD( qtr(I_MENU_GOTOTIME), "","", gotoTimeDialog(), "Ctrl+T" ); + DP_SADD( qtr(I_MENU_BOOKMARK), "","", bookmarksDialog(), "Ctrl+B" ); + DP_SADD( qtr(I_MENU_VLM), "","", vlmDialog(), "Ctrl+V" ); + menu->addSeparator(); if( mi ) {