This file is indexed.

/usr/share/sip/PyQt4/Qwt5/qwt_abstract_slider.sip is in python-qwt5-qt4 5.2.1~cvs20091107+dfsg-8.

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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
// The SIP interface specification for:
//      QwtAbstractSlider.
//
// Copyright (C) 2001-2009 Gerard Vermeulen
// Copyright (C) 2000 Mark Colclough
//
// This file is part of PyQwt.
//
// PyQwt 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.
//
// PyQwt is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License along
// with PyQwt; if not, write to the Free Software Foundation, Inc.,
// 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
//
// In addition, as a special exception, Gerard Vermeulen gives permission
// to link PyQwt dynamically with non-free versions of Qt and PyQt,
// and to distribute PyQwt in this form, provided that equally powerful
// versions of Qt and PyQt have been released under the terms of the GNU
// General Public License.
//
// If PyQwt is dynamically linked with non-free versions of Qt and PyQt,
// PyQwt becomes a free plug-in for a non-free program.


class QwtAbstractSlider: QWidget, QwtDoubleRange
{
%TypeHeaderCode
#include <qwt_abstract_slider.h>
%End // %TypeHeaderCode

public:
    enum ScrollMode {
        ScrNone,
        ScrMouse,
        ScrTimer,
        ScrDirect,
        ScrPage
    }; // enum ScrollMode

    QwtAbstractSlider(Qt::Orientation, QWidget* /TransferThis/ = 0);
    virtual ~QwtAbstractSlider();
    void setUpdateTime(int);
    void stopMoving();
    void setTracking(bool);
    virtual void setMass(double);
    virtual double mass() const;
    virtual void setOrientation(Qt::Orientation);
    Qt::Orientation orientation() const;
    bool isReadOnly() const;
    bool isValid() const;
    void setValid(bool);
public slots:
    virtual void setValue(double);
    virtual void fitValue(double);
    virtual void incValue(int);
    virtual void setReadOnly(bool);
signals:
    void valueChanged(double);
    void sliderPressed();
    void sliderReleased();
    void sliderMoved(double);
protected:
    virtual void setPosition(const QPoint&);
    virtual void valueChange();
    virtual void timerEvent(QTimerEvent*);
    virtual void mousePressEvent(QMouseEvent*);
    virtual void mouseReleaseEvent(QMouseEvent*);
    virtual void mouseMoveEvent(QMouseEvent*);
    virtual void keyPressEvent(QKeyEvent*);
    virtual void wheelEvent(QWheelEvent*);
    virtual double getValue(const QPoint&) = 0;
    virtual void getScrollMode(const QPoint&, int&, int&) = 0;
    void setMouseOffset(double);
    double mouseOffset() const;
    int scrollMode() const;

// python mksccode PyQt4.Qwt5
%ConvertToSubClassCode
    static struct class_graph {
        const char *name;
        sipWrapperType **type;
        int yes, no;
    } graph[] = {
        {sipName_QwtAbstractSlider, &sipClass_QwtAbstractSlider, 13, 1},
#if QWT_VERSION >= 0x050100
        {sipName_QwtPanner, &sipClass_QwtPanner, 19, 2},
#else
        {0, 0, 19, 2},
#endif
        {sipName_QwtDynGridLayout, &sipClass_QwtDynGridLayout, -1, 3},
        {sipName_QwtCounter, &sipClass_QwtCounter, -1, 4},
        {sipName_QwtLegend, &sipClass_QwtLegend, -1, 5},
        {sipName_QwtArrowButton, &sipClass_QwtArrowButton, -1, 6},
        {sipName_QwtScaleWidget, &sipClass_QwtScaleWidget, -1, 7},
        {sipName_QwtTextLabel, &sipClass_QwtTextLabel, 20, 8},
        {sipName_QwtPlotCanvas, &sipClass_QwtPlotCanvas, -1, 9},
        {sipName_QwtThermo, &sipClass_QwtThermo, -1, 10},
#if QWT_VERSION >= 0x050100
        {sipName_QwtMagnifier, &sipClass_QwtMagnifier, 21, 11},
#else
        {0, 0, 21, 11},
#endif
        {sipName_QwtPlot, &sipClass_QwtPlot, -1, 12},
        {sipName_QwtPicker, &sipClass_QwtPicker, 22, -1},
        {sipName_QwtDial, &sipClass_QwtDial, 17, 14},
        {sipName_QwtSlider, &sipClass_QwtSlider, -1, 15},
        {sipName_QwtWheel, &sipClass_QwtWheel, -1, 16},
        {sipName_QwtKnob, &sipClass_QwtKnob, -1, -1},
        {sipName_QwtAnalogClock, &sipClass_QwtAnalogClock, -1, 18},
        {sipName_QwtCompass, &sipClass_QwtCompass, -1, -1},
        {sipName_QwtPlotPanner, &sipClass_QwtPlotPanner, -1, -1},
        {sipName_QwtLegendItem, &sipClass_QwtLegendItem, -1, -1},
        {sipName_QwtPlotMagnifier, &sipClass_QwtPlotMagnifier, -1, -1},
        {sipName_QwtPlotPicker, &sipClass_QwtPlotPicker, 23, -1},
        {sipName_QwtPlotZoomer, &sipClass_QwtPlotZoomer, -1, -1},
    };
    int i = 0;
    sipClass = NULL;
    do {
        struct class_graph *cg = &graph[i];
        if (cg->name != NULL && sipCpp->inherits(cg->name)) {
            sipClass = *cg->type;
            i = cg->yes;
        } else {
            i = cg->no;
        }
    } while (i >= 0);
%End

}; // class QwtAbstractSlider


// Local Variables:
// mode: C++
// c-file-style: "stroustrup"
// indent-tabs-mode: nil
// End: