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
2814beeb
Commit
2814beeb
authored
Feb 25, 2007
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt4: Preferences, Simple_Preferences. A bit more, but a lot of things are missing...
parent
e60de0fe
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
36 additions
and
29 deletions
+36
-29
modules/gui/qt4/components/simple_preferences.cpp
modules/gui/qt4/components/simple_preferences.cpp
+2
-1
modules/gui/qt4/dialogs/prefs_dialog.cpp
modules/gui/qt4/dialogs/prefs_dialog.cpp
+33
-10
modules/gui/qt4/ui/sprefs_audio.ui
modules/gui/qt4/ui/sprefs_audio.ui
+1
-18
No files found.
modules/gui/qt4/components/simple_preferences.cpp
View file @
2814beeb
...
...
@@ -34,6 +34,7 @@
#include <vlc_config_cat.h>
#include <assert.h>
//TODO Rename all advanced to hotkeys since they will be no advanced section
#include "pixmaps/advanced_50x50.xpm"
#include "pixmaps/audio_50x50.xpm"
#include "pixmaps/input_and_codecs_50x50.xpm"
...
...
@@ -72,7 +73,7 @@ SPrefsCatList::SPrefsCatList( intf_thread_t *_p_intf, QWidget *_parent ) :
// ADD_CATEGORY( SPrefsPlaylist, qtr("Playlist"), playlist_50x50_xpm );
ADD_CATEGORY
(
SPrefsInterface
,
qtr
(
"Interface"
),
interface_50x50_xpm
);
ADD_CATEGORY
(
SPrefsSubtitles
,
qtr
(
"Subtitles"
),
subtitles_50x50_xpm
);
ADD_CATEGORY
(
SPrefsAdvanced
,
qtr
(
"
Advanced
"
),
advanced_50x50_xpm
);
ADD_CATEGORY
(
SPrefsAdvanced
,
qtr
(
"
Hotkeys
"
),
advanced_50x50_xpm
);
setCurrentRow
(
SPrefsInterface
);
}
...
...
modules/gui/qt4/dialogs/prefs_dialog.cpp
View file @
2814beeb
...
...
@@ -34,7 +34,8 @@
#include <QVBoxLayout>
#include <QPushButton>
#include <QCheckBox>
#include <QScrollArea>
#include <QLabel>
PrefsDialog
*
PrefsDialog
::
instance
=
NULL
;
PrefsDialog
::
PrefsDialog
(
intf_thread_t
*
_p_intf
)
:
QVLCFrame
(
_p_intf
)
...
...
@@ -42,6 +43,7 @@ PrefsDialog::PrefsDialog( intf_thread_t *_p_intf ) : QVLCFrame( _p_intf )
QGridLayout
*
main_layout
=
new
QGridLayout
(
this
);
setWindowTitle
(
qtr
(
"Preferences"
)
);
resize
(
800
,
450
);
setMaximumHeight
(
450
);
tree_panel
=
new
QWidget
(
0
);
tree_panel_l
=
new
QHBoxLayout
;
...
...
@@ -50,28 +52,48 @@ 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
*
tl
=
new
QHBoxLayout
(
0
);
t
l
->
setSpacing
(
3
);
t
l
->
setMargin
(
3
);
small
=
new
QRadioButton
(
"Basic"
,
types
);
tl
->
addWidget
(
small
);
all
=
new
QRadioButton
(
"All"
,
types
);
tl
->
addWidget
(
all
);
types
->
setLayout
(
tl
);
QHBoxLayout
*
t
ypes_
l
=
new
QHBoxLayout
(
0
);
t
ypes_l
->
setSpacing
(
3
);
types_
l
->
setMargin
(
3
);
small
=
new
QRadioButton
(
"Basic"
,
types
);
t
ypes_
l
->
addWidget
(
small
);
all
=
new
QRadioButton
(
"All"
,
types
);
t
ypes_
l
->
addWidget
(
all
);
types
->
setLayout
(
t
ypes_
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
;
advanced_panel
=
NULL
;
main_layout
->
addWidget
(
types
,
0
,
0
,
1
,
1
);
main_layout
->
addWidget
(
tree_panel
,
1
,
0
,
1
,
1
);
main_layout
->
addWidget
(
main_panel
,
0
,
1
,
2
,
1
);
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
->
setColumnMinimumWidth
(
0
,
200
);
main_layout
->
setColumnStretch
(
0
,
1
);
main_layout
->
setColumnStretch
(
1
,
3
);
main_layout
->
setRowStretch
(
2
,
4
);
setSmall
();
QPushButton
*
save
,
*
cancel
;
...
...
@@ -79,9 +101,10 @@ PrefsDialog::PrefsDialog( intf_thread_t *_p_intf ) : QVLCFrame( _p_intf )
&
save
,
_
(
"Save"
),
&
cancel
,
_
(
"Cancel"
),
NULL
,
NULL
);
main_layout
->
addLayout
(
buttonsLayout
,
2
,
0
,
1
,
3
);
main_layout
->
addLayout
(
buttonsLayout
,
4
,
0
,
1
,
3
);
setLayout
(
main_layout
);
BUTTONACT
(
save
,
save
()
);
BUTTONACT
(
cancel
,
cancel
()
);
BUTTONACT
(
small
,
setSmall
()
);
...
...
modules/gui/qt4/ui/sprefs_audio.ui
View file @
2814beeb
...
...
@@ -7,7 +7,7 @@
<x>0</x>
<y>0</y>
<width>418</width>
<height>5
97
</height>
<height>5
33
</height>
</rect>
</property>
<property name="windowTitle" >
...
...
@@ -30,22 +30,6 @@
</property>
</widget>
</item>
<item>
<spacer>
<property name="orientation" >
<enum>Qt::Vertical</enum>
</property>
<property name="sizeType" >
<enum>QSizePolicy::Fixed</enum>
</property>
<property name="sizeHint" >
<size>
<width>20</width>
<height>10</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QGroupBox" name="groupBox_3" >
<property name="title" >
...
...
@@ -282,7 +266,6 @@ p, li { white-space: pre-wrap; }
</item>
</layout>
</widget>
<includes/>
<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