NorMIT-nav  16.5
An IGT application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 56 of file cxFileWatcherWidget.h.

Constructor & Destructor Documentation

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

Definition at line 41 of file cxFileWatcherWidget.cpp.

cx::FileWatcherWidget::~FileWatcherWidget ( )
virtual

Definition at line 48 of file cxFileWatcherWidget.cpp.

Member Function Documentation

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

Definition at line 51 of file cxFileWatcherWidget.cpp.

virtual void cx::FileWatcherWidget::previewFileSlot ( const QString &  absoluteFilePath)
pure virtualslot
void cx::FileWatcherWidget::watchFile ( bool  on)
protected

Definition at line 78 of file cxFileWatcherWidget.cpp.

Member Data Documentation

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

Definition at line 72 of file cxFileWatcherWidget.h.

QFileSystemWatcher* cx::FileWatcherWidget::mFileSystemWatcher
protected

Definition at line 71 of file cxFileWatcherWidget.h.


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