widgets/dvdwizardchapters_ui.ui
widgets/missingclips_ui.ui
widgets/cliptranscode_ui.ui
- widgets/geometryposition_ui.ui
widgets/templateclip_ui.ui
widgets/keyframeeditor_ui.ui
widgets/timecodedisplay_ui.ui
insertspacecommand.cpp
spacerdialog.cpp
addtrackcommand.cpp
- changetrackcommand.cpp
movegroupcommand.cpp
dvdwizardvob.cpp
dvdwizardmenu.cpp
+++ /dev/null
-/***************************************************************************
- * Copyright (C) 2007 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 "changetrackcommand.h"
-#include "customtrackview.h"
-
-#include <KLocale>
-
-ChangeTrackCommand::ChangeTrackCommand(CustomTrackView *view, int ix, TrackInfo oldInfo, TrackInfo newInfo, QUndoCommand * parent) :
- QUndoCommand(parent),
- m_view(view),
- m_ix(ix),
- m_oldinfo(oldInfo),
- m_newinfo(newInfo)
-{
- setText(i18n("Change track type"));
-}
-
-
-// virtual
-void ChangeTrackCommand::undo()
-{
-// kDebug()<<"---- undoing action";
- m_view->changeTrack(m_ix, m_oldinfo);
-}
-// virtual
-void ChangeTrackCommand::redo()
-{
- m_view->changeTrack(m_ix, m_newinfo);
-}
-
+++ /dev/null
-/***************************************************************************
- * Copyright (C) 2007 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 *
- ***************************************************************************/
-
-
-#ifndef CHANGETRACKCOMMAND_H
-#define CHANGETRACKCOMMAND_H
-
-#include <QUndoCommand>
-#include <QGraphicsView>
-#include <QPointF>
-
-#include <KDebug>
-#include "definitions.h"
-
-class CustomTrackView;
-
-class ChangeTrackCommand : public QUndoCommand
-{
-public:
- ChangeTrackCommand(CustomTrackView *view, int ix, TrackInfo oldInfo, TrackInfo newInfo, QUndoCommand * parent = 0);
- virtual void undo();
- virtual void redo();
-
-private:
- CustomTrackView *m_view;
- int m_ix;
- TrackInfo m_oldinfo;
- TrackInfo m_newinfo;
-};
-
-#endif
-
#include "insertspacecommand.h"
#include "spacerdialog.h"
#include "addtrackcommand.h"
-#include "changetrackcommand.h"
#include "movegroupcommand.h"
#include "ui_addtrack_ui.h"
#include "initeffects.h"
//QTimer::singleShot(500, this, SIGNAL(trackHeightChanged()));
}
-void CustomTrackView::changeTrack(int ix, TrackInfo type)
-{
- int tracknumber = m_document->tracksCount() - ix;
- m_document->setTrackType(tracknumber - 1, type);
- m_document->renderer()->mltChangeTrackState(tracknumber, m_document->trackInfoAt(tracknumber - 1).isMute, m_document->trackInfoAt(tracknumber - 1).isBlind);
- QTimer::singleShot(300, this, SIGNAL(trackHeightChanged()));
- viewport()->update();
-}
-
void CustomTrackView::configTracks(QList < TrackInfo > trackInfos)
{
for (int i = 0; i < trackInfos.count(); ++i) {
}
}
-void CustomTrackView::slotChangeTrack(int ix)
-{
- TrackDialog d(m_document, parentWidget());
- d.label->setText(i18n("Change track"));
- d.before_select->setHidden(true);
- d.track_nb->setMaximum(m_document->tracksCount() - 1);
- d.track_nb->setValue(ix);
- d.slotUpdateName(ix);
- d.setWindowTitle(i18n("Change Track Type"));
-
- TrackInfo oldInfo = m_document->trackInfoAt(m_document->tracksCount() - ix - 1);
- if (oldInfo.type == VIDEOTRACK)
- d.video_track->setChecked(true);
- else
- d.audio_track->setChecked(true);
-
- if (d.exec() == QDialog::Accepted) {
- TrackInfo info;
- info.isLocked = false;
- info.isMute = false;
- info.trackName = oldInfo.trackName;
- ix = d.track_nb->value();
-
- if (d.video_track->isChecked()) {
- info.type = VIDEOTRACK;
- info.isBlind = false;
- } else {
- info.type = AUDIOTRACK;
- info.isBlind = true;
- }
- changeTimelineTrack(ix, info);
- setDocumentModified();
- }
-}
-
void CustomTrackView::slotConfigTracks(int ix)
{
TracksConfigDialog d(m_document, ix, parentWidget());
m_commandStack->push(deleteTrack);
}
-void CustomTrackView::changeTimelineTrack(int ix, TrackInfo trackinfo)
-{
- TrackInfo oldinfo = m_document->trackInfoAt(m_document->tracksCount() - ix - 1);
- ChangeTrackCommand *changeTrack = new ChangeTrackCommand(this, ix, oldinfo, trackinfo);
- m_commandStack->push(changeTrack);
-}
-
void CustomTrackView::autoTransition()
{
QList<QGraphicsItem *> itemList = scene()->selectedItems();
virtual void mouseDoubleClickEvent(QMouseEvent *event);
void addTrack(TrackInfo type, int ix = -1);
void removeTrack(int ix);
- void changeTrack(int ix, TrackInfo type);
/** @brief Makes the document use new track infos (name, type, ...). */
void configTracks(QList <TrackInfo> trackInfos);
int cursorPos();
void insertSpace(QList<ItemInfo> clipsToMove, QList<ItemInfo> transToMove, int track, const GenTime duration, const GenTime offset);
ClipItem *getActiveClipUnderCursor(bool allowOutsideCursor = false) const;
void deleteTimelineTrack(int ix, TrackInfo trackinfo);
- void changeTimelineTrack(int ix, TrackInfo trackinfo);
void saveThumbnails();
void autoTransition();
QStringList getLadspaParams(QDomElement effect) const;
void slotCheckPositionScrolling();
void slotInsertTrack(int ix);
void slotDeleteTrack(int ix);
- void slotChangeTrack(int ix);
/** @brief Shows the configure tracks dialog. */
void slotConfigTracks(int ix);
void clipNameChanged(const QString id, const QString name);
#include "definitions.h"
#include "keyframehelper.h"
#include "timecodedisplay.h"
-#include "ui_geometryposition_ui.h"
//class QGraphicsScene;
class GraphicsSceneRectMove;
QAction *m_reset;
bool m_fixedMode;
QPoint m_frameSize;
- Ui::GeometryPosition_UI m_view;
void updateTransitionPath();
double m_dar;
int m_startPoint;
addAction(removeAction);
connect(removeAction, SIGNAL(triggered()), this, SLOT(slotDeleteTrack()));
- QAction *changeAction = new QAction(i18n("Change Track Type"), this);
- addAction(changeAction);
- connect(changeAction, SIGNAL(triggered()), this, SLOT(slotChangeTrack()));
-
- QAction *renameAction = new QAction(i18n("Rename Track"), this);
- addAction(renameAction);
- connect(renameAction, SIGNAL(triggered()), this, SLOT(slotRenameTrack()));
-
+ QAction *configAction = new QAction(KIcon("configure"), i18n("Configure Track"), this);
+ addAction(configAction);
+ connect(configAction, SIGNAL(triggered()), this, SLOT(slotConfigTrack()));
}
/*HeaderTrack::~HeaderTrack()
void HeaderTrack::mouseDoubleClickEvent(QMouseEvent* event)
{
- emit configTrack(m_index);
+ slotConfigTrack();
QWidget::mouseDoubleClickEvent(event);
}
if (emitSignal) emit switchTrackLock(m_index);
}
-
void HeaderTrack::setLock(bool lock)
{
buttonLock->setChecked(lock);
emit insertTrack(m_index);
}
-void HeaderTrack::slotChangeTrack()
+void HeaderTrack::slotRenameTrack()
{
- emit changeTrack(m_index);
+ emit renameTrack(m_index);
}
-void HeaderTrack::slotRenameTrack()
+void HeaderTrack::slotConfigTrack()
{
- emit renameTrack(m_index);
+ emit configTrack(m_index);
}
void slotDeleteTrack();
void deleteTrack();
void slotAddTrack();
- void slotChangeTrack();
void slotRenameTrack();
+ void slotConfigTrack();
void switchLock(bool emitSignal = true);
signals:
void switchTrackLock(int);
void insertTrack(int);
void deleteTrack(int);
- void changeTrack(int);
void renameTrack(int);
void selectTrack(int);
void configTrack(int);
<Menu name="track_menu" ><text>Tracks</text>
<Action name="insert_track" />
<Action name="delete_track" />
- <Action name="change_track" />
+ <Action name="config_tracks" />
</Menu>
<Separator />
<Action name="reload_clip" />
collection->addAction("delete_track", deleteTrack);
connect(deleteTrack, SIGNAL(triggered()), this, SLOT(slotDeleteTrack()));
- KAction *changeTrack = new KAction(KIcon(), i18n("Change Track"), this);
- collection->addAction("change_track", changeTrack);
- connect(changeTrack, SIGNAL(triggered()), this, SLOT(slotChangeTrack()));
+ KAction *configTracks = new KAction(KIcon("configure"), i18n("Configure Tracks"), this);
+ collection->addAction("config_tracks", configTracks);
+ connect(configTracks, SIGNAL(triggered()), this, SLOT(slotConfigTrack()));
KAction *addGuide = new KAction(KIcon("document-new"), i18n("Add Guide"), this);
collection->addAction("add_guide", addGuide);
disconnect(m_activeTimeline, SIGNAL(cursorMoved()), m_projectMonitor, SLOT(activateMonitor()));
disconnect(m_activeTimeline, SIGNAL(insertTrack(int)), this, SLOT(slotInsertTrack(int)));
disconnect(m_activeTimeline, SIGNAL(deleteTrack(int)), this, SLOT(slotDeleteTrack(int)));
- disconnect(m_activeTimeline, SIGNAL(changeTrack(int)), this, SLOT(slotChangeTrack(int)));
disconnect(m_activeTimeline, SIGNAL(configTrack(int)), this, SLOT(slotConfigTrack(int)));
disconnect(m_activeDocument, SIGNAL(docModified(bool)), this, SLOT(slotUpdateDocumentState(bool)));
disconnect(m_effectStack, SIGNAL(updateClipEffect(ClipItem*, QDomElement, QDomElement, int)), m_activeTimeline->projectView(), SLOT(slotUpdateClipEffect(ClipItem*, QDomElement, QDomElement, int)));
connect(trackView, SIGNAL(cursorMoved()), m_projectMonitor, SLOT(activateMonitor()));
connect(trackView, SIGNAL(insertTrack(int)), this, SLOT(slotInsertTrack(int)));
connect(trackView, SIGNAL(deleteTrack(int)), this, SLOT(slotDeleteTrack(int)));
- connect(trackView, SIGNAL(changeTrack(int)), this, SLOT(slotChangeTrack(int)));
connect(trackView, SIGNAL(configTrack(int)), this, SLOT(slotConfigTrack(int)));
connect(trackView, SIGNAL(updateTracksInfo()), this, SLOT(slotUpdateTrackInfo()));
connect(trackView, SIGNAL(mousePosition(int)), this, SLOT(slotUpdateMousePosition(int)));
m_transitionConfig->updateProjectFormat(m_activeDocument->mltProfile(), m_activeDocument->timecode(), m_activeDocument->tracksList());
}
-void MainWindow::slotChangeTrack(int ix)
-{
- m_projectMonitor->activateMonitor();
- if (m_activeTimeline)
- m_activeTimeline->projectView()->slotChangeTrack(ix);
-}
-
void MainWindow::slotConfigTrack(int ix)
{
m_projectMonitor->activateMonitor();
void configureNotifications();
void slotInsertTrack(int ix = 0);
void slotDeleteTrack(int ix = 0);
- void slotChangeTrack(int ix = 0);
/** @brief Shows the configure tracks dialog and updates transitions afterwards. */
void slotConfigTrack(int ix = -1);
void slotGetNewLumaStuff();
connect(header, SIGNAL(selectTrack(int)), m_trackview, SLOT(slotSelectTrack(int)));
connect(header, SIGNAL(deleteTrack(int)), this, SIGNAL(deleteTrack(int)));
connect(header, SIGNAL(insertTrack(int)), this, SIGNAL(insertTrack(int)));
- connect(header, SIGNAL(changeTrack(int)), this, SIGNAL(changeTrack(int)));
- connect(header, SIGNAL(renameTrack(int)), this, SLOT(slotRenameTrack(int)));
+ //connect(header, SIGNAL(renameTrack(int)), this, SLOT(slotRenameTrack(int)));
connect(header, SIGNAL(configTrack(int)), this, SIGNAL(configTrack(int)));
headers_container->layout()->addWidget(header);
}
void zoneMoved(int, int);
void insertTrack(int);
void deleteTrack(int);
- void changeTrack(int);
void configTrack(int);
void updateTracksInfo();
void setZoom(int);
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8"?>
-<ui version="4.0">
- <class>GeometryPosition_UI</class>
- <widget class="QDialog" name="GeometryPosition_UI">
- <property name="geometry">
- <rect>
- <x>0</x>
- <y>0</y>
- <width>249</width>
- <height>97</height>
- </rect>
- </property>
- <property name="windowTitle">
- <string>Dialog</string>
- </property>
- <layout class="QGridLayout" name="gridLayout">
- <item row="0" column="0">
- <widget class="QLabel" name="label_2">
- <property name="text">
- <string>X</string>
- </property>
- </widget>
- </item>
- <item row="0" column="1" colspan="3">
- <widget class="KIntSpinBox" name="value_x">
- <property name="sizePolicy">
- <sizepolicy hsizetype="Minimum" vsizetype="Fixed">
- <horstretch>0</horstretch>
- <verstretch>0</verstretch>
- </sizepolicy>
- </property>
- </widget>
- </item>
- <item row="0" column="4">
- <widget class="QLabel" name="label_3">
- <property name="text">
- <string>Y</string>
- </property>
- </widget>
- </item>
- <item row="0" column="5">
- <widget class="KIntSpinBox" name="value_y">
- <property name="sizePolicy">
- <sizepolicy hsizetype="Minimum" vsizetype="Fixed">
- <horstretch>0</horstretch>
- <verstretch>0</verstretch>
- </sizepolicy>
- </property>
- </widget>
- </item>
- <item row="1" column="0">
- <widget class="QLabel" name="label_5">
- <property name="text">
- <string>Width</string>
- </property>
- </widget>
- </item>
- <item row="1" column="1" colspan="3">
- <widget class="KIntSpinBox" name="value_width"/>
- </item>
- <item row="1" column="4">
- <widget class="QLabel" name="label_4">
- <property name="text">
- <string>Height</string>
- </property>
- </widget>
- </item>
- <item row="1" column="5">
- <widget class="KIntSpinBox" name="value_height"/>
- </item>
- <item row="2" column="2">
- <spacer name="verticalSpacer">
- <property name="orientation">
- <enum>Qt::Vertical</enum>
- </property>
- <property name="sizeHint" stdset="0">
- <size>
- <width>20</width>
- <height>0</height>
- </size>
- </property>
- </spacer>
- </item>
- <item row="3" column="0" colspan="2">
- <widget class="KPushButton" name="button_reset">
- <property name="text">
- <string>Reset</string>
- </property>
- </widget>
- </item>
- <item row="3" column="2" colspan="5">
- <widget class="QDialogButtonBox" name="buttonBox">
- <property name="orientation">
- <enum>Qt::Horizontal</enum>
- </property>
- <property name="standardButtons">
- <set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
- </property>
- </widget>
- </item>
- <item row="0" column="6">
- <spacer name="horizontalSpacer">
- <property name="orientation">
- <enum>Qt::Horizontal</enum>
- </property>
- <property name="sizeHint" stdset="0">
- <size>
- <width>40</width>
- <height>20</height>
- </size>
- </property>
- </spacer>
- </item>
- </layout>
- </widget>
- <customwidgets>
- <customwidget>
- <class>KIntSpinBox</class>
- <extends>QSpinBox</extends>
- <header>knuminput.h</header>
- </customwidget>
- <customwidget>
- <class>KPushButton</class>
- <extends>QPushButton</extends>
- <header>kpushbutton.h</header>
- </customwidget>
- </customwidgets>
- <resources/>
- <connections>
- <connection>
- <sender>buttonBox</sender>
- <signal>accepted()</signal>
- <receiver>GeometryPosition_UI</receiver>
- <slot>accept()</slot>
- <hints>
- <hint type="sourcelabel">
- <x>248</x>
- <y>254</y>
- </hint>
- <hint type="destinationlabel">
- <x>157</x>
- <y>274</y>
- </hint>
- </hints>
- </connection>
- <connection>
- <sender>buttonBox</sender>
- <signal>rejected()</signal>
- <receiver>GeometryPosition_UI</receiver>
- <slot>reject()</slot>
- <hints>
- <hint type="sourcelabel">
- <x>316</x>
- <y>260</y>
- </hint>
- <hint type="destinationlabel">
- <x>286</x>
- <y>274</y>
- </hint>
- </hints>
- </connection>
- </connections>
-</ui>