1 /****************************************************************************
2 * VCGLib                                                            o o     *
3 * Visual and Computer Graphics Library                            o     o   *
4 *                                                                _   O  _   *
5 * Copyright(C) 2004                                                \/)\/    *
6 * Visual Computing Lab                                            /\/|      *
7 * ISTI - Italian National Research Council                           |      *
8 *                                                                    \      *
9 * All rights reserved.                                                      *
10 *                                                                           *
11 * This program is free software; you can redistribute it and/or modify      *
12 * it under the terms of the GNU General Public License as published by      *
13 * the Free Software Foundation; either version 2 of the License, or         *
14 * (at your option) any later version.                                       *
15 *                                                                           *
16 * This program is distributed in the hope that it will be useful,           *
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of            *
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the             *
19 * GNU General Public License (http://www.gnu.org/licenses/gpl.txt)          *
20 * for more details.                                                         *
21 *                                                                           *
22 ****************************************************************************/
23 
24 #ifndef __VCGLIB_TEXTURE_RENAME
25 #define __VCGLIB_TEXTURE_RENAME
26 
27 #include <QDialog>
28 
29 namespace Ui
30 {
31 	class RenameTextureDialog;
32 }
33 
34 class ChangeTextureNameDialog : public QDialog
35 {
36 	Q_OBJECT
37 public:
38 	ChangeTextureNameDialog(QWidget *parent);
39 	ChangeTextureNameDialog(QWidget *parent,std::string oldtexture);
40 	~ChangeTextureNameDialog();
41 
42 	void InitDialog();
GetTextureName()43 	std::string GetTextureName(){return texture;}
44 
45 private slots:
46 	void SlotOkButton();
47 	void SlotCancelButton();
48 	void SlotSearchTextureName();
49 
50 private:
51 	Ui::RenameTextureDialog* ui;
52 	std::string texture;
53 };//end class
54 
55 #endif
56