NorMIT-nav  22.09
An IGT application
cx::FileWatcherWidget Class Referenceabstract

Baseclass for widgets that should watch a file. More...

#include <cxFileWatcherWidget.h>

Inheritance diagram for cx::FileWatcherWidget:
cx::BaseWidget cx::OptimizedUpdateWidget cx::FilePreviewWidget cx::ImagePreviewWidget cx::ToolImagePreviewWidget

Public Slots

virtual void previewFileSlot (const QString &absoluteFilePath)=0
 
- Public Slots inherited from cx::BaseWidget
void adjustSizeSlot ()
 
- Public Slots inherited from cx::OptimizedUpdateWidget
virtual void setModified ()
 

Public Member Functions

 FileWatcherWidget (QWidget *parent, QString objectName, QString windowTitle)
 
virtual ~FileWatcherWidget ()
 
- Public Member Functions inherited from cx::BaseWidget
 BaseWidget (QWidget *parent, QString objectName, QString windowTitle)
 
virtual ~BaseWidget ()
 
QWidget * createMethodWidget (QWidget *inputWidget, QWidget *outputWidget, QString methodname, bool inputChecked=false, bool outputVisible=true)
 Create a specialized widget for filters, with input/ouput, enable and options. More...
 
QGroupBox * createGroupbox (QWidget *widget, QString boxname)
 Create a group box with a given name. More...
 
QGroupBox * wrapInGroupBox (QWidget *base, QString name)
 
CXFramewrapInFrame (QWidget *base)
 
QAction * createAction2 (QObject *parent, QIcon iconName, QString text, QString tip, QLayout *layout=NULL, QToolButton *button=new QToolButton())
 
template<class T >
QAction * createAction (QObject *parent, QIcon iconName, QString text, QString tip, T slot, QLayout *layout=NULL, QToolButton *button=new QToolButton())
 
- Public Member Functions inherited from cx::OptimizedUpdateWidget
 OptimizedUpdateWidget (QWidget *parent=NULL)
 
virtual ~OptimizedUpdateWidget ()
 
void forcePrePaint ()
 

Protected Member Functions

bool internalOpenNewFile (const QString absoluteFilePath)
 
void watchFile (bool on)
 
- Protected Member Functions inherited from cx::BaseWidget
virtual void showEvent (QShowEvent *event)
 
- Protected Member Functions inherited from cx::OptimizedUpdateWidget
virtual void prePaintEvent ()
 
virtual void paintEvent (QPaintEvent *event)
 

Protected Attributes

QFileSystemWatcher * mFileSystemWatcher
 
boost::shared_ptr< QFile > mCurrentFile
 

Additional Inherited Members

- Static Public Member Functions inherited from cx::BaseWidget
static QFrame * createHorizontalLine ()
 Creates a horizontal line which can be inserted into widgets. More...
 

Detailed Description

Baseclass for widgets that should watch a file.

Date
Nov 7, 2012
Author
Janne Beate Bakeng, SINTEF

Definition at line 35 of file cxFileWatcherWidget.h.

Constructor & Destructor Documentation

◆ FileWatcherWidget()

cx::FileWatcherWidget::FileWatcherWidget ( QWidget *  parent,
QString  objectName,
QString  windowTitle 
)

Definition at line 20 of file cxFileWatcherWidget.cpp.

◆ ~FileWatcherWidget()

cx::FileWatcherWidget::~FileWatcherWidget ( )
virtual

Definition at line 27 of file cxFileWatcherWidget.cpp.

Member Function Documentation

◆ internalOpenNewFile()

bool cx::FileWatcherWidget::internalOpenNewFile ( const QString  absoluteFilePath)
protected

Definition at line 30 of file cxFileWatcherWidget.cpp.

◆ previewFileSlot

virtual void cx::FileWatcherWidget::previewFileSlot ( const QString &  absoluteFilePath)
pure virtualslot

◆ watchFile()

void cx::FileWatcherWidget::watchFile ( bool  on)
protected

Definition at line 57 of file cxFileWatcherWidget.cpp.

Member Data Documentation

◆ mCurrentFile

boost::shared_ptr<QFile> cx::FileWatcherWidget::mCurrentFile
protected

Definition at line 51 of file cxFileWatcherWidget.h.

◆ mFileSystemWatcher

QFileSystemWatcher* cx::FileWatcherWidget::mFileSystemWatcher
protected

Definition at line 50 of file cxFileWatcherWidget.h.


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