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
dc1c2052
Commit
dc1c2052
authored
Mar 06, 2008
by
Jean-François Massol
Committed by
Jean-Baptiste Kempf
Mar 06, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added import of configuration file support
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
b4740860
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
1 deletion
+19
-1
modules/gui/qt4/dialogs/vlm.cpp
modules/gui/qt4/dialogs/vlm.cpp
+19
-1
No files found.
modules/gui/qt4/dialogs/vlm.cpp
View file @
dc1c2052
...
...
@@ -130,6 +130,9 @@ VLMDialog::VLMDialog( QWidget *parent, intf_thread_t *_p_intf ) : QVLCDialog( pa
new
QSpacerItem
(
10
,
10
,
QSizePolicy
::
Minimum
,
QSizePolicy
::
Expanding
);
vlmItemLayout
->
addItem
(
spacer
);
QPushButton
*
importButton
=
new
QPushButton
(
qtr
(
"Import"
)
);
ui
.
buttonBox
->
addButton
(
importButton
,
QDialogButtonBox
::
ActionRole
);
QPushButton
*
exportButton
=
new
QPushButton
(
qtr
(
"Export"
)
);
ui
.
buttonBox
->
addButton
(
exportButton
,
QDialogButtonBox
::
ActionRole
);
...
...
@@ -149,6 +152,7 @@ VLMDialog::VLMDialog( QWidget *parent, intf_thread_t *_p_intf ) : QVLCDialog( pa
BUTTONACT
(
closeButton
,
close
()
);
BUTTONACT
(
exportButton
,
exportVLMConf
()
);
BUTTONACT
(
importButton
,
importVLMConf
()
);
BUTTONACT
(
ui
.
addButton
,
addVLMItem
()
);
BUTTONACT
(
ui
.
clearButton
,
clearWidgets
()
);
BUTTONACT
(
ui
.
saveButton
,
saveModifications
()
);
...
...
@@ -270,9 +274,23 @@ bool VLMDialog::exportVLMConf()
return
false
;
}
// TODO : import configuration file
bool
VLMDialog
::
importVLMConf
()
{
QString
openVLMConfFileName
=
QFileDialog
::
getOpenFileName
(
this
,
qtr
(
"Choose a VLM configuration file to open..."
),
qfu
(
p_intf
->
p_libvlc
->
psz_homedir
),
qtr
(
"VLM conf (*.vlm) ;; All (*.*)"
)
);
if
(
!
openVLMConfFileName
.
isEmpty
()
)
{
vlm_message_t
*
message
;
QString
command
=
"load
\"
"
+
openVLMConfFileName
+
"
\"
"
;
vlm_ExecuteCommand
(
p_vlm
,
qtu
(
command
)
,
&
message
);
vlm_MessageDelete
(
message
);
return
true
;
}
return
false
;
}
void
VLMDialog
::
clearWidgets
()
...
...
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