moved kdeaccessibility kdeaddons kdeadmin kdeartwork kdebindings kdeedu kdegames...
[kdeedu.git] / kstars / kstars / conbridlg.h
blobe653ed702be62b296e69a64e8a232d31801e8605
1 /***************************************************************************
2 conbridlg.h - Contrast/Brightness Dialog
3 -------------------
4 begin : Fri Feb 6th 2004
5 copyright : (C) 2004 by Jasem Mutlaq
6 email : mutlaqja@ikarustech.com
7 ***************************************************************************/
9 /***************************************************************************
10 * *
11 * This program is free software; you can redistribute it and/or modify *
12 * it under the terms of the GNU General Public License as published by *
13 * the Free Software Foundation; either version 2 of the License, or *
14 * (at your option) any later version. *
15 * *
16 * *
17 ***************************************************************************/
19 #ifndef CONTRASTBRIGHTNESSDLG_H
20 #define CONTRASTBRIGHTNESSDLG_H
22 #include <kdialogbase.h>
23 #include <klocale.h>
25 class ConBriForm;
26 class FITSViewer;
27 class QImage;
30 class ContrastBrightnessDlg : public KDialogBase {
31 Q_OBJECT
32 public:
33 ContrastBrightnessDlg(QWidget *parent=0);
34 ~ContrastBrightnessDlg();
36 QSize sizeHint() const;
37 void range(int min, int max, int & num);
38 void range(float min, float max, float & num);
40 float *localImgBuffer;
41 float offs;
42 float scale;
44 private:
45 int contrast;
46 int brightness;
47 int height;
48 int width;
49 FITSViewer *viewer;
50 ConBriForm *ConBriDlg;
51 //unsigned char *localImgBuffer;
53 QImage *displayImage;
54 QImage *tempImage;
56 public slots:
57 void setContrast(int contrastValue);
58 void setBrightness(int brightnessValue);
63 #endif