mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-10-31 10:56:38 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			52 lines
		
	
	
	
		
			1.1 KiB
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			52 lines
		
	
	
	
		
			1.1 KiB
		
	
	
	
		
			C++
		
	
	
	
	
	
| #ifndef OPENCS_VIEW_PREVIEWWIDGET_H
 | |
| #define OPENCS_VIEW_PREVIEWWIDGET_H
 | |
| 
 | |
| #include "scenewidget.hpp"
 | |
| 
 | |
| #include <string>
 | |
| 
 | |
| #include "object.hpp"
 | |
| 
 | |
| class QModelIndex;
 | |
| class QObject;
 | |
| class QWidget;
 | |
| 
 | |
| namespace CSMWorld
 | |
| {
 | |
|     class Data;
 | |
| }
 | |
| 
 | |
| namespace CSVRender
 | |
| {
 | |
|     class PreviewWidget : public SceneWidget
 | |
|     {
 | |
|         Q_OBJECT
 | |
| 
 | |
|         CSMWorld::Data& mData;
 | |
|         CSVRender::Object mObject;
 | |
| 
 | |
|     public:
 | |
|         explicit PreviewWidget(
 | |
|             CSMWorld::Data& worldData, const std::string& id, bool referenceable, QWidget* parent = nullptr);
 | |
| 
 | |
|     signals:
 | |
| 
 | |
|         void closeRequest();
 | |
| 
 | |
|         void referenceableIdChanged(const std::string& id);
 | |
| 
 | |
|     private slots:
 | |
| 
 | |
|         void referenceableDataChanged(const QModelIndex& topLeft, const QModelIndex& bottomRight);
 | |
| 
 | |
|         void referenceableAboutToBeRemoved(const QModelIndex& parent, int start, int end);
 | |
| 
 | |
|         void referenceDataChanged(const QModelIndex& topLeft, const QModelIndex& bottomRight);
 | |
| 
 | |
|         void referenceAboutToBeRemoved(const QModelIndex& parent, int start, int end);
 | |
| 
 | |
|         void assetTablesChanged();
 | |
|     };
 | |
| }
 | |
| 
 | |
| #endif
 |