/usr/include/odinqt/intedit.h is in libodin-dev 1.8.8-1.
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 | /***************************************************************************
intedit.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 INTEDIT_H
#define INTEDIT_H
#include <qgroupbox.h>
#include "odinqt.h"
/**
* This class implements a line edit with int values only.
*/
class intLineEdit : public QObject {
Q_OBJECT
public:
intLineEdit(int minValue, int maxValue, int value, QWidget *parent, const char *name, int width, int height );
~intLineEdit();
QWidget* get_widget() {return gle->get_widget();}
public slots:
void setintLineEditValue( int value );
private slots:
void emitSignal( );
signals:
void intLineEditValueChanged( int value );
private:
void set_value(int value);
GuiLineEdit* gle;
};
////////////////////////////////////////////////////////////
/**
* This class contains a intlineedit to display an int value
* in a nice box with a label.
*/
class intLineBox : public QGroupBox {
Q_OBJECT
public:
intLineBox(int value, QWidget *parent, const char *name);
~intLineBox();
public slots:
void setintLineBoxValue( int value );
private slots:
void emitSignal( int value );
signals:
void intLineBoxValueChanged( int value );
void SignalToChild( int value );
private:
GuiGridLayout* grid;
intLineEdit *le;
};
////////////////////////////////////////////////////////////
/**
* This class implements a slider useful for scientific applications
* by composing a QSlider(int values) and a intLineEdit into one widget.
*/
class intScientSlider : public QGroupBox {
Q_OBJECT
public:
intScientSlider(int minValue, int maxValue, int Step, int value, QWidget *parent, const char *name);
~intScientSlider();
public slots:
void setintScientSliderValue( int value );
private slots:
void emitSignal( int value );
signals:
void intScientSliderValueChanged( int value );
private:
int value;
GuiSlider* slider;
GuiGridLayout* grid;
intLineEdit *le;
};
////////////////////////////////////////////////////////////
#endif
|