forked from qt-creator/qt-creator
		
	
		
			
	
	
		
			27 lines
		
	
	
		
			728 B
		
	
	
	
		
			C
		
	
	
	
	
	
		
		
			
		
	
	
			27 lines
		
	
	
		
			728 B
		
	
	
	
		
			C
		
	
	
	
	
	
| 
								 | 
							
								#ifndef MODELCLASSWIZARD_H
							 | 
						||
| 
								 | 
							
								#define MODELCLASSWIZARD_H
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								#include <coreplugin/basefilewizard.h>
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								class ModelClassWizard : public Core::BaseFileWizard
							 | 
						||
| 
								 | 
							
								{
							 | 
						||
| 
								 | 
							
								    Q_OBJECT
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								public:
							 | 
						||
| 
								 | 
							
								    ModelClassWizard(const Core::BaseFileWizardParameters ¶meters, QObject *parent = 0);
							 | 
						||
| 
								 | 
							
								    ~ModelClassWizard();
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								    QWizard *createWizardDialog(QWidget *parent,
							 | 
						||
| 
								 | 
							
								                                const QString &defaultPath,
							 | 
						||
| 
								 | 
							
								                                const WizardPageList &extensionPages) const;
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								    Core::GeneratedFiles generateFiles(const QWizard *w, QString *errorMessage) const;
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								private:
							 | 
						||
| 
								 | 
							
								    QString readFile(const QString& fileName,
							 | 
						||
| 
								 | 
							
								                     const QMap<QString,QString>& replacementMap) const;
							 | 
						||
| 
								 | 
							
								};
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								#endif // MODELCLASSWIZARD_H
							 |