mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-11-04 10:56:42 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			46 lines
		
	
	
	
		
			785 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			46 lines
		
	
	
	
		
			785 B
		
	
	
	
		
			C++
		
	
	
	
	
	
#ifndef CSV_DOC_FILEWIDGET_H
 | 
						|
#define CSV_DOC_FILEWIDGET_H
 | 
						|
 | 
						|
#include <QWidget>
 | 
						|
 | 
						|
#include <string>
 | 
						|
 | 
						|
class QLabel;
 | 
						|
class QString;
 | 
						|
class QLineEdit;
 | 
						|
 | 
						|
namespace CSVDoc
 | 
						|
{
 | 
						|
    class FileWidget : public QWidget
 | 
						|
    {
 | 
						|
            Q_OBJECT
 | 
						|
 | 
						|
            bool mAddon;
 | 
						|
            QLineEdit *mInput;
 | 
						|
            QLabel *mType;
 | 
						|
 | 
						|
            QString getExtension() const;
 | 
						|
 | 
						|
        public:
 | 
						|
 | 
						|
            FileWidget (QWidget *parent = 0);
 | 
						|
 | 
						|
            void setType (bool addon);
 | 
						|
 | 
						|
            QString getName() const;
 | 
						|
 | 
						|
            void extensionLabelIsVisible(bool visible);
 | 
						|
 | 
						|
            void setName (const std::string& text);
 | 
						|
 | 
						|
        private slots:
 | 
						|
 | 
						|
            void textChanged (const QString& text);
 | 
						|
 | 
						|
        signals:
 | 
						|
 | 
						|
            void nameChanged (const QString& file, bool addon);
 | 
						|
    };
 | 
						|
}
 | 
						|
 | 
						|
#endif
 |