]> git.sesse.net Git - kdenlive/blob - src/transitionsettings.cpp
dynamic read transition names and fill transitionlist
[kdenlive] / src / transitionsettings.cpp
1 /***************************************************************************
2                           effecstackedit.h  -  description
3                              -------------------
4     begin                : Mar 15 2008
5     copyright            : (C) 2008 by Marco Gittler
6     email                : g.marco@freenet.de
7  ***************************************************************************/
8
9 /***************************************************************************
10  *                                                                         *
11  *   This program is free software; you can redistribute it and/or modify  *
12  *   it under the terms of the GNU General Public License as published by  *
13  *   the Free Software Foundation; either version 2 of the License, or     *
14  *   (at your option) any later version.                                   *
15  *                                                                         *
16  ***************************************************************************/
17
18 #include "transitionsettings.h"
19 #include <KDebug>
20
21 TransitionSettings::TransitionSettings(EffectsList *transitions, QWidget* parent): QWidget(parent) {
22     ui.setupUi(this);
23     setEnabled(false);
24     m_transitions = transitions;
25     ui.listWidget->addItems(transitions->effectNames());
26     kDebug() << transitions->effectNames().size() << " -" << transitions->size();
27 }
28
29 void TransitionSettings::slotTransitionItemSelected(Transition* t) {
30     setEnabled(t != NULL);
31 }
32