1#ifndef COCKATRICE_RESIZABLE_PANEL_H
2#define COCKATRICE_RESIZABLE_PANEL_H
7#include <qtmetamacros.h>
20 QWidget *parent =
nullptr);
41 bool eventFilter(QObject *obj, QEvent *event)
override;
45 void dropEvent(QDropEvent *event)
override;
QPushButton * dragButton
Definition resizable_panel.h:61
QPoint dragStartPos
Definition resizable_panel.h:70
QFrame * dropIndicator
Definition resizable_panel.h:60
QPoint lastDragPos
Definition resizable_panel.h:71
bool isResizing
Definition resizable_panel.h:65
void startDrag()
Definition resizable_panel.cpp:304
void setSelected(bool selected)
Definition resizable_panel.cpp:130
ResizablePanel(const QString &typeId, AbstractAnalyticsPanelWidget *analyticsPanel, QWidget *parent=nullptr)
Definition resizable_panel.cpp:33
void hideDropIndicator()
Definition resizable_panel.cpp:372
AbstractAnalyticsPanelWidget * panel
Definition resizable_panel.h:34
int resizeStartHeight
Definition resizable_panel.h:68
void resizeEvent(QResizeEvent *event) override
Definition resizable_panel.cpp:273
void dragEnterEvent(QDragEnterEvent *event) override
Definition resizable_panel.cpp:227
QTimer * autoScrollTimer
Definition resizable_panel.h:72
void dragMoveEvent(QDragMoveEvent *event) override
Definition resizable_panel.cpp:235
QSize minimumSizeHint() const override
Definition resizable_panel.cpp:158
QWidget * resizeHandle
Definition resizable_panel.h:62
void updateSizeConstraints()
Definition resizable_panel.cpp:297
void dragLeaveEvent(QDragLeaveEvent *event) override
Definition resizable_panel.cpp:248
double resizeStartY
Definition resizable_panel.h:67
void dropEvent(QDropEvent *event) override
Definition resizable_panel.cpp:255
QString typeId
Definition resizable_panel.h:56
int currentHeight
Definition resizable_panel.h:64
QSize sizeHint() const override
Definition resizable_panel.cpp:153
int getMinimumAllowedHeight() const
Definition resizable_panel.cpp:290
QString getTypeId() const
Definition resizable_panel.h:29
QFrame * frame
Definition resizable_panel.h:58
QFrame * selectionOverlay
Definition resizable_panel.h:59
void setHeightFromSaved(int h)
Definition resizable_panel.cpp:140
void dragStarted(ResizablePanel *panel)
int getCurrentHeight() const
Definition resizable_panel.cpp:148
void showDropIndicator(double y)
Definition resizable_panel.cpp:365
void performAutoScroll()
Definition resizable_panel.cpp:332
bool isDraggingPanel
Definition resizable_panel.h:66
bool eventFilter(QObject *obj, QEvent *event) override
Definition resizable_panel.cpp:167
void dropRequested(ResizablePanel *dragged, ResizablePanel *target, bool insertBefore)