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
0d41ec4c
Commit
0d41ec4c
authored
Sep 17, 2007
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt4 - VLM dialog improvements by JF Massol.
parent
44cc2273
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
180 additions
and
422 deletions
+180
-422
modules/gui/qt4/dialogs/vlm.cpp
modules/gui/qt4/dialogs/vlm.cpp
+141
-2
modules/gui/qt4/dialogs/vlm.hpp
modules/gui/qt4/dialogs/vlm.hpp
+34
-0
modules/gui/qt4/dialogs_provider.cpp
modules/gui/qt4/dialogs_provider.cpp
+1
-0
modules/gui/qt4/ui/vlm.ui
modules/gui/qt4/ui/vlm.ui
+4
-420
No files found.
modules/gui/qt4/dialogs/vlm.cpp
View file @
0d41ec4c
...
@@ -30,6 +30,18 @@
...
@@ -30,6 +30,18 @@
#include <iostream>
#include <iostream>
#include <QString>
#include <QString>
#include <QFileDialog>
#include <QFileDialog>
#include <QComboBox>
#include <QVBoxLayout>
#include <QStackedWidget>
#include <QLabel>
#include <QWidget>
#include <QGridLayout>
#include <QLineEdit>
#include <QCheckBox>
#include <QToolButton>
#include <QGroupBox>
#include <QPushButton>
#include <QHBoxLayout>
VLMDialog
*
VLMDialog
::
instance
=
NULL
;
VLMDialog
*
VLMDialog
::
instance
=
NULL
;
...
@@ -38,13 +50,140 @@ VLMDialog::VLMDialog( intf_thread_t *_p_intf) : QVLCFrame( _p_intf )
...
@@ -38,13 +50,140 @@ VLMDialog::VLMDialog( intf_thread_t *_p_intf) : QVLCFrame( _p_intf )
{
{
setWindowTitle
(
qtr
(
"VLM front-end"
)
);
setWindowTitle
(
qtr
(
"VLM front-end"
)
);
/
* UI stuff */
/
/ UI stuff
ui
.
setupUi
(
this
);
ui
.
setupUi
(
this
);
mediatype
=
new
QComboBox
(
ui
.
groupBox
);
layout
=
new
QVBoxLayout
(
ui
.
groupBox
);
layout
->
addWidget
(
mediatype
);
#define ADDMEDIATYPES(type) mediatype->addItem(type);
ADDMEDIATYPES
(
"Broadcast"
);
ADDMEDIATYPES
(
"Video On Demand (VOD)"
);
ADDMEDIATYPES
(
"Schedule"
);
makeBcastPage
();
makeVODPage
();
makeSchedulePage
();
slayout
=
new
QStackedWidget
(
ui
.
groupBox
);
slayout
->
addWidget
(
pBcast
);
slayout
->
addWidget
(
pVod
);
slayout
->
addWidget
(
pSchedule
);
layout
->
addWidget
(
slayout
);
connect
(
mediatype
,
SIGNAL
(
currentIndexChanged
(
int
)),
slayout
,
SLOT
(
setCurrentIndex
(
int
)));
}
}
VLMDialog
::~
VLMDialog
(){}
VLMDialog
::~
VLMDialog
(){}
void
VLMDialog
::
close
(){
void
VLMDialog
::
close
()
{
close
();
close
();
}
}
void
VLMDialog
::
makeBcastPage
()
{
pBcast
=
new
QWidget
(
ui
.
groupBox
);
bcastlayout
=
new
QGridLayout
(
pBcast
);
bcastname
=
new
QLabel
(
tr
(
"Name :"
),
pBcast
);
bcastnameledit
=
new
QLineEdit
(
pBcast
);
bcastenable
=
new
QCheckBox
(
tr
(
"Enable"
),
pBcast
);
bcastinput
=
new
QLabel
(
tr
(
"Input :"
),
pBcast
);
bcastinputledit
=
new
QLineEdit
(
pBcast
);
bcastinputtbutton
=
new
QToolButton
(
pBcast
);
bcastoutput
=
new
QLabel
(
tr
(
"Output :"
),
pBcast
);
bcastoutputledit
=
new
QLineEdit
(
pBcast
);
bcastoutputtbutton
=
new
QToolButton
(
pBcast
);
bcastcontrol
=
new
QGroupBox
(
tr
(
"Controls"
),
pBcast
);
bcastgbox
=
new
QHBoxLayout
(
bcastcontrol
);
bcastplay
=
new
QPushButton
(
tr
(
"Play"
),
bcastcontrol
);
bcastpause
=
new
QPushButton
(
tr
(
"Pause"
),
bcastcontrol
);
bcaststop
=
new
QPushButton
(
tr
(
"Stop"
),
bcastcontrol
);
bcastadd
=
new
QPushButton
(
tr
(
"Add"
),
pBcast
);
bcastremove
=
new
QPushButton
(
tr
(
"Remove"
),
pBcast
);
// Adding all widgets in the QGridLayout
bcastgbox
->
addWidget
(
bcastplay
);
bcastgbox
->
addWidget
(
bcastpause
);
bcastgbox
->
addWidget
(
bcaststop
);
bcastlayout
->
addWidget
(
bcastname
,
0
,
0
);
bcastlayout
->
addWidget
(
bcastnameledit
,
0
,
1
);
bcastlayout
->
addWidget
(
bcastenable
,
0
,
2
);
bcastlayout
->
addWidget
(
bcastinput
,
1
,
0
);
bcastlayout
->
addWidget
(
bcastinputledit
,
1
,
1
);
bcastlayout
->
addWidget
(
bcastinputtbutton
,
1
,
2
);
bcastlayout
->
addWidget
(
bcastoutput
,
2
,
0
);
bcastlayout
->
addWidget
(
bcastoutputledit
,
2
,
1
);
bcastlayout
->
addWidget
(
bcastoutputtbutton
,
2
,
2
);
bcastlayout
->
addWidget
(
bcastcontrol
,
3
,
0
,
1
,
3
);
bcastlayout
->
addWidget
(
bcastadd
,
4
,
1
);
bcastlayout
->
addWidget
(
bcastremove
,
4
,
2
);
}
void
VLMDialog
::
makeVODPage
()
{
pVod
=
new
QWidget
(
ui
.
groupBox
);
vodlayout
=
new
QGridLayout
(
pVod
);
vodname
=
new
QLabel
(
tr
(
"Name :"
),
pVod
);
vodnameledit
=
new
QLineEdit
(
pVod
);
vodenable
=
new
QCheckBox
(
tr
(
"Enable"
),
pVod
);
vodinput
=
new
QLabel
(
tr
(
"Input :"
),
pVod
);
vodinputledit
=
new
QLineEdit
(
pVod
);
vodinputtbutton
=
new
QToolButton
(
pVod
);
vodoutput
=
new
QLabel
(
tr
(
"Output :"
),
pVod
);
vodoutputledit
=
new
QLineEdit
(
pVod
);
vodoutputtbutton
=
new
QToolButton
(
pVod
);
vodadd
=
new
QPushButton
(
tr
(
"Add"
),
pVod
);
vodremove
=
new
QPushButton
(
tr
(
"Remove"
),
pVod
);
// Adding all widgets in the QGridLayout
vodlayout
->
addWidget
(
vodname
,
0
,
0
);
vodlayout
->
addWidget
(
vodnameledit
,
0
,
1
);
vodlayout
->
addWidget
(
vodenable
,
0
,
2
);
vodlayout
->
addWidget
(
vodinput
,
1
,
0
);
vodlayout
->
addWidget
(
vodinputledit
,
1
,
1
);
vodlayout
->
addWidget
(
vodinputtbutton
,
1
,
2
);
vodlayout
->
addWidget
(
vodoutput
,
2
,
0
);
vodlayout
->
addWidget
(
vodoutputledit
,
2
,
1
);
vodlayout
->
addWidget
(
vodoutputtbutton
,
2
,
2
);
vodlayout
->
addWidget
(
vodadd
,
3
,
1
);
vodlayout
->
addWidget
(
vodremove
,
3
,
2
);
}
void
VLMDialog
::
makeSchedulePage
()
{
pSchedule
=
new
QWidget
(
ui
.
groupBox
);
schelayout
=
new
QGridLayout
(
pSchedule
);
schename
=
new
QLabel
(
tr
(
"Name :"
),
pSchedule
);
schenameledit
=
new
QLineEdit
(
pSchedule
);
scheenable
=
new
QCheckBox
(
tr
(
"Enable"
),
pSchedule
);
scheinput
=
new
QLabel
(
tr
(
"Input :"
),
pSchedule
);
scheinputledit
=
new
QLineEdit
(
pSchedule
);
scheinputtbutton
=
new
QToolButton
(
pSchedule
);
scheoutput
=
new
QLabel
(
tr
(
"Output :"
),
pSchedule
);
scheoutputledit
=
new
QLineEdit
(
pSchedule
);
scheoutputtbutton
=
new
QToolButton
(
pSchedule
);
schecontrol
=
new
QGroupBox
(
tr
(
"Time Control"
),
pSchedule
);
scheadd
=
new
QPushButton
(
tr
(
"Add"
),
pSchedule
);
scheremove
=
new
QPushButton
(
tr
(
"Remove"
),
pSchedule
);
//scheadd->setMaximumWidth(30);
// Adding all widgets in the QGridLayout
schelayout
->
addWidget
(
schename
,
0
,
0
);
schelayout
->
addWidget
(
schenameledit
,
0
,
1
);
schelayout
->
addWidget
(
scheenable
,
0
,
2
);
schelayout
->
addWidget
(
scheinput
,
1
,
0
);
schelayout
->
addWidget
(
scheinputledit
,
1
,
1
);
schelayout
->
addWidget
(
scheinputtbutton
,
1
,
2
);
schelayout
->
addWidget
(
scheoutput
,
2
,
0
);
schelayout
->
addWidget
(
scheoutputledit
,
2
,
1
);
schelayout
->
addWidget
(
scheoutputtbutton
,
2
,
2
);
schelayout
->
addWidget
(
schecontrol
,
3
,
0
,
1
,
3
);
schelayout
->
addWidget
(
scheadd
,
4
,
1
);
schelayout
->
addWidget
(
scheremove
,
4
,
2
);
}
modules/gui/qt4/dialogs/vlm.hpp
View file @
0d41ec4c
...
@@ -5,6 +5,7 @@
...
@@ -5,6 +5,7 @@
* $Id: vlm.hpp 21875 2007-09-08 16:01:33Z jb $
* $Id: vlm.hpp 21875 2007-09-08 16:01:33Z jb $
*
*
* Authors: Jean-François Massol <jf.massol@gmail.com>
* Authors: Jean-François Massol <jf.massol@gmail.com>
* Jean-Baptiste Kempf <jb@videolan.org>
*
*
* This program is free software; you can redistribute it and/or modify
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* it under the terms of the GNU General Public License as published by
...
@@ -29,6 +30,18 @@
...
@@ -29,6 +30,18 @@
#include "ui/vlm.h"
#include "ui/vlm.h"
#include "util/qvlcframe.hpp"
#include "util/qvlcframe.hpp"
class
QComboBox
;
class
QVBoxLayout
;
class
QStackedWidget
;
class
QLabel
;
class
QWidget
;
class
QGridLayout
;
class
QLineEdit
;
class
QCheckBox
;
class
QToolButton
;
class
QGroupBox
;
class
QPushButton
;
class
QHBoxLayout
;
class
VLMDialog
:
public
QVLCFrame
class
VLMDialog
:
public
QVLCFrame
{
{
...
@@ -47,6 +60,27 @@ private:
...
@@ -47,6 +60,27 @@ private:
static
VLMDialog
*
instance
;
static
VLMDialog
*
instance
;
Ui
::
Vlm
ui
;
Ui
::
Vlm
ui
;
void
makeBcastPage
();
void
makeVODPage
();
void
makeSchedulePage
();
QComboBox
*
mediatype
;
QVBoxLayout
*
layout
;
QHBoxLayout
*
bcastgbox
;
QStackedWidget
*
slayout
;
QWidget
*
pBcast
,
*
pVod
,
*
pSchedule
;
QGridLayout
*
bcastlayout
,
*
vodlayout
,
*
schelayout
;
QLabel
*
bcastname
,
*
vodname
,
*
schename
,
*
bcastinput
,
*
vodinput
,
*
scheinput
;
QLabel
*
bcastoutput
,
*
vodoutput
,
*
scheoutput
;
QCheckBox
*
bcastenable
,
*
vodenable
,
*
scheenable
;
QLineEdit
*
bcastnameledit
,
*
vodnameledit
,
*
schenameledit
,
*
bcastinputledit
,
*
vodinputledit
,
*
scheinputledit
;
QLineEdit
*
bcastoutputledit
,
*
vodoutputledit
,
*
scheoutputledit
;
QToolButton
*
bcastinputtbutton
,
*
vodinputtbutton
,
*
scheinputtbutton
;
QToolButton
*
bcastoutputtbutton
,
*
vodoutputtbutton
,
*
scheoutputtbutton
;
QGroupBox
*
bcastcontrol
,
*
schecontrol
;
QPushButton
*
bcastplay
,
*
bcastpause
,
*
bcaststop
;
QPushButton
*
bcastadd
,
*
vodadd
,
*
scheadd
,
*
bcastremove
,
*
vodremove
,
*
scheremove
;
private
slots
:
private
slots
:
void
close
();
void
close
();
};
};
...
...
modules/gui/qt4/dialogs_provider.cpp
View file @
0d41ec4c
...
@@ -45,6 +45,7 @@
...
@@ -45,6 +45,7 @@
#include "dialogs/help.hpp"
#include "dialogs/help.hpp"
#include "dialogs/gototime.hpp"
#include "dialogs/gototime.hpp"
#include "dialogs/podcast_configuration.hpp"
#include "dialogs/podcast_configuration.hpp"
#include "dialogs/vlm.hpp"
DialogsProvider
*
DialogsProvider
::
instance
=
NULL
;
DialogsProvider
*
DialogsProvider
::
instance
=
NULL
;
...
...
modules/gui/qt4/ui/vlm.ui
View file @
0d41ec4c
This diff is collapsed.
Click to expand it.
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