21 #include <QMainWindow>
23 template<
typename T>
class QList;
65 void undoActSetText();
66 void undoActSetEnabled();
67 void updateSaveState();
68 void clearRecentFilesList();
69 void openPegAlignDialog();
70 void currentLayerChanged();
71 void selectionChanged();
78 bool saveAsNewDocument();
81 void emptyDocumentWhenErrorOccurred();
85 void importImageSequence();
86 void importPredefinedImageSet();
88 void importMovieVideo();
91 void lockWidgets(
bool shouldLock);
93 void setOpacity(
int opacity);
96 void openFile(
const QString& filename);
100 void displayMessageBox(
const QString& title,
const QString& body);
101 void displayMessageBoxNoTitle(
const QString& body);
104 void updateRecentFilesList(
bool b);
112 void newObject()
const;
113 bool newObjectFromPresets(
int presetIndex);
114 bool openObject(
const QString& strFilename);
115 bool saveObject(
QString strFileName);
117 void createDockWidgets();
119 void setupKeyboardShortcuts();
120 void clearKeyboardShortcuts();
121 void updateZoomLabel();
122 bool loadMostRecent();
123 bool tryLoadPreset();
126 void importPalette();
127 void exportPalette();
130 void writeSettings();
131 void resetAndDockAllSubWidgets();
133 void changePlayState(
bool isPlaying);
135 void makeConnections(
Editor*);
145 bool tryRecoverUnsavedProject();
146 void startProjectRecovery(
int result);
174 bool m2ndCloseEvent =
false;
177 QLabel* mZoomLabel =
nullptr;
180 bool mSuppressAutoSaveDialog =
false;
182 Ui::MainWindow2* ui =
nullptr;
185 #endif // MAINWINDOW2_H
QObject * parent() const const