3 #include "AbstractImageItem.h" 15 AbstractImageItem::AbstractImageItem(QString imageSerial, ControlNet *net,
16 int avgCharWidth, AbstractTreeItem *parent)
17 : AbstractTreeItem(parent) {
19 calcDataWidth(avgCharWidth);
23 AbstractImageItem::~AbstractImageItem() {
31 QVariant AbstractImageItem::getData()
const {
33 return QVariant(m_imageAndNet->first);
39 QVariant AbstractImageItem::getData(QString columnTitle)
const {
44 void AbstractImageItem::setData(QString
const &columnTitle,
45 QString
const &newData) {
49 bool AbstractImageItem::isDataEditable(QString columnTitle)
const {
54 void AbstractImageItem::deleteSource() { }
57 AbstractTreeItem::InternalPointerType AbstractImageItem::getPointerType()
const {
58 return AbstractTreeItem::ImageAndNet;
62 void *AbstractImageItem::getPointer()
const {
67 bool AbstractImageItem::hasImage(QString imageSerial)
const {
71 return (QString::compare(m_imageAndNet->first, imageSerial) == 0) ||
72 AbstractTreeItem::hasImage(imageSerial);
virtual void sourceDeleted()
This method is required to be implemented by the parent AbstractTreeItem class, but for this it's a N...
Namespace for ISIS/Bullet specific routines.