FotoSHOCK
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Pages
QLoadImage.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 QLOADIMAGE_H
20 #define QLOADIMAGE_H
21 
22 #include "RootLoadImage.h"
23 #include <ValueType.hpp>
24 #include <ColorSpace.hpp>
25 
26 #include <QFileDialog>
27 #include <QPushButton>
28 
29 class QLoadImage : public QFileDialog {
30 Q_OBJECT
31  public:
32  explicit QLoadImage(RootLoadImage *op, QWidget* parent = 0);
33  private slots:
34  void showOptions(bool);
35 
36  void selectFile(const QString &file);
37  private:
38  RootLoadImage *m_op;
39  QPushButton *m_optionsButton;
40 
41  bool m_customFormat;
42  FotoSHOCKcore::ValueType m_format;
43  FotoSHOCKcore::ColorSpace m_colorSpace;
44 };
45 
46 #endif // QLOADIMAGE_H