Loading...
Searching...
No Matches
ViewType

Detailed Description

Classes

class  ViewType
 
class  ViewTypeContainer
 

Class Documentation

◆ ViewType

class ViewType

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

◆ getName()

const QString & ViewType::getName ( )
inline

◆ getLongName()

const QString & ViewType::getLongName ( )
inline

◆ getPriority()

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

◆ create()

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

◆ getDisplayName()

virtual QString ViewType::getDisplayName ( BinaryViewTypeRef type)
virtual

Reimplemented in HexEditorViewType.

◆ getDisplayLongName()

virtual QString ViewType::getDisplayLongName ( BinaryViewTypeRef type)
virtual

Reimplemented in HexEditorViewType.

◆ 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

◆ ViewTypeContainer

class ViewTypeContainer

Static Public Member Functions

static ViewTypeContainerGetViewTypeContainer ()
 

Public Attributes

std::vector< ViewType * > m_types
 

Member Function Documentation

◆ GetViewTypeContainer()

static ViewTypeContainer & ViewTypeContainer::GetViewTypeContainer ( )
static

Member Data Documentation

◆ m_types

std::vector<ViewType*> ViewTypeContainer::m_types