This file is indexed.

/usr/include/tulip/elementpropertieswidget.h is in libtulip-qt4-dev 3.1.2-2.3ubuntu3.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
//-*-c++-*-
/**
 Authors: David Auber, Patrick Mary, Morgan Mathiaut
 from the LaBRI Visualization Team
 Email : auber@tulip-software.org
 Last modification : 13/03/2009 
 This program is free software; you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published by  
 the Free Software Foundation; either version 2 of the License, or     
 (at your option) any later version.
*/
#ifndef TULIPELEMENTPROPERTIES_H
#define TULIPELEMENTPROPERTIES_H

#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

#include <QtCore/qstringlist.h>
#include <QtCore/qsize.h>

#include <tulip/Graph.h>
#include <tulip/ObservableGraph.h>
#include "tulip/ElementPropertiesWidgetUI.h"

namespace tlp {

  class TLP_QT_SIMPLE_SCOPE ElementPropertiesWidget : public ElementPropertiesWidgetUI, public GraphObserver
    {
      Q_OBJECT;
      // moc as of qt 3.0.5 doesn't understand '::'... silly
      //  Q_ENUMS(Tulip::AtomType);
      //  Q_PROPERTY(Tulip::AtomType displayMode READ getDisplayMode WRITE setDisplayMode);
      Q_PROPERTY(QStringList nodeListedProperties READ getNodeListedProperties WRITE setNodeListedProperties);
      Q_PROPERTY(QStringList edgeListedProperties READ getEdgeListedProperties WRITE setEdgeListedProperties);
      Q_PROPERTY(bool elementDisplayed READ isElementDisplayed);
    protected:
      ElementType displayMode;
      node currentNode;
      edge currentEdge;
      bool nodeSet;
      bool edgeSet;
      bool displayAllProperties;
      Graph *graph;
      QStringList nodeListedProperties;
      QStringList edgeListedProperties;

      //inherited slots

  
    public:
      ElementPropertiesWidget(Graph *, const QStringList &nodeListedProperties,
			      const QStringList &edgeListedProperties,
			      QWidget *parent = 0);
      ElementPropertiesWidget(QWidget *parent = 0);
      ~ElementPropertiesWidget();
    
      QStringList getCurrentListedProperties() const;
      QStringList getNodeListedProperties() const;
      QStringList getEdgeListedProperties() const;
      Graph *getGraph() const;
      node getCurrentNode() const;
      edge getCurrentEdge() const;
      ElementType getDisplayMode() const;
      bool isElementDisplayed() const;
  
      public slots:
      void updateTable();
      void propertyTableValueChanged(int, int);
      void setDisplayMode(const ElementType);
      void setCurrentNode(Graph *, const node &);
      void setCurrentEdge(Graph *, const edge &);
      void setGraph(Graph *, bool distroy = true);
      void setCurrentListedProperties(const QStringList &);
      void setNodeListedProperties(const QStringList &);
      void setEdgeListedProperties(const QStringList &);
      void nodePropertyChanged(Graph *, const node &, const QString &, const QString &);
      void edgePropertyChanged(Graph *, const edge &, const QString &, const QString &);
  
    signals:
      void tulipNodePropertyChanged(Graph *, const node &, const QString &property, const QString &value);
      void tulipEdgePropertyChanged(Graph *, const edge &, const QString &property, const QString &value);


    private:
      void delNode(Graph *, node);
      void delEdge(Graph *, edge);
      void destroy(Graph *);
    };

}

#endif //TULIPELEMENTPROPERTIES_H