Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Steve Lhomme
VLC
Commits
2dc29d7d
Commit
2dc29d7d
authored
May 11, 2007
by
Jean-Baptiste Kempf
Browse files
Qt4 - small changes and factorisations in CONNECTs
parent
84dd91ce
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/gui/qt4/main_interface.cpp
View file @
2dc29d7d
...
...
@@ -124,21 +124,30 @@ MainInterface::MainInterface( intf_thread_t *_p_intf ) : QVLCMW( _p_intf )
/* Volume control */
CONNECT
(
ui
.
volumeSlider
,
valueChanged
(
int
),
this
,
updateVolume
(
int
)
);
/* Connect the input manager to the GUI elements it manages */
CONNECT
(
THEMIM
->
getIM
(),
positionUpdated
(
float
,
int
,
int
),
slider
,
setPosition
(
float
,
int
,
int
)
);
CONNECT
(
THEMIM
->
getIM
(),
positionUpdated
(
float
,
int
,
int
),
this
,
setDisplay
(
float
,
int
,
int
)
);
/* Naming in the controller */
CONNECT
(
THEMIM
->
getIM
(),
nameChanged
(
QString
),
this
,
setName
(
QString
)
);
if
(
config_GetInt
(
p_intf
,
"qt-name-in-title"
)
)
{
CONNECT
(
THEMIM
->
getIM
(),
nameChanged
(
QString
),
this
,
setVLCWindowsTitle
(
QString
)
);
}
/* PLAY_STATUS */
CONNECT
(
THEMIM
->
getIM
(),
statusChanged
(
int
),
this
,
setStatus
(
int
)
);
CONNECT
(
THEMIM
->
getIM
(),
statusChanged
(
int
),
this
,
updateSystrayMenu
(
int
)
);
CONNECT
(
THEMIM
->
getIM
(),
navigationChanged
(
int
),
this
,
setNavigation
(
int
)
);
CONNECT
(
slider
,
sliderDragged
(
float
),
THEMIM
->
getIM
(),
sliderUpdate
(
float
)
);
/* Buttons */
CONNECT
(
ui
.
prevSectionButton
,
clicked
(),
THEMIM
->
getIM
(),
sectionPrev
()
);
CONNECT
(
ui
.
nextSectionButton
,
clicked
(),
THEMIM
->
getIM
(),
...
...
@@ -723,11 +732,7 @@ void MainInterface::setDisplay( float pos, int time, int length )
void
MainInterface
::
setName
(
QString
name
)
{
nameLabel
->
setText
(
" "
+
name
+
" "
);
if
(
config_GetInt
(
p_intf
,
"qt-name-in-title"
)
)
{
setVLCWindowsTitle
(
name
);
}
}
void
MainInterface
::
setStatus
(
int
status
)
...
...
@@ -736,6 +741,7 @@ void MainInterface::setStatus( int status )
ui
.
playButton
->
setIcon
(
QIcon
(
":/pixmaps/pause.png"
)
);
else
ui
.
playButton
->
setIcon
(
QIcon
(
":/pixmaps/play.png"
)
);
updateSystrayMenu
(
status
);
}
#define HELP_MENU N_("Menu")
...
...
Write
Preview
Supports
Markdown
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