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
importlayersdialog.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 IMPORTLAYERSDIALOG_H
18#define IMPORTLAYERSDIALOG_H
19
20#include <QDialog>
21#include "object.h"
22#include "editor.h"
23
24namespace Ui {
25class ImportLayersDialog;
26}
27
28class ImportLayersDialog : public QDialog
29{
30 Q_OBJECT
31
32public:
33 explicit ImportLayersDialog(QWidget* parent);
34 ~ImportLayersDialog();
35
36 void setCore(Editor *editor);
37
38public slots:
39 void getFileName();
40 void listWidgetChanged();
41 void importLayers();
42 void cancel();
43
44private:
45 Ui::ImportLayersDialog *ui;
46
47 void getLayers();
48
49 std::unique_ptr<Object> mImportObject;
50 Layer* mImportLayer = nullptr;
51 Editor* mEditor = nullptr;
52 QString mFileName;
53 QList<int> mItemsSelected;
54 void loadKeyFrames(Layer* importedLayer);
55};
56
57#endif // IMPORTLAYERSDIALOG_H
Editor
Definition: editor.h:71
ImportLayersDialog
Definition: importlayersdialog.h:29
Layer
Definition: layer.h:33
QDialog
QList
QObject::Q_OBJECT
Q_OBJECTQ_OBJECT
QObject::parent
QObject * parent() const const
QString
QWidget
Generated on Thu May 8 2025 04:47:53 for Pencil2D by doxygen 1.9.6 based on revision 4513250b1d5b1a3676ec0e67b06b7a885ceaae39