20#include <QCoreApplication>
26#define PFF_OPEN_PROJECT_EXT_FILTER \
27 QCoreApplication::translate("FileFormat", "Pencil2D formats") + " (*.pclx *.pcl);;" + QCoreApplication::translate("FileFormat", "Pencil2D Project") + " (*.pclx);;" + QCoreApplication::translate("FileFormat", "Legacy Pencil2D Project") + " (*.pcl)"
29#define PFF_SAVE_PROJECT_EXT_FILTER \
30 QCoreApplication::translate("FileFormat", "Pencil2D Project") + " (*.pclx);;" + QCoreApplication::translate("FileFormat", "Legacy Pencil2D Project") + " (*.pcl)"
32#define PFF_MOVIE_EXT \
33 QCoreApplication::translate("FileFormat", "Movie formats") + "(*.avi *.mpg *.mpeg *.mov *.mp4 *.mkv *.ogv *.swf *.flv *.webm *.wmv);;" \
34 "AVI(*.avi);;MPEG(*.mpg *.mpeg);;MOV(*.mov);;MP4(*.mp4);;MKV(*.mkv);;OGV(*.ogv)" \
35 ";;SWF(*.swf);;FLV(*.flv);;WEBM(*.webm);;WMV(*.wmv)"
37#define PFF_IMAGE_FILTER \
38 QCoreApplication::translate("FileFormat", "Image formats") + " (*.png *.jpg *.jpeg *.bmp *.tif *.tiff *.webp);;PNG (*.png);;JPG(*.jpg *.jpeg);;BMP(*.bmp);;TIFF(*.tif *.tiff);;WEBP(*.webp)"
40#define PFF_IMAGE_SEQ_FILTER \
41 QCoreApplication::translate("FileFormat", "Image formats") + " (*.png *.jpg *.jpeg *.bmp *.tif *.tiff *.webp);;PNG (*.png);;JPG(*.jpg *.jpeg);;BMP(*.bmp);;TIFF(*.tif *.tiff);;WEBP(*.webp)"
43#define PFF_PALETTE_EXT_FILTER \
44 QCoreApplication::translate("FileFormat", "Palette formats") + " (*.xml *.gpl);;" + QCoreApplication::translate("FileFormat", "Pencil2D Palette") + " (*.xml);;" + QCoreApplication::translate("FileFormat", "GIMP Palette") + " (*.gpl)"
46#define PFF_GIF_EXT_FILTER \
47 QCoreApplication::translate("FileFormat", "Animated GIF") + " (*.gif)"
49#define PFF_ANIMATED_IMAGE_EXT_FILTER \
50 QCoreApplication::translate("FileFormat", "Animated image formats") + " (*.gif *.webp);;GIF(*.gif);;WEBP(*.webp)"
52#define PFF_SOUND_EXT_FILTER \
53 QCoreApplication::translate("FileFormat", "Sound formats") + " (*.wav *.mp3 *.wma *.ogg *.flac *.opus *.aiff *.aac *.caf);;WAV (*.wav);;MP3 (*.mp3);;WMA (*.wma);;OGG (*.ogg);;FLAC (*.flac);;Opus (*.opus);;AIFF (*.aiff);;AAC (*.aac);;CAF (*.caf)"
56#define PFF_DEFAULT_PROJECT_EXT \
59#define PFF_DEFAULT_IMAGE_EXT \
62#define PFF_DEFAULT_IMAGE_SEQ_EXT \
65#define PFF_DEFAULT_ANIMATED_EXT \
68#define PFF_DEFAULT_MOVIE_EXT \
71#define PFF_DEFAULT_PALETTE_EXT \
74#define PFF_DEFAULT_SOUND_EXT \
77#define PFF_OLD_EXTENSION "pcl"
78#define PFF_EXTENSION "pclx"
79#define PFF_BACKUP_IDENTIFIER "backup"
80#define PFF_OLD_DATA_DIR "data"
81#define PFF_DATA_DIR "data"
82#define PFF_XML_FILE_NAME "main.xml"
83#define PFF_TMP_DECOMPRESS_EXT "Y2xD"
84#define PFF_PALETTE_FILE "palette.xml"
86bool removePFFTmpDirectory(
const QString& dirName);
90bool isMovieFormat(
const QString& format);