[vlmc-devel] Add ClipLibraryView.h
Yikai Lu
git at videolan.org
Mon Dec 12 04:20:01 CET 2016
vlmc | branch: master | Yikai Lu <luyikei.qmltu at gmail.com> | Sun Dec 11 21:14:36 2016 -0600| [94683fbbab5836e21a0318b029ec3dd49bd41676] | committer: Yikai Lu
Add ClipLibraryView.h
> https://code.videolan.org/videolan/vlmc/commit/94683fbbab5836e21a0318b029ec3dd49bd41676
---
src/Gui/library/ClipLibraryView.h | 36 ++++++++++++++++++++++++++++++++++++
1 file changed, 36 insertions(+)
diff --git a/src/Gui/library/ClipLibraryView.h b/src/Gui/library/ClipLibraryView.h
new file mode 100644
index 0000000..af0426d
--- /dev/null
+++ b/src/Gui/library/ClipLibraryView.h
@@ -0,0 +1,36 @@
+#ifndef CLIPLIBRARYVIEW_H
+#define CLIPLIBRARYVIEW_H
+
+#include <QWidget>
+#include <QJsonObject>
+
+class ClipLibraryView : public QObject
+{
+ Q_OBJECT
+ Q_DISABLE_COPY( ClipLibraryView )
+
+ public:
+ explicit ClipLibraryView( QWidget* parent = 0 );
+
+ QWidget* container();
+
+ Q_INVOKABLE
+ QJsonObject clip( const QString& uuid );
+
+ public slots:
+ void onClipAdded( const QString& uuid );
+ void onClipSelected( const QString& uuid );
+ void startDrag( const QString& uuid );
+
+ private:
+ QWidget* m_container;
+
+ signals:
+ void clipAdded( const QString& uuid );
+ void clipRemoved( const QString& uuid );
+
+ void clipSelected( const QString& uuid );
+ void clipOnTimelineChanged( const QString& uuid, bool onTimeline );
+};
+
+#endif // CLIPLIBRARYVIEW_H
More information about the Vlmc-devel
mailing list