这是indexloc提供的服务,不要输入任何密码
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 13 additions & 3 deletions app/app.pro
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ HEADERS += \
src/predefinedsetmodel.h \
src/pegbaralignmentdialog.h \
src/shortcutfilter.h \
src/timeline2.h \
src/actioncommands.h \
src/preferencesdialog.h \
src/filespage.h \
Expand All @@ -84,10 +83,16 @@ HEADERS += \
src/timelinepage.h \
src/toolspage.h \
src/preview.h \
src/basedockwidget.h \
src/colorbox.h \
src/colorinspector.h \
src/colorpalettewidget.h \
src/colorwheel.h \
src/timeline.h \
src/timelinecells.h \
src/timecontrols.h \
src/cameracontextmenu.h \
src/camerapropertiesdialog.h \
src/filedialog.h \
src/pencil2d.h \
src/exportmoviedialog.h \
Expand Down Expand Up @@ -123,7 +128,6 @@ SOURCES += \
src/predefinedsetmodel.cpp \
src/pegbaralignmentdialog.cpp \
src/shortcutfilter.cpp \
src/timeline2.cpp \
src/actioncommands.cpp \
src/preferencesdialog.cpp \
src/filespage.cpp \
Expand All @@ -132,10 +136,16 @@ SOURCES += \
src/timelinepage.cpp \
src/toolspage.cpp \
src/preview.cpp \
src/basedockwidget.cpp \
src/colorbox.cpp \
src/colorinspector.cpp \
src/colorpalettewidget.cpp \
src/colorwheel.cpp \
src/timeline.cpp \
src/timelinecells.cpp \
src/timecontrols.cpp \
src/cameracontextmenu.cpp \
src/camerapropertiesdialog.cpp \
src/filedialog.cpp \
src/pencil2d.cpp \
src/exportmoviedialog.cpp \
Expand All @@ -162,6 +172,7 @@ SOURCES += \

FORMS += \
ui/cameraoptionswidget.ui \
ui/camerapropertiesdialog.ui \
ui/importimageseqpreview.ui \
ui/importlayersdialog.ui \
ui/importpositiondialog.ui \
Expand All @@ -170,7 +181,6 @@ FORMS += \
ui/onionskin.ui \
ui/pegbaralignmentdialog.ui \
ui/repositionframesdialog.ui \
ui/timeline2.ui \
ui/shortcutspage.ui \
ui/colorinspector.ui \
ui/colorpalette.ui \
Expand Down
1 change: 1 addition & 0 deletions app/src/actioncommands.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -742,6 +742,7 @@ void ActionCommands::duplicateKey()

layer->addKeyFrame(nextEmptyFrame, dupKey);
mEditor->scrubTo(nextEmptyFrame);
emit mEditor->frameModified(nextEmptyFrame);

if (layer->type() == Layer::SOUND)
{
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
13 changes: 3 additions & 10 deletions app/src/mainwindow2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ GNU General Public License for more details.
#include "repositionframesdialog.h"

//#include "preview.h"
//#include "timeline2.h"
#include "errordialog.h"
#include "filedialog.h"
#include "importimageseqdialog.h"
Expand Down Expand Up @@ -171,12 +170,6 @@ void MainWindow2::createDockWidgets()
mToolBox = new ToolBoxWidget(this);
mToolBox->setObjectName("ToolBox");

/*
mTimeline2 = new Timeline2;
mTimeline2->setObjectName( "Timeline2" );
mDockWidgets.append( mTimeline2 );
*/

mDockWidgets
<< mTimeLine
<< mColorBox
Expand All @@ -197,7 +190,6 @@ void MainWindow2::createDockWidgets()

pWidget->setEditor(mEditor);
pWidget->initUI();
pWidget->show();
qDebug() << "Init Dock widget: " << pWidget->objectName();
}

Expand Down Expand Up @@ -229,8 +221,9 @@ void MainWindow2::createDockWidgets()

for (BaseDockWidget* w : mDockWidgets)
{
w->updateUI();
w->setFloating(false);
w->show();
w->updateUI();
}
}

Expand Down Expand Up @@ -1495,7 +1488,6 @@ void MainWindow2::makeConnections(Editor* pEditor, TimeLine* pTimeline)
connect(mEditor->select(), &SelectionManager::selectionChanged, this, &MainWindow2::updateCopyCutPasteEnabled);

connect(pEditor->layers(), &LayerManager::currentLayerChanged, pTimeline, &TimeLine::updateUI);
connect(pEditor->layers(), &LayerManager::layerCountChanged, pTimeline, &TimeLine::updateUI);
connect(pEditor->layers(), &LayerManager::animationLengthChanged, pTimeline, &TimeLine::extendLength);
connect(pEditor->sound(), &SoundManager::soundClipDurationChanged, pTimeline, &TimeLine::updateUI);

