21 #ifndef CAPTIONGRAPHICSITEM_H
22 #define CAPTIONGRAPHICSITEM_H
30 class QGraphicsProxyWidget;
31 class QGraphicsSimpleTextItem;
38 class CaptionGraphicsBackgroundItem;
40 class CaptionGraphicsItem :
public QObject {
46 CaptionGraphicsItem(View *view);
47 ~CaptionGraphicsItem();
49 void setType(
unsigned int type);
51 void loadConfiguration();
53 void generateColorCaption(
const QGradient &activeGradient,
const QGradient &hideGradient,
const std::string &propertyName,
double minValue,
double maxValue);
55 void generateSizeCaption(
const std::vector< std::pair <double,float> > &metricToSizeFilteredList,
const std::string &propertyName,
double minValue,
double maxValue);
57 CaptionGraphicsBackgroundItem *getCaptionItem()
const {
58 return _rondedRectItem;
61 std::string usedProperty();
65 void filterChanged(
float begin,
float end);
66 void selectedPropertyChanged(std::string propertyName);
70 void filterChangedSlot(
float begin,
float end);
71 void selectPropertyButtonClicked();
72 void propertySelectedSlot();
75 QString wrappedPropName(
const QString& originalName)
const;
77 void constructConfigWidget();
81 CaptionGraphicsBackgroundItem *_rondedRectItem;
83 QGraphicsProxyWidget *_confPropertySelectionItem;
84 QGraphicsSimpleTextItem *_nodesEdgesTextItem;
85 QPushButton* _confPropertySelectionWidget;
90 #endif // CAPTIONGRAPHICSITEM_H