18 #ifndef LIBS_MVA_GUI_INCLUDE_WINDOWS_MAINWINDOWHANDLER_H_
19 #define LIBS_MVA_GUI_INCLUDE_WINDOWS_MAINWINDOWHANDLER_H_
25 #include "basic_item.h"
30 Q_PROPERTY(QSize project_size READ projectSize WRITE setProjectSize NOTIFY projectSizeChanged)
31 Q_PROPERTY(qint32 fps READ fps WRITE setFPS NOTIFY fpsChanged)
32 Q_PROPERTY(qint32 video_length READ videoLength WRITE setVideoLength NOTIFY videoLengthChanged)
33 Q_PROPERTY(QColor background_color READ backgroundColor WRITE setBackgroundColor NOTIFY backgroundColorChanged)
39 void setFPS(
const qint32 new_fps);
41 qint32 videoLength()
const;
42 void setVideoLength(
const qint32 new_video_length);
44 QSize projectSize()
const;
45 void setProjectSize(
const QSize& new_project_size);
47 QColor backgroundColor()
const;
48 void setBackgroundColor(
const QColor& newBackground_color);
52 void snapshot(
const QVariant& file);
53 void render(
const QVariant& file);
56 void saveProject(
const QVariant& file);
57 void loadProject(
const QVariant& file);
59 void openSVGFolder()
const;
61 void addItem(QQuickItem* item);
63 void removeCurrentItem();
64 void removeAnimation(
const qint32 animation_number);
66 void itemClickedByUser(
const QString& itemName);
67 void setTimeByUser(
const QVariant& time);
68 void propertyChangedByUser(
const QString& item_name,
const QByteArray& property,
const QVariant& value);
70 void updateProjectSettings(
const QVariantList& new_project_settings);
71 void updateProjectSettings(
const QList<qint32>& new_project_settings,
const QColor& new_background_color);
74 const QString& item_name,
const QString& animation_type,
const qreal start_time,
const qreal duration);
77 void fpsChanged(
const qint32 new_fps);
78 void videoLengthChanged(
const qint32 new_video_length);
79 void projectSizeChanged();
80 void backgroundColorChanged(
const QColor& new_background_color);
82 void snapshotRequested(
const QFileInfo& snapshot_file_info);
83 void renderingRequested(
const QFileInfo& video_file_info);
85 void newProjectRequested();
86 void saveProjectRequested(
const QFileInfo& save_file_info);
87 void loadProjectRequested(
const QFileInfo& load_file_info);
89 void removeCurrentItemRequested();
90 void removeAnimationRequested(
const qint32 animation_number);
93 void itemClicked(
const QString& name);
94 void timeChanged(
const qreal time);
95 void propertyChanged(
const QString& item_name,
const QByteArray& property,
const QVariant& value);
97 void renderingVideoFinished(
const QFileInfo& video_file);
99 void addAnimationSignal(
100 const QString& item_name,
const QString& animation_type,
const qreal start_time,
const qreal duration);
103 QObject* m_qml_creation_area;
105 QSize m_project_size = QSize(1024, 768);
107 qint32 m_video_length = 5;
108 QColor m_background_color = QColor(
"black");
Definition: basic_item.h:28
Definition: mainwindowhandler.h:27