#ifndef BASEDOCKWIDGET_H
#define BASEDOCKWIDGET_H

#include <QDockWidget>

class Editor;


class BaseDockWidget : public QDockWidget
{
    Q_OBJECT
public:
    explicit BaseDockWidget( QWidget* pParent );
    explicit BaseDockWidget( QWidget* pParent, Qt::WindowFlags );
    explicit BaseDockWidget( QString strTitle, QWidget* pParent, Qt::WindowFlags );
    virtual  ~BaseDockWidget();

    virtual void initUI() = 0;
    virtual void updateUI() = 0;

    Editor* editor() { return mEditor; }
    void setCore( Editor* pCore ) { mEditor = pCore; }

private:
    Editor* mEditor = nullptr;
};

#endif // BASEDOCKWIDGET_H
