2017-07-19 14:20:32 -07:00
|
|
|
#pragma once
|
2015-03-04 20:37:09 +00:00
|
|
|
|
|
|
|
class lcTimelineWidget : public QTreeWidget
|
|
|
|
{
|
2015-03-13 05:26:01 +00:00
|
|
|
Q_OBJECT
|
|
|
|
|
2015-03-04 20:37:09 +00:00
|
|
|
public:
|
|
|
|
lcTimelineWidget(QWidget* Parent);
|
|
|
|
virtual ~lcTimelineWidget();
|
|
|
|
|
2015-07-05 01:04:27 +00:00
|
|
|
void Update(bool Clear, bool UpdateItems);
|
2015-03-13 05:26:01 +00:00
|
|
|
void UpdateSelection();
|
|
|
|
|
2015-03-15 19:42:11 +00:00
|
|
|
void InsertStep();
|
|
|
|
void RemoveStep();
|
2017-02-04 18:40:46 -08:00
|
|
|
void MoveSelection();
|
|
|
|
void SetCurrentStep();
|
|
|
|
|
|
|
|
public slots:
|
2019-12-29 11:48:55 -08:00
|
|
|
void CurrentItemChanged(QTreeWidgetItem* Current, QTreeWidgetItem* Previous);
|
2015-03-13 05:26:01 +00:00
|
|
|
void ItemSelectionChanged();
|
|
|
|
void CustomMenuRequested(QPoint Pos);
|
2015-03-08 00:27:11 +00:00
|
|
|
|
|
|
|
protected:
|
|
|
|
virtual void dropEvent(QDropEvent* Event);
|
2017-02-04 18:40:46 -08:00
|
|
|
virtual void mousePressEvent(QMouseEvent* Event);
|
|
|
|
void UpdateModel();
|
2019-12-29 12:33:13 -08:00
|
|
|
void UpdateCurrentStepItem();
|
2015-03-13 05:26:01 +00:00
|
|
|
|
2015-04-15 18:49:17 +00:00
|
|
|
QMap<int, QIcon> mIcons;
|
2015-03-13 05:26:01 +00:00
|
|
|
QMap<lcPiece*, QTreeWidgetItem*> mItems;
|
2019-12-29 12:33:13 -08:00
|
|
|
QTreeWidgetItem* mCurrentStepItem;
|
2015-03-13 05:26:01 +00:00
|
|
|
bool mIgnoreUpdates;
|
2015-03-04 20:37:09 +00:00
|
|
|
};
|
|
|
|
|