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
066390d3
Commit
066390d3
authored
Mar 05, 2009
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: Split inputBox from convert dialog.
parent
576844b2
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
102 additions
and
26 deletions
+102
-26
modules/gui/qt4/Modules.am
modules/gui/qt4/Modules.am
+3
-0
modules/gui/qt4/components/sout/sout_widgets.cpp
modules/gui/qt4/components/sout/sout_widgets.cpp
+57
-0
modules/gui/qt4/components/sout/sout_widgets.hpp
modules/gui/qt4/components/sout/sout_widgets.hpp
+40
-0
modules/gui/qt4/dialogs/convert.cpp
modules/gui/qt4/dialogs/convert.cpp
+2
-26
No files found.
modules/gui/qt4/Modules.am
View file @
066390d3
...
...
@@ -54,6 +54,7 @@ nodist_SOURCES_qt4 = \
components/playlist/panels.moc.cpp \
components/playlist/selector.moc.cpp \
components/sout/profile_selector.moc.cpp \
components/sout/sout_widgets.moc.cpp \
util/input_slider.moc.cpp \
util/customwidgets.moc.cpp \
resources.cpp \
...
...
@@ -226,6 +227,7 @@ SOURCES_qt4 = qt4.cpp \
components/playlist/playlist.cpp \
components/playlist/selector.cpp \
components/sout/profile_selector.cpp \
components/sout/sout_widgets.cpp \
util/input_slider.cpp \
util/customwidgets.cpp \
util/registry.cpp
...
...
@@ -272,6 +274,7 @@ noinst_HEADERS = \
components/playlist/selector.hpp \
components/playlist/sorting.h \
components/sout/profile_selector.hpp \
components/sout/sout_widgets.hpp \
components/sout/profiles.hpp \
util/input_slider.hpp \
util/customwidgets.hpp \
...
...
modules/gui/qt4/components/sout/sout_widgets.cpp
0 → 100644
View file @
066390d3
/*****************************************************************************
* profile_selector.cpp : A small profile selector and editor
****************************************************************************
* Copyright (C) 2009 the VideoLAN team
* $Id$
*
* Authors: Jean-Baptiste Kempf <jb@videolan.org>
*
* 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
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
#include "components/sout/sout_widgets.hpp"
#include <QGroupBox>
#include <QGridLayout>
#include <QLabel>
#include <QLineEdit>
SoutInputBox
::
SoutInputBox
(
QWidget
*
_parent
)
:
QWidget
(
_parent
)
{
/**
* Source Block
**/
QGroupBox
*
sourceBox
=
new
QGroupBox
(
qtr
(
"Source"
)
);
QGridLayout
*
sourceLayout
=
new
QGridLayout
(
sourceBox
);
QLabel
*
sourceLabel
=
new
QLabel
(
qtr
(
"Source:"
)
);
sourceLayout
->
addWidget
(
sourceLabel
,
0
,
0
);
QLineEdit
*
sourceLine
=
new
QLineEdit
;
sourceLine
->
setReadOnly
(
true
);
sourceLabel
->
setBuddy
(
sourceLine
);
sourceLayout
->
addWidget
(
sourceLine
,
0
,
1
);
QLabel
*
sourceTypeLabel
=
new
QLabel
(
qtr
(
"Type:"
)
);
sourceLayout
->
addWidget
(
sourceTypeLabel
,
1
,
0
);
QLabel
*
sourceValueLabel
=
new
QLabel
;
sourceLayout
->
addWidget
(
sourceValueLabel
,
1
,
1
);
/* Line */
QFrame
*
line
=
new
QFrame
;
line
->
setFrameStyle
(
QFrame
::
HLine
|
QFrame
::
Sunken
);
sourceLayout
->
addWidget
(
line
,
2
,
0
,
1
,
-
1
);
}
modules/gui/qt4/components/sout/sout_widgets.hpp
0 → 100644
View file @
066390d3
/*****************************************************************************
* profile_selector.hpp : A small profile selector and editor
****************************************************************************
* Copyright (C) 2009 the VideoLAN team
* $Id$
*
* Authors: Jean-Baptiste Kempf <jb@videolan.org>
*
* 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
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
#ifndef SOUT_WIDGETS_H
#define SOUT_WIDGETS_H
#include "qt4.hpp"
#include <QWidget>
#include "util/qvlcframe.hpp"
class
SoutInputBox
:
public
QWidget
{
public:
SoutInputBox
(
QWidget
*
);
};
#endif
modules/gui/qt4/dialogs/convert.cpp
View file @
066390d3
...
...
@@ -27,6 +27,7 @@
#include "dialogs/sout.hpp"
#include "dialogs/convert.hpp"
#include "components/sout/sout_widgets.hpp"
#include "util/qt_dirs.hpp"
...
...
@@ -42,32 +43,7 @@ ConvertDialog::ConvertDialog( QWidget *parent, intf_thread_t *_p_intf)
setWindowTitle
(
qtr
(
"Convert"
)
);
QGridLayout
*
mainLayout
=
new
QGridLayout
(
this
);
/**
* Source Block
**/
QGroupBox
*
sourceBox
=
new
QGroupBox
(
qtr
(
"Source"
)
);
QGridLayout
*
sourceLayout
=
new
QGridLayout
(
sourceBox
);
QLabel
*
sourceLabel
=
new
QLabel
(
qtr
(
"Source:"
)
);
sourceLayout
->
addWidget
(
sourceLabel
,
0
,
0
);
QLineEdit
*
sourceLine
=
new
QLineEdit
;
sourceLine
->
setReadOnly
(
true
);
sourceLabel
->
setBuddy
(
sourceLine
);
sourceLayout
->
addWidget
(
sourceLine
,
0
,
1
);
QLabel
*
sourceTypeLabel
=
new
QLabel
(
qtr
(
"Type:"
)
);
sourceLayout
->
addWidget
(
sourceTypeLabel
,
1
,
0
);
QLabel
*
sourceValueLabel
=
new
QLabel
;
sourceLayout
->
addWidget
(
sourceValueLabel
,
1
,
1
);
/* Line */
QFrame
*
line
=
new
QFrame
;
line
->
setFrameStyle
(
QFrame
::
HLine
|
QFrame
::
Sunken
);
sourceLayout
->
addWidget
(
line
,
2
,
0
,
1
,
-
1
);
mainLayout
->
addWidget
(
sourceBox
,
0
,
0
,
1
,
-
1
);
mainLayout
->
addWidget
(
new
SoutInputBox
(
this
),
0
,
0
,
1
,
-
1
);
/**
* Destination
...
...
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