[vlc-devel] commit: Qt: integrate the new volume to the customize dialog. ( Jean-Baptiste Kempf )
git version control
git at videolan.org
Sat Feb 7 21:31:21 CET 2009
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Sat Feb 7 21:30:53 2009 +0100| [98c06d9e33b9326daaa2e0d1919e5647fb0df4d9] | committer: Jean-Baptiste Kempf
Qt: integrate the new volume to the customize dialog.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=98c06d9e33b9326daaa2e0d1919e5647fb0df4d9
---
modules/gui/qt4/components/controller.cpp | 5 ++++-
modules/gui/qt4/components/controller.hpp | 7 ++++---
modules/gui/qt4/dialogs/toolbar.cpp | 9 +++++++++
3 files changed, 17 insertions(+), 4 deletions(-)
diff --git a/modules/gui/qt4/components/controller.cpp b/modules/gui/qt4/components/controller.cpp
index 15d1500..1a4c5d4 100644
--- a/modules/gui/qt4/components/controller.cpp
+++ b/modules/gui/qt4/components/controller.cpp
@@ -184,6 +184,7 @@ QWidget *AbstractController::createWidget( buttonType_e button, int options )
bool b_flat = options & WIDGET_FLAT;
bool b_big = options & WIDGET_BIG;
bool b_shiny = options & WIDGET_SHINY;
+ bool b_special = false;
QWidget *widget = NULL;
switch( button )
@@ -344,9 +345,11 @@ QWidget *AbstractController::createWidget( buttonType_e button, int options )
widget = telexFrame();
widget->hide();
break;
+ case VOLUME_SPECIAL:
+ b_special = true;
case VOLUME:
{
- SoundWidget *snd = new SoundWidget( this, p_intf, b_shiny );
+ SoundWidget *snd = new SoundWidget( this, p_intf, b_shiny, b_special );
widget = snd;
}
break;
diff --git a/modules/gui/qt4/components/controller.hpp b/modules/gui/qt4/components/controller.hpp
index 65b8a37..43e8f7c 100644
--- a/modules/gui/qt4/components/controller.hpp
+++ b/modules/gui/qt4/components/controller.hpp
@@ -35,11 +35,11 @@
#define I_PLAY_TOOLTIP N_("Play\nIf the playlist is empty, open a media")
-#define MAIN_TB1_DEFAULT "64;38;64;37-4;65"
-#define MAIN_TB2_DEFAULT "0-2;64;3;1;4;64;7;10;9;64-4;36-4;65;35-4"
+#define MAIN_TB1_DEFAULT "64;39;64;38;65"
+#define MAIN_TB2_DEFAULT "0-2;64;3;1;4;64;7;10;9;64-4;37;65;35-4"
#define ADV_TB_DEFAULT "12;11;13;14"
#define INPT_TB_DEFAULT "5-1;33;6-1"
-#define FSC_TB_DEFAULT "0-2;64;3;1;4;64;36;64;37;64;8;65;35-4;34"
+#define FSC_TB_DEFAULT "0-2;64;3;1;4;64;37;64;38;64;8;65;35-4;34"
class QPixmap;
@@ -86,6 +86,7 @@ typedef enum buttonType_e
INPUT_SLIDER,
TIME_LABEL,
VOLUME,
+ VOLUME_SPECIAL,
MENU_BUTTONS,
TELETEXT_BUTTONS,
ADVANCED_CONTROLLER,
diff --git a/modules/gui/qt4/dialogs/toolbar.cpp b/modules/gui/qt4/dialogs/toolbar.cpp
index 7812de4..d22f40a 100644
--- a/modules/gui/qt4/dialogs/toolbar.cpp
+++ b/modules/gui/qt4/dialogs/toolbar.cpp
@@ -248,6 +248,15 @@ WidgetListing::WidgetListing( intf_thread_t *p_intf, QWidget *_parent )
}
widgetItem->setText( qtr("Volume") );
break;
+ case VOLUME_SPECIAL:
+ {
+ QListWidgetItem *widgetItem = new QListWidgetItem( this );
+ widgetItem->setText( "Small Volume" );
+ widgetItem->setIcon( QIcon( ":/volume-medium" ) );
+ widgetItem->setData( Qt::UserRole, QVariant( i ) );
+ addItem( widgetItem );
+ }
+ continue;
case TIME_LABEL:
{
QLabel *timeLabel = new QLabel( "12:42/2:12:42", this );
More information about the vlc-devel
mailing list