Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
d5731832
Commit
d5731832
authored
Jan 28, 2008
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt4 - VLM Export in the interface. Patch by Jean-François Massol, adapted by me.
parent
7f948daa
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
0 deletions
+32
-0
modules/gui/qt4/dialogs/vlm.cpp
modules/gui/qt4/dialogs/vlm.cpp
+30
-0
modules/gui/qt4/dialogs/vlm.hpp
modules/gui/qt4/dialogs/vlm.hpp
+2
-0
No files found.
modules/gui/qt4/dialogs/vlm.cpp
View file @
d5731832
...
...
@@ -51,6 +51,7 @@
#include <QSpinBox>
#include <QHeaderView>
#include <QScrollArea>
#include <QFileDialog>
static
const
char
*
psz_type
[]
=
{
"Broadcast"
,
"Schedule"
,
"VOD"
};
...
...
@@ -129,9 +130,13 @@ VLMDialog::VLMDialog( QWidget *parent, intf_thread_t *_p_intf ) : QVLCDialog( pa
new
QSpacerItem
(
10
,
10
,
QSizePolicy
::
Minimum
,
QSizePolicy
::
Expanding
);
vlmItemLayout
->
addItem
(
spacer
);
QPushButton
*
exportButton
=
new
QPushButton
(
qtr
(
"Export"
)
);
ui
.
buttonBox
->
addButton
(
exportButton
,
QDialogButtonBox
::
ActionRole
);
QPushButton
*
closeButton
=
new
QPushButton
(
qtr
(
"Close"
)
);
ui
.
buttonBox
->
addButton
(
closeButton
,
QDialogButtonBox
::
AcceptRole
);
showScheduleWidget
(
QVLM_Broadcast
);
/* Connect the comboBox to show the right Widgets */
...
...
@@ -143,6 +148,7 @@ VLMDialog::VLMDialog( QWidget *parent, intf_thread_t *_p_intf ) : QVLCDialog( pa
this
,
selectVLMItem
(
int
)
);
BUTTONACT
(
closeButton
,
close
()
);
BUTTONACT
(
exportButton
,
exportVLMConf
()
);
BUTTONACT
(
ui
.
addButton
,
addVLMItem
()
);
BUTTONACT
(
ui
.
clearButton
,
clearWidgets
()
);
BUTTONACT
(
ui
.
saveButton
,
saveModifications
()
);
...
...
@@ -245,6 +251,30 @@ void VLMDialog::addVLMItem()
clearWidgets
();
}
// FIXME : VOD are not exported to the file
bool
VLMDialog
::
exportVLMConf
()
{
QString
saveVLMConfFileName
=
QFileDialog
::
getSaveFileName
(
this
,
qtr
(
"Choose a filename to save the VLM configuration..."
),
qfu
(
p_intf
->
p_libvlc
->
psz_homedir
),
qtr
(
"VLM conf (*.vlm) ;; All (*.*)"
)
);
if
(
!
saveVLMConfFileName
.
isEmpty
()
)
{
vlm_message_t
*
message
;
QString
command
=
"save
\"
"
+
saveVLMConfFileName
+
"
\"
"
;
vlm_ExecuteCommand
(
p_vlm
,
qtu
(
command
)
,
&
message
);
vlm_MessageDelete
(
message
);
return
true
;
}
return
false
;
}
// TODO : import configuration file
bool
VLMDialog
::
importVLMConf
()
{
}
void
VLMDialog
::
clearWidgets
()
{
ui
.
nameLedit
->
clear
();
...
...
modules/gui/qt4/dialogs/vlm.hpp
View file @
d5731832
...
...
@@ -109,6 +109,8 @@ private slots:
void
selectVLMItem
(
int
);
void
selectInput
();
void
selectOutput
();
bool
exportVLMConf
();
bool
importVLMConf
();
};
class
VLMWrapper
...
...
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