]> git.sesse.net Git - kdenlive/blobdiff - src/noteswidget.cpp
Moving widget files into widgets folder.
[kdenlive] / src / noteswidget.cpp
diff --git a/src/noteswidget.cpp b/src/noteswidget.cpp
deleted file mode 100644 (file)
index f3e5aaa..0000000
+++ /dev/null
@@ -1,72 +0,0 @@
-/***************************************************************************
- *   Copyright (C) 2008 by Jean-Baptiste Mardelle (jb@kdenlive.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 "noteswidget.h"
-
-#include <KLocalizedString>
-#include <KDebug>
-#include <QMenu>
-#include <QMouseEvent>
-
-
-NotesWidget::NotesWidget(QWidget * parent) :
-        KTextEdit(parent)
-{
-    connect(this, SIGNAL(aboutToShowContextMenu(QMenu*)), this, SLOT(slotFillNotesMenu(QMenu*)));
-    setMouseTracking(true);
-}
-
-void NotesWidget::slotFillNotesMenu(QMenu *menu)
-{
-    QAction *a = new QAction(i18n("Insert current timecode"), menu);
-    connect(a, SIGNAL(triggered(bool)), this, SIGNAL(insertNotesTimecode()));
-    menu->insertAction(menu->actions().at(0), a);
-}
-
-void NotesWidget::mouseMoveEvent( QMouseEvent * e )
-{
-    const QString anchor = anchorAt(e->pos());
-    if (anchor.isEmpty())
-        viewport()->setCursor(Qt::IBeamCursor);
-    else
-        viewport()->setCursor(Qt::PointingHandCursor);
-    KTextEdit::mouseMoveEvent(e);
-}
-
-void NotesWidget::mousePressEvent( QMouseEvent * e )
-{
-    QString anchor = anchorAt(e->pos());
-    if (anchor.isEmpty()) {
-        KTextEdit::mousePressEvent(e);
-        return;
-    }
-    kDebug()<<"+++++++++\nCLICKED NACHOR: "<<anchor;
-    emit seekProject(anchor.toInt());
-    e->setAccepted(true);
-}
-
-NotesWidget::~NotesWidget()
-{
-}
-
-
-
-
-#include "noteswidget.moc"