forked from pencil2d/pencil
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Made previevFramesDialog, and made preparations for dof-features
- Loading branch information
1 parent
84b8322
commit 37806eb
Showing
10 changed files
with
188 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#include "previewframesdialog.h" | ||
#include "ui_previewframesdialog.h" | ||
|
||
previewFramesDialog::previewFramesDialog(int maxFrame, int currentFrame) : | ||
QDialog(), | ||
ui(new Ui::previewFramesDialog) | ||
{ | ||
ui->setupUi(this); | ||
ui->frameSpinBox->setMinimum(1); | ||
ui->frameSpinBox->setMaximum(maxFrame); | ||
ui->frameSpinBox->setValue(currentFrame); | ||
connect(ui->frameSpinBox, QOverload<int>::of(&QSpinBox::valueChanged), this, &previewFramesDialog::frameChanged); | ||
|
||
} | ||
|
||
previewFramesDialog::~previewFramesDialog() | ||
{ | ||
delete ui; | ||
} | ||
|
||
|
||
void previewFramesDialog::frameChanged(int frame) | ||
{ | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#ifndef PREVIEWFRAMESDIALOG_H | ||
#define PREVIEWFRAMESDIALOG_H | ||
|
||
#include <QDialog> | ||
|
||
namespace Ui { | ||
class previewFramesDialog; | ||
} | ||
|
||
class previewFramesDialog : public QDialog | ||
{ | ||
Q_OBJECT | ||
|
||
public: | ||
explicit previewFramesDialog(int maxFrame, int currentFrame); | ||
~previewFramesDialog(); | ||
|
||
void gotoFrame(); | ||
void frameChanged(int frame); | ||
|
||
void setMaxFrame(int max) { mMaxFrame = max; } | ||
int getMaxFrame() { return mMaxFrame; } | ||
|
||
private: | ||
int mMinFrame = 1; | ||
int mMaxFrame = 100; | ||
Ui::previewFramesDialog *ui; | ||
}; | ||
|
||
#endif // PREVIEWFRAMESDIALOG_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,111 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<ui version="4.0"> | ||
<class>previewFramesDialog</class> | ||
<widget class="QDialog" name="previewFramesDialog"> | ||
<property name="geometry"> | ||
<rect> | ||
<x>0</x> | ||
<y>0</y> | ||
<width>1096</width> | ||
<height>711</height> | ||
</rect> | ||
</property> | ||
<property name="windowTitle"> | ||
<string>Dialog</string> | ||
</property> | ||
<widget class="QWidget" name=""> | ||
<property name="geometry"> | ||
<rect> | ||
<x>9</x> | ||
<y>10</y> | ||
<width>1081</width> | ||
<height>701</height> | ||
</rect> | ||
</property> | ||
<layout class="QHBoxLayout" name="horizontalLayout"> | ||
<item> | ||
<widget class="QGroupBox" name="groupBox"> | ||
<property name="title"> | ||
<string>Preview frames</string> | ||
</property> | ||
<widget class="QWidget" name=""> | ||
<property name="geometry"> | ||
<rect> | ||
<x>14</x> | ||
<y>30</y> | ||
<width>101</width> | ||
<height>661</height> | ||
</rect> | ||
</property> | ||
<layout class="QVBoxLayout" name="verticalLayout_2"> | ||
<item> | ||
<layout class="QVBoxLayout" name="verticalLayout"> | ||
<item> | ||
<widget class="QLabel" name="labFrame"> | ||
<property name="text"> | ||
<string>Frame:</string> | ||
</property> | ||
</widget> | ||
</item> | ||
<item> | ||
<widget class="QSpinBox" name="frameSpinBox"> | ||
<property name="minimum"> | ||
<number>1</number> | ||
</property> | ||
<property name="maximum"> | ||
<number>100</number> | ||
</property> | ||
<property name="value"> | ||
<number>1</number> | ||
</property> | ||
</widget> | ||
</item> | ||
</layout> | ||
</item> | ||
<item> | ||
<widget class="QLabel" name="labMax"> | ||
<property name="text"> | ||
<string>Max: 100</string> | ||
</property> | ||
</widget> | ||
</item> | ||
<item> | ||
<widget class="QPushButton" name="btnPrevious"> | ||
<property name="text"> | ||
<string>Previous</string> | ||
</property> | ||
</widget> | ||
</item> | ||
<item> | ||
<widget class="QPushButton" name="btnNext"> | ||
<property name="text"> | ||
<string>Next</string> | ||
</property> | ||
</widget> | ||
</item> | ||
<item> | ||
<spacer name="verticalSpacer"> | ||
<property name="orientation"> | ||
<enum>Qt::Vertical</enum> | ||
</property> | ||
<property name="sizeHint" stdset="0"> | ||
<size> | ||
<width>20</width> | ||
<height>40</height> | ||
</size> | ||
</property> | ||
</spacer> | ||
</item> | ||
</layout> | ||
</widget> | ||
</widget> | ||
</item> | ||
<item> | ||
<widget class="QGraphicsView" name="graphicsView"/> | ||
</item> | ||
</layout> | ||
</widget> | ||
</widget> | ||
<resources/> | ||
<connections/> | ||
</ui> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters