CustusX  15.3.3-beta
An IGT application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
cx::BaseWidget Class Referenceabstract

Interface for QWidget which handles widgets uniformly for the system. More...

#include <cxBaseWidget.h>

Inheritance diagram for cx::BaseWidget:
cx::OptimizedUpdateWidget cx::ActiveToolWidget cx::ActiveVolumeWidget cx::AllFiltersWidget cx::ClippingWidget cx::ColorWidget cx::CompactFilterSetupWidget cx::ConsoleWidget cx::CroppingWidget cx::DataSelectWidget cx::DicomWidget cx::EraserWidget cx::FileWatcherWidget cx::FilterSetupWidget cx::FrameTreeWidget cx::HelpWidget cx::ImagePropertiesWidget cx::InfoWidget cx::LabeledComboBoxWidget cx::LapFrameToolCalibrationWidget cx::ManualImageRegistrationWidget cx::ManualPatientRegistrationWidget cx::MetricWidget cx::NavigationWidget cx::OverlayWidget cx::PipelineWidget cx::PipelineWidgetFilterLine cx::PlaybackWidget cx::PluginFrameworkWidget cx::PointSamplingWidget cx::PresetWidget cx::ProbeConfigWidget cx::ReconstructionWidget cx::RecordBaseWidget cx::RecordSessionWidget cx::RegistrationBaseWidget cx::RegistrationHistoryWidget cx::SamplerWidget cx::ShadingWidget cx::SoundSpeedConverterWidget cx::SpaceEditWidget cx::TabbedWidget cx::TemporalCalibrationWidget cx::ToolManagerWidget cx::ToolManualCalibrationWidget cx::ToolPropertiesWidget cx::ToolTipCalibrateWidget cx::ToolTipSampleWidget cx::TrackPadWidget cx::TransferFunction2DColorWidget cx::TransferFunction2DOpacityWidget cx::TransferFunction2DWidget cx::TransferFunction3DWidget cx::TransferFunctionAlphaWidget cx::TransferFunctionColorWidget cx::TransferFunctionWidget cx::Transform3DWidget cx::VideoConnectionWidget

Public Slots

void adjustSizeSlot ()
 
- Public Slots inherited from cx::OptimizedUpdateWidget
virtual void setModified ()
 

Public Member Functions

 BaseWidget (QWidget *parent, QString objectName, QString windowTitle)
 
virtual ~BaseWidget ()
 
virtual QString defaultWhatsThis () const =0
 Returns a short description of what this widget will do for you. More...
 
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)
 
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 ()
 

Static Public Member Functions

static QFrame * createHorizontalLine ()
 Creates a horizontal line which can be inserted into widgets. More...
 

Protected Member Functions

virtual void showEvent (QShowEvent *event)
 
- Protected Member Functions inherited from cx::OptimizedUpdateWidget
virtual void prePaintEvent ()
 
virtual void paintEvent (QPaintEvent *event)
 

Detailed Description

Interface for QWidget which handles widgets uniformly for the system.

Date
28. sep. 2010
Author
Janne Beate Bakeng, SINTEF

Definition at line 108 of file cxBaseWidget.h.

Constructor & Destructor Documentation

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

Definition at line 44 of file cxBaseWidget.cpp.

virtual cx::BaseWidget::~BaseWidget ( )
inlinevirtual

Definition at line 114 of file cxBaseWidget.h.

Member Function Documentation

void cx::BaseWidget::adjustSizeSlot ( )
slot

Definition at line 114 of file cxBaseWidget.cpp.

template<class T >
QAction* cx::BaseWidget::createAction ( QObject *  parent,
QIcon  iconName,
QString  text,
QString  tip,
slot,
QLayout *  layout = NULL,
QToolButton *  button = new QToolButton() 
)
inline

Shorthand method for action creation. If layout is used, a QToolButton is created and added to it. If tip is empty, it is set equal to text.

Definition at line 130 of file cxBaseWidget.h.

