Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
8ff59181
Commit
8ff59181
authored
Apr 22, 2011
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt, logo filter should have a browse button for file selection.
Closes #4293
parent
3fe0475f
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
137 additions
and
107 deletions
+137
-107
modules/gui/qt4/components/extended_panels.cpp
modules/gui/qt4/components/extended_panels.cpp
+18
-0
modules/gui/qt4/components/extended_panels.hpp
modules/gui/qt4/components/extended_panels.hpp
+2
-0
modules/gui/qt4/ui/video_effects.ui
modules/gui/qt4/ui/video_effects.ui
+117
-107
No files found.
modules/gui/qt4/components/extended_panels.cpp
View file @
8ff59181
...
...
@@ -36,11 +36,13 @@
#include <QSignalMapper>
#include <QComboBox>
#include <QTimer>
#include <QFileDialog>
#include "components/extended_panels.hpp"
#include "dialogs/preferences.hpp"
#include "qt4.hpp"
#include "input_manager.hpp"
#include "util/qt_dirs.hpp"
#include "../../audio_filter/equalizer_presets.h"
#include <vlc_aout.h>
...
...
@@ -204,6 +206,7 @@ ExtVideo::ExtVideo( intf_thread_t *_p_intf, QTabWidget *_parent ) :
SETUP_VFILTER_OPTION
(
eraseMaskText
,
editingFinished
()
)
SETUP_VFILTER_OPTION
(
eraseYSpin
,
valueChanged
(
int
)
)
SETUP_VFILTER_OPTION
(
eraseXSpin
,
valueChanged
(
int
)
)
BUTTONACT
(
ui
.
eraseBrowseBtn
,
browseEraseFile
()
);
SETUP_VFILTER
(
marq
)
SETUP_VFILTER_OPTION
(
marqMarqueeText
,
textChanged
(
const
QString
&
)
)
...
...
@@ -214,6 +217,7 @@ ExtVideo::ExtVideo( intf_thread_t *_p_intf, QTabWidget *_parent ) :
SETUP_VFILTER_OPTION
(
logoYSpin
,
valueChanged
(
int
)
)
SETUP_VFILTER_OPTION
(
logoXSpin
,
valueChanged
(
int
)
)
SETUP_VFILTER_OPTION
(
logoOpacitySlider
,
valueChanged
(
int
)
)
BUTTONACT
(
ui
.
logoBrowseBtn
,
browseLogo
()
);
SETUP_VFILTER
(
gradfun
)
SETUP_VFILTER_OPTION
(
gradfunRadiusSlider
,
valueChanged
(
int
)
)
...
...
@@ -400,6 +404,20 @@ void ExtVideo::updateFilters()
:
groupbox
->
isChecked
()
);
}
void
ExtVideo
::
browseLogo
()
{
QString
file
=
QFileDialog
::
getOpenFileName
(
NULL
,
qtr
(
"Logo filenames"
),
p_intf
->
p_sys
->
filepath
,
"Images (*.png *.jpg);;All (*)"
);
ui
.
logoFileText
->
setText
(
toNativeSeparators
(
file
)
);
}
void
ExtVideo
::
browseEraseFile
()
{
QString
file
=
QFileDialog
::
getOpenFileName
(
NULL
,
qtr
(
"Image mask"
),
p_intf
->
p_sys
->
filepath
,
"Images (*.png *.jpg);;All (*)"
);
ui
.
eraseMaskText
->
setText
(
toNativeSeparators
(
file
)
);
}
void
ExtVideo
::
initComboBoxItems
(
QObject
*
widget
)
{
QComboBox
*
combobox
=
qobject_cast
<
QComboBox
*>
(
widget
);
...
...
modules/gui/qt4/components/extended_panels.hpp
View file @
8ff59181
...
...
@@ -62,6 +62,8 @@ private slots:
void
updateFilters
();
void
updateFilterOptions
();
void
cropChange
();
void
browseLogo
();
void
browseEraseFile
();
};
class
ExtV4l2
:
public
QWidget
...
...
modules/gui/qt4/ui/video_effects.ui
View file @
8ff59181
This diff is collapsed.
Click to expand it.
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