OTB  6.7.0
Orfeo Toolbox
Public Types | Public Member Functions | Private Attributes | List of all members
otb::Wrapper::ListEditItemModel Class Reference

#include <otbWrapperQtWidgetListEditItemModel.h>

+ Inheritance diagram for otb::Wrapper::ListEditItemModel:
+ Collaboration diagram for otb::Wrapper::ListEditItemModel:

Public Types

enum  Columns {
  COLUMN_NONE = -1,
  COLUMN_NAME = 0,
  COLUMN_COUNT
}
 
enum  UserRole {
  USER_ROLE_NONE = Qt::UserRole,
  USER_ROLE_DIRECTION,
  USER_ROLE_FILTER
}
 

Public Member Functions

int columnCount (const QModelIndex &p=QModelIndex()) const override
 
QVariant data (const QModelIndex &index, int role=Qt::DisplayRole) const override
 
Qt::ItemFlags flags (const QModelIndex &index) const override
 
virtual QString GetFilter () const
 
bool hasChildren (const QModelIndex &p=QModelIndex()) const override
 
QVariant headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const override
 
QModelIndex index (int row, int column, const QModelIndex &p=QModelIndex()) const override
 
bool insertRow (int row, const QModelIndex &parent=QModelIndex())
 
bool insertRows (int row, int count, const QModelIndex &p=QModelIndex()) override
 
virtual bool IsBrowsable () const
 
virtual bool IsInput () const
 
 ListEditItemModel (StringListInterface *, QObject *p=nullptr)
 
QModelIndex parent (const QModelIndex &index) const override
 
bool removeRows (int row, int count, const QModelIndex &p=QModelIndex()) override
 
int rowCount (const QModelIndex &p=QModelIndex()) const override
 
bool setData (const QModelIndex &index, const QVariant &value, int role=Qt::EditRole) override
 
virtual bool Swap (int, int)
 
 ~ListEditItemModel () override
 

Private Attributes

StringListInterfacem_StringList
 

Detailed Description

WIP.

Definition at line 44 of file otbWrapperQtWidgetListEditItemModel.h.

Member Enumeration Documentation

Enumerator
COLUMN_NONE 
COLUMN_NAME 
COLUMN_COUNT 

Definition at line 53 of file otbWrapperQtWidgetListEditItemModel.h.

Enumerator
USER_ROLE_NONE 
USER_ROLE_DIRECTION 
USER_ROLE_FILTER 

Definition at line 63 of file otbWrapperQtWidgetListEditItemModel.h.

Constructor & Destructor Documentation

otb::Wrapper::ListEditItemModel::ListEditItemModel ( StringListInterface ,
QObject *  p = nullptr 
)

Constructor.

otb::Wrapper::ListEditItemModel::~ListEditItemModel ( )
override

Destructor.

Member Function Documentation

int otb::Wrapper::ListEditItemModel::columnCount ( const QModelIndex &  p = QModelIndex()) const
override
QVariant otb::Wrapper::ListEditItemModel::data ( const QModelIndex &  index,
int  role = Qt::DisplayRole 
) const
override
Qt::ItemFlags otb::Wrapper::ListEditItemModel::flags ( const QModelIndex &  index) const
override
virtual QString otb::Wrapper::ListEditItemModel::GetFilter ( ) const
virtual
bool otb::Wrapper::ListEditItemModel::hasChildren ( const QModelIndex &  p = QModelIndex()) const
override
QVariant otb::Wrapper::ListEditItemModel::headerData ( int  section,
Qt::Orientation  orientation,
int  role = Qt::DisplayRole 
) const
override
QModelIndex otb::Wrapper::ListEditItemModel::index ( int  row,
int  column,
const QModelIndex &  p = QModelIndex() 
) const
override
bool otb::Wrapper::ListEditItemModel::insertRow ( int  row,
const QModelIndex &  parent = QModelIndex() 
)
bool otb::Wrapper::ListEditItemModel::insertRows ( int  row,
int  count,
const QModelIndex &  p = QModelIndex() 
)
override
virtual bool otb::Wrapper::ListEditItemModel::IsBrowsable ( ) const
virtual
virtual bool otb::Wrapper::ListEditItemModel::IsInput ( ) const
virtual
QModelIndex otb::Wrapper::ListEditItemModel::parent ( const QModelIndex &  index) const
override
bool otb::Wrapper::ListEditItemModel::removeRows ( int  row,
int  count,
const QModelIndex &  p = QModelIndex() 
)
override
int otb::Wrapper::ListEditItemModel::rowCount ( const QModelIndex &  p = QModelIndex()) const
override
bool otb::Wrapper::ListEditItemModel::setData ( const QModelIndex &  index,
const QVariant &  value,
int  role = Qt::EditRole 
)
override
virtual bool otb::Wrapper::ListEditItemModel::Swap ( int  ,
int   
)
virtual

Member Data Documentation

StringListInterface* otb::Wrapper::ListEditItemModel::m_StringList
private

Definition at line 169 of file otbWrapperQtWidgetListEditItemModel.h.


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