1 // NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
2 // Copyright (C) 2014-2016 Jan BOON (Kaetemi) <jan.boon@kaetemi.be>
4 // This program is free software: you can redistribute it and/or modify
5 // it under the terms of the GNU Affero General Public License as
6 // published by the Free Software Foundation, either version 3 of the
7 // License, or (at your option) any later version.
9 // This program is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU Affero General Public License for more details.
14 // You should have received a copy of the GNU Affero General Public License
15 // along with this program. If not, see <http://www.gnu.org/licenses/>.
17 #ifndef NLTOOLS_PANOPLY_PREVIEW_H
18 #define NLTOOLS_PANOPLY_PREVIEW_H
19 #include <nel/misc/types_nl.h>
32 #include <nel/misc/log.h>
33 #include <nel/misc/displayer.h>
48 * \brief CPanoplyPreview
49 * \date 2014-09-19 09:38GMT
50 * \author Jan BOON (jan.boon@kaetemi.be)
52 class CPanoplyPreview
: public QWidget
57 CPanoplyPreview(CMainWindow
*parent
);
58 virtual ~CPanoplyPreview();
60 void displayBitmap(const NLMISC::CBitmap
&bitmap
); // Called from thread!
63 virtual void paintEvent(QPaintEvent
*e
);
71 void colorEdited(const QString
&text
);
72 void maskEdited(const QString
&text
);
75 void hueChanged(int value
);
76 void lightnessChanged(int value
);
77 void saturationChanged(int value
);
78 void luminosityChanged(int value
);
79 void contrastChanged(int value
);
82 void createDockWindows(CMainWindow
*mainWindow
);
85 NLMISC::IThread
*m_Thread
;
86 CColorThread
*m_ColorThread
;
94 NLMISC::CMutex m_ImageMutex
;
97 CPanoplyPreview(const CPanoplyPreview
&);
98 CPanoplyPreview
&operator=(const CPanoplyPreview
&);
100 }; /* class CPanoplyPreview */
102 class CSliderTextEdit
: public QSlider
107 CSliderTextEdit(QWidget
*parent
, QLineEdit
*lineEdit
, float scale
);
108 virtual ~CSliderTextEdit();
111 void lineEditTextEdited(const QString
&text
);
112 void sliderValueChanged(int value
);
115 QLineEdit
*m_LineEdit
;
121 } /* namespace NLTOOLS */
123 #endif /* #ifndef NLTOOLS_PANOPLY_PREVIEW_H */