7#include <QtCore/QFileSystemWatcher>
8#include <QtCore/QTimer>
9#include <QtCore/QDateTime>
11#include <QtCore/QFutureWatcher>
12#if QT_VERSION >= 0x050000
13#include <QtWidgets/QGraphicsView>
15#include <QtGui/QGraphicsView>
23#include <GeneratedFiles/ifilegui/ui_CFilePreviewGuiComp.h>
37 Ui::CFilePreviewGuiComp, ifile::IFileNameParam>
46 I_ASSIGN(m_fileLoaderCompPtr,
"FileLoader",
"Object loader",
true,
"FileLoader");
47 I_ASSIGN(m_objectFactoryCompPtr,
"ObjectFactory",
"Factory for creation of data object to be previewed",
true,
"ObjectFactory");
48 I_ASSIGN(m_currentPreviewObjectCompPtr,
"CurrentPreviewObject",
"Current object will be copied here if set",
false,
"CurrentPreviewObject");
49 I_ASSIGN(m_objectObserverCompPtr,
"ObjectView",
"View component for the object",
true,
"ObjectView");
50 I_ASSIGN_TO(m_objectGuiCompPtr, m_objectObserverCompPtr,
true);
51 I_ASSIGN(m_isAsynchronPreviewGenerationEnabledAttrPtr,
"AsynchronPreviewGenerationEnabled",
"If enabled, the preview generation will be done in a separate thread",
true,
true);
52 I_ASSIGN(m_noAvailableLabelAttrPtr,
"NoAvailableLabel",
"Text used for no available preview state",
false,
"");
53 I_ASSIGN(m_noAvailableIconPathAttrPtr,
"NoAvailableIconPath",
"Path to the icon used for no available preview state",
false,
"");
73 void UpdateFilePreview();
74 void OnPreviewGenerationFinished();
77 void UpdateObjectFromFile();
100 I_ATTR(
bool, m_isAsynchronPreviewGenerationEnabledAttrPtr);
102 I_ATTR(QByteArray, m_noAvailableIconPathAttrPtr);
Common interface for any file system item name (e.g directory, file or URL path)
Interface providing loading and saving of data objects.
Component for the preview of the file contents.
virtual void OnGuiModelDetached() override
istd::IChangeableUniquePtr m_previewObjectPtr
virtual void OnComponentCreated() override
QFutureWatcher< void > m_previewGenerationWatcher
istd::IChangeableUniquePtr m_workingObjectPtr
virtual void OnGuiModelAttached() override
QFileSystemWatcher m_fileSystemObserver
I_TEXTATTR(m_noAvailableLabelAttrPtr)
virtual void OnGuiDestroyed() override
bool m_previewWasGenerated
QDateTime m_lastModificationTimeStamp
virtual void OnGuiCreated() override
iqtgui::TDesignerGuiObserverCompBase< Ui::CFilePreviewGuiComp, ifile::IFileNameParam > BaseClass
virtual void OnGuiRetranslate() override
virtual void UpdateGui(const istd::IChangeable::ChangeSet &changeSet) override
Common interface for all classes implementing the Observer functionality in the Model/Observer design...
Common interface for GUI objects used in ACF component context.
Base class for all Qt GUI components.
Set of change flags (its IDs).
Common interface for data model objects, which can be changed.
GUI specific interfaces and components for file system access and representation.