Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
VLMC
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
luyikei
VLMC
Commits
d156a13c
Commit
d156a13c
authored
Aug 13, 2009
by
Hugo Beauzee-Luyssen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Renamed MediaProperty class/ui to ClipProperty
parent
68a59bd1
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
50 additions
and
28 deletions
+50
-28
src/gui/ClipProperty.cpp
src/gui/ClipProperty.cpp
+31
-9
src/gui/ClipProperty.h
src/gui/ClipProperty.h
+9
-9
src/gui/MainWindow.cpp
src/gui/MainWindow.cpp
+2
-2
src/gui/ui/ClipProperty.ui
src/gui/ui/ClipProperty.ui
+4
-4
vlmc.pro
vlmc.pro
+4
-4
No files found.
src/gui/
Media
Property.cpp
→
src/gui/
Clip
Property.cpp
View file @
d156a13c
/*****************************************************************************
* ClipProperty.cpp: Handle the clip properties and meta tags edition
*****************************************************************************
* Copyright (C) 2008-2009 the VLMC team
*
* Authors: Hugo Beauzee-Luyssen <hugo@vlmc.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 <QtDebug>
#include <QTime>
#include <QPushButton>
#include <QStringListModel>
#include <QInputDialog>
#include "
Media
Property.h"
#include "ui_
Media
Property.h"
#include "
Clip
Property.h"
#include "ui_
Clip
Property.h"
MediaProperty
::
Media
Property
(
Clip
*
clip
,
QWidget
*
parent
)
:
ClipProperty
::
Clip
Property
(
Clip
*
clip
,
QWidget
*
parent
)
:
QDialog
(
parent
),
ui
(
new
Ui
::
Media
Property
),
ui
(
new
Ui
::
Clip
Property
),
m_clip
(
clip
)
{
QTime
duration
;
...
...
@@ -37,12 +59,12 @@ MediaProperty::MediaProperty( Clip* clip, QWidget *parent ) :
connect
(
ui
->
deleteTagsButton
,
SIGNAL
(
clicked
()
),
this
,
SLOT
(
removeTagsRequired
()
)
);
}
MediaProperty
::~
Media
Property
()
ClipProperty
::~
Clip
Property
()
{
delete
ui
;
}
void
Media
Property
::
changeEvent
(
QEvent
*
e
)
void
Clip
Property
::
changeEvent
(
QEvent
*
e
)
{
QDialog
::
changeEvent
(
e
);
switch
(
e
->
type
()
)
...
...
@@ -55,7 +77,7 @@ void MediaProperty::changeEvent( QEvent *e )
}
}
void
Media
Property
::
apply
()
void
Clip
Property
::
apply
()
{
QStringListModel
*
model
=
dynamic_cast
<
QStringListModel
*>
(
ui
->
metaTagsView
->
model
()
);
if
(
model
==
NULL
)
...
...
@@ -63,7 +85,7 @@ void MediaProperty::apply()
m_clip
->
setMetaTags
(
model
->
stringList
()
);
}
void
Media
Property
::
addTagsRequired
()
void
Clip
Property
::
addTagsRequired
()
{
bool
ok
;
QString
newTags
=
QInputDialog
::
getText
(
this
,
tr
(
"New tags edition"
),
...
...
@@ -81,7 +103,7 @@ void MediaProperty::addTagsRequired()
}
}
void
Media
Property
::
removeTagsRequired
()
void
Clip
Property
::
removeTagsRequired
()
{
QStringListModel
*
model
=
dynamic_cast
<
QStringListModel
*>
(
ui
->
metaTagsView
->
model
()
);
if
(
model
==
NULL
)
...
...
src/gui/
Media
Property.h
→
src/gui/
Clip
Property.h
View file @
d156a13c
/*****************************************************************************
*
MediaProperty.h: Handle the media property
and meta tags edition
*
ClipProperty.h: Handle the clip properties
and meta tags edition
*****************************************************************************
* Copyright (C) 2008-2009 the VLMC team
*
...
...
@@ -20,23 +20,23 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
#ifndef
MEDIA
PROPERTY_H
#define
MEDIA
PROPERTY_H
#ifndef
CLIP
PROPERTY_H
#define
CLIP
PROPERTY_H
#include <QDialog>
#include "Clip.h"
#include <QAbstractButton>
namespace
Ui
{
class
Media
Property
;
class
Clip
Property
;
}
class
Media
Property
:
public
QDialog
class
Clip
Property
:
public
QDialog
{
Q_OBJECT
public:
Media
Property
(
Clip
*
clip
,
QWidget
*
parent
=
0
);
~
Media
Property
();
Clip
Property
(
Clip
*
clip
,
QWidget
*
parent
=
0
);
~
Clip
Property
();
protected:
void
changeEvent
(
QEvent
*
e
);
...
...
@@ -47,8 +47,8 @@ private slots:
void
removeTagsRequired
();
private:
Ui
::
Media
Property
*
ui
;
Ui
::
Clip
Property
*
ui
;
Clip
*
m_clip
;
};
#endif //
MEDIA
PROPERTY_H
#endif //
CLIP
PROPERTY_H
src/gui/MainWindow.cpp
View file @
d156a13c
...
...
@@ -39,7 +39,7 @@
#include "WorkflowRenderer.h"
#include "ClipRenderer.h"
#include "UndoStack.h"
#include "
Media
Property.h"
#include "
Clip
Property.h"
MainWindow
::
MainWindow
(
QWidget
*
parent
)
:
QMainWindow
(
parent
),
m_renderer
(
NULL
)
...
...
@@ -259,6 +259,6 @@ void MainWindow::registerWidgetInViewMenu( QDockWidget* widget )
void
MainWindow
::
mediaListItemDoubleClicked
(
QListWidgetItem
*
qItem
)
{
ListViewMediaItem
*
item
=
static_cast
<
ListViewMediaItem
*>
(
qItem
);
MediaProperty
*
mp
=
new
Media
Property
(
item
->
getClip
(),
this
);
ClipProperty
*
mp
=
new
Clip
Property
(
item
->
getClip
(),
this
);
mp
->
show
();
}
src/gui/ui/
Media
Property.ui
→
src/gui/ui/
Clip
Property.ui
View file @
d156a13c
<?xml version="1.0" encoding="UTF-8"?>
<ui
version=
"4.0"
>
<class>
Media
Property
</class>
<widget
class=
"QDialog"
name=
"
Media
Property"
>
<class>
Clip
Property
</class>
<widget
class=
"QDialog"
name=
"
Clip
Property"
>
<property
name=
"geometry"
>
<rect>
<x>
0
</x>
...
...
@@ -239,7 +239,7 @@
<connection>
<sender>
buttonBox
</sender>
<signal>
accepted()
</signal>
<receiver>
Media
Property
</receiver>
<receiver>
Clip
Property
</receiver>
<slot>
accept()
</slot>
<hints>
<hint
type=
"sourcelabel"
>
...
...
@@ -255,7 +255,7 @@
<connection>
<sender>
buttonBox
</sender>
<signal>
rejected()
</signal>
<receiver>
Media
Property
</receiver>
<receiver>
Clip
Property
</receiver>
<slot>
reject()
</slot>
<hints>
<hint
type=
"sourcelabel"
>
...
...
vlmc.pro
View file @
d156a13c
...
...
@@ -48,7 +48,7 @@ SOURCES += src/main.cpp \
src
/
WorkflowFileRenderer
.
cpp
\
src
/
UndoStack
.
cpp
\
src
/
metadata
/
MetaDataManager
.
cpp
\
src
/
gui
/
Media
Property
.
cpp
src
/
gui
/
Clip
Property
.
cpp
HEADERS
+=
src
/
gui
/
MainWindow
.
h
\
src
/
gui
/
DockWidgetManager
.
h
\
src
/
gui
/
LibraryWidget
.
h
\
...
...
@@ -95,9 +95,9 @@ HEADERS += src/gui/MainWindow.h \
src
/
UndoStack
.
h
\
src
/
tools
/
WaitCondition
.
hpp
\
src
/
metadata
/
MetaDataManager
.
h
\
src
/
gui
/
MediaProperty
.
h
\
src
/
commands
/
Commands
.
hpp
\
src
/
tools
/
QSingleton
.
hpp
src
/
tools
/
QSingleton
.
hpp
\
src
/
gui
/
ClipProperty
.
h
FORMS
+=
src
/
gui
/
ui
/
MainWindow
.
ui
\
src
/
gui
/
ui
/
PreviewWidget
.
ui
\
src
/
gui
/
ui
/
Preferences
.
ui
\
...
...
@@ -107,7 +107,7 @@ FORMS += src/gui/ui/MainWindow.ui \
src
/
gui
/
ui
/
Transcode
.
ui
\
src
/
gui
/
ui
/
FileBrowser
.
ui
\
src
/
gui
/
ui
/
WorkflowFileRenderer
.
ui
\
src
/
gui
/
ui
/
Media
Property
.
ui
src
/
gui
/
ui
/
Clip
Property
.
ui
TRANSLATIONS
=
ts
/
vlmc_es
.
ts
\
ts
/
vlmc_fr
.
ts
\
...
...
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