Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
533b06f8
Commit
533b06f8
authored
Jan 19, 2009
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: new defaults for buttons.
parent
63981a4e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
51 deletions
+16
-51
modules/gui/qt4/components/controller.cpp
modules/gui/qt4/components/controller.cpp
+9
-41
modules/gui/qt4/dialogs/toolbar.cpp
modules/gui/qt4/dialogs/toolbar.cpp
+7
-10
No files found.
modules/gui/qt4/components/controller.cpp
View file @
533b06f8
...
@@ -704,23 +704,14 @@ ControlsWidget::ControlsWidget( intf_thread_t *_p_i,
...
@@ -704,23 +704,14 @@ ControlsWidget::ControlsWidget( intf_thread_t *_p_i,
QHBoxLayout
*
controlLayout1
=
new
QHBoxLayout
;
QHBoxLayout
*
controlLayout1
=
new
QHBoxLayout
;
controlLayout1
->
setSpacing
(
0
);
controlLayout1
->
setSpacing
(
0
);
QString
line1
=
getSettings
()
->
value
(
"Main
Window/Main
Toolbar1"
,
QString
line1
=
getSettings
()
->
value
(
"MainToolbar1"
,
"64;3
6;37;38;65
"
).
toString
();
"64;3
8;64;37-4;65;
"
).
toString
();
parseAndCreate
(
line1
,
controlLayout1
);
parseAndCreate
(
line1
,
controlLayout1
);
/* QString line2 = QString( "%1-2;%2;%3;%4;%5;%6;%6;%7;%8;%9;%6;%10;%11-4")
.arg( PLAY_BUTTON ) .arg( WIDGET_SPACER )
.arg( PREVIOUS_BUTTON ) .arg( STOP_BUTTON )
.arg( NEXT_BUTTON ) .arg( WIDGET_SPACER )
.arg( FULLSCREEN_BUTTON ) .arg( PLAYLIST_BUTTON )
.arg( EXTENDED_BUTTON ) .arg( WIDGET_SPACER_EXTEND )
.arg( VOLUME );
msg_Dbg( p_intf, "%s", qtu( line2 )); */
QHBoxLayout
*
controlLayout2
=
new
QHBoxLayout
;
QHBoxLayout
*
controlLayout2
=
new
QHBoxLayout
;
controlLayout2
->
setSpacing
(
0
);
controlLayout2
->
setSpacing
(
0
);
QString
line2
=
getSettings
()
->
value
(
"Main
Window/Main
Toolbar2"
,
QString
line2
=
getSettings
()
->
value
(
"MainToolbar2"
,
"0-2;64;3;1;4;64;7;10;9;6
5;35-4
"
).
toString
();
"0-2;64;3;1;4;64;7;10;9;6
4-4;36-4;65;35-4;
"
).
toString
();
parseAndCreate
(
line2
,
controlLayout2
);
parseAndCreate
(
line2
,
controlLayout2
);
if
(
!
b_advancedVisible
&&
advControls
)
advControls
->
hide
();
if
(
!
b_advancedVisible
&&
advControls
)
advControls
->
hide
();
...
@@ -756,13 +747,8 @@ AdvControlsWidget::AdvControlsWidget( intf_thread_t *_p_i, QWidget *_parent ) :
...
@@ -756,13 +747,8 @@ AdvControlsWidget::AdvControlsWidget( intf_thread_t *_p_i, QWidget *_parent ) :
controlLayout
->
setMargin
(
0
);
controlLayout
->
setMargin
(
0
);
controlLayout
->
setSpacing
(
0
);
controlLayout
->
setSpacing
(
0
);
/* QString line = QString( "%1;%2;%3").arg( RECORD_BUTTON )
QString
line
=
getSettings
()
->
value
(
"AdvToolbar"
,
"12;11;13;14"
)
.arg( SNAPSHOT_BUTTON )
.
toString
();
.arg( ATOB_BUTTON )
.arg( FRAME_BUTTON ); */
QString
line
=
getSettings
()
->
value
(
"MainWindow/AdvToolbar"
,
"12;11;13;14"
).
toString
();
parseAndCreate
(
line
,
controlLayout
);
parseAndCreate
(
line
,
controlLayout
);
}
}
...
@@ -773,11 +759,7 @@ InputControlsWidget::InputControlsWidget( intf_thread_t *_p_i, QWidget *_parent
...
@@ -773,11 +759,7 @@ InputControlsWidget::InputControlsWidget( intf_thread_t *_p_i, QWidget *_parent
controlLayout
->
setMargin
(
0
);
controlLayout
->
setMargin
(
0
);
controlLayout
->
setSpacing
(
0
);
controlLayout
->
setSpacing
(
0
);
/* QString line = QString( "%1-%2;%3;%4-%2")
QString
line
=
getSettings
()
->
value
(
"InputToolbar"
,
.arg( SLOWER_BUTTON ).arg( WIDGET_FLAT )
.arg( INPUT_SLIDER )
.arg( FASTER_BUTTON ); */
QString
line
=
getSettings
()
->
value
(
"MainWindow/InputToolbar"
,
"5-1;33;6-1"
).
toString
();
"5-1;33;6-1"
).
toString
();
parseAndCreate
(
line
,
controlLayout
);
parseAndCreate
(
line
,
controlLayout
);
}
}
...
@@ -816,23 +798,9 @@ FullscreenControllerWidget::FullscreenControllerWidget( intf_thread_t *_p_i )
...
@@ -816,23 +798,9 @@ FullscreenControllerWidget::FullscreenControllerWidget( intf_thread_t *_p_i )
InputControlsWidget
*
inputC
=
new
InputControlsWidget
(
p_intf
,
this
);
InputControlsWidget
*
inputC
=
new
InputControlsWidget
(
p_intf
,
this
);
controlLayout2
->
addWidget
(
inputC
);
controlLayout2
->
addWidget
(
inputC
);
/* Second line */
/* QString line = QString( "%1-2;%2;%3;%4;%5;%2;%6;%2;%7;%2;%8;%9;%10-4")
.arg( PLAY_BUTTON )
.arg( WIDGET_SPACER )
.arg( PREVIOUS_BUTTON )
.arg( STOP_BUTTON )
.arg( NEXT_BUTTON )
.arg( MENU_BUTTONS )
.arg( TELETEXT_BUTTONS )
.arg( DEFULLSCREEN_BUTTON )
.arg( WIDGET_SPACER_EXTEND )
.arg( TIME_LABEL )
.arg( VOLUME ); */
controlLayout
=
new
QHBoxLayout
;
controlLayout
=
new
QHBoxLayout
;
QString
line
=
getSettings
()
->
value
(
"
MainWindow/
FSCtoolbar"
,
QString
line
=
getSettings
()
->
value
(
"FSCtoolbar"
,
"0-2;64;3;1;4;64;36;64;37;64;8;65;3
4-4;35
"
).
toString
();
"0-2;64;3;1;4;64;36;64;37;64;8;65;3
5-4;34;
"
).
toString
();
parseAndCreate
(
line
,
controlLayout
);
parseAndCreate
(
line
,
controlLayout
);
controlLayout2
->
addLayout
(
controlLayout
);
controlLayout2
->
addLayout
(
controlLayout
);
...
...
modules/gui/qt4/dialogs/toolbar.cpp
View file @
533b06f8
...
@@ -80,16 +80,14 @@ ToolbarEditDialog::ToolbarEditDialog( intf_thread_t *_p_intf)
...
@@ -80,16 +80,14 @@ ToolbarEditDialog::ToolbarEditDialog( intf_thread_t *_p_intf)
mainTboxLayout
->
addWidget
(
positionCombo
,
0
,
2
,
1
,
1
);
mainTboxLayout
->
addWidget
(
positionCombo
,
0
,
2
,
1
,
1
);
QLabel
*
line1Label
=
new
QLabel
(
"Line 1:"
);
QLabel
*
line1Label
=
new
QLabel
(
"Line 1:"
);
QString
line1
=
getSettings
()
->
value
(
"MainWindow/MainToolbar1"
,
QString
line1
=
getSettings
()
->
value
(
"MainWindow/MainToolbar1"
).
toString
();
"64;36;37;38;65"
).
toString
();
controller1
=
new
DroppingController
(
p_intf
,
line1
,
controller1
=
new
DroppingController
(
p_intf
,
line1
,
this
);
this
);
mainTboxLayout
->
addWidget
(
line1Label
,
1
,
0
,
1
,
1
);
mainTboxLayout
->
addWidget
(
line1Label
,
1
,
0
,
1
,
1
);
mainTboxLayout
->
addWidget
(
controller1
,
1
,
1
,
1
,
2
);
mainTboxLayout
->
addWidget
(
controller1
,
1
,
1
,
1
,
2
);
QLabel
*
line2Label
=
new
QLabel
(
"Line 2:"
);
QLabel
*
line2Label
=
new
QLabel
(
"Line 2:"
);
QString
line2
=
getSettings
()
->
value
(
"MainWindow/MainToolbar2"
,
QString
line2
=
getSettings
()
->
value
(
"MainWindow/MainToolbar2"
).
toString
();
"0-2;64;3;1;4;64;7;10;9;65;34-4;"
).
toString
();
controller2
=
new
DroppingController
(
p_intf
,
line2
,
controller2
=
new
DroppingController
(
p_intf
,
line2
,
this
);
this
);
mainTboxLayout
->
addWidget
(
line2Label
,
2
,
0
,
1
,
1
);
mainTboxLayout
->
addWidget
(
line2Label
,
2
,
0
,
1
,
1
);
...
@@ -97,8 +95,8 @@ ToolbarEditDialog::ToolbarEditDialog( intf_thread_t *_p_intf)
...
@@ -97,8 +95,8 @@ ToolbarEditDialog::ToolbarEditDialog( intf_thread_t *_p_intf)
/* Advanced ToolBar */
/* Advanced ToolBar */
QLabel
*
advLabel
=
new
QLabel
(
qtr
(
"Advanced Widget toolbar:"
)
);
QLabel
*
advLabel
=
new
QLabel
(
qtr
(
"Advanced Widget toolbar:"
)
);
QString
lineA
=
getSettings
()
->
value
(
"MainWindow/AdvToolbar"
,
QString
lineA
=
getSettings
()
->
value
(
"MainWindow/AdvToolbar"
)
"12;11;13;14"
)
.
toString
();
.
toString
();
controllerA
=
new
DroppingController
(
p_intf
,
lineA
,
controllerA
=
new
DroppingController
(
p_intf
,
lineA
,
this
);
this
);
mainTboxLayout
->
addWidget
(
advLabel
,
3
,
0
,
1
,
2
);
mainTboxLayout
->
addWidget
(
advLabel
,
3
,
0
,
1
,
2
);
...
@@ -110,8 +108,7 @@ ToolbarEditDialog::ToolbarEditDialog( intf_thread_t *_p_intf)
...
@@ -110,8 +108,7 @@ ToolbarEditDialog::ToolbarEditDialog( intf_thread_t *_p_intf)
QGroupBox
*
timeToolbarBox
=
new
QGroupBox
(
qtr
(
"Time Toolbar"
)
,
this
);
QGroupBox
*
timeToolbarBox
=
new
QGroupBox
(
qtr
(
"Time Toolbar"
)
,
this
);
QGridLayout
*
timeTboxLayout
=
new
QGridLayout
(
timeToolbarBox
);
QGridLayout
*
timeTboxLayout
=
new
QGridLayout
(
timeToolbarBox
);
QString
line
=
getSettings
()
->
value
(
"MainWindow/InputToolbar"
,
QString
line
=
getSettings
()
->
value
(
"MainWindow/InputToolbar"
).
toString
();
"5-1;34;6-1"
).
toString
();
controller
=
new
DroppingController
(
p_intf
,
line
,
controller
=
new
DroppingController
(
p_intf
,
line
,
this
);
this
);
timeTboxLayout
->
addWidget
(
controller
,
0
,
0
,
1
,
-
1
);
timeTboxLayout
->
addWidget
(
controller
,
0
,
0
,
1
,
-
1
);
...
@@ -123,8 +120,8 @@ ToolbarEditDialog::ToolbarEditDialog( intf_thread_t *_p_intf)
...
@@ -123,8 +120,8 @@ ToolbarEditDialog::ToolbarEditDialog( intf_thread_t *_p_intf)
this
);
this
);
QGridLayout
*
FSCTboxLayout
=
new
QGridLayout
(
FSCToolbarBox
);
QGridLayout
*
FSCTboxLayout
=
new
QGridLayout
(
FSCToolbarBox
);
QString
lineFSC
=
getSettings
()
->
value
(
"MainWindow/FSCtoolbar"
,
QString
lineFSC
=
getSettings
()
->
value
(
"MainWindow/FSCtoolbar"
)
"0-2;64;3;1;4;64;36;64;37;64;8;65;35-4;33"
)
.
toString
();
.
toString
();
controllerFSC
=
new
DroppingController
(
p_intf
,
controllerFSC
=
new
DroppingController
(
p_intf
,
lineFSC
,
this
);
lineFSC
,
this
);
FSCTboxLayout
->
addWidget
(
controllerFSC
,
0
,
0
,
1
,
-
1
);
FSCTboxLayout
->
addWidget
(
controllerFSC
,
0
,
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