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
2dc29d7d
Commit
2dc29d7d
authored
May 11, 2007
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt4 - small changes and factorisations in CONNECTs
parent
84dd91ce
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
7 deletions
+13
-7
modules/gui/qt4/main_interface.cpp
modules/gui/qt4/main_interface.cpp
+13
-7
No files found.
modules/gui/qt4/main_interface.cpp
View file @
2dc29d7d
...
@@ -124,21 +124,30 @@ MainInterface::MainInterface( intf_thread_t *_p_intf ) : QVLCMW( _p_intf )
...
@@ -124,21 +124,30 @@ MainInterface::MainInterface( intf_thread_t *_p_intf ) : QVLCMW( _p_intf )
/* Volume control */
/* Volume control */
CONNECT
(
ui
.
volumeSlider
,
valueChanged
(
int
),
this
,
updateVolume
(
int
)
);
CONNECT
(
ui
.
volumeSlider
,
valueChanged
(
int
),
this
,
updateVolume
(
int
)
);
/* Connect the input manager to the GUI elements it manages */
/* Connect the input manager to the GUI elements it manages */
CONNECT
(
THEMIM
->
getIM
(),
positionUpdated
(
float
,
int
,
int
),
CONNECT
(
THEMIM
->
getIM
(),
positionUpdated
(
float
,
int
,
int
),
slider
,
setPosition
(
float
,
int
,
int
)
);
slider
,
setPosition
(
float
,
int
,
int
)
);
CONNECT
(
THEMIM
->
getIM
(),
positionUpdated
(
float
,
int
,
int
),
CONNECT
(
THEMIM
->
getIM
(),
positionUpdated
(
float
,
int
,
int
),
this
,
setDisplay
(
float
,
int
,
int
)
);
this
,
setDisplay
(
float
,
int
,
int
)
);
/* Naming in the controller */
CONNECT
(
THEMIM
->
getIM
(),
nameChanged
(
QString
),
this
,
CONNECT
(
THEMIM
->
getIM
(),
nameChanged
(
QString
),
this
,
setName
(
QString
)
);
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
,
setStatus
(
int
)
);
CONNECT
(
THEMIM
->
getIM
(),
statusChanged
(
int
),
this
,
updateSystrayMenu
(
int
)
);
CONNECT
(
THEMIM
->
getIM
(),
navigationChanged
(
int
),
CONNECT
(
THEMIM
->
getIM
(),
navigationChanged
(
int
),
this
,
setNavigation
(
int
)
);
this
,
setNavigation
(
int
)
);
CONNECT
(
slider
,
sliderDragged
(
float
),
CONNECT
(
slider
,
sliderDragged
(
float
),
THEMIM
->
getIM
(),
sliderUpdate
(
float
)
);
THEMIM
->
getIM
(),
sliderUpdate
(
float
)
);
/* Buttons */
CONNECT
(
ui
.
prevSectionButton
,
clicked
(),
THEMIM
->
getIM
(),
CONNECT
(
ui
.
prevSectionButton
,
clicked
(),
THEMIM
->
getIM
(),
sectionPrev
()
);
sectionPrev
()
);
CONNECT
(
ui
.
nextSectionButton
,
clicked
(),
THEMIM
->
getIM
(),
CONNECT
(
ui
.
nextSectionButton
,
clicked
(),
THEMIM
->
getIM
(),
...
@@ -724,10 +733,6 @@ void MainInterface::setName( QString name )
...
@@ -724,10 +733,6 @@ void MainInterface::setName( QString name )
{
{
nameLabel
->
setText
(
" "
+
name
+
" "
);
nameLabel
->
setText
(
" "
+
name
+
" "
);
if
(
config_GetInt
(
p_intf
,
"qt-name-in-title"
)
)
{
setVLCWindowsTitle
(
name
);
}
}
}
void
MainInterface
::
setStatus
(
int
status
)
void
MainInterface
::
setStatus
(
int
status
)
...
@@ -736,6 +741,7 @@ void MainInterface::setStatus( int status )
...
@@ -736,6 +741,7 @@ void MainInterface::setStatus( int status )
ui
.
playButton
->
setIcon
(
QIcon
(
":/pixmaps/pause.png"
)
);
ui
.
playButton
->
setIcon
(
QIcon
(
":/pixmaps/pause.png"
)
);
else
else
ui
.
playButton
->
setIcon
(
QIcon
(
":/pixmaps/play.png"
)
);
ui
.
playButton
->
setIcon
(
QIcon
(
":/pixmaps/play.png"
)
);
updateSystrayMenu
(
status
);
}
}
#define HELP_MENU N_("Menu")
#define HELP_MENU N_("Menu")
...
...
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