Pencil2D Animation
Download
Community
News
Docs
Contribute
API Documentation
5eeebd3c7472c3c2e6618ff9a94eca7af8af593e
Main Page
Related Pages
Classes
Files
File List
All
Classes
Namespaces
Functions
Variables
Enumerations
Properties
Pages
app
src
pegbaralignmentdialog.h
1
/*
2
3
Pencil2D - Traditional Animation Software
4
Copyright (C) 2005-2007 Patrick Corrieri & Pascal Naidon
5
Copyright (C) 2012-2020 Matthew Chiawen Chang
6
7
This program is free software; you can redistribute it and/or
8
modify it under the terms of the GNU General Public License
9
as published by the Free Software Foundation; version 2 of the License.
10
11
This program is distributed in the hope that it will be useful,
12
but WITHOUT ANY WARRANTY; without even the implied warranty of
13
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
GNU General Public License for more details.
15
16
*/
17
#ifndef PEGBARALIGNMENTDIALOG_H
18
#define PEGBARALIGNMENTDIALOG_H
19
20
#include <QDialog>
21
#include <QStringList>
22
#include "editor.h"
23
24
namespace
Ui {
25
class
PegBarAlignmentDialog
;
26
}
27
28
class
PegBarAlignmentDialog
:
public
QDialog
29
{
30
Q_OBJECT
31
32
public
:
33
explicit
PegBarAlignmentDialog
(
Editor
* editor,
QWidget
*
parent
=
nullptr
);
34
~
PegBarAlignmentDialog
();
35
36
void
setLayerList(
QStringList
layerList);
37
QStringList
getLayerList();
38
int
getRefKey() {
return
mRefkey; }
39
QString
getRefLayer() {
return
mRefLayer; }
40
void
updateRefKeyLabelText();
41
42
void
setAreaSelected(
bool
b);
43
void
setReferenceSelected(
bool
b);
44
void
setLayerSelected(
bool
b);
45
46
void
updatePegRegLayers();
47
void
updatePegRegDialog();
48
void
alignPegs();
49
50
public
slots:
51
void
setBtnAlignEnabled();
52
void
setRefLayer(
QString
s);
53
void
setRefKey(
int
i);
54
55
private
:
56
void
closeClicked();
57
58
Ui::PegBarAlignmentDialog* ui;
59
QStringList
mLayernames;
60
Editor
* mEditor =
nullptr
;
61
bool
mAreaSelected =
false
;
62
bool
mReferenceSelected =
false
;
63
bool
mLayerSelected =
false
;
64
QString
mRefLayer;
65
int
mRefkey = 0;
66
};
67
68
#endif // PEGBARALIGNMENTDIALOG_H
QWidget
PegBarAlignmentDialog
Definition:
pegbaralignmentdialog.h:28
QObject::Q_OBJECT
Q_OBJECTQ_OBJECT
QString
QStringList
QDialog
Editor
Definition:
editor.h:51
QObject::parent
QObject * parent() const const
Generated on Sun Dec 20 2020 16:19:57 for Pencil2D by
1.8.6