21 #include <QDomElement>
22 #include <QMainWindow>
23 #include "backgroundwidget.h"
25 template<
typename T>
class QList;
45 #define STRINGIFY(x) #x
46 #define TOSTRING(x) STRINGIFY(x)
47 #define S__GIT_TIMESTAMP__ TOSTRING(GIT_TIMESTAMP)
50 #define PENCIL_WINDOW_TITLE QString("[*]Pencil2D - Nightly Build %1").arg( S__GIT_TIMESTAMP__ )
52 #define PENCIL_WINDOW_TITLE QString("[*]Pencil2D - Nightly Build %1").arg( __DATE__ )
72 void undoActSetText();
73 void undoActSetEnabled();
74 void updateSaveState();
75 void clearRecentFilesList();
78 void setOpacity(
int opacity);
82 bool saveAsNewDocument();
89 void importImageSequence();
90 void exportImageSequence();
94 void lockWidgets(
bool shouldLock );
100 void openFile( QString filename );
105 void updateRecentFilesList(
bool b);
108 void tabletEvent( QTabletEvent* )
override;
109 void closeEvent( QCloseEvent* )
override;
112 bool openObject( QString strFilename );
113 bool saveObject( QString strFileName );
115 void dockAllSubWidgets();
117 void createDockWidgets();
119 void setMenuActionChecked( QAction*,
bool bChecked );
120 void setupKeyboardShortcuts();
121 void clearKeyboardShortcuts();
122 void updateZoomLabel();
124 void importPalette();
125 void exportPalette();
128 void writeSettings();
130 void changePlayState(
bool isPlaying );
132 void makeConnections(
Editor* );
140 void bindActionWithSetting( QAction*, SETTING );
165 QIcon mStartIcon, mStopIcon;
167 Ui::MainWindow2* ui =
nullptr;
170 #endif // MAINWINDOW2_H