QGroupBox * cx::BaseWidget::createGroupbox ( QWidget *  widget,
QString  boxname 
)

Create a group box with a given name.

Definition at line 77 of file cxBaseWidget.cpp.

QFrame * cx::BaseWidget::createHorizontalLine ( )
static

Creates a horizontal line which can be inserted into widgets.

Definition at line 89 of file cxBaseWidget.cpp.

QWidget * cx::BaseWidget::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.

Definition at line 54 of file cxBaseWidget.cpp.

virtual QString cx::BaseWidget::defaultWhatsThis ( ) const
pure virtual

Returns a short description of what this widget will do for you.

Implemented in cx::TransferFunctionWidget, cx::TransferFunction2DWidget, cx::ConsoleWidget, cx::TransferFunction3DWidget, cx::ClippingWidget, cx::MetricWidget, cx::PipelineWidget, cx::VideoConnectionWidget, cx::LandmarkPatientRegistrationWidget, cx::TrackPadWidget, cx::VolumePropertiesWidget, cx::BronchoscopyRegistrationWidget, cx::PointSamplingWidget, cx::LapFrameToolCalibrationWidget, cx::LandmarkImageRegistrationWidget, cx::ToolPropertiesWidget, cx::ToolTipCalibrateWidget, cx::RecordSessionWidget, cx::LandmarkRegistrationWidget, cx::ManualImageRegistrationWidget, cx::CroppingWidget, cx::ToolTipSampleWidget, cx::ElastixWidget, cx::EraserWidget, cx::LandmarkImage2ImageRegistrationWidget, cx::SoundSpeedConverterWidget, cx::USAcqusitionWidget, cx::FastOrientationRegistrationWidget, cx::TransferFunctionAlphaWidget, cx::RegistrationHistoryWidget, cx::WirePhantomWidget, cx::FrameTreeWidget, cx::TransferFunctionColorWidget, cx::NavigationWidget, cx::DicomWidget, cx::SlicePropertiesWidget, cx::TransferFunction2DColorWidget, cx::TrackedCenterlineWidget, cx::TemporalCalibrationWidget, cx::FilePreviewWidget, cx::Transform3DWidget, cx::AllFiltersWidget, cx::SeansVesselRegistrationWidget, cx::DataSelectWidget, cx::LabeledComboBoxWidget, cx::TabbedWidget, cx::InfoWidget, cx::TransferFunction2DOpacityWidget, cx::VolumeInfoWidget, cx::FilterSetupWidget, cx::ToolManagerWidget, cx::HelpWidget, cx::FastImageRegistrationWidget, cx::PatientOrientationWidget, cx::PrepareVesselsWidget, cx::RegisterI2IWidget, cx::CompactFilterSetupWidget, cx::SpaceEditWidget, cx::TransferFunctionPresetWidget, cx::SamplerWidget, cx::ManualPatientRegistrationWidget, cx::PresetWidget, cx::ToolManualCalibrationWidget, cx::FastPatientRegistrationWidget, cx::PlateRegistrationWidget, cx::ColorWidget, cx::OverlayWidget, cx::ActiveToolWidget, cx::ActiveVolumeWidget, cx::PluginFrameworkWidget, cx::ImagePreviewWidget, cx::ToolImagePreviewWidget, cx::PlateImageRegistrationWidget, cx::StreamPropertiesWidget, cx::CalibrationMethodsWidget, cx::PipelineWidgetFilterLine, cx::Image2ImageRegistrationWidget, cx::FastRegistrationsWidget, cx::LandmarkRegistrationsWidget, and cx::Image2PlateRegistrationWidget.

CXFrame * cx::BaseWidget::wrapInFrame ( QWidget *  base)

Definition at line 96 of file cxBaseWidget.cpp.

QGroupBox * cx::BaseWidget::wrapInGroupBox ( QWidget *  base,
QString  name 
)

Definition at line 105 of file cxBaseWidget.cpp.


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