leocad/common/lc_timelinewidget.h

33 lines
610 B
C
Raw Normal View History

#pragma once
class lcTimelineWidget : public QTreeWidget
{
Q_OBJECT
public:
lcTimelineWidget(QWidget* Parent);
virtual ~lcTimelineWidget();
void Update(bool Clear, bool UpdateItems);
void UpdateSelection();
void InsertStep();
void RemoveStep();
void MoveSelection();
void SetCurrentStep();
public slots:
void ItemSelectionChanged();
void CustomMenuRequested(QPoint Pos);
2015-03-08 01:27:11 +01:00
protected:
virtual void dropEvent(QDropEvent* Event);
virtual void mousePressEvent(QMouseEvent* Event);
void UpdateModel();
2015-04-15 20:49:17 +02:00
QMap<int, QIcon> mIcons;
QMap<lcPiece*, QTreeWidgetItem*> mItems;
bool mIgnoreUpdates;
};