Changeset View
Changeset View
Standalone View
Standalone View
plugins/dockers/animation/timeline_insert_keyframe_dialog.h
1 | /* | ||||
---|---|---|---|---|---|
2 | * Copyright (c) 2018 Emmet O'Neill <emmetoneill.pdx@gmail.com> | ||||
3 | * Copyright (c) 2018 Eoin O'Neill <eoinoneill1991@gmail.com> | ||||
4 | * | ||||
5 | * This program is free software; you can redistribute it and/or modify | ||||
6 | * it under the terms of the GNU General Public License as published by | ||||
7 | * the Free Software Foundation; either version 2 of the License, or | ||||
8 | * (at your option) any later version. | ||||
9 | * | ||||
10 | * This program is distributed in the hope that it will be useful, | ||||
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||||
13 | * GNU General Public License for more details. | ||||
14 | * | ||||
15 | * You should have received a copy of the GNU General Public License | ||||
16 | * along with this program; if not, write to the Free Software | ||||
17 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||||
18 | */ | ||||
19 | | ||||
1 | #ifndef __TIMELINE_INSERT_KEYFRAME_DIALOG_H | 20 | #ifndef __TIMELINE_INSERT_KEYFRAME_DIALOG_H | ||
2 | #define __TIMELINE_INSERT_KEYFRAME_DIALOG_H | 21 | #define __TIMELINE_INSERT_KEYFRAME_DIALOG_H | ||
3 | 22 | | |||
4 | #include "kritaanimationdocker_export.h" | 23 | #include "kritaanimationdocker_export.h" | ||
5 | #include <QDialog> | 24 | #include <QDialog> | ||
6 | #include <QSpinBox> | 25 | #include <QSpinBox> | ||
26 | #include <QRadioButton> | ||||
27 | | ||||
28 | enum TimelineDirection : short; | ||||
7 | 29 | | |||
8 | class KRITAANIMATIONDOCKER_EXPORT TimelineInsertKeyframeDialog : QDialog { | 30 | class KRITAANIMATIONDOCKER_EXPORT TimelineInsertKeyframeDialog : QDialog { | ||
9 | Q_OBJECT | 31 | Q_OBJECT | ||
Context not available. | |||||
11 | QSpinBox frameCountSpinbox; | 33 | QSpinBox frameCountSpinbox; | ||
12 | QSpinBox frameTimingSpinbox; | 34 | QSpinBox frameTimingSpinbox; | ||
13 | 35 | | |||
36 | QRadioButton *leftBefore; | ||||
37 | QRadioButton *rightAfter; | ||||
38 | | ||||
14 | public: | 39 | public: | ||
15 | TimelineInsertKeyframeDialog(QWidget *parent = 0); | 40 | TimelineInsertKeyframeDialog(QWidget *parent = 0); | ||
16 | 41 | | |||
17 | bool promptUserSettings(int &count, int &timing); | 42 | bool promptUserSettings(int &count, int &timing, TimelineDirection &out_direction); | ||
18 | }; | 43 | }; | ||
19 | 44 | | |||
20 | #endif // __TIMELINE_INSERT_KEYFRAME_DIALOG_H | 45 | #endif // __TIMELINE_INSERT_KEYFRAME_DIALOG_H | ||
Context not available. |