FotoSHOCK
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Pages
QFormatOpts.h
1 /*
2  * Copyright 2012 Lukas Jirkovsky
3  *
4  * This file is part of FotoSHOCK.
5  *
6  * FotoSHOCK is free software: you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation, version 3 of the License.
9  *
10  * FotoSHOCK is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with FotoSHOCK. If not, see <http://www.gnu.org/licenses/>.
17  */
18 
19 #ifndef QFORMATOPTS_H
20 #define QFORMATOPTS_H
21 
22 #include <ValueType.hpp>
23 #include <ColorSpace.hpp>
24 
25 #include <QDialog>
26 
27 namespace Ui {
28 class FormatOptsDialog;
29 }
30 
31 class QFormatOpts : public QDialog {
32 Q_OBJECT
33  public:
34  explicit QFormatOpts(QWidget* parent = 0, Qt::WindowFlags f = 0);
35  virtual ~QFormatOpts();
36 
37  FotoSHOCKcore::ValueType format() const;
38  FotoSHOCKcore::ColorSpace colorSpace() const;
39  private slots:
40  void setUserFormat(int format);
41  void setColorSpace(const QString& colorspace);
42  private:
43  Ui::FormatOptsDialog *ui;
44  FotoSHOCKcore::ValueType m_format;
45  FotoSHOCKcore::ColorSpace m_colorSpace;
46 };
47 
48 #endif // QFORMATOPTS_H