Commit a9c6f324 authored by Pino Toscano's avatar Pino Toscano

some kpdf -> okular for icons and a pair of gui messages

svn path=/branches/work/kde4/playground/graphics/okular/; revision=526898
parent 3447213c
......@@ -659,11 +659,11 @@ void HighlightAnnotation::store( QDomNode & node, QDomDocument & document ) cons
/** StampAnnotation [Annotation] */
StampAnnotation::StampAnnotation()
: Annotation(), stampIconName( "kpdf" )
: Annotation(), stampIconName( "oKular" )
{}
StampAnnotation::StampAnnotation( const QDomNode & node )
: Annotation( node ), stampIconName( "kpdf" )
: Annotation( node ), stampIconName( "oKular" )
{
// loop through the whole children looking for a 'stamp' element
QDomNode subNode = node.firstChild();
......@@ -693,7 +693,7 @@ void StampAnnotation::store( QDomNode & node, QDomDocument & document ) const
node.appendChild( stampElement );
// append the optional attributes
if ( stampIconName != "kpdf" )
if ( stampIconName != "oKular" )
stampElement.setAttribute( "icon", stampIconName );
}
......
......@@ -1116,7 +1116,7 @@ void KPDFDocument::processLink( const KPDFLink * link )
{
// this case is a link pointing to an executable with a parameter
// that also is an executable, possibly a hand-crafted pdf
KMessageBox::information( 0, i18n("The pdf file is trying to execute an external application and for your safety kpdf does not allow that.") );
KMessageBox::information( 0, i18n("The pdf file is trying to execute an external application and for your safety oKular does not allow that.") );
return;
}
}
......@@ -1124,7 +1124,7 @@ void KPDFDocument::processLink( const KPDFLink * link )
{
// this case is a link pointing to an executable with no parameters
// core developers find unacceptable executing it even after asking the user
KMessageBox::information( 0, i18n("The pdf file is trying to execute an external application and for your safety kpdf does not allow that.") );
KMessageBox::information( 0, i18n("The pdf file is trying to execute an external application and for your safety oKular does not allow that.") );
return;
}
}
......
......@@ -213,10 +213,10 @@ class PickPointEngine : public AnnotatorEngine
// parse engine specific attributes
QString pixmapName = engineElement.attribute( "hoverIcon" );
if ( pixmapName.isNull() )
pixmapName = "kpdf";
pixmapName = "oKular";
// create engine objects
pixmap = new QPixmap( DesktopIcon( "kpdf", 32 ) );
pixmap = new QPixmap( DesktopIcon( "oKular", 32 ) );
}
~PickPointEngine()
......
......@@ -266,7 +266,7 @@ void Reviews::addContents( const KPDFPage * page )
Q3ListViewItem * singleItem = authorItem ?
new Q3ListViewItem( authorItem, annotation->contents ) :
new Q3ListViewItem( m_listView, annotation->contents );
singleItem->setPixmap( 0, SmallIcon( "kpdf" ) );
singleItem->setPixmap( 0, SmallIcon( "oKular" ) );
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment