Pencil2D Animation
Download Community News Docs Contribute
  • Overview
  • Articles
  • Code
  •  
  • Class List
  • Class Index
  • Class Hierarchy
  • Class Members
  • File List
Loading...
Searching...
No Matches
  • app
  • src
pegbaralignmentdialog.h
1/*
2
3Pencil2D - Traditional Animation Software
4Copyright (C) 2005-2007 Patrick Corrieri & Pascal Naidon
5Copyright (C) 2012-2020 Matthew Chiawen Chang
6
7This program is free software; you can redistribute it and/or
8modify it under the terms of the GNU General Public License
9as published by the Free Software Foundation; version 2 of the License.
10
11This program is distributed in the hope that it will be useful,
12but WITHOUT ANY WARRANTY; without even the implied warranty of
13MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14GNU 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
24namespace Ui {
25class PegBarAlignmentDialog;
26}
27
28class PegBarAlignmentDialog : public QDialog
29{
30 Q_OBJECT
31
32public:
33 explicit PegBarAlignmentDialog(Editor* editor, QWidget* parent = nullptr);
34 ~PegBarAlignmentDialog();
35
36public slots:
37 void updateAlignButton();
38
39private:
40 void updatePegRegLayers();
41 void updatePegRegDialog();
42 void alignPegs();
43 void setLayerList(QStringList layerList);
44 void updateRefKeyLabel(QString text);
45
46 QStringList getLayerList();
47
48 void setAreaSelected(bool b);
49 void setReferenceSelected(bool b);
50 void setLayerSelected(bool b);
51 void closeClicked();
52
53 Ui::PegBarAlignmentDialog* ui;
54 QStringList mLayernames;
55 Editor* mEditor = nullptr;
56 bool mAreaSelected = false;
57 bool mReferenceSelected = false;
58 bool mLayerSelected = false;
59};
60
61#endif // PEGBARALIGNMENTDIALOG_H
Editor
Definition: editor.h:71
PegBarAlignmentDialog
Definition: pegbaralignmentdialog.h:29
QDialog
QObject::Q_OBJECT
Q_OBJECTQ_OBJECT
QObject::parent
QObject * parent() const const
QString
QStringList
QWidget
Generated on Thu May 8 2025 04:47:53 for Pencil2D by doxygen 1.9.6 based on revision 4513250b1d5b1a3676ec0e67b06b7a885ceaae39