mirror of
https://github.com/leozide/leocad
synced 2024-11-17 07:47:55 +01:00
36 lines
790 B
C++
36 lines
790 B
C++
#pragma once
|
|
|
|
class lcTimelineWidget : public QTreeWidget
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
lcTimelineWidget(QWidget* Parent);
|
|
~lcTimelineWidget();
|
|
|
|
void Update(bool Clear, bool UpdateItems);
|
|
void UpdateSelection();
|
|
|
|
void InsertStepBefore();
|
|
void InsertStepAfter();
|
|
void RemoveStep();
|
|
void MoveSelection();
|
|
void SetCurrentStep();
|
|
|
|
public slots:
|
|
void CurrentItemChanged(QTreeWidgetItem* Current, QTreeWidgetItem* Previous);
|
|
void ItemSelectionChanged();
|
|
void CustomMenuRequested(QPoint Pos);
|
|
|
|
protected:
|
|
void dropEvent(QDropEvent* DropEvent) override;
|
|
void mousePressEvent(QMouseEvent* MouseEvent) override;
|
|
void UpdateModel();
|
|
void UpdateCurrentStepItem();
|
|
|
|
QMap<int, QIcon> mIcons;
|
|
QMap<lcPiece*, QTreeWidgetItem*> mItems;
|
|
QTreeWidgetItem* mCurrentStepItem;
|
|
bool mIgnoreUpdates;
|
|
};
|
|
|