Pencil2D  ff90c0872e88be3bf81c548cd60f01983012ec49
Pencil2D is an animation software for both bitmap and vector graphics. It is free, multi-platform, and open source.
 All Classes Functions
actioncommands.h
1 /*
2 
3 Pencil - Traditional Animation Software
4 Copyright (C) 2012-2017 Matthew Chiawen Chang
5 
6 This program is free software; you can redistribute it and/or
7 modify it under the terms of the GNU General Public License
8 as published by the Free Software Foundation; version 2 of the License.
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 */
16 
17 #ifndef COMMANDCENTER_H
18 #define COMMANDCENTER_H
19 
20 #include <QObject>
21 #include "pencilerror.h"
22 
23 class Editor;
24 class QWidget;
25 
26 class ActionCommands : public QObject
27 {
28  Q_OBJECT
29 
30 public:
31  explicit ActionCommands( QWidget* parent = 0 );
32  virtual ~ActionCommands();
33 
34  void setCore( Editor* e ) { mEditor = e; }
35 
36  // file
37  Status importSound();
38  Status exportMovie();
39 
40  // edit
41 
42 
43  // view
44  void ZoomIn();
45  void ZoomOut();
46  void flipSelectionX();
47  void flipSelectionY();
48  void rotateClockwise();
49  void rotateCounterClockwise();
50 
51  void showGrid( bool bShow );
52 
53  // Animation
54  void PlayStop();
55  void GotoNextFrame();
56  void GotoPrevFrame();
57  void GotoNextKeyFrame();
58  void GotoPrevKeyFrame();
59  void addNewKey();
60  void removeKey();
61 
62  // Layer
63  Status addNewBitmapLayer();
64  Status addNewVectorLayer();
65  Status addNewCameraLayer();
66  Status addNewSoundLayer();
67 
68 private:
69  Editor* mEditor = nullptr;
70  QWidget* mParent = nullptr;
71 };
72 
73 #endif // COMMANDCENTER_H
Definition: editor.h:45