This file is indexed.

/usr/share/qtcreator/templates/tlpview/view.cpp is in libtulip-dev 4.4.0dfsg2-2.

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
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
#include "%ProjectName:l%.%CppHeaderSuffix%"

@if "%BaseView%" == "ViewWidget"
#include <QWidget>
@endif

using namespace tlp;

%ProjectName:c%::%ProjectName:c%(const tlp::PluginContext* context): %BaseView%() {
}

%ProjectName:c%::~%ProjectName:c%() {
}

QList<QWidget*> %ProjectName:c%::configurationWidgets() const {
  QList<QWidget*> result = %BaseView%::configurationWidgets();
  // Add configuration widgets
  return result;
}

void %ProjectName:c%::applySettings() {
  %BaseView%::applySettings();
  // Apply view settings
}

tlp::DataSet %ProjectName:c%::state() const {
  tlp::DataSet result;
  // Fill DataSet
  return result;
}

void %ProjectName:c%::setState(const tlp::DataSet& data) {
  // Restore view's state from DataSet
}

@if "%BaseView%" == "View"
void %ProjectName:c%::setupUi() {
  _graphicsView = new QGraphicsView();
  // Fill up the QGraphicsView instance returned by graphicsView()
}

QGraphicsView* %ProjectName:c%::graphicsView() const {
  return _graphicsView;
}

QGraphicsItem* %ProjectName:c%::centralItem() const {
  // Return the main background item in the view
  return NULL;
}
@endif

@if "%BaseView%" == "ViewWidget"
void %ProjectName:c%::setupWidget() {
  // setus up the central widget
  QWidget* widget = new QWidget();
  // fill up the central widget
  setCentralWidget(widget);
}

@endif

@if "%BaseView%" != "GlMainView"
void %ProjectName:c%::centerView() {
  // Reset the visualization's point of view
}

void %ProjectName:c%::draw(tlp::PluginProgress* pluginProgress) {
  // Redraw the visualization after the graph has changed
}

void %ProjectName:c%::refresh(tlp::PluginProgress* pluginProgress) {
  // Redraw the visualization without any modification made to the graph since the last draw
}

QPixmap %ProjectName:c%::snapshot(const QSize& outputSize) {
  QPixmap result;
  // Fill the pixmap with a snapshot of the view
  return result;
}
@endif

void %ProjectName:c%::interactorsInstalled(const QList<tlp::Interactor*>& interactors) {
}

void %ProjectName:c%::currentInteractorChanged(tlp::Interactor*) {
}

void %ProjectName:c%::graphChanged(tlp::Graph*) {
  // Point the visualization to the new graph
}

@if "%BaseView%" == "View"
void %ProjectName:c%::graphDeleted(tlp::Graph* parentGraph) {
  // Moves the visualization to the parent graph (or NULL if the previous graph was root)
  setGraph(parentGraph);
}

@endif

void %ProjectName:c%::fillContextMenu(QMenu* menu,const QPointF& point) {

  @if "%BaseView%" == "View"
  %BaseView%::fillContextMenu(menu, point);

  @endif
  // fill up context menu
}

PLUGIN(%ProjectName:c%)