Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-1.1
Commits
9fac8c09
Commit
9fac8c09
authored
Dec 09, 2008
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Qt] add various toolbars not just one.
parent
d6a66f89
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
44 additions
and
13 deletions
+44
-13
modules/gui/qt4/dialogs/toolbar.cpp
modules/gui/qt4/dialogs/toolbar.cpp
+44
-13
No files found.
modules/gui/qt4/dialogs/toolbar.cpp
View file @
9fac8c09
...
@@ -71,34 +71,65 @@ ToolbarEditDialog::ToolbarEditDialog( intf_thread_t *_p_intf)
...
@@ -71,34 +71,65 @@ ToolbarEditDialog::ToolbarEditDialog( intf_thread_t *_p_intf)
QGridLayout
*
mainTboxLayout
=
new
QGridLayout
(
mainToolbarBox
);
QGridLayout
*
mainTboxLayout
=
new
QGridLayout
(
mainToolbarBox
);
QLabel
*
label
=
new
QLabel
(
"Toolbar position:"
);
QLabel
*
label
=
new
QLabel
(
"Toolbar position:"
);
mainTboxLayout
->
addWidget
(
label
,
0
,
0
,
1
,
1
);
mainTboxLayout
->
addWidget
(
label
,
0
,
0
,
1
,
2
);
QComboBox
*
positionCombo
=
new
QComboBox
;
QComboBox
*
positionCombo
=
new
QComboBox
;
positionCombo
->
addItems
(
QStringList
()
<<
"Over the Video"
positionCombo
->
addItems
(
QStringList
()
<<
"Over the Video"
<<
"Under the Video"
);
<<
"Under the Video"
);
mainTboxLayout
->
addWidget
(
positionCombo
,
0
,
1
,
1
,
1
);
mainTboxLayout
->
addWidget
(
positionCombo
,
0
,
2
,
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 ); */
QLabel
*
line1Label
=
new
QLabel
(
"Line 1:"
);
QString
line1
=
getSettings
()
->
value
(
"MainWindow/Controls1"
,
QString
line1
=
getSettings
()
->
value
(
"MainWindow/Controls1"
,
"64;36;37;38;65"
).
toString
();
"64;36;37;38;65"
).
toString
();
DroppingController
*
controller1
=
new
DroppingController
(
p_intf
,
line1
,
DroppingController
*
controller1
=
new
DroppingController
(
p_intf
,
line1
,
this
);
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"
,
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
,
DroppingController
*
controller2
=
new
DroppingController
(
p_intf
,
line2
,
this
);
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
);
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
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment