[vlc-devel] commit: [Qt] add various toolbars not just one. (Jean-Baptiste Kempf )
git version control
git at videolan.org
Tue Dec 9 17:56:46 CET 2008
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Tue Dec 9 17:53:23 2008 +0100| [9fac8c09e0e31f74a08e060075ad50b8bf3f52e6] | committer: Jean-Baptiste Kempf
[Qt] add various toolbars not just one.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9fac8c09e0e31f74a08e060075ad50b8bf3f52e6
---
modules/gui/qt4/dialogs/toolbar.cpp | 57 +++++++++++++++++++++++++++--------
1 files changed, 44 insertions(+), 13 deletions(-)
diff --git a/modules/gui/qt4/dialogs/toolbar.cpp b/modules/gui/qt4/dialogs/toolbar.cpp
index e553535..3b2434e 100644
--- a/modules/gui/qt4/dialogs/toolbar.cpp
+++ b/modules/gui/qt4/dialogs/toolbar.cpp
@@ -71,34 +71,65 @@ ToolbarEditDialog::ToolbarEditDialog( intf_thread_t *_p_intf)
QGridLayout *mainTboxLayout = new QGridLayout( mainToolbarBox );
QLabel *label = new QLabel( "Toolbar position:" );
- mainTboxLayout->addWidget(label, 0, 0, 1, 1);
+ mainTboxLayout->addWidget(label, 0, 0, 1, 2);
QComboBox *positionCombo = new QComboBox;
positionCombo->addItems( QStringList() << "Over the Video"
<< "Under the Video" );
- mainTboxLayout->addWidget( positionCombo, 0, 1, 1, 1 );
-
-/* QFrame *mainToolFrame = new QFrame;
- mainToolFrame->setMinimumSize( QSize( 0, 25 ) );
- mainToolFrame->setFrameShape( QFrame::StyledPanel );
- mainToolFrame->setFrameShadow( QFrame::Raised );
- mainTboxLayout->addWidget( mainToolFrame, 1, 0, 1, 2 );
- mainToolFrame->setAcceptDrops( true );
- QHBoxLayout *mtlayout = new QHBoxLayout( mainToolFrame ); */
+ mainTboxLayout->addWidget( positionCombo, 0, 2, 1, 1 );
+ QLabel *line1Label = new QLabel( "Line 1:" );
QString line1 = getSettings()->value( "MainWindow/Controls1",
"64;36;37;38;65").toString();
DroppingController *controller1 = new DroppingController( p_intf, line1,
this );
- mainTboxLayout->addWidget( controller1, 1, 0, 1, -1 );
+ mainTboxLayout->addWidget( line1Label, 1, 0, 1, 1 );
+ mainTboxLayout->addWidget( controller1, 1, 1, 1, 2 );
+ QLabel *line2Label = new QLabel( "Line 2:" );
QString line2 = getSettings()->value( "MainWindow/Controls2",
- "0-2;64;3;1;4;64;7;10;9;65;34-4" ).toString();
+ "0-2;64;3;1;4;64;7;10;9;65;34-4" ).toString();
DroppingController *controller2 = new DroppingController( p_intf, line2,
this );
- mainTboxLayout->addWidget( controller2, 2, 0, 1, -1 );
+ mainTboxLayout->addWidget( line2Label, 2, 0, 1, 1 );
+ mainTboxLayout->addWidget( controller2, 2, 1, 1, 2);
+
+ /* Advanced ToolBar */
+ QLabel *advLabel = new QLabel( "Advanced Widget toolbar:" );
+ QString lineA = getSettings()->value( "MainWindow/AdvControl",
+ "12;11;13;14").toString();
+ DroppingController *controllerA = new DroppingController( p_intf, lineA,
+ this );
+ mainTboxLayout->addWidget( advLabel, 3, 0, 1, 2 );
+ mainTboxLayout->addWidget( controllerA, 3, 2, 1, 1 );
mainLayout->addWidget( mainToolbarBox, 1, 0, 1, -1 );
+
+ /* TimeToolBar */
+ QGroupBox *timeToolbarBox = new QGroupBox( "Time Toolbar", this );
+ QGridLayout *timeTboxLayout = new QGridLayout( timeToolbarBox );
+
+ QString line = getSettings()->value( "timeWindow/InputControl",
+ "5-1;33;6-1").toString();
+ DroppingController *controller = new DroppingController( p_intf, line,
+ this );
+ timeTboxLayout->addWidget( controller, 0, 0, 1, -1 );
+
+ mainLayout->addWidget( timeToolbarBox, 2, 0, 1, -1 );
+
+ /* FSCToolBar */
+ QGroupBox *FSCToolbarBox = new QGroupBox( "Fullscreen Controller", this );
+ QGridLayout *FSCTboxLayout = new QGridLayout( FSCToolbarBox );
+
+ QString lineFSC = getSettings()->value( "MainWindow/FSCline",
+ "0-2;64;3;1;4;64;36;64;37;64;8;65;35-4;34" ).toString();
+ DroppingController *controllerFSC = new DroppingController( p_intf,
+ lineFSC, this );
+ FSCTboxLayout->addWidget( controllerFSC, 0, 0, 1, -1 );
+
+ mainLayout->addWidget( FSCToolbarBox, 3, 0, 1, -1 );
+
+
}
More information about the vlc-devel
mailing list