/usr/include/tulip/PropertyWidget.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 94 95 | //-*-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 PROPERTYWIDGETS_H
#define PROPERTYWIDGETS_H
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#if (__GNUC__ < 3)
#include <hash_map>
#else
#include <ext/hash_map>
#endif
#include <string>
#include <QtGui/qwidget.h>
#include <tulip/Graph.h>
#include <tulip/Size.h>
#include <tulip/Coord.h>
#include <tulip/TulipTableWidget.h>
namespace tlp {
typedef stdext::hash_map<int, std::string> GlyphTableString;
class PropertyInterface;
}
/** \addtogroup Tulip_Widgets */
/*@{*/
/* this table handle displaying and editing node or edge properties */
class TLP_QT_SIMPLE_SCOPE PropertyWidget : public tlp::TulipTableWidget {
Q_OBJECT;
private:
tlp::Graph *graph;
public:
PropertyWidget(QWidget *, const char * = 0);
~PropertyWidget();
tlp::Graph *getGraph() const;
public slots:
void setGraph(tlp::Graph *);
protected:
virtual void connectNotify (const char * signal);
private :
int vScrollPos;
bool displayNode;
bool _filterSelection;
bool showProperties;
tlp::BooleanProperty *filter;
unsigned int nbElement;
tlp::PropertyInterface *editedProperty;
std::string editedPropertyName;
private slots:
void showContextMenu(const QPoint & pos);
public slots:
void changeProperty(tlp::Graph *,const std::string &name);
void selectNodeOrEdge(bool );
void changePropertyValue(int,int);
void changePropertyNodeValue(int,int);
void changePropertyEdgeValue(int,int);
void filterSelection(bool);
void scroll(int);
void update();
void updateNodes();
void updateEdges();
void updateNbElements();
void setAllEdgeValue();
void setAllNodeValue();
void setAll();
signals:
void tulipNodePropertyChanged(tlp::Graph *, const tlp::node &, const QString &property, const QString &value);
void tulipEdgePropertyChanged(tlp::Graph *, const tlp::edge &, const QString &property, const QString &value);
void showElementProperties(unsigned int eltId, bool isNode);
};
/*@}*/
#endif //PROPERTYWIDGETS_H
|