2007-09-08 17:10:35 +00:00
|
|
|
/***************************************************************************
|
|
|
|
* Copyright (C) 2006 by Pino Toscano <pino@kde.org> *
|
2017-11-16 08:57:58 +00:00
|
|
|
* Copyright (C) 2017 Klarälvdalens Datakonsult AB, a KDAB Group *
|
|
|
|
* company, info@kdab.com. Work sponsored by the *
|
|
|
|
* LiMux project of the city of Munich *
|
2007-09-08 17:10:35 +00:00
|
|
|
* *
|
|
|
|
* This program is free software; you can redistribute it and/or modify *
|
|
|
|
* it under the terms of the GNU General Public License as published by *
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or *
|
|
|
|
* (at your option) any later version. *
|
|
|
|
***************************************************************************/
|
|
|
|
|
|
|
|
#include "annotationmodel.h"
|
|
|
|
|
|
|
|
#include <qlinkedlist.h>
|
|
|
|
#include <qlist.h>
|
2007-09-09 00:27:16 +00:00
|
|
|
#include <qpointer.h>
|
2007-09-08 17:10:35 +00:00
|
|
|
|
2014-10-06 06:31:17 +00:00
|
|
|
#include <QIcon>
|
2014-10-07 21:04:36 +00:00
|
|
|
#include <KLocalizedString>
|
2007-09-08 17:10:35 +00:00
|
|
|
|
|
|
|
#include "core/annotations.h"
|
|
|
|
#include "core/document.h"
|
|
|
|
#include "core/observer.h"
|
|
|
|
#include "core/page.h"
|
2007-12-24 00:54:21 +00:00
|
|
|
#include "ui/guiutils.h"
|
2007-09-08 17:10:35 +00:00
|
|
|
|
2007-09-08 23:46:49 +00:00
|
|
|
struct AnnItem
|
2007-09-08 17:10:35 +00:00
|
|
|
{
|
2007-09-08 23:46:49 +00:00
|
|
|
AnnItem();
|
|
|
|
AnnItem( AnnItem *parent, Okular::Annotation *ann );
|
|
|
|
AnnItem( AnnItem *parent, int page );
|
|
|
|
~AnnItem();
|
2007-09-08 17:10:35 +00:00
|
|
|
|
2019-01-09 23:28:49 +00:00
|
|
|
AnnItem(const AnnItem &) = delete;
|
|
|
|
AnnItem &operator=(const AnnItem &) = delete;
|
|
|
|
|
2007-09-08 23:46:49 +00:00
|
|
|
AnnItem *parent;
|
|
|
|
QList< AnnItem* > children;
|
2007-09-08 17:10:35 +00:00
|
|
|
|
|
|
|
Okular::Annotation *annotation;
|
|
|
|
int page;
|
|
|
|
};
|
|
|
|
|
2012-12-10 17:51:17 +00:00
|
|
|
static QLinkedList< Okular::Annotation* > filterOutWidgetAnnotations( const QLinkedList< Okular::Annotation* > &annotations )
|
|
|
|
{
|
|
|
|
QLinkedList< Okular::Annotation* > result;
|
|
|
|
|
|
|
|
foreach ( Okular::Annotation *annotation, annotations )
|
|
|
|
{
|
|
|
|
if ( annotation->subType() == Okular::Annotation::AWidget )
|
|
|
|
continue;
|
|
|
|
|
|
|
|
result.append( annotation );
|
|
|
|
}
|
|
|
|
|
|
|
|
return result;
|
|
|
|
}
|
2007-09-08 17:10:35 +00:00
|
|
|
|
|
|
|
class AnnotationModelPrivate : public Okular::DocumentObserver
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
AnnotationModelPrivate( AnnotationModel *qq );
|
2016-10-29 14:38:19 +00:00
|
|
|
~AnnotationModelPrivate() override;
|
2007-09-08 17:10:35 +00:00
|
|
|
|
2016-10-29 14:38:19 +00:00
|
|
|
void notifySetup( const QVector< Okular::Page * > &pages, int setupFlags ) override;
|
|
|
|
void notifyPageChanged( int page, int flags ) override;
|
2007-09-08 17:10:35 +00:00
|
|
|
|
2007-09-08 23:46:49 +00:00
|
|
|
QModelIndex indexForItem( AnnItem *item ) const;
|
2007-09-08 17:10:35 +00:00
|
|
|
void rebuildTree( const QVector< Okular::Page * > &pages );
|
2007-09-08 23:46:49 +00:00
|
|
|
AnnItem* findItem( int page, int *index ) const;
|
2007-09-08 17:10:35 +00:00
|
|
|
|
|
|
|
AnnotationModel *q;
|
2007-09-08 23:46:49 +00:00
|
|
|
AnnItem *root;
|
2007-09-09 00:27:16 +00:00
|
|
|
QPointer< Okular::Document > document;
|
2007-09-08 17:10:35 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2007-09-08 23:46:49 +00:00
|
|
|
AnnItem::AnnItem()
|
2017-09-05 21:27:18 +00:00
|
|
|
: parent( nullptr ), annotation( nullptr ), page( -1 )
|
2007-09-08 17:10:35 +00:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2007-09-08 23:46:49 +00:00
|
|
|
AnnItem::AnnItem( AnnItem *_parent, Okular::Annotation *ann )
|
2007-09-08 17:10:35 +00:00
|
|
|
: parent( _parent ), annotation( ann ), page( _parent->page )
|
|
|
|
{
|
|
|
|
Q_ASSERT( !parent->annotation );
|
|
|
|
parent->children.append( this );
|
|
|
|
}
|
|
|
|
|
2007-09-08 23:46:49 +00:00
|
|
|
AnnItem::AnnItem( AnnItem *_parent, int _page )
|
2017-09-05 21:27:18 +00:00
|
|
|
: parent( _parent ), annotation( nullptr ), page( _page )
|
2007-09-08 17:10:35 +00:00
|
|
|
{
|
|
|
|
Q_ASSERT( !parent->parent );
|
|
|
|
parent->children.append( this );
|
|
|
|
}
|
|
|
|
|
2007-09-08 23:46:49 +00:00
|
|
|
AnnItem::~AnnItem()
|
2007-09-08 17:10:35 +00:00
|
|
|
{
|
|
|
|
qDeleteAll( children );
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
AnnotationModelPrivate::AnnotationModelPrivate( AnnotationModel *qq )
|
2007-09-08 23:46:49 +00:00
|
|
|
: q( qq ), root( new AnnItem )
|
2007-09-08 17:10:35 +00:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
AnnotationModelPrivate::~AnnotationModelPrivate()
|
|
|
|
{
|
|
|
|
delete root;
|
|
|
|
}
|
|
|
|
|
2017-10-26 07:47:18 +00:00
|
|
|
static void updateAnnotationPointer( AnnItem *item, const QVector< Okular::Page * > &pages )
|
|
|
|
{
|
|
|
|
if ( item->annotation ) {
|
|
|
|
item->annotation = pages[ item->page ]->annotation( item->annotation->uniqueName() );
|
|
|
|
if ( !item->annotation )
|
|
|
|
qWarning() << "Lost annotation on document save, something went wrong";
|
|
|
|
}
|
|
|
|
|
|
|
|
foreach ( AnnItem *child, item->children )
|
|
|
|
updateAnnotationPointer( child, pages );
|
|
|
|
}
|
|
|
|
|
2007-09-09 10:50:36 +00:00
|
|
|
void AnnotationModelPrivate::notifySetup( const QVector< Okular::Page * > &pages, int setupFlags )
|
2007-09-08 17:10:35 +00:00
|
|
|
{
|
2007-09-09 10:50:36 +00:00
|
|
|
if ( !( setupFlags & Okular::DocumentObserver::DocumentChanged ) )
|
2017-10-26 07:47:18 +00:00
|
|
|
{
|
|
|
|
if ( setupFlags & Okular::DocumentObserver::UrlChanged )
|
|
|
|
{
|
|
|
|
// Here with UrlChanged and no document changed it means we
|
|
|
|
// need to update all the Annotation* otherwise
|
|
|
|
// they still point to the old document ones, luckily the old ones are still
|
|
|
|
// around so we can look for the new ones using unique ids, etc
|
|
|
|
updateAnnotationPointer( root, pages );
|
|
|
|
}
|
2007-09-08 17:10:35 +00:00
|
|
|
return;
|
2017-10-26 07:47:18 +00:00
|
|
|
}
|
2007-09-08 17:10:35 +00:00
|
|
|
|
2016-07-24 21:46:53 +00:00
|
|
|
q->beginResetModel();
|
2007-09-08 17:10:35 +00:00
|
|
|
qDeleteAll( root->children );
|
|
|
|
root->children.clear();
|
|
|
|
|
|
|
|
rebuildTree( pages );
|
2016-07-24 21:46:53 +00:00
|
|
|
q->endResetModel();
|
2007-09-08 17:10:35 +00:00
|
|
|
}
|
|
|
|
|
2007-09-08 23:39:30 +00:00
|
|
|
void AnnotationModelPrivate::notifyPageChanged( int page, int flags )
|
|
|
|
{
|
|
|
|
// we are strictly interested in annotations
|
|
|
|
if ( !(flags & Okular::DocumentObserver::Annotations ) )
|
|
|
|
return;
|
|
|
|
|
2012-12-10 17:51:17 +00:00
|
|
|
const QLinkedList< Okular::Annotation* > annots = filterOutWidgetAnnotations( document->page( page )->annotations() );
|
2007-09-08 23:39:30 +00:00
|
|
|
int annItemIndex = -1;
|
2007-09-08 23:46:49 +00:00
|
|
|
AnnItem *annItem = findItem( page, &annItemIndex );
|
2007-09-08 23:39:30 +00:00
|
|
|
// case 1: the page has no more annotations
|
|
|
|
// => remove the branch, if any
|
|
|
|
if ( annots.isEmpty() )
|
|
|
|
{
|
|
|
|
if ( annItem )
|
|
|
|
{
|
|
|
|
q->beginRemoveRows( indexForItem( root ), annItemIndex, annItemIndex );
|
|
|
|
delete root->children.at( annItemIndex );
|
|
|
|
root->children.removeAt( annItemIndex );
|
|
|
|
q->endRemoveRows();
|
|
|
|
}
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
// case 2: no existing branch
|
|
|
|
// => add a new branch, and add the annotations for the page
|
|
|
|
if ( !annItem )
|
|
|
|
{
|
|
|
|
int i = 0;
|
|
|
|
while ( i < root->children.count() && root->children.at( i )->page < page ) ++i;
|
|
|
|
|
2007-09-08 23:46:49 +00:00
|
|
|
AnnItem *annItem = new AnnItem();
|
2007-09-08 23:39:30 +00:00
|
|
|
annItem->page = page;
|
|
|
|
annItem->parent = root;
|
|
|
|
q->beginInsertRows( indexForItem( root ), i, i );
|
|
|
|
annItem->parent->children.insert( i, annItem );
|
|
|
|
q->endInsertRows();
|
|
|
|
QLinkedList< Okular::Annotation* >::ConstIterator it = annots.begin(), itEnd = annots.end();
|
|
|
|
int newid = 0;
|
|
|
|
for ( ; it != itEnd; ++it, ++newid )
|
|
|
|
{
|
|
|
|
q->beginInsertRows( indexForItem( annItem ), newid, newid );
|
2007-09-08 23:46:49 +00:00
|
|
|
new AnnItem( annItem, *it );
|
2007-09-08 23:39:30 +00:00
|
|
|
q->endInsertRows();
|
|
|
|
}
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
// case 3: existing branch, less annotations than items
|
|
|
|
// => lookup and remove the annotations
|
|
|
|
if ( annItem->children.count() > annots.count() )
|
|
|
|
{
|
|
|
|
for ( int i = annItem->children.count(); i > 0; --i )
|
|
|
|
{
|
|
|
|
Okular::Annotation *ref = annItem->children.at( i - 1 )->annotation;
|
|
|
|
bool found = false;
|
|
|
|
QLinkedList< Okular::Annotation* >::ConstIterator it = annots.begin(), itEnd = annots.end();
|
|
|
|
for ( ; !found && it != itEnd; ++it )
|
|
|
|
{
|
|
|
|
if ( ( *it ) == ref )
|
|
|
|
found = true;
|
|
|
|
}
|
|
|
|
if ( !found )
|
|
|
|
{
|
|
|
|
q->beginRemoveRows( indexForItem( annItem ), i - 1, i - 1 );
|
2007-12-25 14:47:53 +00:00
|
|
|
delete annItem->children.at( i - 1 );
|
2007-09-08 23:39:30 +00:00
|
|
|
annItem->children.removeAt( i - 1 );
|
|
|
|
q->endRemoveRows();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
// case 4: existing branch, less items than annotations
|
|
|
|
// => lookup and add annotations if not in the branch
|
|
|
|
if ( annots.count() > annItem->children.count() )
|
|
|
|
{
|
|
|
|
QLinkedList< Okular::Annotation* >::ConstIterator it = annots.begin(), itEnd = annots.end();
|
|
|
|
for ( ; it != itEnd; ++it )
|
|
|
|
{
|
|
|
|
Okular::Annotation *ref = *it;
|
|
|
|
bool found = false;
|
|
|
|
int count = annItem->children.count();
|
|
|
|
for ( int i = 0; !found && i < count; ++i )
|
|
|
|
{
|
|
|
|
if ( ref == annItem->children.at( i )->annotation )
|
|
|
|
found = true;
|
|
|
|
}
|
|
|
|
if ( !found )
|
|
|
|
{
|
|
|
|
q->beginInsertRows( indexForItem( annItem ), count, count );
|
2007-09-08 23:46:49 +00:00
|
|
|
new AnnItem( annItem, ref );
|
2007-09-08 23:39:30 +00:00
|
|
|
q->endInsertRows();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
// case 5: the data of some annotation changed
|
|
|
|
// TODO: what do we do in this case?
|
2007-09-09 12:33:49 +00:00
|
|
|
// FIXME: for now, update ALL the annotations for that page
|
|
|
|
for ( int i = 0; i < annItem->children.count(); ++i )
|
|
|
|
{
|
|
|
|
QModelIndex index = indexForItem( annItem->children.at( i ) );
|
|
|
|
emit q->dataChanged( index, index );
|
|
|
|
}
|
2007-09-08 23:39:30 +00:00
|
|
|
}
|
|
|
|
|
2007-09-08 23:46:49 +00:00
|
|
|
QModelIndex AnnotationModelPrivate::indexForItem( AnnItem *item ) const
|
2007-09-08 17:10:35 +00:00
|
|
|
{
|
|
|
|
if ( item->parent )
|
|
|
|
{
|
|
|
|
int id = item->parent->children.indexOf( item );
|
|
|
|
if ( id >= 0 && id < item->parent->children.count() )
|
|
|
|
return q->createIndex( id, 0, item );
|
|
|
|
}
|
|
|
|
return QModelIndex();
|
|
|
|
}
|
|
|
|
|
|
|
|
void AnnotationModelPrivate::rebuildTree( const QVector< Okular::Page * > &pages )
|
|
|
|
{
|
2007-09-09 00:27:16 +00:00
|
|
|
if ( pages.isEmpty() )
|
|
|
|
return;
|
|
|
|
|
2007-09-08 17:10:35 +00:00
|
|
|
emit q->layoutAboutToBeChanged();
|
|
|
|
for ( int i = 0; i < pages.count(); ++i )
|
|
|
|
{
|
2012-12-10 17:51:17 +00:00
|
|
|
const QLinkedList< Okular::Annotation* > annots = filterOutWidgetAnnotations( pages.at( i )->annotations() );
|
2007-09-08 17:10:35 +00:00
|
|
|
if ( annots.isEmpty() )
|
|
|
|
continue;
|
|
|
|
|
2007-09-08 23:46:49 +00:00
|
|
|
AnnItem *annItem = new AnnItem( root, i );
|
2007-09-08 17:10:35 +00:00
|
|
|
QLinkedList< Okular::Annotation* >::ConstIterator it = annots.begin(), itEnd = annots.end();
|
|
|
|
for ( ; it != itEnd; ++it )
|
|
|
|
{
|
2007-09-08 23:46:49 +00:00
|
|
|
new AnnItem( annItem, *it );
|
2007-09-08 17:10:35 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
emit q->layoutChanged();
|
|
|
|
}
|
|
|
|
|
2007-09-08 23:46:49 +00:00
|
|
|
AnnItem* AnnotationModelPrivate::findItem( int page, int *index ) const
|
2007-09-08 23:39:30 +00:00
|
|
|
{
|
|
|
|
for ( int i = 0; i < root->children.count(); ++i )
|
|
|
|
{
|
2007-09-08 23:46:49 +00:00
|
|
|
AnnItem *tmp = root->children.at( i );
|
2007-09-08 23:39:30 +00:00
|
|
|
if ( tmp->page == page )
|
|
|
|
{
|
|
|
|
if ( index )
|
|
|
|
*index = i;
|
|
|
|
return tmp;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if ( index )
|
|
|
|
*index = -1;
|
2017-09-05 21:27:18 +00:00
|
|
|
return nullptr;
|
2007-09-08 23:39:30 +00:00
|
|
|
}
|
|
|
|
|
2007-09-08 17:10:35 +00:00
|
|
|
|
|
|
|
AnnotationModel::AnnotationModel( Okular::Document *document, QObject *parent )
|
|
|
|
: QAbstractItemModel( parent ), d( new AnnotationModelPrivate( this ) )
|
|
|
|
{
|
|
|
|
d->document = document;
|
|
|
|
|
|
|
|
d->document->addObserver( d );
|
|
|
|
}
|
|
|
|
|
|
|
|
AnnotationModel::~AnnotationModel()
|
|
|
|
{
|
2007-09-09 00:27:16 +00:00
|
|
|
if ( d->document )
|
|
|
|
d->document->removeObserver( d );
|
|
|
|
|
2007-09-08 17:10:35 +00:00
|
|
|
delete d;
|
|
|
|
}
|
|
|
|
|
|
|
|
int AnnotationModel::columnCount( const QModelIndex &parent ) const
|
|
|
|
{
|
|
|
|
Q_UNUSED( parent )
|
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
QVariant AnnotationModel::data( const QModelIndex &index, int role ) const
|
|
|
|
{
|
|
|
|
if ( !index.isValid() )
|
|
|
|
return QVariant();
|
|
|
|
|
2007-09-08 23:46:49 +00:00
|
|
|
AnnItem *item = static_cast< AnnItem* >( index.internalPointer() );
|
2007-09-08 17:10:35 +00:00
|
|
|
if ( !item->annotation )
|
|
|
|
{
|
2007-09-09 15:58:10 +00:00
|
|
|
if ( role == Qt::DisplayRole )
|
|
|
|
return i18n( "Page %1", item->page + 1 );
|
|
|
|
else if ( role == Qt::DecorationRole )
|
2015-10-29 12:37:11 +00:00
|
|
|
return QIcon::fromTheme( QStringLiteral("text-plain") );
|
2007-09-09 15:58:10 +00:00
|
|
|
else if ( role == PageRole )
|
|
|
|
return item->page;
|
|
|
|
|
2007-09-08 17:10:35 +00:00
|
|
|
return QVariant();
|
|
|
|
}
|
|
|
|
switch ( role )
|
|
|
|
{
|
|
|
|
case Qt::DisplayRole:
|
2007-12-24 00:54:21 +00:00
|
|
|
return GuiUtils::captionForAnnotation( item->annotation );
|
2007-09-08 17:10:35 +00:00
|
|
|
break;
|
|
|
|
case Qt::DecorationRole:
|
2015-10-29 12:37:11 +00:00
|
|
|
return QIcon::fromTheme( QStringLiteral("okular") );
|
2007-09-08 17:10:35 +00:00
|
|
|
break;
|
2007-09-09 15:58:10 +00:00
|
|
|
case Qt::ToolTipRole:
|
2007-12-24 00:54:21 +00:00
|
|
|
return GuiUtils::prettyToolTip( item->annotation );
|
2007-09-09 15:58:10 +00:00
|
|
|
break;
|
2007-09-08 17:10:35 +00:00
|
|
|
case AuthorRole:
|
|
|
|
return item->annotation->author();
|
|
|
|
break;
|
|
|
|
case PageRole:
|
|
|
|
return item->page;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
return QVariant();
|
|
|
|
}
|
|
|
|
|
|
|
|
bool AnnotationModel::hasChildren( const QModelIndex &parent ) const
|
|
|
|
{
|
|
|
|
if ( !parent.isValid() )
|
|
|
|
return true;
|
|
|
|
|
2007-09-08 23:46:49 +00:00
|
|
|
AnnItem *item = static_cast< AnnItem* >( parent.internalPointer() );
|
2007-09-08 17:10:35 +00:00
|
|
|
return !item->children.isEmpty();
|
|
|
|
}
|
|
|
|
|
|
|
|
QVariant AnnotationModel::headerData( int section, Qt::Orientation orientation, int role ) const
|
|
|
|
{
|
|
|
|
if ( orientation != Qt::Horizontal )
|
|
|
|
return QVariant();
|
|
|
|
|
|
|
|
if ( section == 0 && role == Qt::DisplayRole )
|
2016-07-11 20:05:18 +00:00
|
|
|
return QString::fromLocal8Bit("Annotations");
|
2007-09-08 17:10:35 +00:00
|
|
|
|
|
|
|
return QVariant();
|
|
|
|
}
|
|
|
|
|
|
|
|
QModelIndex AnnotationModel::index( int row, int column, const QModelIndex &parent ) const
|
|
|
|
{
|
|
|
|
if ( row < 0 || column != 0 )
|
|
|
|
return QModelIndex();
|
|
|
|
|
2007-09-08 23:46:49 +00:00
|
|
|
AnnItem *item = parent.isValid() ? static_cast< AnnItem* >( parent.internalPointer() ) : d->root;
|
2007-09-08 17:10:35 +00:00
|
|
|
if ( row < item->children.count() )
|
|
|
|
return createIndex( row, column, item->children.at( row ) );
|
|
|
|
|
|
|
|
return QModelIndex();
|
|
|
|
}
|
|
|
|
|
|
|
|
QModelIndex AnnotationModel::parent( const QModelIndex &index ) const
|
|
|
|
{
|
|
|
|
if ( !index.isValid() )
|
|
|
|
return QModelIndex();
|
|
|
|
|
2007-09-08 23:46:49 +00:00
|
|
|
AnnItem *item = static_cast< AnnItem* >( index.internalPointer() );
|
2007-09-08 17:10:35 +00:00
|
|
|
return d->indexForItem( item->parent );
|
|
|
|
}
|
|
|
|
|
|
|
|
int AnnotationModel::rowCount( const QModelIndex &parent ) const
|
|
|
|
{
|
2007-09-08 23:46:49 +00:00
|
|
|
AnnItem *item = parent.isValid() ? static_cast< AnnItem* >( parent.internalPointer() ) : d->root;
|
2007-09-08 17:10:35 +00:00
|
|
|
return item->children.count();
|
|
|
|
}
|
|
|
|
|
|
|
|
bool AnnotationModel::isAnnotation( const QModelIndex &index ) const
|
|
|
|
{
|
|
|
|
return annotationForIndex( index );
|
|
|
|
}
|
|
|
|
|
|
|
|
Okular::Annotation* AnnotationModel::annotationForIndex( const QModelIndex &index ) const
|
|
|
|
{
|
|
|
|
if ( !index.isValid() )
|
2017-09-05 21:27:18 +00:00
|
|
|
return nullptr;
|
2007-09-08 17:10:35 +00:00
|
|
|
|
2007-09-08 23:46:49 +00:00
|
|
|
AnnItem *item = static_cast< AnnItem* >( index.internalPointer() );
|
2007-09-08 17:10:35 +00:00
|
|
|
return item->annotation;
|
|
|
|
}
|
|
|
|
|
2014-08-08 22:00:07 +00:00
|
|
|
#include "moc_annotationmodel.cpp"
|