This file is indexed.

/usr/include/qgis/qgseditorconfigwidget.h is in libqgis-dev 2.4.0-1+b1.

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
/***************************************************************************
    qgseditorconfigwidget.h
     --------------------------------------
    Date                 : 24.4.2013
    Copyright            : (C) 2013 Matthias Kuhn
    Email                : matthias dot kuhn at gmx dot ch
 ***************************************************************************
 *                                                                         *
 *   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 QGSEDITORCONFIGWIDGET_H
#define QGSEDITORCONFIGWIDGET_H

#include <QWidget>

#include "qgseditorwidgetwrapper.h"

class QgsVectorLayer;

/**
 * This class should be subclassed for every configurable editor widget type.
 *
 * It implements the GUI configuration widget and transforms this to/from a configuration.
 *
 * It will only be instantiated by {@see QgsEditorWidgetFactory}
 */

class GUI_EXPORT QgsEditorConfigWidget : public QWidget
{
    Q_OBJECT
  public:
    /**
     * Create a new configuration widget
     *
     * @param vl       The layer for which the configuration dialog will be created
     * @param fieldIdx The index of the field on the layer for which this dialog will be created
     * @param parent   A parent widget
     */
    explicit QgsEditorConfigWidget( QgsVectorLayer* vl, int fieldIdx, QWidget* parent );

    /**
     * @brief Create a configuration from the current GUI state
     *
     * @return A widget configuration
     */
    virtual QgsEditorWidgetConfig config() = 0;

    /**
     * @brief Update the configuration widget to represent the given configuration.
     *
     * @param config The configuration which should be represented by this widget
     */
    virtual void setConfig( const QgsEditorWidgetConfig& config ) = 0;

    /**
     * Returns the field for which this configuration widget applies
     *
     * @return The field index
     */
    int field();

    /**
     * Returns the layer for which this configuration widget applies
     *
     * @return The layer
     */
    QgsVectorLayer* layer();

    /**
     * Destructor
     */
    virtual ~QgsEditorConfigWidget() {}

  private:
    QgsVectorLayer* mLayer;
    int mField;
};

#endif // QGSEDITORCONFIGWIDGET_H