Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
5743cb83
Commit
5743cb83
authored
Apr 01, 2007
by
Antoine Cellerier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
95% of the video filters extended panel is now done. It's just missing the combo box related code.
parent
e3d735fe
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
394 additions
and
61 deletions
+394
-61
modules/gui/qt4/components/extended_panels.cpp
modules/gui/qt4/components/extended_panels.cpp
+343
-40
modules/gui/qt4/components/extended_panels.hpp
modules/gui/qt4/components/extended_panels.hpp
+6
-3
modules/gui/qt4/ui/video_effects.ui
modules/gui/qt4/ui/video_effects.ui
+45
-18
No files found.
modules/gui/qt4/components/extended_panels.cpp
View file @
5743cb83
/*****************************************************************************
* extended_panels.cpp : Extended controls panels
****************************************************************************
* Copyright (C) 2006 the VideoLAN team
* $Id
: preferences.cpp 16643 2006-09-13 12:45:46Z zorglub
$
* Copyright (C) 2006
-2007
the VideoLAN team
* $Id$
*
* Authors: Clément Stenac <zorglub@videolan.org>
* Antoine Cellerier <dionoea .t videolan d@t org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
...
...
@@ -38,6 +39,9 @@
#include <vlc_intf_strings.h>
#include <vlc_vout.h>
#include <iostream>
#if 0
class ConfClickHandler : public QObject
{
public:
...
...
@@ -58,57 +62,181 @@ private:
ExtVideo* e;
intf_thread_t *p_intf;
};
#endif
#define SETUP_VFILTER( widget, conf, tooltip, labtooltip ) \
ui.widget##Check->setToolTip( tooltip ); \
if (conf ) {\
ui.widget##Label->setToolTip( labtooltip ); \
ui.widget##Label->setPixmap( QPixmap(":/pixmaps/go-next.png") ); \
ui.widget##Label->installEventFilter(h); \
} \
CONNECT( ui.widget##Check, clicked(), this, updateFilters() ); \
QString
ModuleFromWidgetName
(
QObject
*
obj
)
{
return
obj
->
objectName
().
replace
(
"Enable"
,
""
);
}
QString
OptionFromWidgetName
(
QObject
*
obj
)
{
/* Gruik ? ... nah */
QString
option
=
obj
->
objectName
().
replace
(
"Slider"
,
""
)
.
replace
(
"Combo"
,
""
)
.
replace
(
"Dial"
,
""
)
.
replace
(
"Check"
,
""
)
.
replace
(
"Spin"
,
""
)
.
replace
(
"Text"
,
""
);
for
(
char
a
=
'A'
;
a
<=
'Z'
;
a
++
)
{
option
=
option
.
replace
(
QString
(
a
),
QString
(
'-'
)
+
QString
(
a
+
'a'
-
'A'
)
);
}
return
option
;
}
ExtVideo
::
ExtVideo
(
intf_thread_t
*
_p_intf
,
QWidget
*
_parent
)
:
QWidget
(
_parent
)
,
p_intf
(
_p_intf
)
{
ConfClickHandler
*
h
=
new
ConfClickHandler
(
p_intf
,
this
);
ui
.
setupUi
(
this
);
#if 0
#define SETUP_VFILTER( widget ) \
{ \
vlc_object_t *p_obj = (vlc_object_t *) \
vlc_object_find_name( p_intf->p_libvlc, \
#widget, \
FIND_CHILD ); \
QCheckBox *checkbox = qobject_cast<QCheckBox*>(ui.widget##Enable); \
QGroupBox *groupbox = qobject_cast<QGroupBox*>(ui.widget##Enable); \
if( p_obj ) \
{ \
vlc_object_release( p_obj ); \
if( checkbox ) checkbox->setCheckState( Qt::Checked ); \
else groupbox->setChecked( true ); \
} \
else \
{ \
if( checkbox ) checkbox->setCheckState( Qt::Unchecked ); \
else groupbox->setChecked( false ); \
} \
} \
CONNECT( ui.widget##Enable, clicked(), this, updateFilters() );
#define SETUP_VFILTER_OPTION( widget, signal ) \
setWidgetValue( ui.widget ); \
CONNECT( ui.widget, signal, this, updateFilterOptions() );
SETUP_VFILTER( clone, true, qtr(I_CLONE_TIP),
qtr("Configure the clone filter") );
SETUP_VFILTER( magnify, false, qtr(I_MAGNIFY_TIP),
qtr("Configure the magnification effect"));
SETUP_VFILTER( wave, false, qtr(I_WAVE_TIP),
qtr("Configure the waves effect"));
SETUP_VFILTER( ripple, false, qtr(I_RIPPLE_TIP),
qtr("Configure the \"water\" effect"));
SETUP_VFILTER( invert, false, qtr(I_INVERT_TIP),
qtr("Configure the color inversion effect"));
SETUP_VFILTER( puzzle, true, qtr(I_PUZZLE_TIP),
qtr("Configure the puzzle effect"));
SETUP_VFILTER( wall, true, qtr(I_WALL_TIP),
qtr("Configure the wall filter") );
SETUP_VFILTER( gradient, true, qtr(I_GRADIENT_TIP),
qtr("Configure the \"gradient\" effect"));
SETUP_VFILTER( colorthres, true, qtr(I_COLORTHRES_TIP),
qtr("Configure the color detection effect"));
#endif
SETUP_VFILTER
(
adjust
)
SETUP_VFILTER_OPTION
(
hueSlider
,
valueChanged
(
int
)
)
SETUP_VFILTER_OPTION
(
contrastSlider
,
valueChanged
(
int
)
)
SETUP_VFILTER_OPTION
(
brightnessSlider
,
valueChanged
(
int
)
)
SETUP_VFILTER_OPTION
(
saturationSlider
,
valueChanged
(
int
)
)
SETUP_VFILTER_OPTION
(
gammaSlider
,
valueChanged
(
int
)
)
SETUP_VFILTER_OPTION
(
brightnessThresholdCheck
,
stateChanged
(
int
)
)
SETUP_VFILTER
(
extract
)
SETUP_VFILTER_OPTION
(
extractRedSlider
,
valueChanged
(
int
)
)
SETUP_VFILTER_OPTION
(
extractGreenSlider
,
valueChanged
(
int
)
)
SETUP_VFILTER_OPTION
(
extractBlueSlider
,
valueChanged
(
int
)
)
SETUP_VFILTER
(
colorthres
)
SETUP_VFILTER_OPTION
(
colorthresRedSlider
,
valueChanged
(
int
)
)
SETUP_VFILTER_OPTION
(
colorthresGreenSlider
,
valueChanged
(
int
)
)
SETUP_VFILTER_OPTION
(
colorthresBlueSlider
,
valueChanged
(
int
)
)
SETUP_VFILTER_OPTION
(
colorthresSaturationthresSlider
,
valueChanged
(
int
)
)
SETUP_VFILTER_OPTION
(
colorthresSimilaritythresSlider
,
valueChanged
(
int
)
)
SETUP_VFILTER
(
invert
)
SETUP_VFILTER
(
gradient
)
SETUP_VFILTER_OPTION
(
gradientModeCombo
,
currentIndexChanged
(
QString
)
)
SETUP_VFILTER_OPTION
(
gradientTypeCheck
,
stateChanged
(
int
)
)
SETUP_VFILTER_OPTION
(
gradientCartoonCheck
,
stateChanged
(
int
)
)
SETUP_VFILTER
(
blur
)
SETUP_VFILTER_OPTION
(
blurFactorSlider
,
valueChanged
(
int
)
)
SETUP_VFILTER
(
motiondetect
)
SETUP_VFILTER
(
noise
)
SETUP_VFILTER
(
psychedelic
)
SETUP_VFILTER
(
sharpen
)
SETUP_VFILTER_OPTION
(
sharpenSigmaSlider
,
valueChanged
(
int
)
)
SETUP_VFILTER
(
ripple
)
SETUP_VFILTER
(
wave
)
SETUP_VFILTER
(
transform
)
SETUP_VFILTER_OPTION
(
transformTypeCombo
,
currentIndexChanged
(
QString
)
)
SETUP_VFILTER
(
rotate
)
SETUP_VFILTER_OPTION
(
rotateAngleDial
,
valueChanged
(
int
)
)
SETUP_VFILTER
(
puzzle
)
SETUP_VFILTER_OPTION
(
puzzleRowsSpin
,
valueChanged
(
int
)
)
SETUP_VFILTER_OPTION
(
puzzleColsSpin
,
valueChanged
(
int
)
)
SETUP_VFILTER_OPTION
(
puzzleBlackSlotCheck
,
stateChanged
(
int
)
)
SETUP_VFILTER
(
magnify
)
SETUP_VFILTER
(
clone
)
SETUP_VFILTER_OPTION
(
cloneCountSpin
,
valueChanged
(
int
)
)
SETUP_VFILTER
(
wall
)
SETUP_VFILTER_OPTION
(
wallRowsSpin
,
valueChanged
(
int
)
)
SETUP_VFILTER_OPTION
(
wallColsSpin
,
valueChanged
(
int
)
)
SETUP_VFILTER
(
erase
)
SETUP_VFILTER_OPTION
(
eraseMaskText
,
editingFinished
()
)
SETUP_VFILTER_OPTION
(
eraseYSpin
,
valueChanged
(
int
)
)
SETUP_VFILTER_OPTION
(
eraseXSpin
,
valueChanged
(
int
)
)
SETUP_VFILTER
(
marq
)
SETUP_VFILTER_OPTION
(
marqMarqueeText
,
textChanged
(
QString
)
)
SETUP_VFILTER_OPTION
(
marqPositionCombo
,
currentIndexChanged
(
QString
)
)
SETUP_VFILTER
(
logo
)
SETUP_VFILTER_OPTION
(
logoFileText
,
editingFinished
()
)
SETUP_VFILTER_OPTION
(
logoYSpin
,
valueChanged
(
int
)
)
SETUP_VFILTER_OPTION
(
logoXSpin
,
valueChanged
(
int
)
)
SETUP_VFILTER_OPTION
(
logoTransparencySlider
,
valueChanged
(
int
)
)
#undef SETUP_VFILTER
#undef SETUP_VFILTER_OPTION
}
ExtVideo
::~
ExtVideo
()
{
}
static
void
ChangeVFiltersString
(
intf_thread_t
*
p_intf
,
char
*
psz_name
,
vlc_bool_t
b_add
)
void
ExtVideo
::
ChangeVFiltersString
(
char
*
psz_name
,
vlc_bool_t
b_add
)
{
vout_thread_t
*
p_vout
;
char
*
psz_parser
,
*
psz_string
;
psz_string
=
config_GetPsz
(
p_intf
,
"video-filter"
);
char
*
psz_filter_type
;
vlc_object_t
*
p_obj
=
(
vlc_object_t
*
)
vlc_object_find_name
(
p_intf
->
p_libvlc_global
,
psz_name
,
FIND_CHILD
);
if
(
!
p_obj
)
{
msg_Err
(
p_intf
,
"Unable to find filter module."
);
return
;
}
if
(
!
strcmp
(
((
module_t
*
)
p_obj
)
->
psz_capability
,
"video filter2"
)
)
{
psz_filter_type
=
"video-filter"
;
}
else
if
(
!
strcmp
(
((
module_t
*
)
p_obj
)
->
psz_capability
,
"video filter"
)
)
{
psz_filter_type
=
"vout-filter"
;
}
else
if
(
!
strcmp
(
((
module_t
*
)
p_obj
)
->
psz_capability
,
"sub filter"
)
)
{
psz_filter_type
=
"sub-filter"
;
}
else
{
vlc_object_release
(
p_obj
);
msg_Err
(
p_intf
,
"Unknown video filter type."
);
return
;
}
vlc_object_release
(
p_obj
);
psz_string
=
config_GetPsz
(
p_intf
,
psz_filter_type
);
if
(
!
psz_string
)
psz_string
=
strdup
(
""
);
...
...
@@ -156,14 +284,20 @@ static void ChangeVFiltersString( intf_thread_t *p_intf,
}
}
/* Vout is not kept, so put that in the config */
config_PutPsz
(
p_intf
,
"video-filter"
,
psz_string
);
config_PutPsz
(
p_intf
,
psz_filter_type
,
psz_string
);
if
(
!
strcmp
(
psz_filter_type
,
"video-filter"
)
)
ui
.
videoFilterText
->
setText
(
psz_string
);
else
if
(
!
strcmp
(
psz_filter_type
,
"vout-filter"
)
)
ui
.
voutFilterText
->
setText
(
psz_string
);
else
if
(
!
strcmp
(
psz_filter_type
,
"sub-filter"
)
)
ui
.
subpictureFilterText
->
setText
(
psz_string
);
/* Try to set on the fly */
p_vout
=
(
vout_thread_t
*
)
vlc_object_find
(
p_intf
,
VLC_OBJECT_VOUT
,
FIND_ANYWHERE
);
if
(
p_vout
)
{
var_SetString
(
p_vout
,
"video-filter"
,
psz_string
);
var_SetString
(
p_vout
,
psz_filter_type
,
psz_string
);
vlc_object_release
(
p_vout
);
}
...
...
@@ -172,12 +306,180 @@ static void ChangeVFiltersString( intf_thread_t *p_intf,
void
ExtVideo
::
updateFilters
()
{
QCheckBox
*
filter
=
qobject_cast
<
QCheckBox
*>
(
sender
());
QString
module
=
filter
->
objectName
().
replace
(
"Check"
,
""
);
QString
module
=
ModuleFromWidgetName
(
sender
()
);
std
::
cout
<<
"Module name: "
<<
module
.
toStdString
()
<<
std
::
endl
;
QCheckBox
*
checkbox
=
qobject_cast
<
QCheckBox
*>
(
sender
());
QGroupBox
*
groupbox
=
qobject_cast
<
QGroupBox
*>
(
sender
());
ChangeVFiltersString
(
qtu
(
module
),
checkbox
?
checkbox
->
isChecked
()
:
groupbox
->
isChecked
()
);
}
void
ExtVideo
::
setWidgetValue
(
QObject
*
widget
)
{
QString
module
=
ModuleFromWidgetName
(
widget
->
parent
()
);
//std::cout << "Module name: " << module.toStdString() << std::endl;
QString
option
=
OptionFromWidgetName
(
widget
);
//std::cout << "Option name: " << option.toStdString() << std::endl;
vlc_object_t
*
p_obj
=
(
vlc_object_t
*
)
vlc_object_find_name
(
p_intf
->
p_libvlc
,
module
.
toStdString
().
c_str
(),
FIND_CHILD
);
int
i_type
;
vlc_value_t
val
;
if
(
!
p_obj
)
{
msg_Dbg
(
p_intf
,
"Module instance %s not found, looking in config values."
,
module
.
toStdString
().
c_str
()
);
i_type
=
config_GetType
(
p_intf
,
option
.
toStdString
().
c_str
()
)
&
0xf0
;
switch
(
i_type
)
{
case
VLC_VAR_INTEGER
:
case
VLC_VAR_BOOL
:
val
.
i_int
=
config_GetInt
(
p_intf
,
option
.
toStdString
().
c_str
()
);
break
;
case
VLC_VAR_FLOAT
:
val
.
f_float
=
config_GetFloat
(
p_intf
,
option
.
toStdString
().
c_str
()
);
break
;
case
VLC_VAR_STRING
:
val
.
psz_string
=
config_GetPsz
(
p_intf
,
option
.
toStdString
().
c_str
()
);
break
;
}
}
else
{
i_type
=
var_Type
(
p_obj
,
option
.
toStdString
().
c_str
()
)
&
0xf0
;
var_Get
(
p_obj
,
option
.
toStdString
().
c_str
(),
&
val
);
vlc_object_release
(
p_obj
);
}
/* Try to cast to all the widgets we're likely to encounter. Only
* one of the casts is expected to work. */
QSlider
*
slider
=
qobject_cast
<
QSlider
*>
(
widget
);
QCheckBox
*
checkbox
=
qobject_cast
<
QCheckBox
*>
(
widget
);
QSpinBox
*
spinbox
=
qobject_cast
<
QSpinBox
*>
(
widget
);
QDoubleSpinBox
*
doublespinbox
=
qobject_cast
<
QDoubleSpinBox
*>
(
widget
);
QDial
*
dial
=
qobject_cast
<
QDial
*>
(
widget
);
QLineEdit
*
lineedit
=
qobject_cast
<
QLineEdit
*>
(
widget
);
QComboBox
*
combobox
=
qobject_cast
<
QComboBox
*>
(
widget
);
if
(
i_type
==
VLC_VAR_INTEGER
||
i_type
==
VLC_VAR_BOOL
)
{
int
i_int
=
0
;
if
(
slider
)
slider
->
setValue
(
val
.
i_int
);
else
if
(
checkbox
)
checkbox
->
setCheckState
(
val
.
i_int
?
Qt
::
Checked
:
Qt
::
Unchecked
);
else
if
(
spinbox
)
spinbox
->
setValue
(
val
.
i_int
);
else
if
(
dial
)
dial
->
setValue
(
val
.
i_int
);
else
msg_Warn
(
p_intf
,
"Oops %s %s %d"
,
__FILE__
,
__func__
,
__LINE__
);
}
else
if
(
i_type
==
VLC_VAR_FLOAT
)
{
double
f_float
=
0
;
if
(
slider
)
slider
->
setValue
(
(
int
)(
val
.
f_float
*
(
double
)
slider
->
tickInterval
()));
/* hack alert! */
else
if
(
doublespinbox
)
doublespinbox
->
setValue
(
val
.
f_float
);
else
msg_Warn
(
p_intf
,
"Oops %s %s %d"
,
__FILE__
,
__func__
,
__LINE__
);
}
else
if
(
i_type
==
VLC_VAR_STRING
)
{
const
char
*
psz_string
=
NULL
;
if
(
lineedit
)
lineedit
->
setText
(
val
.
psz_string
);
else
msg_Warn
(
p_intf
,
"Oops %s %s %d"
,
__FILE__
,
__func__
,
__LINE__
);
free
(
val
.
psz_string
);
}
else
msg_Err
(
p_intf
,
"Module %s's %s variable is of an unsupported type (%d)"
,
module
.
toStdString
().
c_str
(),
option
.
toStdString
().
c_str
(),
i_type
);
}
void
ExtVideo
::
updateFilterOptions
()
{
QString
module
=
ModuleFromWidgetName
(
sender
()
->
parent
()
);
std
::
cout
<<
"Module name: "
<<
module
.
toStdString
()
<<
std
::
endl
;
QString
option
=
OptionFromWidgetName
(
sender
()
);
std
::
cout
<<
"Option name: "
<<
option
.
toStdString
()
<<
std
::
endl
;
vlc_object_t
*
p_obj
=
(
vlc_object_t
*
)
vlc_object_find_name
(
p_intf
->
p_libvlc
,
module
.
toStdString
().
c_str
(),
FIND_CHILD
);
if
(
!
p_obj
)
{
msg_Err
(
p_intf
,
"Module %s not found."
,
module
.
toStdString
().
c_str
()
);
return
;
}
int
i_type
=
var_Type
(
p_obj
,
option
.
toStdString
().
c_str
()
);
if
(
!
(
i_type
&
VLC_VAR_ISCOMMAND
)
)
{
vlc_object_release
(
p_obj
);
msg_Err
(
p_intf
,
"Module %s's %s variable isn't a command."
,
module
.
toStdString
().
c_str
(),
option
.
toStdString
().
c_str
()
);
return
;
}
/* Try to cast to all the widgets we're likely to encounter. Only
* one of the casts is expected to work. */
QSlider
*
slider
=
qobject_cast
<
QSlider
*>
(
sender
());
QCheckBox
*
checkbox
=
qobject_cast
<
QCheckBox
*>
(
sender
());
QSpinBox
*
spinbox
=
qobject_cast
<
QSpinBox
*>
(
sender
());
QDoubleSpinBox
*
doublespinbox
=
qobject_cast
<
QDoubleSpinBox
*>
(
sender
());
QDial
*
dial
=
qobject_cast
<
QDial
*>
(
sender
());
QLineEdit
*
lineedit
=
qobject_cast
<
QLineEdit
*>
(
sender
());
QComboBox
*
combobox
=
qobject_cast
<
QComboBox
*>
(
sender
());
i_type
&=
0xf0
;
if
(
i_type
==
VLC_VAR_INTEGER
||
i_type
==
VLC_VAR_BOOL
)
{
int
i_int
=
0
;
if
(
slider
)
i_int
=
slider
->
value
();
else
if
(
checkbox
)
i_int
=
checkbox
->
checkState
()
==
Qt
::
Checked
;
else
if
(
spinbox
)
i_int
=
spinbox
->
value
();
else
if
(
dial
)
i_int
=
dial
->
value
();
else
if
(
lineedit
)
i_int
=
lineedit
->
text
().
toInt
();
else
msg_Warn
(
p_intf
,
"Oops %s %s %d"
,
__FILE__
,
__func__
,
__LINE__
);
if
(
i_type
==
VLC_VAR_INTEGER
)
var_SetInteger
(
p_obj
,
option
.
toStdString
().
c_str
(),
i_int
);
else
var_SetBool
(
p_obj
,
option
.
toStdString
().
c_str
(),
i_int
);
}
else
if
(
i_type
==
VLC_VAR_FLOAT
)
{
double
f_float
=
0
;
if
(
slider
)
f_float
=
(
double
)
slider
->
value
()
/
(
double
)
slider
->
tickInterval
();
/* hack alert! */
else
if
(
doublespinbox
)
f_float
=
doublespinbox
->
value
();
else
if
(
lineedit
)
f_float
=
lineedit
->
text
().
toDouble
();
else
msg_Warn
(
p_intf
,
"Oops %s %s %d"
,
__FILE__
,
__func__
,
__LINE__
);
var_SetFloat
(
p_obj
,
option
.
toStdString
().
c_str
(),
f_float
);
}
else
if
(
i_type
==
VLC_VAR_STRING
)
{
const
char
*
psz_string
=
NULL
;
if
(
lineedit
)
psz_string
=
lineedit
->
text
().
toStdString
().
c_str
();
else
msg_Warn
(
p_intf
,
"Oops %s %s %d"
,
__FILE__
,
__func__
,
__LINE__
);
var_SetString
(
p_obj
,
option
.
toStdString
().
c_str
(),
psz_string
);
}
else
msg_Err
(
p_intf
,
"Module %s's %s variable is of an unsupported type (%d)"
,
module
.
toStdString
().
c_str
(),
option
.
toStdString
().
c_str
(),
i_type
);
ChangeVFiltersString
(
p_intf
,
qtu
(
module
),
filter
->
isChecked
()
);
vlc_object_release
(
p_obj
);
}
#if 0
void ExtVideo::gotoConf( QObject* src )
{
#define SHOWCONF(module) \
...
...
@@ -196,6 +498,7 @@ void ExtVideo::gotoConf( QObject* src )
SHOWCONF( "gradient" );
SHOWCONF( "colorthres" )
}
#endif
/**********************************************************************
* Equalizer
...
...
modules/gui/qt4/components/extended_panels.hpp
View file @
5743cb83
...
...
@@ -39,13 +39,16 @@ class ExtVideo: public QWidget
public:
ExtVideo
(
intf_thread_t
*
,
QWidget
*
);
virtual
~
ExtVideo
();
void
gotoConf
(
QObject
*
);
/*void gotoConf( QObject* );*/
private:
Ui
::
ExtVideoWidget
ui
;
QSignalMapper
*
filterMapper
;
intf_thread_t
*
p_intf
;
void
setWidgetValue
(
QObject
*
);
void
ChangeVFiltersString
(
char
*
psz_name
,
vlc_bool_t
b_add
);
private
slots
:
void
updateFilters
(
);
void
updateFilters
();
void
updateFilterOptions
();
};
class
Equalizer
:
public
QWidget
...
...
modules/gui/qt4/ui/video_effects.ui
View file @
5743cb83
...
...
@@ -52,14 +52,14 @@
</widget>
</item>
<item row="4" column="1" >
<widget class="QSlider" name="colorthresSimilaritySlider" >
<widget class="QSlider" name="colorthresSimilarity
thres
Slider" >
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
</widget>
</item>
<item row="3" column="1" >
<widget class="QSlider" name="colorthresSaturationSlider" >
<widget class="QSlider" name="colorthresSaturation
thres
Slider" >
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
...
...
@@ -133,7 +133,7 @@
<widget class="QLineEdit" name="videoFilterText" />
</item>
<item row="2" column="1" colspan="2" >
<widget class="QLineEdit" name="subpictureFilter
s
Text" />
<widget class="QLineEdit" name="subpictureFilterText" />
</item>
<item row="3" column="0" colspan="2" >
<widget class="QPushButton" name="filtersResetButton" >
...
...
@@ -209,10 +209,10 @@
</widget>
</item>
<item row="2" column="1" >
<widget class="QSpinBox" name="erase
Left
Spin" />
<widget class="QSpinBox" name="erase
X
Spin" />
</item>
<item row="1" column="1" >
<widget class="QSpinBox" name="erase
Top
Spin" />
<widget class="QSpinBox" name="erase
Y
Spin" />
</item>
<item row="0" column="1" >
<widget class="QLineEdit" name="eraseMaskText" />
...
...
@@ -281,17 +281,17 @@
</widget>
</item>
<item row="3" column="1" colspan="2" >
<widget class="QSlider" name="logo
Alpha
Slider" >
<widget class="QSlider" name="logo
Transparency
Slider" >
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
</widget>
</item>
<item row="2" column="2" >
<widget class="QSpinBox" name="logo
Left
Spin" />
<widget class="QSpinBox" name="logo
X
Spin" />
</item>
<item row="1" column="2" >
<widget class="QSpinBox" name="logo
Top
Spin" />
<widget class="QSpinBox" name="logo
Y
Spin" />
</item>
<item row="0" column="0" >
<widget class="QLabel" name="label_19" >
...
...
@@ -380,7 +380,7 @@
</widget>
</item>
<item row="0" column="1" >
<widget class="QSpinBox" name="clone
s
CountSpin" >
<widget class="QSpinBox" name="cloneCountSpin" >
<property name="minimum" >
<number>1</number>
</property>
...
...
@@ -425,7 +425,7 @@
</widget>
</item>
<item row="1" column="1" >
<widget class="QSpinBox" name="wallCol
umn
sSpin" >
<widget class="QSpinBox" name="wallColsSpin" >
<property name="minimum" >
<number>1</number>
</property>
...
...
@@ -476,7 +476,7 @@
</widget>
</item>
<item row="1" column="1" >
<widget class="QSpinBox" name="puzzleCol
umnsDial
" >
<widget class="QSpinBox" name="puzzleCol
sSpin
" >
<property name="minimum" >
<number>1</number>
</property>
...
...
@@ -486,7 +486,7 @@
</widget>
</item>
<item row="2" column="0" colspan="2" >
<widget class="QCheckBox" name="puzzleBlack
s
lotCheck" >
<widget class="QCheckBox" name="puzzleBlack
S
lotCheck" >
<property name="text" >
<string>Black slot</string>
</property>
...
...
@@ -593,14 +593,14 @@
<number>6</number>
</property>
<item row="2" column="0" colspan="2" >
<widget class="QCheckBox" name="gradientCartoon
Box
" >
<widget class="QCheckBox" name="gradientCartoon
Check
" >
<property name="text" >
<string>Cartoon</string>
</property>
</widget>
</item>
<item row="1" column="0" colspan="2" >
<widget class="QCheckBox" name="gradient
Color
Check" >
<widget class="QCheckBox" name="gradient
Type
Check" >
<property name="text" >
<string>Color</string>
</property>
...
...
@@ -656,6 +656,9 @@
</property>
<item row="0" column="1" >
<widget class="QSlider" name="hueSlider" >
<property name="maximum" >
<number>360</number>
</property>
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
...
...
@@ -663,30 +666,54 @@
</item>
<item row="4" column="1" >
<widget class="QSlider" name="gammaSlider" >
<property name="maximum" >
<number>500</number>
</property>
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
<property name="tickInterval" >
<number>50</number>
</property>
</widget>
</item>
<item row="3" column="1" >
<widget class="QSlider" name="saturationSlider" >
<property name="maximum" >
<number>300</number>
</property>
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
<property name="tickInterval" >
<number>100</number>
</property>
</widget>
</item>
<item row="2" column="1" >
<widget class="QSlider" name="brightnessSlider" >
<property name="maximum" >
<number>200</number>
</property>
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
<property name="tickInterval" >
<number>100</number>
</property>
</widget>
</item>
<item row="1" column="1" >
<widget class="QSlider" name="constrastSlider" >
<widget class="QSlider" name="contrastSlider" >
<property name="maximum" >
<number>200</number>
</property>
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
<property name="tickInterval" >
<number>100</number>
</property>
</widget>
</item>
<item row="4" column="0" >
...
...
@@ -725,7 +752,7 @@
</widget>
</item>
<item row="5" column="1" >
<widget class="QCheckBox" name="brightness
t
hresholdCheck" >
<widget class="QCheckBox" name="brightness
T
hresholdCheck" >
<property name="text" >
<string>Brightness threshold</string>
</property>
...
...
@@ -833,7 +860,7 @@
</widget>
</item>
<item rowspan="2" row="2" column="1" >
<widget class="QGroupBox" name="
motion
blurEnable" >
<widget class="QGroupBox" name="blurEnable" >
<property name="title" >
<string>Motion blur</string>
</property>
...
...
@@ -858,7 +885,7 @@
</widget>
</item>
<item row="0" column="1" >
<widget class="QSlider" name="
motion
blurFactorSlider" >
<widget class="QSlider" name="blurFactorSlider" >
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
...
...
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