This file is indexed.

/usr/include/BALL/VIEW/DIALOGS/modelSettingsDialog.h is in libballview1.4-dev 1.4.3~beta1-4.

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
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
// -*- Mode: C++; tab-width: 2; -*-
// vi: set ts=2:
//

#ifndef BALL_VIEW_DIALOGS_MODELSETTINGSDIALOG_H
#define BALL_VIEW_DIALOGS_MODELSETTINGSDIALOG_H

#ifndef BALL_COMMON_GLOBAL_H
# include <BALL/COMMON/global.h>
#endif

#ifndef BALL_VIEW_MODELS_MODELPROCESSOR_H
# include <BALL/VIEW/MODELS/modelProcessor.h>
#endif

#ifndef BALL_VIEW_KERNEL_COMMON_H
# include <BALL/VIEW/KERNEL/common.h>
#endif

#ifndef BALL_VIEW_KERNEL_PREFERENCESENTRY
# include <BALL/VIEW/KERNEL/preferencesEntry.h>
#endif

#include <BALL/VIEW/UIC/ui_modelSettingsDialog.h>

#include <QtGui/QCheckBox>
#include <QtGui/QLabel>

class QSlider;
class QLabel;

namespace BALL
{
	class INIFile;
	class String;

	namespace VIEW
	{
		/** Dialog for the molecular model settings, it is inserted into the Preferences.
				\ingroup ViewDialogs
		*/
		class BALL_VIEW_EXPORT ModelSettingsDialog 
			: public QWidget,
				public Ui_ModelSettingsDialogData,
				public PreferencesEntry
		{ 
			Q_OBJECT

			public:

			/// Constructor
			ModelSettingsDialog( QWidget* parent = 0, const char* name = "ModelSettingsDialog", 
														Qt::WFlags fl = 0 );

			/// Destructor
			virtual ~ModelSettingsDialog() {}

			///
			virtual void applySettingsTo(ModelProcessor& cp) const;
				
			///
			virtual ModelProcessor* createModelProcessor(ModelType type) const
				throw(Exception::InvalidOption);

			///
			virtual void getSettings(const ModelProcessor& mp);

			///
			virtual QWidget* getEntryFor(ModelType type);

			///
			float getStickStickRadius() const
				{return getFloatValue_(stick_radius_slider);}

			///
			float getBallAndStickStickRadius() const
				{return getFloatValue_(ball_stick_cylinder_radius_slider);}

			///
			bool ballAndStickDashedBondsEnabled() const
				{return ball_stick_dashed_bonds->isChecked();}

			///
			float getBallRadius() const
				{return getFloatValue_(ball_stick_sphere_radius_slider);}

			///
			float getVDWRadiusFactor() const
				{return getFloatValue_(vdw_radius_factor_slider);}

			///
			float getSurfaceProbeRadius() const
				{return getFloatValue_(surface_probe_radius_slider);}

			///
			float getTubeRadius() const
				{return getFloatValue_(tube_radius_slider);}

			///
			float getCartoonTubeRadius() const
				{return getFloatValue_(cartoon_tube_radius_slider);}

			///
			float getCartoonHelixRadius() const
				{return getFloatValue_(cartoon_helix_radius_slider);}

			///
			float getCartoonArrowWidth() const
				{return getFloatValue_(strand_arrow_width_slider);}

			///
			float getCartoonStrandHeight() const
				{return getFloatValue_(strand_height_slider);}

			///
			float getCartoonStrandWidth() const
				{return getFloatValue_(strand_width_slider);}

			///
			float getHBondsRadius() const
				{return getFloatValue_(hbonds_radius_slider);}

			///
			float getForceMaxLength() const
				{return getFloatValue_(force_max_length_slider);}

			///
			float getForceScaling() const
				{ return getFloatValue_(force_scaling_slider);}

			///
			float getForceBase() const
				{return getFloatValue_(force_base_slider);}

			///
			float getForceOffset() const
				{return getFloatValue_(force_offset_slider);}

			///
			float getDNALadderRadius() const
				{return getFloatValue_(cartoon_dna_ladder_radius_slider);}

			///
			float getDNABaseRadius() const
				{return getFloatValue_(cartoon_dna_base_radius_slider);}

			///
			float getDNAHelixRadius() const
				{return getFloatValue_(cartoon_dna_helix_radius_slider);}

			///
			void setStickStickRadius(float value) 
				{ setValue_(stick_radius_slider,value);}

			///
			void setBallAndStickStickRadius(float value) 
				{ setValue_(ball_stick_cylinder_radius_slider,value);}

			///
			void setBallAndStickStickDashedBondsEnabled(bool state)
				{ ball_stick_dashed_bonds->setChecked(state);}

			///
			void setBallRadius(float value) 
				{ setValue_(ball_stick_sphere_radius_slider,value);}

			///
			void setVDWRadiusFactor(float value) 
				{ setValue_(vdw_radius_factor_slider,value);}

			///
			void setSurfaceProbeRadius(float value) 
				{ setValue_(surface_probe_radius_slider,value);}

			///
			void setTubeRadius(float value) 
				{ setValue_(tube_radius_slider,value);}

			///
			void setCartoonTubeRadius(float value) 
				{ setValue_(cartoon_tube_radius_slider,value);}

			///
			void setCartoonHelixRadius(float value) 
				{ setValue_(cartoon_helix_radius_slider,value);}

			///
			void setCartoonArrowWidth(float value) 
				{ setValue_(strand_arrow_width_slider ,value);}

			///
			void setCartoonStrandHeight(float value) 
				{ setValue_(strand_height_slider,value);}

			///
			void setCartoonStrandWidth(float value) 
				{ setValue_(strand_width_slider,value);}

			///
			void setHBondRadius(float value) 
				{ setValue_(hbonds_radius_slider,value);}

			///
			void setForceMaxLenght(float value) 
				{ setValue_(force_max_length_slider,value);}

			///
			void setForceScaling(float value) 
				{ setValue_(force_scaling_slider,value);}

			///
			void setForceOffset(float value) 
				{ setValue_(force_offset_slider ,value);}

			///
			void setForceBase(float value)
				{ setValue_(force_base_slider, value);}

			///
			void setCartoonDNALadderRadius(float value)
				{ setValue_(cartoon_dna_ladder_radius_slider, value / 10.);}

			///
			void setCartoonDNAHelixRadius(float value)
				{ setValue_(cartoon_dna_helix_radius_slider, value / 10.);}

			///
			void setCartoonDNABaseRadius(float value)
				{ setValue_(cartoon_dna_base_radius_slider, value / 10.);}

			public slots:
			
			///

			protected slots:
			void stickRadiusChanged() {setLabelText_(stick_radius_label, stick_radius_slider);}
			void VDWfactorChanged() {setLabelText_(vdw_radius_factor_label, vdw_radius_factor_slider);}
			void ballStickSphereRadiusChanged() {setLabelText_(ball_stick_sphere_radius_label, ball_stick_sphere_radius_slider);}
			void ballStickCylinderRadiusChanged() {setLabelText_(ball_stick_cylinder_radius_label, ball_stick_cylinder_radius_slider);}
			void probeRadiusChanged() {setLabelText_(surface_probe_radius_label, surface_probe_radius_slider);}
			void tubeRadiusChanged() {setLabelText_(tube_radius_label, tube_radius_slider);}
			void cartoonTubeRadiusChanged(){setLabelText_(cartoon_tube_radius_label, cartoon_tube_radius_slider);}
			void cartoonHelixRadiusChanged(){setLabelText_(cartoon_helix_radius_label, cartoon_helix_radius_slider);}
			
			void cartoonStrandArrowWidthChanged(){setLabelText_(strand_arrow_width_label, strand_arrow_width_slider);}
			void cartoonStrandHeightChanged(){setLabelText_(strand_height_label, strand_height_slider);}
			void cartoonStrandWidthChanged() {setLabelText_(strand_width_label, strand_width_slider);}
			
			void cartoonDNAHelixRadiusChanged(){setLabelText_(cartoon_dna_helix_radius_label, cartoon_dna_helix_radius_slider);}
			void cartoonDNABaseRadiusChanged(){setLabelText_(cartoon_dna_base_radius_label, cartoon_dna_base_radius_slider);}
			void cartoonDNALadderRadiusChanged(){setLabelText_(cartoon_dna_ladder_radius_label, cartoon_dna_ladder_radius_slider);}
			void hbondsRadiusChanged(){setLabelText_(hbonds_radius_label, hbonds_radius_slider);}
			void forceScalingChanged(){setLabelText_(force_scaling_label, force_scaling_slider);}
			void forceMaxLengthChanged(){setLabelText_(force_max_length_label, force_max_length_slider);}
			void forceBaseChanged(){setLabelText_(force_base_label, force_base_slider);}
			void forceOffsetChanged(){setLabelText_(force_offset_label, force_offset_slider);}
			void changedNAMode_(bool state);

			protected:

			float getFloatValue_(const QSlider* const& le) const;

			void setValue_(QSlider* le, float value);

			void setLabelText_(QLabel* label, const QSlider* const from);

			void setDefaultValues_();
		};

} }

#endif