Tulip  5.0.0
Large graphs analysis and drawing
TextureFileDialog.h
1 /*
2  *
3  * This file is part of Tulip (www.tulip-software.org)
4  *
5  * Authors: David Auber and the Tulip development Team
6  * from LaBRI, University of Bordeaux
7  *
8  * Tulip is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU Lesser General Public License
10  * as published by the Free Software Foundation, either version 3
11  * of the License, or (at your option) any later version.
12  *
13  * Tulip is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16  * See the GNU General Public License for more details.
17  *
18  */
19 ///@cond DOXYGEN_HIDDEN
20 
21 #ifndef TEXTUREFILEDIALOG_H
22 #define TEXTUREFILEDIALOG_H
23 
24 #include <QDialog>
25 
26 #include <tulip/tulipconf.h>
27 #include <tulip/TulipMetaTypes.h>
28 #include "ui_TextureFileDialog.h"
29 
30 namespace Ui {
31 class TextureFileDialogData;
32 }
33 
34 namespace tlp {
35 
36 /**
37  * @brief Provide a dialog that allow the user to choose
38  * a file whose name may be empty
39  *
40  *
41  **/
42 class TLP_QT_SCOPE TextureFileDialog : public QDialog {
43  Q_OBJECT
44 public:
45  Ui::TextureFileDialogData *ui;
46  TextureFile _data;
47  int ok;
48  TextureFileDialog(QWidget *parent = NULL);
49 
50  ~TextureFileDialog();
51 
52  void done(int res);
53 
54  void setData(const TextureFile& tf);
55 
56  const TextureFile& data() {
57  return _data;
58  }
59 public slots:
60  void browse();
61 };
62 }
63 #endif // TEXTUREFILEDIALOG_H
64 ///@endcond