Expand All @@ -1504,6 +1496,7 @@ void MainWindow2::makeConnections(Editor* pEditor, TimeLine* pTimeline)

connect(pEditor, &Editor::objectLoaded, pTimeline, &TimeLine::onObjectLoaded);
connect(pEditor, &Editor::updateTimeLine, pTimeline, &TimeLine::updateUI);
connect(pEditor, &Editor::updateTimeLineCached, pTimeline, &TimeLine::updateUICached);

connect(pEditor->layers(), &LayerManager::currentLayerChanged, this, &MainWindow2::updateLayerMenu);
connect(pEditor->layers(), &LayerManager::currentLayerChanged, mToolOptions, &ToolOptionWidget::updateUI);
Expand Down
2 changes: 0 additions & 2 deletions app/src/mainwindow2.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ class PreviewWidget;
class ColorBox;
class ColorInspector;
class RecentFileMenu;
class Timeline2;
class ActionCommands;
class ImportImageSeqDialog;
class BackupElement;
Expand Down Expand Up @@ -158,7 +157,6 @@ private slots:
ColorPaletteWidget* mColorPalette = nullptr;
ToolOptionWidget* mToolOptions = nullptr;
ToolBoxWidget* mToolBox = nullptr;
//Timeline2* mTimeline2 = nullptr;
RecentFileMenu* mRecentFileMenu = nullptr;
PreferencesDialog* mPrefDialog = nullptr;
//PreviewWidget* mPreview = nullptr;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -308,16 +308,8 @@ void TimeControls::loopEndValueChanged(int i)

void TimeControls::updateSoundScrubIcon(bool soundScrubEnabled)
{
if (soundScrubEnabled)
{
mEditor->playback()->setSoundScrubActive(true);
mEditor->preference()->set(SETTING::SOUND_SCRUB_ACTIVE, true);
}
else
{
mEditor->playback()->setSoundScrubActive(false);
mEditor->preference()->set(SETTING::SOUND_SCRUB_ACTIVE, false);
}
mEditor->playback()->setSoundScrubActive(soundScrubEnabled);
mEditor->preference()->set(SETTING::SOUND_SCRUB_ACTIVE, soundScrubEnabled);
}

void TimeControls::noTimecodeText()
Expand Down
File renamed without changes.
15 changes: 4 additions & 11 deletions core_lib/src/interface/timeline.cpp → app/src/timeline.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ GNU General Public License for more details.
#include <QWheelEvent>
#include <QSlider>

#include "layer.h"
#include "editor.h"
#include "layermanager.h"
#include "timecontrols.h"
Expand Down Expand Up @@ -246,15 +245,10 @@ void TimeLine::updateUI()
updateContent();
}

int TimeLine::getLength()
void TimeLine::updateUICached()
{
return mTracks->getFrameLength();
}

void TimeLine::setLength(int frame)
{
mTracks->setFrameLength(frame);
updateLength();
mLayerList->update();
mTracks->update();
}

/** Extends the timeline frame length if necessary
Expand Down Expand Up @@ -310,7 +304,6 @@ void TimeLine::updateLayerView()

mVScrollbar->setMinimum(0);
mVScrollbar->setMaximum(qMax(0, mNumLayers - pageDisplay));
update();
updateContent();
}

Expand All @@ -322,7 +315,7 @@ void TimeLine::updateLayerNumber(int numberOfLayers)

void TimeLine::updateLength()
{
int frameLength = getLength();
int frameLength = mTracks->getFrameLength();
mHScrollbar->setMaximum(qMax(0, frameLength - mTracks->width() / mTracks->getFrameSize()));
mTimeControls->updateLength(frameLength);
updateContent();
Expand Down
3 changes: 1 addition & 2 deletions core_lib/src/interface/timeline.h → app/src/timeline.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ class TimeLine : public BaseDockWidget

void initUI() override;
void updateUI() override;
void updateUICached();

void updateFrame( int frameNumber );
void updateLayerNumber( int number );
Expand All @@ -46,8 +47,6 @@ class TimeLine : public BaseDockWidget
void setRangeState( bool range );
void setPlaying( bool isPlaying );

int getLength();
void setLength(int frame);
void extendLength(int frame);

int getRangeLower();
Expand Down
39 changes: 0 additions & 39 deletions app/src/timeline2.cpp

This file was deleted.

43 changes: 0 additions & 43 deletions app/src/timeline2.h

This file was deleted.

Loading