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
e45f26dd
Commit
e45f26dd
authored
Sep 22, 2006
by
Clément Stenac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Some cleanup, start integrating audio visualizations
parent
7df78c9f
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
110 additions
and
89 deletions
+110
-89
modules/gui/qt4/components/interface_widgets.cpp
modules/gui/qt4/components/interface_widgets.cpp
+2
-1
modules/gui/qt4/input_manager.hpp
modules/gui/qt4/input_manager.hpp
+2
-0
modules/gui/qt4/main_interface.cpp
modules/gui/qt4/main_interface.cpp
+97
-76
modules/gui/qt4/main_interface.hpp
modules/gui/qt4/main_interface.hpp
+6
-9
modules/gui/qt4/ui/main_interface.ui
modules/gui/qt4/ui/main_interface.ui
+3
-3
No files found.
modules/gui/qt4/components/interface_widgets.cpp
View file @
e45f26dd
...
...
@@ -150,12 +150,13 @@ VisualSelector::VisualSelector( intf_thread_t *_p_i ) :
{
setFrameStyle
(
QFrame
::
StyledPanel
|
QFrame
::
Raised
);
QHBoxLayout
*
layout
=
new
QHBoxLayout
(
this
);
layout
->
setMargin
(
0
);
QPushButton
*
prevButton
=
new
QPushButton
(
"Prev"
);
QPushButton
*
nextButton
=
new
QPushButton
(
"Next"
);
layout
->
addWidget
(
prevButton
);
layout
->
addWidget
(
nextButton
);
setLayout
(
layout
);
setMaximumHeight
(
3
0
);
setMaximumHeight
(
3
5
);
}
VisualSelector
::~
VisualSelector
()
...
...
modules/gui/qt4/input_manager.hpp
View file @
e45f26dd
...
...
@@ -35,6 +35,8 @@ public:
virtual
~
InputManager
();
void
delInput
();
bool
hasAudio
()
{
return
b_has_audio
;
}
bool
hasVideo
()
{
return
b_has_video
;
}
bool
b_has_audio
,
b_has_video
,
b_had_audio
,
b_had_video
;
private:
intf_thread_t
*
p_intf
;
...
...
modules/gui/qt4/main_interface.cpp
View file @
e45f26dd
This diff is collapsed.
Click to expand it.
modules/gui/qt4/main_interface.hpp
View file @
e45f26dd
...
...
@@ -49,8 +49,6 @@ class MainInterface : public QVLCMW
public:
MainInterface
(
intf_thread_t
*
);
virtual
~
MainInterface
();
void
*
requestVideo
(
vout_thread_t
*
p_nvout
,
int
*
pi_x
,
int
*
pi_y
,
unsigned
int
*
pi_width
,
unsigned
int
*
pi_height
);
...
...
@@ -80,6 +78,7 @@ private:
bool
playlistEmbeddedFlag
;
bool
videoEmbeddedFlag
;
bool
alwaysVideoFlag
;
InputManager
*
main_input_manager
;
InputSlider
*
slider
;
...
...
@@ -97,6 +96,7 @@ private slots:
void
prev
();
void
next
();
void
playlist
();
void
visual
();
void
updateVolume
(
int
sliderVolume
);
};
...
...
@@ -104,24 +104,21 @@ private slots:
class
VolumeClickHandler
:
public
QObject
{
public:
VolumeClickHandler
(
MainInterface
*
_m
)
:
QObject
(
_m
)
{
m
=
_m
;
}
VolumeClickHandler
(
intf_thread_t
*
_p_intf
,
MainInterface
*
_m
)
:
QObject
(
_m
)
{
m
=
_m
;
p_intf
=
_p_intf
;
}
virtual
~
VolumeClickHandler
()
{};
bool
eventFilter
(
QObject
*
obj
,
QEvent
*
e
)
{
if
(
e
->
type
()
==
QEvent
::
MouseButtonPress
)
{
if
(
obj
->
objectName
()
==
"volLowLabel"
)
{
m
->
ui
.
volumeSlider
->
setValue
(
0
);
}
else
m
->
ui
.
volumeSlider
->
setValue
(
100
);
aout_VolumeMute
(
p_intf
,
NULL
);
return
true
;
}
return
false
;
}
private:
MainInterface
*
m
;
intf_thread_t
*
p_intf
;
};
#endif
modules/gui/qt4/ui/main_interface.ui
View file @
e45f26dd
...
...
@@ -182,7 +182,7 @@
</spacer>
</item>
<item>
<widget class="QLabel" name="vol
Low
Label" >
<widget class="QLabel" name="vol
Mute
Label" >
<property name="text" >
<string/>
</property>
...
...
@@ -210,7 +210,7 @@
</widget>
</item>
<item>
<widget class="Q
Label" name="volHighLabel
" >
<widget class="Q
PushButton" name="visualButton
" >
<property name="text" >
<string/>
</property>
...
...
@@ -219,7 +219,7 @@
<item>
<widget class="QPushButton" name="playlistButton" >
<property name="text" >
<string
> </string
>
<string
/
>
</property>
</widget>
</item>
...
...
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