-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsidebarfracture.h
More file actions
41 lines (34 loc) · 1.08 KB
/
sidebarfracture.h
File metadata and controls
41 lines (34 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#ifndef SIDEBARFRACTURE_H
#define SIDEBARFRACTURE_H
#include <QGraphicsRectItem>
#include <QGraphicsScene>
#include <QGraphicsView>
#include "feature.h"
#include <QGraphicsSceneDragDropEvent>
#include "featuretreewidget.h"
#include "backgroundfracture.h"
class SideBarFracture : public QGraphicsRectItem
{
public:
SideBarFracture(FeatureTreeWidget *t,Feature *f,int scenePosX, int scenePosY, int x, int y, int w, int h, QGraphicsScene *s, int l,QString name);
void setColor();
void indent();
void setFeature(Feature *f);
void addChildItems();
Feature *getFeature();
void setLength(int l);
int getLength();
QString completeName;
int indentation;
void mousePressEvent(QGraphicsSceneMouseEvent *event);
void dropEvent (QGraphicsSceneDragDropEvent * event);
void dragEnterEvent ( QGraphicsSceneDragDropEvent * event );
void setBGFracture(BackgroundFracture *bg);
private:
Feature *feature;
int length;
QGraphicsScene *scene;
FeatureTreeWidget *featureTree;
BackgroundFracture *bgFracture;
};
#endif // SIDEBARFRACTURE_H