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
4b4d1dc6
Commit
4b4d1dc6
authored
Feb 25, 2007
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt4- SImple Prefs: Subtitles and TextTitles.
parent
d3144118
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
93 additions
and
48 deletions
+93
-48
modules/gui/qt4/components/simple_preferences.cpp
modules/gui/qt4/components/simple_preferences.cpp
+21
-2
modules/gui/qt4/dialogs/prefs_dialog.cpp
modules/gui/qt4/dialogs/prefs_dialog.cpp
+2
-18
modules/gui/qt4/dialogs/prefs_dialog.hpp
modules/gui/qt4/dialogs/prefs_dialog.hpp
+3
-0
modules/gui/qt4/ui/sprefs_subtitles.ui
modules/gui/qt4/ui/sprefs_subtitles.ui
+67
-28
No files found.
modules/gui/qt4/components/simple_preferences.cpp
View file @
4b4d1dc6
...
...
@@ -100,12 +100,25 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
case SPrefs ## name: \
{ \
Ui::SPrefs ## name ui; \
ui.setupUi(
this
);
ui.setupUi(
panel
);
#define END_SPREFS_CAT \
break; \
}
QVBoxLayout
*
panel_layout
=
new
QVBoxLayout
();
QString
head
;
QWidget
*
panel
=
new
QWidget
();
// Title Label
QLabel
*
panel_label
=
new
QLabel
;
QFont
labelFont
=
QApplication
::
font
(
static_cast
<
QWidget
*>
(
0
)
);
labelFont
.
setPointSize
(
labelFont
.
pointSize
()
+
4
);
labelFont
.
setBold
(
true
);
panel_label
->
setFont
(
labelFont
);
// Title <hr>
QFrame
*
title_line
=
new
QFrame
;
title_line
->
setFrameShape
(
QFrame
::
HLine
);
title_line
->
setFrameShadow
(
QFrame
::
Sunken
);
switch
(
number
)
{
...
...
@@ -165,6 +178,12 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
START_SPREFS_CAT
(
Hotkeys
);
END_SPREFS_CAT
;
}
panel_layout
->
addWidget
(
panel_label
);
panel_layout
->
addWidget
(
title_line
);
panel_layout
->
addWidget
(
panel
);
this
->
setLayout
(
panel_layout
);
}
void
SPrefsPanel
::
apply
()
...
...
modules/gui/qt4/dialogs/prefs_dialog.cpp
View file @
4b4d1dc6
...
...
@@ -52,7 +52,6 @@ PrefsDialog::PrefsDialog( intf_thread_t *_p_intf ) : QVLCFrame( _p_intf )
main_panel_l
=
new
QHBoxLayout
;
main_panel
->
setLayout
(
main_panel_l
);
// Choice for types
types
=
new
QGroupBox
(
"Show settings"
);
QHBoxLayout
*
types_l
=
new
QHBoxLayout
(
0
);
...
...
@@ -62,20 +61,6 @@ PrefsDialog::PrefsDialog( intf_thread_t *_p_intf ) : QVLCFrame( _p_intf )
types
->
setLayout
(
types_l
);
small
->
setChecked
(
true
);
// Title Label
QLabel
*
panel_label
=
new
QLabel
;
QFont
labelFont
=
QApplication
::
font
(
static_cast
<
QWidget
*>
(
0
)
);
labelFont
.
setPointSize
(
labelFont
.
pointSize
()
+
4
);
labelFont
.
setBold
(
true
);
panel_label
->
setFont
(
labelFont
);
// Title <hr>
QFrame
*
title_line
=
new
QFrame
;
title_line
->
setFrameShape
(
QFrame
::
HLine
);
title_line
->
setFrameShadow
(
QFrame
::
Sunken
);
QScrollArea
*
scrollArea
=
new
QScrollArea
;
advanced_tree
=
NULL
;
simple_tree
=
NULL
;
simple_panel
=
NULL
;
...
...
@@ -84,9 +69,7 @@ PrefsDialog::PrefsDialog( intf_thread_t *_p_intf ) : QVLCFrame( _p_intf )
main_layout
->
addWidget
(
tree_panel
,
0
,
0
,
3
,
1
);
main_layout
->
addWidget
(
types
,
3
,
0
,
1
,
1
);
main_layout
->
addWidget
(
panel_label
,
0
,
1
,
1
,
1
);
main_layout
->
addWidget
(
title_line
,
1
,
1
,
1
,
1
);
main_layout
->
addWidget
(
main_panel
,
2
,
1
,
2
,
1
);
main_layout
->
addWidget
(
main_panel
,
0
,
1
,
4
,
1
);
main_layout
->
setColumnMinimumWidth
(
0
,
200
);
main_layout
->
setColumnStretch
(
0
,
1
);
...
...
@@ -186,6 +169,7 @@ void PrefsDialog::changeSimplePanel( QListWidgetItem *item )
}
main_panel_l
->
addWidget
(
simple_panel
);
simple_panel
->
show
();
// panel_label->setText(qtr("Test"));
}
void
PrefsDialog
::
changePanel
(
QTreeWidgetItem
*
item
)
...
...
modules/gui/qt4/dialogs/prefs_dialog.hpp
View file @
4b4d1dc6
...
...
@@ -41,6 +41,7 @@ class QWidget;
class
QCheckBox
;
class
QListWidget
;
class
QListWidgetItem
;
class
QLabel
;
class
PrefsDialog
:
public
QVLCFrame
{
...
...
@@ -74,6 +75,8 @@ private:
QGridLayout
*
main_layout
;
// QLabel *panel_label;
static
PrefsDialog
*
instance
;
private
slots
:
void
changePanel
(
QTreeWidgetItem
*
);
...
...
modules/gui/qt4/ui/sprefs_subtitles.ui
View file @
4b4d1dc6
<ui version="4.0" >
<author></author>
<comment></comment>
<exportmacro></exportmacro>
<class>SPrefsSubtitles</class>
<widget class="QWidget" name="SPrefsSubtitles" >
<property name="geometry" >
<rect>
<x>0</x>
<y>0</y>
<width>
548
</width>
<height>3
06
</height>
<width>
427
</width>
<height>3
59
</height>
</rect>
</property>
<property name="windowTitle" >
<string>Form</string>
</property>
<layout class="QVBoxLayout" >
<property name="margin" >
<number>9</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<widget class="QGroupBox" name="groupBox_3" >
<property name="title" >
<string>On Scrren Display</string>
</property>
<layout class="QVBoxLayout" >
<property name="margin" >
<number>9</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<widget class="QCheckBox" name="checkBox" >
<property name="text" >
<string>Enable OSD</string>
</property>
<property name="checked" >
<bool>true</bool>
</property>
<property name="tristate" >
<bool>false</bool>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item>
<widget class="QGroupBox" name="groupBox_2" >
<property name="title" >
<string>Subtitles languages</string>
</property>
<layout class="QGridLayout" >
<property name="margin" >
<number>9</number>
...
...
@@ -22,7 +59,30 @@
<property name="spacing" >
<number>6</number>
</property>
<item row="2" column="0" colspan="2" >
<item row="0" column="0" >
<widget class="QLabel" name="label" >
<property name="text" >
<string>Subtitles preferred language</string>
</property>
</widget>
</item>
<item row="1" column="1" >
<widget class="QComboBox" name="encoding" />
</item>
<item row="0" column="1" >
<widget class="QLineEdit" name="preferredLanguage" />
</item>
<item row="1" column="0" >
<widget class="QLabel" name="label_2" >
<property name="text" >
<string>Default Encoding</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item>
<widget class="QGroupBox" name="groupBox" >
<property name="title" >
<string>Display Settings</string>
...
...
@@ -84,29 +144,8 @@
</layout>
</widget>
</item>
<item row="1" column="1" >
<widget class="QComboBox" name="encoding" />
</item>
<item row="1" column="0" >
<widget class="QLabel" name="label_2" >
<property name="text" >
<string>Default Encoding</string>
</property>
</widget>
</item>
<item row="0" column="0" >
<widget class="QLabel" name="label" >
<property name="text" >
<string>Subtitles preferred language</string>
</property>
</widget>
</item>
<item row="0" column="1" >
<widget class="QLineEdit" name="preferredLanguage" />
</item>
</layout>
</widget>
<pixmapfunction></pixmapfunction>
<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