20#include <QCoreApplication>
25#define PFF_OLD_EXTENSION ".pcl"
26#define PFF_OLD_BIG_LETTER_EXTENSION "PCL"
27#define PFF_EXTENSION ".pclx"
28#define PFF_BIG_LETTER_EXTENSION "PCLX"
29#define PFF_BACKUP_IDENTIFIER "backup"
31#define PFF_OPEN_PROJECT_EXT_FILTER \
32 QCoreApplication::translate("FileFormat", "Pencil2D formats") + " (*.pclx *.pcl);;" + QCoreApplication::translate("FileFormat", "Pencil2D Project") + " (*.pclx);;" + QCoreApplication::translate("FileFormat", "Legacy Pencil2D Project") + " (*.pcl)"
34#define PFF_SAVE_PROJECT_EXT_FILTER \
35 QCoreApplication::translate("FileFormat", "Pencil2D Project") + " (*.pclx);;" + QCoreApplication::translate("FileFormat", "Legacy Pencil2D Project") + " (*.pcl)"
37#define PFF_MOVIE_EXT \
38 QCoreApplication::translate("FileFormat", "Movie formats") + "(*.avi *.mpg *.mpeg *.mov *.mp4 *.mkv *.ogv *.swf *.flv *.webm *.wmv);;" \
39 "AVI(*.avi);;MPEG(*.mpg *.mpeg);;MOV(*.mov);;MP4(*.mp4);;MKV(*.mkv);;OGV(*.ogv)" \
40 ";;SWF(*.swf);;FLV(*.flv);;WEBM(*.webm);;WMV(*.wmv)"
42#define PFF_IMAGE_FILTER \
43 QCoreApplication::translate("FileFormat", "Image formats") + " (*.png *.jpg *.jpeg *.bmp *.tif *.tiff *.webp);;PNG (*.png);;JPG(*.jpg *.jpeg);;BMP(*.bmp);;TIFF(*.tif *.tiff);;WEBP(*.webp)"
45#define PFF_IMAGE_SEQ_FILTER \
46 QCoreApplication::translate("FileFormat", "Image formats") + " (*.png *.jpg *.jpeg *.bmp *.tif *.tiff *.webp);;PNG (*.png);;JPG(*.jpg *.jpeg);;BMP(*.bmp);;TIFF(*.tif *.tiff);;WEBP(*.webp)"
48#define PFF_PALETTE_EXT_FILTER \
49 QCoreApplication::translate("FileFormat", "Palette formats") + " (*.xml *.gpl);;" + QCoreApplication::translate("FileFormat", "Pencil2D Palette") + " (*.xml);;" + QCoreApplication::translate("FileFormat", "GIMP Palette") + " (*.gpl)"
51#define PFF_GIF_EXT_FILTER \
52 QCoreApplication::translate("FileFormat", "Animated GIF") + " (*.gif)"
54#define PFF_ANIMATED_IMAGE_EXT_FILTER \
55 QCoreApplication::translate("FileFormat", "Animated image formats") + " (*.gif *.webp);;GIF(*.gif);;WEBP(*.webp)"
57#define PFF_SOUND_EXT_FILTER \
58 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)"
61#define PFF_DEFAULT_PROJECT_EXT \
64#define PFF_DEFAULT_IMAGE_EXT \
67#define PFF_DEFAULT_IMAGE_SEQ_EXT \
70#define PFF_DEFAULT_ANIMATED_EXT \
73#define PFF_DEFAULT_MOVIE_EXT \
76#define PFF_DEFAULT_PALETTE_EXT \
79#define PFF_DEFAULT_SOUND_EXT \
82#define PFF_OLD_DATA_DIR "data"
83#define PFF_DATA_DIR "data"
84#define PFF_XML_FILE_NAME "main.xml"
85#define PFF_TMP_DECOMPRESS_EXT "Y2xD"
86#define PFF_PALETTE_FILE "palette.xml"
88bool removePFFTmpDirectory(
const QString& dirName);
92bool isMovieFormat(
const QString& format);