File indexing completed on 2024-05-12 16:01:45

0001 /*
0002  *  SPDX-FileCopyrightText: 2018 Jouni Pentikäinen <joupent@gmail.com>
0003  *
0004  *  SPDX-License-Identifier: GPL-2.0-or-later
0005  */
0006 #ifndef KISCANVASWINDOW_H
0007 #define KISCANVASWINDOW_H
0008 
0009 #include <QWidget>
0010 
0011 class KisMainWindow;
0012 
0013 /**
0014  * Window for the canvas (mdi) area. Used when detached canvas mode is enabled.
0015  */
0016 class KisCanvasWindow : public QWidget
0017 {
0018 public:
0019     explicit KisCanvasWindow(KisMainWindow *mainWindow);
0020     ~KisCanvasWindow() override;
0021 
0022     QWidget * swapMainWidget(QWidget *widget);
0023 
0024     void closeEvent(QCloseEvent *event) override;
0025 private:
0026     struct Private;
0027     QScopedPointer<Private> d;
0028 };
0029 
0030 #endif