]> git.sesse.net Git - kdenlive/commitdiff
[PATCH 1/2] Kill a bunch of unused member variables
authorRay Lehtiniemi <rayl@mail.com>
Fri, 10 Apr 2009 15:17:23 +0000 (15:17 +0000)
committerRay Lehtiniemi <rayl@mail.com>
Fri, 10 Apr 2009 15:17:23 +0000 (15:17 +0000)
Signed-off-by: Ray Lehtiniemi <rayl@mail.com>
svn path=/trunk/kdenlive/; revision=3282

34 files changed:
renderer/renderjob.h
src/abstractgroupitem.cpp
src/abstractgroupitem.h
src/clipitem.cpp
src/clipitem.h
src/complexparameter.cpp
src/complexparameter.h
src/customruler.h
src/customtrackview.cpp
src/customtrackview.h
src/docclipbase.cpp
src/docclipbase.h
src/dvdwizard.cpp
src/dvdwizard.h
src/dvdwizardmenu.h
src/kdenlivedoc.h
src/kdenlivesettingsdialog.cpp
src/kdenlivesettingsdialog.h
src/kthumb.cpp
src/kthumb.h
src/mainwindow.cpp
src/mainwindow.h
src/markerdialog.cpp
src/markerdialog.h
src/profilesdialog.h
src/projectsettings.cpp
src/projectsettings.h
src/recmonitor.h
src/renderer.cpp
src/renderer.h
src/trackview.h
src/transition.cpp
src/transition.h
thumbnailer/westleypreview.h

index 7221585781314d85d885268971a98bcabf1eeef7..671853a2b1dd7a4735dab6cf11985d4ff78d8ade 100644 (file)
@@ -63,10 +63,6 @@ private:
     QTime m_startTime;
     void initKdenliveDbusInterface();
     bool m_usekuiserver;
-    /** \brief Used to create a temporary file for logging */
-    QTemporaryFile m_logfile;
-    /** \brief Used to write to the log file */
-    QTextStream m_logstream;
 
 signals:
     void renderingFinished();
index ee0d69f4a1cd2e5a3cfa2da19ec97d76f3c75af9..5ca822afebd5981fd79bb6dfe42d1bc3e19b5a19 100644 (file)
 #include <QMimeData>
 
 
-AbstractGroupItem::AbstractGroupItem(double fps) :
+AbstractGroupItem::AbstractGroupItem(double /* fps */) :
         QObject(),
-        QGraphicsItemGroup(),
-        m_fps(fps)
+        QGraphicsItemGroup()
 {
     setZValue(2);
     setFlags(QGraphicsItem::ItemClipsToShape | QGraphicsItem::ItemIsMovable | QGraphicsItem::ItemIsSelectable);
index 85a01b545be66538a9e1dfe808215266a6347cd9..f3ee3cf5fabfd9a4cea74295775244826a684cb8 100644 (file)
@@ -50,9 +50,6 @@ protected:
 private:
     QPainterPath groupShape(QPointF);
     void fixItemRect();
-    double m_fps;
-    GenTime m_startPos;
-    int m_track;
 };
 
 #endif
