Computer Assisted Medical Intervention Tool Kit version 6.0
 
Loading...
Searching...
No Matches
ExtensionTypeTabPresenter Class Reference

Base class for all extension type tab presenter (ActionTabPresenter, ComponentTabPresenter and ViewerTabPresenter) More...

#include <ExtensionTypeTabPresenter.h>

+ Inheritance diagram for ExtensionTypeTabPresenter:
+ Collaboration diagram for ExtensionTypeTabPresenter:

Public Member Functions

 ExtensionTypeTabPresenter (camitk::ExtensionManager::ExtensionType extensionType, CamiTKExtensionModelPresenter *presenter, VariantDataModel &dataModel, QWidget *parent=nullptr)
 constructor
 
VariantDataModelgetDataModel ()
 get the managed data model
 
const QString getExtensionType () const
 get the extension type as a string
 

Protected Member Functions

QStringList buildEnum (QStringList originalList)
 Use originalList (unsorted strings with potential duplicates) to generate a new QStringList that has only unique strings, sorted by popularity.
 

Protected Attributes

VariantDataModeldataModel
 the currently managed data model
 
camitk::ExtensionManager::ExtensionType extensionType
 The extension type.
 
CamiTKExtensionModelPresenterpresenter
 the current top level presenter
 

Detailed Description

Base class for all extension type tab presenter (ActionTabPresenter, ComponentTabPresenter and ViewerTabPresenter)

Constructor & Destructor Documentation

◆ ExtensionTypeTabPresenter()

ExtensionTypeTabPresenter::ExtensionTypeTabPresenter ( camitk::ExtensionManager::ExtensionType  extensionType,
CamiTKExtensionModelPresenter presenter,
VariantDataModel dataModel,
QWidget *  parent = nullptr 
)

constructor

Member Function Documentation

◆ buildEnum()

QStringList ExtensionTypeTabPresenter::buildEnum ( QStringList  originalList)
protected

Use originalList (unsorted strings with potential duplicates) to generate a new QStringList that has only unique strings, sorted by popularity.

Referenced by ActionTabPresenter::ActionTabPresenter().

+ Here is the caller graph for this function:

◆ getDataModel()

VariantDataModel & ExtensionTypeTabPresenter::getDataModel ( )

get the managed data model

References dataModel.

Referenced by CamiTKExtensionModelPresenter::tabCloseRequest().

+ Here is the caller graph for this function:

◆ getExtensionType()

const QString ExtensionTypeTabPresenter::getExtensionType ( ) const

get the extension type as a string

References camitk::ExtensionManager::ACTION, camitk::ExtensionManager::COMPONENT, extensionType, and camitk::ExtensionManager::VIEWER.

Referenced by CamiTKExtensionModelPresenter::tabCloseRequest().

+ Here is the caller graph for this function:

Member Data Documentation

◆ dataModel

◆ extensionType

camitk::ExtensionManager::ExtensionType ExtensionTypeTabPresenter::extensionType
protected

The extension type.

Referenced by getExtensionType().

◆ presenter


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