Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
9e11182b
Commit
9e11182b
authored
Aug 26, 2006
by
Clément Stenac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implement basic panel change
Forgot this file
parent
f10eac9f
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
6 deletions
+13
-6
include/vlc_intf_strings.h
include/vlc_intf_strings.h
+3
-0
modules/gui/qt4/components/preferences_widgets.cpp
modules/gui/qt4/components/preferences_widgets.cpp
+0
-1
modules/gui/qt4/components/simple_preferences.cpp
modules/gui/qt4/components/simple_preferences.cpp
+5
-2
modules/gui/qt4/dialogs/prefs_dialog.cpp
modules/gui/qt4/dialogs/prefs_dialog.cpp
+5
-3
No files found.
include/vlc_intf_strings.h
View file @
9e11182b
...
...
@@ -38,5 +38,8 @@
#define I_POP_SORT N_("Sort")
#define I_POP_ADD N_("Add node")
/*************** Preferences *************/
#define I_HIDDEN_ADV N_( "Some options are available but hidden. "\
"Check \"Advanced options\" to see them." )
#endif
modules/gui/qt4/components/preferences_widgets.cpp
View file @
9e11182b
...
...
@@ -116,7 +116,6 @@ ModuleConfigControl::ModuleConfigControl( vlc_object_t *_p_this,
module_config_t
*
_p_item
,
QLabel
*
label
,
QComboBox
*
_combo
,
bool
bycat
)
:
VStringConfigControl
(
_p_this
,
_p_item
)
{
fprintf
(
stderr
,
"%p %p
\n
"
,
_p_item
,
p_item
);
combo
=
_combo
;
finish
(
label
,
bycat
);
}
...
...
modules/gui/qt4/components/simple_preferences.cpp
View file @
9e11182b
...
...
@@ -33,6 +33,7 @@
#include <QFont>
#include "pixmaps/audio.xpm"
#include "pixmaps/video.xpm"
#include "ui/sprefs_trivial.h"
#define ITEM_HEIGHT 25
...
...
@@ -59,6 +60,10 @@ SPrefsCatList::SPrefsCatList( intf_thread_t *_p_intf, QWidget *_parent ) :
addItem
(
"Very trivial"
);
item
(
0
)
->
setIcon
(
QIcon
(
QPixmap
(
audio_xpm
)
)
);
item
(
0
)
->
setData
(
Qt
::
UserRole
,
qVariantFromValue
(
0
)
);
addItem
(
"Video"
);
item
(
1
)
->
setIcon
(
QIcon
(
QPixmap
(
video_xpm
)
)
);
item
(
1
)
->
setData
(
Qt
::
UserRole
,
qVariantFromValue
(
1
)
);
}
void
SPrefsCatList
::
ApplyAll
()
...
...
@@ -87,10 +92,8 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
{
Ui
::
SPrefsTrivial
ui
;
ui
.
setupUi
(
this
);
msg_Err
(
p_intf
,
"Intf there"
);
module_config_t
*
p_config
=
config_FindConfig
(
VLC_OBJECT
(
p_intf
),
"memcpy"
);
msg_Err
(
p_intf
,
"%p"
,
p_config
);
ConfigControl
*
control
=
new
ModuleConfigControl
(
VLC_OBJECT
(
p_intf
),
p_config
,
ui
.
memcpyLabel
,
ui
.
memcpyCombo
,
false
);
controls
.
append
(
control
);
...
...
modules/gui/qt4/dialogs/prefs_dialog.cpp
View file @
9e11182b
...
...
@@ -74,7 +74,7 @@ PrefsDialog::PrefsDialog( intf_thread_t *_p_intf ) : QVLCFrame( _p_intf )
main_layout
->
setColumnStretch
(
0
,
1
);
main_layout
->
setColumnStretch
(
1
,
3
);
set
A
ll
();
set
Sma
ll
();
connect
(
adv_chk
,
SIGNAL
(
toggled
(
bool
)
),
this
,
SLOT
(
setAdvanced
(
bool
)
)
);
...
...
@@ -117,6 +117,7 @@ void PrefsDialog::setAll()
advanced_panel
=
new
PrefsPanel
(
main_panel
);
main_panel_l
->
addWidget
(
advanced_panel
);
advanced_panel
->
show
();
adv_chk
->
show
();
}
void
PrefsDialog
::
setSmall
()
...
...
@@ -132,7 +133,6 @@ void PrefsDialog::setSmall()
connect
(
simple_tree
,
SIGNAL
(
currentItemChanged
(
QListWidgetItem
*
,
QListWidgetItem
*
)
),
this
,
SLOT
(
changeSimplePanel
(
QListWidgetItem
*
)
)
);
}
tree_panel_l
->
addWidget
(
simple_tree
);
simple_tree
->
show
();
...
...
@@ -146,6 +146,7 @@ void PrefsDialog::setSmall()
simple_panel
=
new
SPrefsPanel
(
p_intf
,
main_panel
,
0
);
main_panel_l
->
addWidget
(
simple_panel
);
simple_panel
->
show
();
adv_chk
->
hide
();
}
PrefsDialog
::~
PrefsDialog
()
...
...
@@ -154,6 +155,7 @@ PrefsDialog::~PrefsDialog()
void
PrefsDialog
::
changeSimplePanel
(
QListWidgetItem
*
item
)
{
int
number
=
item
->
data
(
Qt
::
UserRole
).
toInt
();
if
(
simple_panel
)
{
main_panel_l
->
removeWidget
(
simple_panel
);
...
...
@@ -161,7 +163,7 @@ void PrefsDialog::changeSimplePanel( QListWidgetItem *item )
/* Don't do this once it works, you would loose all changes */
delete
simple_panel
;
}
simple_panel
=
new
SPrefsPanel
(
p_intf
,
main_panel
,
0
);
simple_panel
=
new
SPrefsPanel
(
p_intf
,
main_panel
,
number
);
main_panel_l
->
addWidget
(
simple_panel
);
simple_panel
->
show
();
}
...
...
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