Logo Search packages:      
Sourcecode: kdenlive version File versions


                          clipproperties.h  -  description
    begin                :  Mar 2006
    copyright            : (C) 2006 by Jean-Baptiste Mardelle
    email                : jb@ader.ch

 *                                                                         *
 *   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.                                   *
 *                                                                         *

#ifndef ClipProperties_H
#define ClipProperties_H

#include <qwidget.h>
#include <qlabel.h>
#include <qvbox.h>
#include <qmap.h>

#include <krestrictedline.h>
#include <kdialogbase.h>
#include <kurl.h>

#include "gentime.h"
#include "timecode.h"
#include "kdenlivedoc.h"

#include "clipproperties_ui.h"

class DocClipRef;
class DocClipAVFile;
class KdenliveDoc;

namespace Gui {
    class KdenliveApp;

/**Displays the properties of a selected clip.
  *@author Jean-Baptiste Mardelle

00048     class ClipProperties:public KDialogBase {
      Q_OBJECT public:
              ClipProperties(DocClipRef *refClip, KdenliveDoc * document, QWidget * parent = 0, const char *name = 0);
        virtual ~ ClipProperties();

        QString color() const;
        QString name() const;
        QString description() const;
        GenTime duration() const;
        QString url() const;
        bool transparency() const;
      bool crossfading() const;
      bool loop() const;
      int ttl() const;
      QString extension() const;
      void insertLuma(const QPixmap &pix, const QString &txt);
      void preselectLuma();
      double lumaSoftness() const;
      int lumaDuration() const;
      QString lumaFile() const;

      private slots:
        void updateColor(const QColor &c);
        void updateThumb(const QString &path);
      void updateList();
      void updateDuration();
      void slotEditPlayList();
      void saveDescription();
      void slotEnableSaveDescription();

        int m_height;
        int m_width;
      int m_imageCount;
        clipProperties_UI *clipChoice;
        KdenliveDoc *m_document;
      DocClipBase::CLIPTYPE m_clipType;
      QString m_luma;

      /** Parses a playlist clip (.westley or .kdenlive) to find included clips and detect missing ones */
      void parsePlayList(KURL url);

}                       // namespace Gui

Generated by  Doxygen 1.6.0   Back to index