22 #ifndef QUICKACCESSBAR_H 23 #define QUICKACCESSBAR_H 27 #include <tulip/CaptionItem.h> 28 #include <tulip/tulipconf.h> 38 class GlGraphRenderingParameters;
39 class GlGraphInputData;
41 class TulipItemDelegate;
44 class PropertyInterface;
46 class TLP_QT_SCOPE QuickAccessBar :
public QWidget {
50 GlMainView* _mainView;
51 GlScene* scene()
const;
54 QuickAccessBar(QWidget *parent=0);
58 virtual void reset()=0;
61 void settingsChanged();
64 class TLP_QT_SCOPE QuickAccessBarImpl :
public QuickAccessBar {
67 Ui::QuickAccessBar* _ui;
68 QGraphicsItem *_quickAccessBarItem;
70 TulipItemDelegate* delegate;
72 GlGraphInputData* inputData()
const;
73 GlGraphRenderingParameters* renderingParameters()
const;
76 bool _captionsInitialized;
77 CaptionItem *_captions[4];
78 void updateFontButtonStyle();
79 void showHideCaption(CaptionItem::CaptionType captionType);
80 void setAllValues(
unsigned int eltType, PropertyInterface* prop);
81 void setAllColorValues(
unsigned int eltType, ColorProperty* prop,
85 explicit QuickAccessBarImpl(QGraphicsItem *quickAccessBarItem,QWidget *parent = 0);
86 virtual ~QuickAccessBarImpl();
91 void setBackgroundColor(
const QColor&);
92 void setColorInterpolation(
bool);
93 void setLabelColor(
const QColor&);
94 void setNodeColor(
const QColor&);
95 void setNodeBorderColor(
const QColor&);
96 void setEdgeColor(
const QColor&);
97 void setEdgeBorderColor(
const QColor&);
102 void setSizeInterpolation(
bool);
103 void showHideNodesColorCaption();
104 void showHideNodesSizeCaption();
105 void showHideEdgesColorCaption();
106 void showHideEdgesSizeCaption();
108 void setEdgesVisible(
bool);
109 void setLabelsVisible(
bool);
110 void setLabelsScaled(
bool);
112 void setNodeLabelPosition();
116 #endif // QUICKACCESSBAR_H An abstract view that displays a GlMainWidget as its central widget.