mirror of
https://bitbucket.org/smil3y/kde-extraapps.git
synced 2025-02-24 19:02:53 +00:00

other changes such as syncing properties, updating some of the URLs, adding missing feature information, removing of redundant checks and variables and indentation were done in the process while testing if the changes work as intended. replacing find_package() with macro_optional_find_package() was also done where applicable however it's usage is questionable due to the CMake `CMAKE_DISABLE_FIND_PACKAGE_<PACKAGE>` option. there is a lot to be done, mostly updating package properties so I am thinking of either providing a package properties file (like the MacroLibrary) which sets properties for packages globablly or setting package properties from the CMake modules shipped with kdelibs. the first solution may override properties for packages if other projects define them however a check to ensure that is not done should suffice. the second solution will cover only DESCRIPTION and URL meaning PURPOSE and TYPE will still have to be specified in the build systems. Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
37 lines
1.5 KiB
C++
37 lines
1.5 KiB
C++
/***************************************************************************
|
|
* Copyright (C) 2012 by Fabio D'Urso <fabiodurso@hotmail.it> *
|
|
* *
|
|
* 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. *
|
|
***************************************************************************/
|
|
|
|
#ifndef _OKULAR_GENERATOR_PDF_ANNOTS_H_
|
|
#define _OKULAR_GENERATOR_PDF_ANNOTS_H_
|
|
|
|
#include <poppler-annotation.h>
|
|
#include <poppler-qt4.h>
|
|
|
|
#include <qmutex.h>
|
|
|
|
#include "core/annotations.h"
|
|
|
|
extern Okular::Annotation* createAnnotationFromPopplerAnnotation( Poppler::Annotation *ann, bool * doDelete );
|
|
|
|
class PopplerAnnotationProxy : public Okular::AnnotationProxy
|
|
{
|
|
public:
|
|
PopplerAnnotationProxy( Poppler::Document *doc, QMutex *userMutex );
|
|
~PopplerAnnotationProxy();
|
|
|
|
bool supports( Capability capability ) const;
|
|
void notifyAddition( Okular::Annotation *annotation, int page );
|
|
void notifyModification( const Okular::Annotation *annotation, int page, bool appearanceChanged );
|
|
void notifyRemoval( Okular::Annotation *annotation, int page );
|
|
private:
|
|
Poppler::Document *ppl_doc;
|
|
QMutex *mutex;
|
|
};
|
|
|
|
#endif
|