Changeset View
Changeset View
Standalone View
Standalone View
ui/guiutils.cpp
Show First 20 Lines • Show All 67 Lines • ▼ Show 20 Line(s) | 64 | { | |||
---|---|---|---|---|---|
68 | 68 | | |||
69 | QString ret; | 69 | QString ret; | ||
70 | switch( ann->subType() ) | 70 | switch( ann->subType() ) | ||
71 | { | 71 | { | ||
72 | case Okular::Annotation::AText: | 72 | case Okular::Annotation::AText: | ||
73 | if( ( (Okular::TextAnnotation*)ann )->textType() == Okular::TextAnnotation::Linked ) | 73 | if( ( (Okular::TextAnnotation*)ann )->textType() == Okular::TextAnnotation::Linked ) | ||
74 | ret = i18n( "Pop-up Note" ); | 74 | ret = i18n( "Pop-up Note" ); | ||
75 | else | 75 | else | ||
76 | { | ||||
77 | if( ( (Okular::TextAnnotation*)ann )->inplaceIntent() == Okular::TextAnnotation::TypeWriter ) | ||||
78 | ret = i18n( "Typewriter" ); | ||||
79 | else | ||||
76 | ret = i18n( "Inline Note" ); | 80 | ret = i18n( "Inline Note" ); | ||
81 | } | ||||
77 | break; | 82 | break; | ||
78 | case Okular::Annotation::ALine: | 83 | case Okular::Annotation::ALine: | ||
79 | if( ( (Okular::LineAnnotation*)ann )->linePoints().count() == 2 ) | 84 | if( ( (Okular::LineAnnotation*)ann )->linePoints().count() == 2 ) | ||
80 | ret = hasComment ? i18n( "Straight Line with Comment" ) : i18n( "Straight Line" ); | 85 | ret = hasComment ? i18n( "Straight Line with Comment" ) : i18n( "Straight Line" ); | ||
81 | else | 86 | else | ||
82 | ret = hasComment ? i18n( "Polygon with Comment" ) : i18n( "Polygon" ); | 87 | ret = hasComment ? i18n( "Polygon with Comment" ) : i18n( "Polygon" ); | ||
83 | break; | 88 | break; | ||
84 | case Okular::Annotation::AGeom: | 89 | case Okular::Annotation::AGeom: | ||
▲ Show 20 Lines • Show All 196 Lines • Show Last 20 Lines |