Inviwo 0.9.12-pre
Inviwo documentation
Loading...
Searching...
No Matches
inviwo::utilqt::EditorFileObserver Class Reference
+ Inheritance diagram for inviwo::utilqt::EditorFileObserver:

Public Member Functions

 EditorFileObserver (QWidget *parent, const QString &title="Editor", const std::filesystem::path &filename={})
 
void setTitle (const QString &title)
 
const QString & getTitle () const
 
void resumeObservingFile ()
 
void suspendObservingFile ()
 
void ignoreNextUpdate ()
 
void setFileName (const std::filesystem::path &filename)
 
const std::filesystem::path & getFileName () const
 
void setModifiedCallback (std::function< void(bool)> cb)
 
void setReloadFileCallback (std::function< void()> cb)
 
- Public Member Functions inherited from inviwo::FileObserver
 FileObserver (InviwoApplication *app)
 
 FileObserver (FileSystemObserver *app)
 
 FileObserver (const FileObserver &)=delete
 
FileObserveroperator= (const FileObserver &)=delete
 
 FileObserver (FileObserver &&rhs)
 
FileObserveroperator= (FileObserver &&that)
 
virtual ~FileObserver ()
 
bool startFileObservation (const std::filesystem::path &filePath)
 Starts observing file if it exists.
 
bool stopFileObservation (const std::filesystem::path &filePath)
 Stops observing the file if being observed.
 
void stopAllObservation ()
 
const std::unordered_set< std::filesystem::path, PathHash > & getFiles () const
 
bool isObserved (const std::filesystem::path &fileName) const
 

Additional Inherited Members

- Protected Attributes inherited from inviwo::FileObserver
FileSystemObserverfileSystemObserver_
 

The documentation for this class was generated from the following file: