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
547a4494
Commit
547a4494
authored
Jan 31, 2008
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt4 - Extended Panels. try to fix the sizing ...
parent
031e7a2d
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
1063 additions
and
846 deletions
+1063
-846
modules/gui/qt4/components/extended_panels.cpp
modules/gui/qt4/components/extended_panels.cpp
+3
-3
modules/gui/qt4/components/extended_panels.hpp
modules/gui/qt4/components/extended_panels.hpp
+3
-2
modules/gui/qt4/dialogs/extended.cpp
modules/gui/qt4/dialogs/extended.cpp
+11
-2
modules/gui/qt4/ui/video_effects.ui
modules/gui/qt4/ui/video_effects.ui
+1046
-839
No files found.
modules/gui/qt4/components/extended_panels.cpp
View file @
547a4494
...
...
@@ -92,10 +92,10 @@ QString OptionFromWidgetName( QObject *obj )
return
option
;
}
ExtVideo
::
ExtVideo
(
intf_thread_t
*
_p_intf
,
QWidget
*
_parent
)
:
QWidget
(
_parent
)
,
p_intf
(
_p_intf
)
ExtVideo
::
ExtVideo
(
intf_thread_t
*
_p_intf
,
Q
Tab
Widget
*
_parent
)
:
p_intf
(
_p_intf
)
{
ui
.
setupUi
(
this
);
ui
.
setupUi
(
_parent
);
#define SETUP_VFILTER( widget ) \
{ \
...
...
modules/gui/qt4/components/extended_panels.hpp
View file @
547a4494
...
...
@@ -36,16 +36,17 @@
#include "ui/video_effects.h"
#include "ui/v4l2.h"
#include <QTabWidget>
#define BANDS 10
#define NUM_SP_CTRL 5
class
QSignalMapper
;
class
ExtVideo
:
public
Q
Widge
t
class
ExtVideo
:
public
Q
Objec
t
{
Q_OBJECT
public:
ExtVideo
(
intf_thread_t
*
,
QWidget
*
);
ExtVideo
(
intf_thread_t
*
,
Q
Tab
Widget
*
);
virtual
~
ExtVideo
();
/*void gotoConf( QObject* );*/
private:
...
...
modules/gui/qt4/dialogs/extended.cpp
View file @
547a4494
...
...
@@ -45,6 +45,7 @@ ExtendedDialog::ExtendedDialog( intf_thread_t *_p_intf ): QVLCFrame( _p_intf )
QTabWidget
*
mainTabW
=
new
QTabWidget
(
this
);
mainTabW
->
setTabPosition
(
QTabWidget
::
West
);
/* AUDIO effects */
QWidget
*
audioWidget
=
new
QWidget
;
QHBoxLayout
*
audioLayout
=
new
QHBoxLayout
(
audioWidget
);
QTabWidget
*
audioTab
=
new
QTabWidget
(
audioWidget
);
...
...
@@ -58,8 +59,16 @@ ExtendedDialog::ExtendedDialog( intf_thread_t *_p_intf ): QVLCFrame( _p_intf )
mainTabW
->
addTab
(
audioWidget
,
qtr
(
"Audio effects"
)
);
ExtVideo
*
videoEffect
=
new
ExtVideo
(
p_intf
,
mainTabW
);
mainTabW
->
addTab
(
videoEffect
,
qtr
(
"Video Effects"
)
);
/* Video Effects */
QWidget
*
videoWidget
=
new
QWidget
;
QHBoxLayout
*
videoLayout
=
new
QHBoxLayout
(
videoWidget
);
QTabWidget
*
videoTab
=
new
QTabWidget
(
videoWidget
);
ExtVideo
*
videoEffect
=
new
ExtVideo
(
p_intf
,
videoTab
);
videoLayout
->
addWidget
(
videoTab
);
videoTab
->
setSizePolicy
(
QSizePolicy
::
Preferred
,
QSizePolicy
::
Maximum
);
mainTabW
->
addTab
(
videoWidget
,
qtr
(
"Video Effects"
)
);
if
(
module_Exists
(
p_intf
,
"v4l2"
)
)
{
...
...
modules/gui/qt4/ui/video_effects.ui
View file @
547a4494
<ui version="4.0" >
<class>ExtVideoWidget</class>
<widget class="QWidget" name="ExtVideoWidget" >
<widget class="Q
Tab
Widget" name="ExtVideoWidget" >
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>
561
</width>
<height>
289
</height>
<width>
472
</width>
<height>
320
</height>
</rect>
</property>
<property name="sizePolicy" >
<sizepolicy vsizetype="Maximum" hsizetype="Maximum" >
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="windowTitle" >
<string>Form</string>
</property>
<layout class="QGridLayout" >
<property name="margin" >
<number>9</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item row="0" column="0" >
<widget class="QTabWidget" name="tabWidget" >
<property name="sizePolicy" >
<sizepolicy vsizetype="Maximum" hsizetype="Preferred" >
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="currentIndex" >
<number>0
</number>
<number>1
</number>
</property>
<widget class="QWidget" name="tab" >
<attribute name="title" >
<string>_("Basic")</string>
</attribute>
<layout class="QGridLayout" >
<property name="m
argin" >
<property name="leftM
argin" >
<number>9</number>
</property>
<property name="spacing" >
<property name="topMargin" >
<number>9</number>
</property>
<property name="rightMargin" >
<number>9</number>
</property>
<property name="bottomMargin" >
<number>9</number>
</property>
<property name="horizontalSpacing" >
<number>6</number>
</property>
<property name="verticalSpacing" >
<number>6</number>
</property>
<item row="1" column="1" >
...
...
@@ -59,10 +47,22 @@
<bool>false</bool>
</property>
<layout class="QGridLayout" >
<property name="margin" >
<property name="leftMargin" >
<number>9</number>
</property>
<property name="topMargin" >
<number>9</number>
</property>
<property name="rightMargin" >
<number>9</number>
</property>
<property name="spacing" >
<property name="bottomMargin" >
<number>9</number>
</property>
<property name="horizontalSpacing" >
<number>6</number>
</property>
<property name="verticalSpacing" >
<number>6</number>
</property>
<item row="0" column="0" >
...
...
@@ -83,10 +83,22 @@
<bool>false</bool>
</property>
<layout class="QGridLayout" >
<property name="margin" >
<property name="leftMargin" >
<number>9</number>
</property>
<property name="topMargin" >
<number>9</number>
</property>
<property name="spacing" >
<property name="rightMargin" >
<number>9</number>
</property>
<property name="bottomMargin" >
<number>9</number>
</property>
<property name="horizontalSpacing" >
<number>6</number>
</property>
<property name="verticalSpacing" >
<number>6</number>
</property>
<item row="0" column="0" >
...
...
@@ -136,12 +148,6 @@
<bool>false</bool>
</property>
<layout class="QGridLayout" >
<property name="margin" >
<number>9</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item row="0" column="1" >
<widget class="QSlider" name="hueSlider" >
<property name="maximum" >
...
...
@@ -274,10 +280,22 @@
<string>_("Color fun")</string>
</attribute>
<layout class="QGridLayout" >
<property name="margin" >
<property name="leftMargin" >
<number>9</number>
</property>
<property name="topMargin" >
<number>9</number>
</property>
<property name="rightMargin" >
<number>9</number>
</property>
<property name="bottomMargin" >
<number>9</number>
</property>
<property name="spacing" >
<property name="horizontalSpacing" >
<number>6</number>
</property>
<property name="verticalSpacing" >
<number>6</number>
</property>
<item row="1" column="1" >
...
...
@@ -292,10 +310,22 @@
<bool>false</bool>
</property>
<layout class="QGridLayout" >
<property name="margin" >
<property name="leftMargin" >
<number>9</number>
</property>
<property name="topMargin" >
<number>9</number>
</property>
<property name="rightMargin" >
<number>9</number>
</property>
<property name="spacing" >
<property name="bottomMargin" >
<number>9</number>
</property>
<property name="horizontalSpacing" >
<number>6</number>
</property>
<property name="verticalSpacing" >
<number>6</number>
</property>
<item row="0" column="0" >
...
...
@@ -334,10 +364,22 @@
<bool>false</bool>
</property>
<layout class="QGridLayout" >
<property name="margin" >
<property name="leftMargin" >
<number>9</number>
</property>
<property name="topMargin" >
<number>9</number>
</property>
<property name="rightMargin" >
<number>9</number>
</property>
<property name="spacing" >
<property name="bottomMargin" >
<number>9</number>
</property>
<property name="horizontalSpacing" >
<number>6</number>
</property>
<property name="verticalSpacing" >
<number>6</number>
</property>
<item row="2" column="0" >
...
...
@@ -392,10 +434,22 @@
<string>_("Some random name")</string>
</attribute>
<layout class="QGridLayout" >
<property name="margin" >
<property name="leftMargin" >
<number>9</number>
</property>
<property name="topMargin" >
<number>9</number>
</property>
<property name="rightMargin" >
<number>9</number>
</property>
<property name="spacing" >
<property name="bottomMargin" >
<number>9</number>
</property>
<property name="horizontalSpacing" >
<number>6</number>
</property>
<property name="verticalSpacing" >
<number>6</number>
</property>
<item row="1" column="0" >
...
...
@@ -417,10 +471,22 @@
<bool>false</bool>
</property>
<layout class="QGridLayout" >
<property name="margin" >
<property name="leftMargin" >
<number>9</number>
</property>
<property name="topMargin" >
<number>9</number>
</property>
<property name="spacing" >
<property name="rightMargin" >
<number>9</number>
</property>
<property name="bottomMargin" >
<number>9</number>
</property>
<property name="horizontalSpacing" >
<number>6</number>
</property>
<property name="verticalSpacing" >
<number>6</number>
</property>
<item row="0" column="1" >
...
...
@@ -467,10 +533,22 @@
<bool>false</bool>
</property>
<layout class="QGridLayout" >
<property name="margin" >
<property name="leftMargin" >
<number>9</number>
</property>
<property name="topMargin" >
<number>9</number>
</property>
<property name="spacing" >
<property name="rightMargin" >
<number>9</number>
</property>
<property name="bottomMargin" >
<number>9</number>
</property>
<property name="horizontalSpacing" >
<number>6</number>
</property>
<property name="verticalSpacing" >
<number>6</number>
</property>
<item row="0" column="1" >
...
...
@@ -524,10 +602,22 @@
<string>_("Image modification")</string>
</attribute>
<layout class="QGridLayout" >
<property name="margin" >
<property name="leftMargin" >
<number>9</number>
</property>
<property name="topMargin" >
<number>9</number>
</property>
<property name="spacing" >
<property name="rightMargin" >
<number>9</number>
</property>
<property name="bottomMargin" >
<number>9</number>
</property>
<property name="horizontalSpacing" >
<number>6</number>
</property>
<property name="verticalSpacing" >
<number>6</number>
</property>
<item row="2" column="0" >
...
...
@@ -577,10 +667,22 @@
<bool>false</bool>
</property>
<layout class="QGridLayout" >
<property name="margin" >
<property name="leftMargin" >
<number>9</number>
</property>
<property name="topMargin" >
<number>9</number>
</property>
<property name="rightMargin" >
<number>9</number>
</property>
<property name="bottomMargin" >
<number>9</number>
</property>
<property name="spacing" >
<property name="horizontalSpacing" >
<number>6</number>
</property>
<property name="verticalSpacing" >
<number>6</number>
</property>
<item row="0" column="0" >
...
...
@@ -627,10 +729,22 @@
<bool>false</bool>
</property>
<layout class="QGridLayout" >
<property name="margin" >
<property name="leftMargin" >
<number>9</number>
</property>
<property name="topMargin" >
<number>9</number>
</property>
<property name="rightMargin" >
<number>9</number>
</property>
<property name="spacing" >
<property name="bottomMargin" >
<number>9</number>
</property>
<property name="horizontalSpacing" >
<number>6</number>
</property>
<property name="verticalSpacing" >
<number>6</number>
</property>
<item row="0" column="0" >
...
...
@@ -667,10 +781,22 @@
<string>_("Find a name")</string>
</attribute>
<layout class="QGridLayout" >
<property name="m
argin" >
<property name="leftM
argin" >
<number>9</number>
</property>
<property name="spacing" >
<property name="topMargin" >
<number>9</number>
</property>
<property name="rightMargin" >
<number>9</number>
</property>
<property name="bottomMargin" >
<number>9</number>
</property>
<property name="horizontalSpacing" >
<number>6</number>
</property>
<property name="verticalSpacing" >
<number>6</number>
</property>
<item rowspan="2" row="0" column="1" >
...
...
@@ -685,10 +811,22 @@
<bool>false</bool>
</property>
<layout class="QGridLayout" >
<property name="margin" >
<property name="leftMargin" >
<number>9</number>
</property>
<property name="topMargin" >
<number>9</number>
</property>
<property name="rightMargin" >
<number>9</number>
</property>
<property name="spacing" >
<property name="bottomMargin" >
<number>9</number>
</property>
<property name="horizontalSpacing" >
<number>6</number>
</property>
<property name="verticalSpacing" >
<number>6</number>
</property>
<item row="1" column="0" >
...
...
@@ -736,10 +874,22 @@
<bool>false</bool>
</property>
<layout class="QGridLayout" >
<property name="margin" >
<property name="leftMargin" >
<number>9</number>
</property>
<property name="topMargin" >
<number>9</number>
</property>
<property name="spacing" >
<property name="rightMargin" >
<number>9</number>
</property>
<property name="bottomMargin" >
<number>9</number>
</property>
<property name="horizontalSpacing" >
<number>6</number>
</property>
<property name="verticalSpacing" >
<number>6</number>
</property>
<item row="0" column="0" >
...
...
@@ -774,10 +924,22 @@
<bool>false</bool>
</property>
<layout class="QGridLayout" >
<property name="margin" >
<property name="leftMargin" >
<number>9</number>
</property>
<property name="topMargin" >
<number>9</number>
</property>
<property name="spacing" >
<property name="rightMargin" >
<number>9</number>
</property>
<property name="bottomMargin" >
<number>9</number>
</property>
<property name="horizontalSpacing" >
<number>6</number>
</property>
<property name="verticalSpacing" >
<number>6</number>
</property>
<item row="0" column="0" >
...
...
@@ -824,10 +986,22 @@
<string>_("Overlay")</string>
</attribute>
<layout class="QGridLayout" >
<property name="margin" >
<property name="leftMargin" >
<number>9</number>
</property>
<property name="topMargin" >
<number>9</number>
</property>
<property name="spacing" >
<property name="rightMargin" >
<number>9</number>
</property>
<property name="bottomMargin" >
<number>9</number>
</property>
<property name="horizontalSpacing" >
<number>6</number>
</property>
<property name="verticalSpacing" >
<number>6</number>
</property>
<item row="0" column="0" >
...
...
@@ -842,10 +1016,22 @@
<bool>false</bool>
</property>
<layout class="QGridLayout" >
<property name="margin" >
<property name="leftMargin" >
<number>9</number>
</property>
<property name="topMargin" >
<number>9</number>
</property>
<property name="rightMargin" >
<number>9</number>
</property>
<property name="bottomMargin" >
<number>9</number>
</property>
<property name="spacing" >
<property name="horizontalSpacing" >
<number>6</number>
</property>
<property name="verticalSpacing" >
<number>6</number>
</property>
<item row="1" column="0" >
...
...
@@ -883,10 +1069,22 @@
<bool>false</bool>
</property>
<layout class="QGridLayout" >
<property name="m
argin" >
<property name="leftM
argin" >
<number>9</number>
</property>
<property name="spacing" >
<property name="topMargin" >
<number>9</number>
</property>
<property name="rightMargin" >
<number>9</number>
</property>
<property name="bottomMargin" >
<number>9</number>
</property>
<property name="horizontalSpacing" >
<number>6</number>
</property>
<property name="verticalSpacing" >
<number>6</number>
</property>
<item row="3" column="0" >
...
...
@@ -952,10 +1150,22 @@
<string>_("Advanced video filter controls")</string>
</attribute>
<layout class="QGridLayout" >
<property name="m
argin" >
<property name="leftM
argin" >
<number>9</number>
</property>
<property name="spacing" >
<property name="topMargin" >
<number>9</number>
</property>
<property name="rightMargin" >
<number>9</number>
</property>
<property name="bottomMargin" >
<number>9</number>
</property>
<property name="horizontalSpacing" >
<number>6</number>
</property>
<property name="verticalSpacing" >
<number>6</number>
</property>
<item row="2" column="1" colspan="2" >
...
...
@@ -1005,9 +1215,6 @@
</layout>
</widget>
</widget>
</item>
</layout>
</widget>
<resources/>
<connections/>
</ui>
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