/*
 * Copyright (C) 2017 ~ 2018 Wuhan Deepin Technology Co., Ltd.
 *
 * Author:     Iceyer <me@iceyer.net>
 *
 * Maintainer: Iceyer <me@iceyer.net>
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

//#pragma once

//#include <dborderlesswindow.h>
//#include <QScopedPointer>

//#define BMWindowBaseClass DTK_WIDGET_NAMESPACE::DBorderlessWindow

//class BMWindowPrivate;
//class BMWindow: public DTK_WIDGET_NAMESPACE::DBorderlessWindow
//{
//    Q_OBJECT
//public:
//    BMWindow(QWidget *parent = nullptr);
//    ~BMWindow();
//private:
//    QScopedPointer<BMWindowPrivate> d_ptr;
//    Q_DECLARE_PRIVATE_D(qGetPtrHelper(d_ptr), BMWindow)
//};

#pragma once

#include <DMainWindow>

#include <QScopedPointer>

#define BMWindowBaseClass DTK_WIDGET_NAMESPACE::DMainWindow

class BMWindowPrivate;
class BMWindow: public DTK_WIDGET_NAMESPACE::DMainWindow
{
    Q_OBJECT
public:
    BMWindow(QWidget *parent = nullptr);
    ~BMWindow();
     virtual void closeEvent(QCloseEvent *event);
public slots:
    void slot_ThemeChange();
private:
    bool closeflags = true;
    QScopedPointer<BMWindowPrivate> d_ptr;
    Q_DECLARE_PRIVATE_D(qGetPtrHelper(d_ptr), BMWindow)
};

