rename 'freetext' to 'inline note'

svn path=/trunk/KDE/kdegraphics/okular/; revision=701876
remotes/origin/KDE/4.0
Pino Toscano 19 years ago
parent b704eefcc8
commit cd0dd24193
  1. 2
      core/document.cpp
  2. 4
      ui/annotationguiutils.cpp
  3. 4
      ui/annotationpropertiesdialog.cpp
  4. 5
      ui/data/tools.xml
  5. 2
      ui/formwidgets.cpp
  6. 4
      ui/pageviewannotator.cpp
  7. 4
      ui/side_reviews.cpp

@ -523,7 +523,7 @@ Generator * DocumentPrivate::loadGeneratorLibrary( const QString& name, const QS
{
kWarning().nospace() << "Could not load '" << libname << "' library.";
kWarning() << KLibLoader::self()->lastErrorMessage();
emit m_parent->error( i18n( "Could not load the necessary plugin to view the document" ), -1 );
emit m_parent->error( i18n( "Could not load the necessary plugin to view the document." ), -1 );
return 0;
}

@ -27,13 +27,13 @@ QString AnnotationGuiUtils::captionForAnnotation( Okular::Annotation * ann )
if( ( (Okular::TextAnnotation*)ann )->textType() == Okular::TextAnnotation::Linked )
ret = i18n( "Note" );
else
ret = i18n( "FreeText" );
ret = i18n( "Inline Note" );
break;
case Okular::Annotation::ALine:
ret = i18n( "Line" );
break;
case Okular::Annotation::AGeom:
ret = i18n( "Geom" );
ret = i18n( "Geometry" );
break;
case Okular::Annotation::AHighlight:
ret = i18n( "Highlight" );

@ -147,13 +147,13 @@ void AnnotsPropertiesDialog::setCaptionTextbyAnnotType()
if(((Okular::TextAnnotation*)m_annot)->textType()==Okular::TextAnnotation::Linked)
captiontext = i18n( "Note Properties" );
else
captiontext = i18n( "FreeText Properties" );
captiontext = i18n( "Inline Note Properties" );
break;
case Okular::Annotation::ALine:
captiontext = i18n( "Line Properties" );
break;
case Okular::Annotation::AGeom:
captiontext = i18n( "Geom Properties" );
captiontext = i18n( "Geometry Properties" );
break;
case Okular::Annotation::AHighlight:
captiontext = i18n( "Highlight Properties" );

@ -24,8 +24,8 @@ Engine/Annotation Types [specific attributes]:
</engine>
<shortcut>1</shortcut>
</tool>
<tool id="2" name="FreeText" pixmap="text">
<tooltip>Free Text Annotation (drag to select a zone)</tooltip>
<tool id="2" name="Inline Note" pixmap="text">
<tooltip>Inline Text Annotation (drag to select a zone)</tooltip>
<engine type="PickPoint" color="#FFFF00" hoverIcon="tool_note" block="true">
<annotation type="FreeText" color="#FFFF00" />
</engine>
@ -85,6 +85,5 @@ Engine/Annotation Types [specific attributes]:
<engine type="PickPoint" color="#00ffff">
<annotation type="GeomCircle" color="#00ffff" />
</engine>
<shortcut>10</shortcut>
</tool>
</annotatingTools>

@ -144,7 +144,7 @@ FileEdit::FileEdit( Okular::FormFieldText * text, QWidget * parent )
: KUrlRequester( parent ), FormWidgetIface( this, text ), m_form( text )
{
setMode( KFile::File | KFile::ExistingOnly | KFile::LocalOnly );
setFilter( QString( "*|" ) + i18n( "All files" ) );
setFilter( i18n( "*|All files" ) );
setPath( m_form->text() );
lineEdit()->setAlignment( m_form->textAlignment() );
setEnabled( !m_form->isReadOnly() );

@ -155,9 +155,9 @@ class PickPointEngine : public AnnotatorEngine
if ( typeString == "FreeText") //<annotation type="Text"
{
//note dialog
QString prompt = i18n( "Please input the free text:" ) ;
QString prompt = i18n( "Text of the new note:" );
bool resok;
QString note = KInputDialog::getMultiLineText( i18n( "Free Text" ), prompt, QString(), &resok );
QString note = KInputDialog::getMultiLineText( i18n( "New Text Note" ), prompt, QString(), &resok );
if(resok)
{
//add note

@ -312,7 +312,7 @@ void Reviews::addContents( const Okular::Page * page )
// get author's name
QString author = annotation->author();
if ( author.isEmpty() )
author = i18n( "Unknown" );
author = i18nc( "Unknown author", "Unknown" );
// find out a previous entry by author
QTreeWidgetItemIterator it = pageItem
@ -328,7 +328,7 @@ void Reviews::addContents( const Okular::Page * page )
authorItem = new QTreeWidgetItem( pageItem );
else
authorItem = new QTreeWidgetItem( m_listView );
QString icon = author != i18n( "Unknown" ) ? "personal" : "presence_away";
QString icon = author != i18nc( "Unknown author", "Unknown" ) ? "personal" : "presence_away";
authorItem->setText( 0, author );
authorItem->setIcon( 0, KIcon( icon ) );
}

Loading…
Cancel
Save