diff options
author | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
---|---|---|
committer | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
commit | ce599e4f9f94b4eb00c1b5edb85bce5431ab3df2 (patch) | |
tree | d3bb9f5d25a2dc09ca81adecf39621d871534297 /kstars/kstars/conbridlg.h | |
download | tdeedu-ce599e4f9f94b4eb00c1b5edb85bce5431ab3df2.tar.gz tdeedu-ce599e4f9f94b4eb00c1b5edb85bce5431ab3df2.zip |
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeedu@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kstars/kstars/conbridlg.h')
-rw-r--r-- | kstars/kstars/conbridlg.h | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/kstars/kstars/conbridlg.h b/kstars/kstars/conbridlg.h new file mode 100644 index 00000000..e653ed70 --- /dev/null +++ b/kstars/kstars/conbridlg.h @@ -0,0 +1,63 @@ +/*************************************************************************** + conbridlg.h - Contrast/Brightness Dialog + ------------------- + begin : Fri Feb 6th 2004 + copyright : (C) 2004 by Jasem Mutlaq + email : mutlaqja@ikarustech.com + ***************************************************************************/ + +/*************************************************************************** + * * + * 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 CONTRASTBRIGHTNESSDLG_H + #define CONTRASTBRIGHTNESSDLG_H + + #include <kdialogbase.h> + #include <klocale.h> + + class ConBriForm; + class FITSViewer; + class QImage; + + +class ContrastBrightnessDlg : public KDialogBase { + Q_OBJECT + public: + ContrastBrightnessDlg(QWidget *parent=0); + ~ContrastBrightnessDlg(); + + QSize sizeHint() const; + void range(int min, int max, int & num); + void range(float min, float max, float & num); + + float *localImgBuffer; + float offs; + float scale; + + private: + int contrast; + int brightness; + int height; + int width; + FITSViewer *viewer; + ConBriForm *ConBriDlg; + //unsigned char *localImgBuffer; + + QImage *displayImage; + QImage *tempImage; + + public slots: + void setContrast(int contrastValue); + void setBrightness(int brightnessValue); + +}; + + +#endif |