Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
6ed021d3
Commit
6ed021d3
authored
Dec 14, 2007
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt4 - Fix VLM-object not being checked. Add a type to be sure of the edition to do.
parent
7a35ff7e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
12 deletions
+23
-12
modules/gui/qt4/dialogs/vlm.cpp
modules/gui/qt4/dialogs/vlm.cpp
+19
-10
modules/gui/qt4/dialogs/vlm.hpp
modules/gui/qt4/dialogs/vlm.hpp
+4
-2
No files found.
modules/gui/qt4/dialogs/vlm.cpp
View file @
6ed021d3
...
...
@@ -170,7 +170,7 @@ void VLMDialog::addVLMItem()
QString
typeShortName
;
QString
inputText
=
ui
.
inputLedit
->
text
();
QString
outputText
=
ui
.
outputLedit
->
text
();
bool
b_checked
;
bool
b_checked
=
ui
.
enableCheck
->
isChecked
()
;
VLMAWidget
*
vlmAwidget
;
...
...
@@ -178,15 +178,18 @@ void VLMDialog::addVLMItem()
{
case
QVLM_Broadcast
:
typeShortName
=
"Bcast"
;
vlmAwidget
=
new
VLMBroadcast
(
name
,
inputText
,
outputText
,
b_checked
,
this
);
vlmAwidget
=
new
VLMBroadcast
(
name
,
inputText
,
outputText
,
b_checked
,
this
);
break
;
case
QVLM_VOD
:
typeShortName
=
"VOD"
;
vlmAwidget
=
new
VLMVod
(
name
,
inputText
,
outputText
,
b_checked
,
this
);
vlmAwidget
=
new
VLMVod
(
name
,
inputText
,
outputText
,
b_checked
,
this
);
break
;
case
QVLM_Schedule
:
typeShortName
=
"Sched"
;
vlmAwidget
=
new
VLMSchedule
(
name
,
inputText
,
outputText
,
b_checked
,
this
);
vlmAwidget
=
new
VLMSchedule
(
name
,
inputText
,
outputText
,
b_checked
,
this
);
break
;
default:
msg_Warn
(
p_intf
,
"Something bad happened"
);
...
...
@@ -214,6 +217,8 @@ void VLMDialog::clearWidgets()
date
->
setDate
(
QDate
::
currentDate
()
);
ui
.
enableCheck
->
setChecked
(
true
);
ui
.
nameLedit
->
setReadOnly
(
false
);
ui
.
saveButton
->
hide
();
ui
.
addButton
->
show
();
}
void
VLMDialog
::
saveModifications
()
...
...
@@ -226,8 +231,6 @@ void VLMDialog::saveModifications()
vlmObj
->
setChecked
(
ui
.
enableCheck
->
isChecked
()
);
vlmObj
->
b_enabled
=
ui
.
enableCheck
->
isChecked
();
}
ui
.
saveButton
->
hide
();
ui
.
addButton
->
show
();
clearWidgets
();
}
...
...
@@ -250,6 +253,7 @@ void VLMDialog::startModifyVLMItem( VLMAWidget *vlmObj )
currentIndex
=
vlmItems
.
indexOf
(
vlmObj
);
if
(
currentIndex
<
0
)
return
;
msg_Dbg
(
p_intf
,
"Type: %i"
,
vlmObj
->
type
);
ui
.
vlmListItem
->
setCurrentRow
(
currentIndex
);
ui
.
nameLedit
->
setText
(
vlmObj
->
name
);
ui
.
inputLedit
->
setText
(
vlmObj
->
input
);
...
...
@@ -270,7 +274,8 @@ VLMAWidget::VLMAWidget( QString _name,
QString
_input
,
QString
_output
,
bool
_enabled
,
VLMDialog
*
_parent
)
VLMDialog
*
_parent
,
int
_type
)
:
QGroupBox
(
_name
,
_parent
)
{
parent
=
_parent
;
...
...
@@ -278,6 +283,9 @@ VLMAWidget::VLMAWidget( QString _name,
input
=
_input
;
output
=
_output
;
b_enabled
=
_enabled
;
type
=
_type
;
setCheckable
(
true
);
setChecked
(
b_enabled
);
objLayout
=
new
QGridLayout
(
this
);
...
...
@@ -315,9 +323,10 @@ void VLMAWidget::del()
VLMBroadcast
::
VLMBroadcast
(
QString
_name
,
QString
_input
,
QString
_output
,
bool
_enabled
,
VLMDialog
*
_parent
)
:
VLMAWidget
(
_name
,
_input
,
_output
,
_enabled
,
_parent
)
_enabled
,
_parent
,
QVLM_Broadcast
)
{
nameLabel
->
setText
(
"Broadcast: "
+
name
);
type
=
QVLM_Broadcast
;
QToolButton
*
playButton
=
new
QToolButton
;
playButton
->
setIcon
(
QIcon
(
QPixmap
(
":/pixmaps/play_16px.png"
)
)
);
objLayout
->
addWidget
(
playButton
,
1
,
0
);
...
...
@@ -359,14 +368,14 @@ void VLMAWidget::enterEvent( QEvent *event )
VLMSchedule
::
VLMSchedule
(
QString
name
,
QString
input
,
QString
output
,
bool
enabled
,
VLMDialog
*
parent
)
:
VLMAWidget
(
name
,
input
,
output
,
enabled
,
parent
)
output
,
enabled
,
parent
,
QVLM_Schedule
)
{
nameLabel
->
setText
(
"Schedule: "
+
name
);
}
VLMVod
::
VLMVod
(
QString
name
,
QString
input
,
QString
output
,
bool
enabled
,
VLMDialog
*
parent
)
:
VLMAWidget
(
name
,
input
,
output
,
enabled
,
parent
)
output
,
enabled
,
parent
,
QVLM_VOD
)
{
nameLabel
->
setText
(
"VOD:"
+
name
);
}
modules/gui/qt4/dialogs/vlm.hpp
View file @
6ed021d3
...
...
@@ -94,13 +94,14 @@ class VLMAWidget : public QGroupBox
Q_OBJECT
friend
class
VLMDialog
;
public:
VLMAWidget
(
QString
name
,
QString
input
,
QString
output
,
bool
_enable
,
VLMDialog
*
parent
);
VLMAWidget
(
QString
name
,
QString
input
,
QString
output
,
bool
_enable
,
VLMDialog
*
parent
,
int
_type
=
QVLM_Broadcast
);
protected:
QLabel
*
nameLabel
;
QString
name
;
QString
input
;
QString
output
;
bool
b_enabled
;
int
type
;
VLMDialog
*
parent
;
virtual
void
enterEvent
(
QEvent
*
);
QGridLayout
*
objLayout
;
...
...
@@ -116,7 +117,6 @@ public:
VLMBroadcast
(
QString
name
,
QString
input
,
QString
output
,
bool
_enable
,
VLMDialog
*
parent
);
private:
bool
b_looped
;
private
slots
:
void
stop
();
void
togglePlayPause
();
...
...
@@ -135,6 +135,8 @@ class VLMSchedule : public VLMAWidget
{
public:
VLMSchedule
(
QString
name
,
QString
input
,
QString
output
,
bool
_enable
,
VLMDialog
*
parent
);
private:
};
#endif
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