ViewType Class Referenceabstract

Public Member Functions

 ViewType (const QString &name, const QString &longName)
 
virtual ~ViewType ()
 
const QString & getName ()
 
const QString & getLongName ()
 
virtual int getPriority (BinaryViewRef data, const QString &filename)=0
 
virtual QWidget * create (BinaryViewRef data, ViewFrame *viewFrame)=0
 
virtual QString getDisplayName (BinaryViewTypeRef type)
 
virtual QString getDisplayLongName (BinaryViewTypeRef type)
 

Static Public Member Functions

static ViewTypegetTypeByName (const QString &name)
 
static const std::vector< ViewType * > & getTypes ()
 
static void registerViewType (ViewType *type)
 

Constructor & Destructor Documentation

◆ ViewType()

ViewType::ViewType ( const QString &  name,
const QString &  longName 
)

◆ ~ViewType()

virtual ViewType::~ViewType ( )
virtual

Member Function Documentation

◆ create()

virtual QWidget * ViewType::create ( BinaryViewRef  data,
ViewFrame viewFrame 
)
pure virtual

◆ getDisplayLongName()

virtual QString ViewType::getDisplayLongName ( BinaryViewTypeRef  type)
virtual

Reimplemented in HexEditorViewType.

◆ getDisplayName()

virtual QString ViewType::getDisplayName ( BinaryViewTypeRef  type)
virtual

Reimplemented in HexEditorViewType.

◆ getLongName()

const QString & ViewType::getLongName ( )
inline

◆ getName()

const QString & ViewType::getName ( )
inline

◆ getPriority()

virtual int ViewType::getPriority ( BinaryViewRef  data,
const QString &  filename 
)
pure virtual

◆ getTypeByName()

static ViewType * ViewType::getTypeByName ( const QString &  name)
static

◆ getTypes()

static const std::vector< ViewType * > & ViewType::getTypes ( )
static

◆ registerViewType()

static void ViewType::registerViewType ( ViewType type)
static

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