This file is indexed.

/usr/include/odinqt/floatedit.h is in libodin-dev 1.8.8-2ubuntu1.

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
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
/***************************************************************************
                          floatedit.h  -  description
                             -------------------
    begin                : Sun Aug 27 2000
    copyright            : (C) 2000-2014 by Thies Jochimsen
    email                : thies@jochimsen.de
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   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 FLOATEDIT_H
#define FLOATEDIT_H

#include <qgroupbox.h>

#include "odinqt.h"

/**
  * This class implements a line edit with float values only; A number
  * of digits to display must be specified.
  */
class floatLineEdit : public QObject {
   Q_OBJECT

 public:
  floatLineEdit(float minValue, float maxValue, float value, int digits, QWidget *parent, const char *name, int width, int height );
  ~floatLineEdit();

  QWidget* get_widget() {return gle->get_widget();}

  // required public for range slider
  void set_value(float value);
  float get_value() const {return value_cache;}

 public slots:
  void setfloatLineEditValue( float value);

 private slots:
  void emitSignal();

 signals:
  void floatLineEditValueChanged(float value);

 private:

  int digits_cache;
  float value_cache;

  GuiLineEdit* gle;
};


////////////////////////////////////////////////////////////////

/**
  * This class implements a slider with float values (of course it's still
  * discrete !), so you can use rational numbers as its values
  */
class floatSlider : public QObject  {
   Q_OBJECT

 public:
  floatSlider(float minValue, float maxValue, float step, float value, QWidget *parent, const char *name );
  ~floatSlider();

  QWidget* get_widget();

 public slots:
  void setfloatSliderValue( float value);

 private slots:
  void emitSignal( int discrete_value);

 signals:
  void floatSliderValueChanged( float newvalue);


 private:
  GuiSlider* gs;
  float minValue_cache;
  float step_cache;
  int oldPosition;
};


////////////////////////////////////////////////////////////////


/**
  * This class contains a floatlineedit to display a float value
  * in a nice box with a label.
  */
class floatLineBox : public QGroupBox  {
   Q_OBJECT

 public:
  floatLineBox(float value, int digits, QWidget *parent, const char *name);
  ~floatLineBox();

 public slots:
  void setfloatLineBoxValue( float value );


 private slots:
  void emitSignal( float  value );


 signals:
  void floatLineBoxValueChanged( float  value );

 private:
  GuiGridLayout* grid;
  floatLineEdit *le;
};


////////////////////////////////////////////////////////////////

/**
  * This class implements a slider useful for scientific applications
  * by composing a floatSlider and a floatLineEdit into one widget.
  */
class floatScientSlider : public QGroupBox  {
   Q_OBJECT

 public:
  floatScientSlider(float minValue, float maxValue, float Step, float value, int digits, QWidget *parent, const char *name);
  ~floatScientSlider();

 public slots:
  void setfloatScientSliderValue( float value );

 private slots:
  void emitSignal( float  value );

 signals:
  void floatScientSliderValueChanged( float  value );

 private:
  float value;
  floatSlider* slider;
  GuiGridLayout* grid;
  floatLineEdit *le;


};

///////////////////////////////////////////////////////////////////////

/**
  * This class contains 3 floatlineedit to display 3 values
  * in a nice box with a label.
  */
class floatLineBox3D : public QGroupBox  {
   Q_OBJECT

 public:
  floatLineBox3D(float xval, float yval, float zval, int digits, QWidget *parent, const char *name);
  ~floatLineBox3D();

 public slots:
  void setfloatLineBox3DValue( float xval, float yval, float zval );

 private slots:
  void emitSignal_x( float newval );
  void emitSignal_y( float newval );
  void emitSignal_z( float newval );

 signals:
  void floatLineBox3DValueChanged( float xval, float yval, float zval );
  void SignalToChild_x( float );
  void SignalToChild_y( float );
  void SignalToChild_z( float );

 private:
  GuiGridLayout* grid;
  floatLineEdit *lex;
  floatLineEdit *ley;
  floatLineEdit *lez;
  float xcache;
  float ycache;
  float zcache;
};


#endif