6#ifndef ifilegui_CFilePreviewGuiComp_included
7#define ifilegui_CFilePreviewGuiComp_included
11#include <QtCore/QFileSystemWatcher>
12#include <QtCore/QTimer>
13#include <QtCore/QDateTime>
14#include <QtCore/QFutureWatcher>
15#include <QtWidgets/QGraphicsView>
23#include <GeneratedFiles/ifilegui/ui_CFilePreviewGuiComp.h>
43 I_ASSIGN(m_fileLoaderCompPtr,
"FileLoader",
"Object loader",
true,
"FileLoader");
44 I_ASSIGN(m_objectFactoryCompPtr,
"ObjectFactory",
"Factory for creation of data object to be previewed",
true,
"ObjectFactory");
45 I_ASSIGN(m_currentPreviewObjectCompPtr,
"CurrentPreviewObject",
"Current object will be copied here if set",
false,
"CurrentPreviewObject");
46 I_ASSIGN(m_objectObserverCompPtr,
"ObjectView",
"View component for the object",
true,
"ObjectView");
47 I_ASSIGN_TO(m_objectGuiCompPtr, m_objectObserverCompPtr,
true);
48 I_ASSIGN(m_isAsyncLoadEnabledAttrPtr,
"AsynchronPreviewGenerationEnabled",
"If enabled, the preview generation will be done in a separate thread",
true,
true);
49 I_ASSIGN(m_noAvailableLabelAttrPtr,
"NoAvailableLabel",
"Text used for no available preview state",
false,
"");
50 I_ASSIGN(m_noAvailableIconPathAttrPtr,
"NoAvailableIconPath",
"Path to the icon used for no available preview state",
false,
"");
73 void UpdateFilePreview();
74 void OnPreviewGenerationFinished(
bool isSuccess);
100 I_ATTR(
bool, m_isAsyncLoadEnabledAttrPtr);
102 I_ATTR(QByteArray, m_noAvailableIconPathAttrPtr);
Interface providing loading and saving of data objects.
Component for the preview of the file contents.
void OnGuiCreated() override
Called just after GUI is initialized.
void OnGuiRetranslate() override
Called from widget event filter when GUI should be retranslated.
QFileSystemWatcher m_fileSystemObserver
I_TEXTATTR(m_noAvailableLabelAttrPtr)
void OnGuiModelAttached() override
QDateTime m_lastModificationTimeStamp
void UpdateGui(const istd::IChangeable::ChangeSet &changeSet) override
istdgui::TDesignerGuiObserverCompBase< Ui::CFilePreviewGuiComp, ifile::IFileNameParam > BaseClass
istd::CSingleAsyncCaller m_asyncCaller
void OnGuiModelDetached() override
iproc::CTaskState m_loadState
void PreviewGenerationFinished(bool isSuccess)
void OnComponentCreated() override
std::unique_ptr< istd::IChangeable > m_workingObjectPtr
void OnGuiDestroyed() override
Called just before GUI is released.
std::unique_ptr< istd::IChangeable > m_previewObjectPtr
Common interface for all classes implementing the Observer functionality in the Model/Observer design...
Represent state of asynchronous operation.
Call some function asynchronously in separated thread.
Set of change flags (its IDs).
Common interface for data model objects, which can be changed.
Common interface for GUI objects using in component context.
Base class for all Qt GUI components.
GUI specific interfaces and components for file system access and representation.