kstars
conbridlg.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef CONTRASTBRIGHTNESSDLG_H
00020 #define CONTRASTBRIGHTNESSDLG_H
00021
00022 #include <kdialogbase.h>
00023 #include <klocale.h>
00024
00025 class ConBriForm;
00026 class FITSViewer;
00027 class QImage;
00028
00029
00030 class ContrastBrightnessDlg : public KDialogBase {
00031 Q_OBJECT
00032 public:
00033 ContrastBrightnessDlg(QWidget *parent=0);
00034 ~ContrastBrightnessDlg();
00035
00036 QSize sizeHint() const;
00037 void range(int min, int max, int & num);
00038 void range(float min, float max, float & num);
00039
00040 float *localImgBuffer;
00041 float offs;
00042 float scale;
00043
00044 private:
00045 int contrast;
00046 int brightness;
00047 int height;
00048 int width;
00049 FITSViewer *viewer;
00050 ConBriForm *ConBriDlg;
00051
00052
00053 QImage *displayImage;
00054 QImage *tempImage;
00055
00056 public slots:
00057 void setContrast(int contrastValue);
00058 void setBrightness(int brightnessValue);
00059
00060 };
00061
00062
00063 #endif