2015-03-04 21:37:09 +01:00
|
|
|
#ifndef _LC_TIMELINEWIDGET_H_
|
|
|
|
#define _LC_TIMELINEWIDGET_H_
|
|
|
|
|
|
|
|
class lcTimelineWidget : public QTreeWidget
|
|
|
|
{
|
2015-03-13 06:26:01 +01:00
|
|
|
Q_OBJECT
|
|
|
|
|
2015-03-04 21:37:09 +01:00
|
|
|
public:
|
|
|
|
lcTimelineWidget(QWidget* Parent);
|
|
|
|
virtual ~lcTimelineWidget();
|
|
|
|
|
2015-03-16 02:10:01 +01:00
|
|
|
void Update(bool Clear);
|
2015-03-13 06:26:01 +01:00
|
|
|
void UpdateSelection();
|
|
|
|
|
|
|
|
public slots:
|
2015-03-15 20:42:11 +01:00
|
|
|
void InsertStep();
|
|
|
|
void RemoveStep();
|
2015-03-13 06:26:01 +01:00
|
|
|
void ItemSelectionChanged();
|
|
|
|
void CustomMenuRequested(QPoint Pos);
|
2015-03-08 01:27:11 +01:00
|
|
|
|
|
|
|
protected:
|
|
|
|
virtual void dropEvent(QDropEvent* Event);
|
2015-03-13 06:26:01 +01:00
|
|
|
|
|
|
|
QMap<lcPiece*, QTreeWidgetItem*> mItems;
|
|
|
|
bool mIgnoreUpdates;
|
2015-03-04 21:37:09 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // _LC_TIMELINEWIDGET_H_
|