41 lines
1.1 KiB
C++
41 lines
1.1 KiB
C++
#include "dockpanel.h"
|
|
|
|
#include <QApplication>
|
|
#include <QDebug>
|
|
#include <QDrag>
|
|
#include <QHBoxLayout>
|
|
#include <QMimeData>
|
|
#include <QMouseEvent>
|
|
#include <QPushButton>
|
|
|
|
using namespace base_view;
|
|
|
|
split_frame::ResManager *DockPanel::splitManager() const {
|
|
if(this->parent_res)
|
|
return this->parent_res->splitManager();
|
|
return nullptr;
|
|
}
|
|
|
|
split_frame::ViewRes *DockPanel::parentRes() const { return this->parent_res; }
|
|
|
|
QWidget *DockPanel::widget() const { return const_cast<DockPanel *>(this); }
|
|
|
|
bool DockPanel::canRetrieve() const { return m_retrieve; }
|
|
|
|
bool DockPanel::canClose() const { return m_close; }
|
|
|
|
bool DockPanel::canReplace() const { return m_replace; }
|
|
|
|
QIcon DockPanel::icon() const { return QWidget::windowIcon(); }
|
|
|
|
QString DockPanel::title() const { return QWidget::windowTitle(); }
|
|
|
|
QSizeF DockPanel::viewSize() const { return this->size(); }
|
|
|
|
void DockPanel::resizeView(const QSizeF &outline) { QWidget::resize(outline.toSize()); }
|
|
|
|
DragHeader::DragHeader(const QString &title, DockPanel *bind_core) : QFrame(bind_core->widget()) {
|
|
setWindowTitle(title);
|
|
|
|
}
|