index cd5983131ca769626e4378da48b0ecea783d1b51..241ef714acfc4c67733c0e46571c4011438dd8d2 100644 (file)
@@ -40,10 +40,8 @@ ClipItem::ClipItem(DocClipBase *clip, ItemInfo info, double fps, double speed, b
         AbstractClipItem(info, QRectF(), fps),
         m_clip(clip),
         m_resizeMode(NONE),
-        m_grabPoint(0),
         m_startFade(0),
         m_endFade(0),
-        m_maxTrack(0),
         m_audioOnly(false),
         m_videoOnly(false),
         m_startPix(QPixmap()),
@@ -52,13 +50,11 @@ ClipItem::ClipItem(DocClipBase *clip, ItemInfo info, double fps, double speed, b
         startThumbTimer(NULL),
         endThumbTimer(NULL),
         m_selectedEffect(-1),
-        m_opacity(1.0),
         m_timeLine(0),
         m_startThumbRequested(false),
         m_endThumbRequested(false),
         m_hover(false),
         m_speed(speed),
-        audioThumbWasDrawn(false),
         framePixelWidth(0)
 {
     setZValue(1);
index 7d8f92a80b2a9ee90f8fd4f466375fce6f61dbbf..43b0273e9643e581bb2af40a1f1d769fd20d1b49 100644 (file)
@@ -124,14 +124,12 @@ protected:
 private:
     DocClipBase *m_clip;
     OPERATIONTYPE m_resizeMode;
-    int m_grabPoint;
     QString m_producer;
     CLIPTYPE m_clipType;
     QString m_clipName;
     QString m_effectNames;
     int m_startFade;
     int m_endFade;
-    int m_maxTrack;
     bool m_audioOnly;
     bool m_videoOnly;
 
@@ -142,7 +140,6 @@ private:
     QTimer *endThumbTimer;
 
     int m_selectedEffect;
-    double m_opacity;
     QTimeLine *m_timeLine;
     bool m_startThumbRequested;
     bool m_endThumbRequested;
@@ -152,9 +149,8 @@ private:
     EffectsList m_effectList;
     QList <Transition*> m_transitionsList;
     QMap<int, QPixmap> audioThumbCachePic;
-    bool audioThumbWasDrawn, audioThumbReady;
+    bool audioThumbReady;
     double framePixelWidth;
-    QMap<int, QPainterPath > channelPaths;
     /** Called when clip start is resized, adjust keyframes values */
     void checkEffectsKeyframesPos(const int previous, const int current, bool fromStart);
     QPixmap m_videoPix;
index bf2a6d0e36b8d585ad1160e115b616f12453a0c6..31a2195b73a5b733707da3ae2b635c117f9e42c9 100644 (file)
@@ -30,8 +30,6 @@ ComplexParameter::ComplexParameter(QWidget *parent) :
     ui.setupUi(this);
     //ui.effectlist->horizontalHeader()->setVisible(false);
     //ui.effectlist->verticalHeader()->setVisible(false);
-    activeRow = -1;
-    clipref = NULL;
 
 
     ui.buttonLeftRight->setIcon(KIcon("go-next"));//better icons needed
index fd1ab89aa14371f32a9c28f8c38751866bd79fc9..2383a6cf75e3545b49ffd116f3a96c68f40e5743 100644 (file)
@@ -33,13 +33,9 @@ public:
     ComplexParameter(QWidget *parent = 0);
     QDomElement getParamDesc();
 private:
-    int activeRow;
-    QList<QDomElement> effects;
     Ui::KeyframeWidget_UI ui;
-    ClipItem* clipref;
     void setupListView();
     void updateButtonStatus();
-    QMap<QString, EffectsList*> effectLists;
 
     QDomElement param;
 public slots:
index 70daf09e1689125c0c4ffa02fd0f42d657c4ff65..9b3aa020c2bf55fea40efa9a6857beb03017851e 100644 (file)
@@ -48,7 +48,6 @@ protected:
     virtual void mouseMoveEvent(QMouseEvent * event);
 
 private:
-    int m_cursorPosition;
     Timecode m_timecode;
     CustomTrackView *m_view;
     int m_zoneStart;
index 91b21204812c87638341cec166dcbe82e52b58a2..fd3ac7ae0796bc60ab20e1aa6a5ddd01e4801c37 100644 (file)
@@ -84,7 +84,6 @@
 CustomTrackView::CustomTrackView(KdenliveDoc *doc, CustomTrackScene* projectscene, QWidget *parent) :
         QGraphicsView(projectscene, parent),
         m_tracksHeight(KdenliveSettings::trackheight()),
-        m_selectedTrack(0),
         m_projectDuration(0),
         m_cursorPos(0),
         m_document(doc),
index dd567d9e85dc9203feaffd1b419fd8ea6bfcef9e..98c5872a026be154b19591d895c411774addcc5c 100644 (file)
@@ -169,7 +169,6 @@ protected:
 
 private:
     int m_tracksHeight;
-    uint m_selectedTrack;
     int m_projectDuration;
     int m_cursorPos;
     KdenliveDoc *m_document;
@@ -216,7 +215,6 @@ private:
     int m_scrollOffset;
     bool m_clipDrag;
 
-    QList <CommentedTime> m_searchStrings;
     int m_findIndex;
     PROJECTTOOL m_tool;
     QCursor m_razorCursor;
index 1ecb29c7f7f012e1568122d2a1865635364f25a2..7c0b2084e34419570a7343dce1200bdbab588893 100644 (file)
@@ -36,7 +36,6 @@
 DocClipBase::DocClipBase(ClipManager *clipManager, QDomElement xml, const QString &id, bool placeHolder) :
         QObject(),
         audioFrameChache(),
-        m_description(),
         m_refcount(0),
         m_baseTrackProducers(),
         m_audioTrackProducers(),
index ce847f5413ace74b3f4a700f1de7ac98779e9b42..17ff8263ba195c0cd5d6e900b079b03d357dd3b7 100644 (file)
@@ -185,8 +185,6 @@ Q_OBJECT public:
 
 private:   // Private attributes
 
-    /** A description of this clip */
-    QString m_description;
     /** The number of times this clip is used in the project - the number of references to this clip
      * that exist. */
     uint m_refcount;
index 86d01a8572257845e846777f3b4ad849f5b18825..8204f699f52171ab522331b63f631f656197ab08 100644 (file)
@@ -37,7 +37,6 @@
 
 DvdWizard::DvdWizard(const QString &url, const QString &profile, QWidget *parent) :
         QWizard(parent),
-        m_profile(profile),
         m_dvdauthor(NULL),
         m_mkiso(NULL)
 {
@@ -49,7 +48,7 @@ DvdWizard::DvdWizard(const QString &url, const QString &profile, QWidget *parent
 
     if (!url.isEmpty()) m_pageVob->setUrl(url);
 
-    m_pageMenu = new DvdWizardMenu(m_profile, this);
+    m_pageMenu = new DvdWizardMenu(profile, this);
     m_pageMenu->setTitle(i18n("Create DVD Menu"));
     addPage(m_pageMenu);
 
index 787c1a6e59f1672075be74eea049473c9a80199d..42e5b3521612a8405fa71dfe19174fb53c373147 100644 (file)
@@ -48,7 +48,6 @@ private:
     DvdWizardMenu *m_pageMenu;
     Ui::DvdWizardIso_UI m_iso;
     Ui::DvdWizardStatus_UI m_status;
-    QString m_profile;
     KTemporaryFile m_menuFile;
     KTemporaryFile m_authorFile;
     QProcess *m_dvdauthor;
index 44cd8f84f530c3d490ed13d94014c8d81afdfe27..01a0c73ba25a9846e6ce101bdbb8c499f38bfd9c 100644 (file)
@@ -122,7 +122,6 @@ private:
     Ui::DvdWizardMenu_UI m_view;
     bool m_isPal;
     DvdScene *m_scene;
-    DvdButton *m_button;
     QGraphicsPixmapItem *m_background;
     QGraphicsRectItem *m_color;
     QGraphicsRectItem *m_safeRect;
index 0bf427f4f80402c04ea6051261a30da62162fe07..47afa10bf42916e5ff45c11f0d1c3cfe10ca9e59 100644 (file)
@@ -119,7 +119,6 @@ Q_OBJECT public:
 private:
     KUrl m_url;
     QDomDocument m_document;
-    QString m_projectName;
     double m_fps;
     int m_zoom;
     /** Cursor position at document opening */
index 504a4e4b67fd64d78151c84349fb0249016bc9ab..cf17f7220180ddfb44974db2b18a2bbb5d7ff516 100644 (file)
@@ -68,7 +68,6 @@ KdenliveSettingsDialog::KdenliveSettingsDialog(QWidget * parent) :
     m_configEnv.capturefolderurl->lineEdit()->setObjectName("kcfg_capturefolder");
     page2 = addPage(p2, i18n("Environment"), "terminal");
 
-    m_captureFolder = KdenliveSettings::capturefolder();
     QWidget *p4 = new QWidget;
     m_configCapture.setupUi(p4);
     page4 = addPage(p4, i18n("Capture"), "audio-card");
index a538270293c7f7ee8bfcca0aa4b79629cc30a6a4..bf6d9f5683fb655934857f72fecdce35e6845711 100644 (file)
@@ -74,13 +74,9 @@ private:
     Ui::ConfigCapture_UI m_configCapture;
     Ui::ConfigJogShuttle_UI m_configShuttle;
     Ui::ConfigSdl_UI m_configSdl;
-    QStringList m_mltProfilesList;
-    QStringList m_customProfilesList;
-    bool m_isCustomProfile;
     QString m_defaultProfile;
     QString m_defaultPath;
     KProcess m_readProcess;
-    QString m_captureFolder;
     void initDevices();
 
 signals:
index 0e8435fdc599643356be9664e631ea7d1cb2873c..5d595fd6e411967a320e75c62fcc996efa87e1ac 100644 (file)
@@ -124,8 +124,7 @@ KThumb::KThumb(ClipManager *clipManager, KUrl url, const QString &id, const QStr
         m_dar(1),
         m_producer(NULL),
         m_clipManager(clipManager),
-        m_id(id),
-        m_mainFrame(-1)
+        m_id(id)
 {
     m_thumbFile = clipManager->projectFolder() + "/thumbs/" + hash + ".thumb";
     connect(&audioThumbProducer, SIGNAL(audioThumbProgress(const int)), this, SLOT(slotAudioThumbProgress(const int)));
index 3cb480c086d6f79d7ffbce1dbf38d168d1787368..93df306ef1c7ec78b8aab63a3feef1034b5b1d07 100644 (file)
@@ -114,7 +114,6 @@ private:
     Mlt::Producer *m_producer;
     ClipManager *m_clipManager;
     QString m_id;
-    int m_mainFrame;
 
 signals:
     void thumbReady(int, QPixmap);
index 85ae14badc52b96b7fff55a1b7d4b78497b158d3..c26911cd4815a3d75c4022d5aed8d2fba7ac5ee6 100644 (file)
@@ -108,8 +108,7 @@ MainWindow::MainWindow(const QString &MltPath, const KUrl & Url, QWidget *parent
 #ifndef NO_JOGSHUTTLE
         m_jogProcess(NULL),
 #endif /* NO_JOGSHUTTLE */
-        m_findActivated(false),
-        m_initialized(false)
+        m_findActivated(false)
 {
 
     // Create DBus interface
index fbf3fdcab05d224a41327bbc4aa0842660fce96c..c0afef2bc424f14beb27f75a9199b1c1ace746e1 100644 (file)
@@ -138,9 +138,6 @@ private:
 
     KComboBox *m_timecodeFormat;
 
-    QDockWidget *overviewDock;
-    CustomTrackView *m_overView;
-
     QMenu *m_customEffectsMenu;
     QMenu *m_timelineContextMenu;
     QMenu *m_timelineContextClipMenu;
@@ -176,7 +173,6 @@ private:
     bool m_findActivated;
     QString m_findString;
     QTimer m_findTimer;
-    bool m_initialized;
 
     void readOptions();
     void saveOptions();
index 72806c30c44f8608f8fc1ad761bfbcdcb7ae9374..57e612eba6adbf4c24a3e2ecb96bc415b4ff01c7 100644 (file)
@@ -31,7 +31,6 @@ MarkerDialog::MarkerDialog(DocClipBase *clip, CommentedTime t, Timecode tc, cons
         m_producer(NULL),
         m_profile(NULL),
         m_clip(clip),
-        m_marker(t),
         m_tc(tc)
 {
     setFont(KGlobalSettings::toolBarFont());
index 5979d23afa30f34b8845edf7cc57b42db8784dab..a9e6315b2a6f6840a092258841bb2cd36bab3c33 100644 (file)
@@ -54,7 +54,6 @@ private:
     Mlt::Profile *m_profile;
     Ui::MarkerDialog_UI m_view;
     DocClipBase *m_clip;
-    CommentedTime m_marker;
     Timecode m_tc;
     double m_fps;
     double m_dar;
index f75faef0002d8ed5ec8fe1b51db71d260ba15ea2..c5ada174c702fb1a0f295b43b1b07bafb52e69fe 100644 (file)
@@ -54,8 +54,6 @@ private slots:
 
 private:
     Ui::ProfilesDialog_UI m_view;
-    QStringList m_mltProfilesList;
-    QStringList m_customProfilesList;
     int m_selectedProfileIndex;
     bool m_profileIsModified;
     bool m_isCustomProfile;
index 1240ddcdc6928862c691d8c7c94051f6d14e8998..3a27d23274e59be4a74bf92599c0dffdaf81a9fe 100644 (file)
@@ -27,8 +27,7 @@
 #include <QDir>
 
 ProjectSettings::ProjectSettings(int videotracks, int audiotracks, const QString projectPath, bool readOnlyTracks, QWidget * parent) :
-        QDialog(parent),
-        m_isCustomProfile(false)
+        QDialog(parent)
 {
     m_view.setupUi(this);
 
index b0a2728d7e5b3cfb088bab8059a07737a84c9d24..cd14d0b9209b88635ed5ab8d84f9377fc30a7137 100644 (file)
@@ -44,9 +44,6 @@ private slots:
 
 private:
     Ui::ProjectSettings_UI m_view;
-    QStringList m_mltProfilesList;
-    QStringList m_customProfilesList;
-    bool m_isCustomProfile;
     QPushButton *buttonOk;
 };
 
index 8d1c5ca77bf243e75cf4bbc4f46050bde78b83c8..21aaa850bb2342acfb15016c989e17ba182e7258 100644 (file)
@@ -32,8 +32,6 @@
 #include <KDateTime>
 
 #include "ui_recmonitor_ui.h"
-#include "smallruler.h"
-#include "regiongrabber.h"
 
 class RecMonitor : public QWidget
 {
@@ -52,9 +50,7 @@ protected:
 
 private:
     Ui::RecMonitor_UI ui;
-    QString m_tmpFolder;
     QString m_name;
-    RegionGrabber *rgnGrab;
     bool m_isActive;
     KDateTime m_captureTime;
 
@@ -64,7 +60,6 @@ private:
 
     QProcess *captureProcess;
     QProcess *displayProcess;
-    QTimer *m_initTimer;
     bool m_isCapturing;
     /** did the user capture something ? */
     bool m_didCapture;
index 64cbbf72a6d06295b0d625955fe82651bb0d861e..9c8652b131ccb4e8700377b3f5311f6461d46a92 100644 (file)
@@ -53,20 +53,18 @@ static void consumer_frame_show(mlt_consumer, Render * self, mlt_frame frame_ptr
     }
 }
 
-Render::Render(const QString & rendererName, int winid, int extid, QWidget *parent) :
+Render::Render(const QString & rendererName, int winid, int /* extid */, QWidget *parent) :
         QObject(parent),
         m_isBlocked(true),
         m_name(rendererName),
         m_mltConsumer(NULL),
         m_mltProducer(NULL),
-        m_mltTextProducer(NULL),
         m_framePosition(0),
         m_isZoneMode(false),
         m_isLoopMode(false),
         m_isSplitView(false),
         m_blackClip(NULL),
-        m_winid(winid),
-        m_externalwinid(extid)
+        m_winid(winid)
 {
     kDebug() << "//////////  USING PROFILE: " << (char*)KdenliveSettings::current_profile().toUtf8().data();
     refreshTimer = new QTimer(this);
@@ -77,8 +75,6 @@ Render::Render(const QString & rendererName, int winid, int extid, QWidget *pare
     osdTimer = new QTimer(this);
     connect(osdTimer, SIGNAL(timeout()), this, SLOT(slotOsdTimeout()));
 
-    m_osdProfile =   KStandardDirs::locate("data", "kdenlive/profiles/metadata.properties");
-
     buildConsumer();
 
     m_mltProducer = m_blackClip->cut(0, 50);
index affb77d440f82277878b197f6143a31eb5ed3d66..566fd02d9b7dec9baacc74bc62fcc287f8d299a2 100644 (file)
@@ -195,8 +195,6 @@ private:   // Private attributes & methods
     QString m_name;
     Mlt::Consumer * m_mltConsumer;
     Mlt::Producer * m_mltProducer;
-    Mlt::Producer *m_mltTextProducer;
-    Mlt::Filter *m_osdInfo;
     Mlt::Profile *m_mltProfile;
     double m_framePosition;
     double m_fps;
@@ -211,17 +209,13 @@ private:   // Private attributes & methods
     bool m_isSplitView;
 
     Mlt::Producer *m_blackClip;
-    /** Holds the path to on screen display profile */
-    QString m_osdProfile;
     QString m_activeProfile;
 
     QTimer *refreshTimer;
     QTimer *osdTimer;
-    KUrl m_exportedFile;
 
     /** A human-readable description of this renderer. */
     int m_winid;
-    int m_externalwinid;
 
     /** Sets the description of this renderer to desc. */
     void closeMlt();
index 4c76dbb5849bc38e6c583c12174e11f8a0828e8c..7ca73b918646909deb48c992a51f4ae8fcbf1119 100644 (file)
@@ -76,11 +76,7 @@ private:
     CustomTrackScene *m_scene;
 
     KdenliveDoc *m_doc;
-    QVBoxLayout *m_tracksLayout;
     QVBoxLayout *m_headersLayout;
-    QScrollArea *m_scrollArea;
-    QFrame *m_scrollBox;
-    QVBoxLayout *m_tracksAreaLayout;
     QString m_documentErrors;
     void parseDocument(QDomDocument doc);
     int slotAddProjectTrack(int ix, QDomElement xml, bool locked);
index 95c0b8380149b045001d36d9484b18bd712804a9..103ea51639aad6d0b94526cf7a330651534cf19b 100644 (file)
@@ -40,7 +40,6 @@ Transition::Transition(const ItemInfo info, int transitiontrack, double fps, QDo
     setRect(0, 0, (info.endPos - info.startPos).frames(fps) - 0.02, (qreal)(KdenliveSettings::trackheight() / 3 * 2 - 1));
     setPos(info.startPos.frames(fps), (qreal)(info.track * KdenliveSettings::trackheight() + KdenliveSettings::trackheight() / 3 * 2));
 
-    m_singleClip = true;
     m_transitionTrack = transitiontrack;
     m_secondClip = NULL;
     m_cropStart = GenTime();
index 0c75f6ef8f1da4e5df81624a164affbf92e56a5f..5004ad5360a66fa498b43588748a70a24a96fcb5 100644 (file)
@@ -78,7 +78,6 @@ protected:
     virtual QVariant itemChange(GraphicsItemChange change, const QVariant &value);
 
 private:
-    bool m_singleClip;
     QString m_name;
     bool m_forceTransitionTrack;
 
index be33e09d88b05fc2a7b59096d4525032d63c8d6f..65367db2a1141201ce1440c78b3a48f927eb4335 100644 (file)
@@ -48,7 +48,6 @@ protected:
 
 private:
     QProcess *m_inigoprocess;
-    QStringList customargs;
     KRandomSequence *m_rand;
     QString playerBin;
     bool startAndWaitProcess(const QStringList &args);