spell checking

svn path=/trunk/playground/graphics/okular/; revision=597875
remotes/origin/KDE/4.0
Pino Toscano 20 years ago
parent bbcb217a19
commit ed84916c0d
  1. 4
      generators/ghostview/interpreter_cmd.h
  2. 4
      part.cpp
  3. 4
      ui/pagepainter.cpp
  4. 8
      ui/pageview.cpp

@ -70,7 +70,7 @@ class GSInterpreterCMD : public QThread
signals: signals:
/** /**
* This signal gets emited whenever a page is finished, but contains a reference to the pixmap * This signal gets emitted whenever a page is finished, but contains a reference to the pixmap
* used to hold the image. * used to hold the image.
* *
* Don't change the pixmap or bad things will happen. This is the backing pixmap of the display. * Don't change the pixmap or bad things will happen. This is the backing pixmap of the display.
@ -98,7 +98,7 @@ class GSInterpreterCMD : public QThread
QString m_error; QString m_error;
// FILE INFORMATION: // FILE INFORMATION:
// hold pointer to a file never delete it, it should // hold pointer to a file never delete it, it should
// change everytime new request is done // change every time a new request is done
bool m_structurePending; bool m_structurePending;
double m_magnify; double m_magnify;
int m_aaText,m_aaGfx; int m_aaText,m_aaGfx;

@ -426,7 +426,7 @@ void Part::fillGenerators()
for (int i=0;i<count;i++) for (int i=0;i<count;i++)
{ {
propName=offers[i]->property("Name").toString(); propName=offers[i]->property("Name").toString();
// dont load already loaded generators // don't load already loaded generators
if (! m_loadedGenerators.take( propName ) ) if (! m_loadedGenerators.take( propName ) )
{ {
KLibrary *lib = loader->globalLibrary( QFile::encodeName( offers[i]->library() ) ); KLibrary *lib = loader->globalLibrary( QFile::encodeName( offers[i]->library() ) );
@ -472,7 +472,7 @@ void Part::slotGeneratorPreferences( )
it.value()->addPages(dialog); it.value()->addPages(dialog);
} }
// (for now dont FIXME) keep us informed when the user changes settings // (for now don't FIXME) keep us informed when the user changes settings
// connect( dialog, SIGNAL( settingsChanged() ), this, SLOT( slotNewConfig() ) ); // connect( dialog, SIGNAL( settingsChanged() ), this, SLOT( slotNewConfig() ) );
dialog->show(); dialog->show();
} }

@ -100,7 +100,7 @@ void PagePainter::paintPageOnPainter( QPainter * destPainter, const Okular::Page
bool enhanceLinks = (flags & EnhanceLinks) && Okular::Settings::highlightLinks(); bool enhanceLinks = (flags & EnhanceLinks) && Okular::Settings::highlightLinks();
bool enhanceImages = (flags & EnhanceImages) && Okular::Settings::highlightImages(); bool enhanceImages = (flags & EnhanceImages) && Okular::Settings::highlightImages();
// vectors containing objects to draw // vectors containing objects to draw
// make this a qcolor, rect map, since we dont need // make this a qcolor, rect map, since we don't need
// to know s_id here! we are only drawing this right? // to know s_id here! we are only drawing this right?
QList< QPair<QColor, Okular::NormalizedRect *> > * bufferedHighlights = 0; QList< QPair<QColor, Okular::NormalizedRect *> > * bufferedHighlights = 0;
QList< Okular::Annotation * > * bufferedAnnotations = 0; QList< Okular::Annotation * > * bufferedAnnotations = 0;
@ -490,7 +490,7 @@ void PagePainter::paintPageOnPainter( QPainter * destPainter, const Okular::Page
{ {
Okular::Annotation * a = *aIt; Okular::Annotation * a = *aIt;
// honour opacity settings on supported types // honor opacity settings on supported types
unsigned int opacity = (unsigned int)( 255.0 * a->style.opacity ); unsigned int opacity = (unsigned int)( 255.0 * a->style.opacity );
if ( opacity <= 0 ) if ( opacity <= 0 )
continue; continue;

@ -1591,7 +1591,7 @@ if (d->document->handleEvent( e ) )
// check if the user really selected an action // check if the user really selected an action
if ( choice ) if ( choice )
{ {
// IMAGE operation choosen // IMAGE operation chosen
if ( choice == imageToClipboard || choice == imageToFile ) if ( choice == imageToClipboard || choice == imageToFile )
{ {
// renders page into a pixmap // renders page into a pixmap
@ -1628,7 +1628,7 @@ if (d->document->handleEvent( e ) )
} }
} }
} }
// TEXT operation choosen // TEXT operation chosen
else else
{ {
if ( choice == textToClipboard ) if ( choice == textToClipboard )
@ -1867,7 +1867,7 @@ void PageView::drawDocumentOnPainter( const QRect & contentsRect, QPainter * p )
QRect checkRect = contentsRect; QRect checkRect = contentsRect;
checkRect.adjust( -3, -3, 1, 1 ); checkRect.adjust( -3, -3, 1, 1 );
// create a region from wich we'll subtract painted rects // create a region from which we'll subtract painted rects
QRegion remainingArea( contentsRect ); QRegion remainingArea( contentsRect );
// iterate over all items painting the ones intersecting contentsRect // iterate over all items painting the ones intersecting contentsRect
@ -1912,7 +1912,7 @@ void PageView::drawDocumentOnPainter( const QRect & contentsRect, QPainter * p )
} }
} }
// draw the page using the PagePainter whith all flags active // draw the page using the PagePainter with all flags active
if ( contentsRect.intersects( itemGeometry ) ) if ( contentsRect.intersects( itemGeometry ) )
{ {
QRect pixmapRect = contentsRect.intersect( itemGeometry ); QRect pixmapRect = contentsRect.intersect( itemGeometry );

Loading…
Cancel
Save