Subversion Repositories Scribus

Compare Revisions

Regard whitespace Rev 1234 → Rev 1235

/branches/Version13x/Scribus/scribus/fileloader.cpp
393,6 → 393,18
doc->guidesSettings.before = static_cast<bool>(QStoInt(dc.attribute("BACKG","1")));
doc->guidesSettings.guideRad = QStoInt(dc.attribute("GuideRad","10"));
doc->guidesSettings.grabRad = QStoInt(dc.attribute("GRAB","4"));
if (dc.hasAttribute("checkGlyphs"))
{
doc->checkerSettings.ignoreErrors = static_cast<bool>(QStoInt(dc.attribute("ignoreErrors", "0")));
doc->checkerSettings.autoCheck = static_cast<bool>(QStoInt(dc.attribute("autoCheck", "1")));
doc->checkerSettings.checkGlyphs = static_cast<bool>(QStoInt(dc.attribute("checkGlyphs", "1")));
doc->checkerSettings.checkOrphans = static_cast<bool>(QStoInt(dc.attribute("checkOrphans", "1")));
doc->checkerSettings.checkOverflow = static_cast<bool>(QStoInt(dc.attribute("checkOverflow", "1")));
doc->checkerSettings.checkPictures = static_cast<bool>(QStoInt(dc.attribute("checkPictures", "1")));
doc->checkerSettings.checkResolution = static_cast<bool>(QStoInt(dc.attribute("checkResolution", "1")));
doc->checkerSettings.checkTransparency = static_cast<bool>(QStoInt(dc.attribute("checkTransparency", "1")));
doc->checkerSettings.minResolution = QStodouble(dc.attribute("minResolution","72"));
}
doc->LastAuto = 0;
QDomNode PAGE=DOC.firstChild();
counter = 0;
/branches/Version13x/Scribus/scribus/checkDocument.cpp
10,6 → 10,7
#include <qwhatsthis.h>
#include <qimage.h>
#include <qpixmap.h>
#include <qmap.h>
#include "scribusdoc.h"
#include "page.h"
extern QPixmap loadIcon(QString nam);
130,9 → 131,11
// okButton = new QPushButton( this, "okButton" );
// layout1->addWidget( okButton );
newCheck = new QPushButton( this, "newCheck" );
newCheck->setEnabled(false);
layout1->addWidget( newCheck );
checkDocumentLayout->addLayout( layout1 );
languageChange();
itemMap.clear();
resize( QSize(306, 259).expandedTo(minimumSizeHint()) );
clearWState( WState_Polished );
connect(newCheck, SIGNAL(clicked()), this, SLOT(newScan()));
144,6 → 147,14
ce->accept();
}
 
void CheckDocument::slotSelect(QListViewItem* ite)
{
if (document->TemplateMode)
return;
if (itemMap.contains(ite))
emit selectElement(-1, itemMap[ite]);
}
 
void CheckDocument::newScan()
{
clearErrorList();
152,18 → 163,24
 
void CheckDocument::clearErrorList()
{
disconnect(reportDisplay, SIGNAL(selectionChanged(QListViewItem*)), this, SLOT(slotSelect(QListViewItem*)));
reportDisplay->clear();
itemMap.clear();
newCheck->setEnabled(false);
}
 
void CheckDocument::buildErrorList(ScribusDoc *doc)
{
document = doc;
QString missingGlyph = tr("Glyphs missing");
QString textOverflow = tr("Text overflow");
QString notOnPage = tr("Object is not on a Page");
QString missingImg = tr("Missing Image");
QString lowDPI = tr("Image has a DPI-Value less than 72 DPI");
QString transpar = tr("Object has transparency");
reportDisplay->clear();
reportDisplay->setSorting(-1);
itemMap.clear();
QListViewItem * item = new QListViewItem( reportDisplay, 0 );
item->setText( 0, tr( "Document" ) );
if ((doc->docItemErrors.count() == 0) && (doc->masterItemErrors.count() == 0))
219,6 → 236,12
case 5:
object->setText(1, lowDPI);
break;
case 6:
object->setText(1, transpar);
hasGraveError = true;
pageGraveError = true;
itemError = true;
break;
}
}
else
254,6 → 277,13
errorText->setText(1, lowDPI);
errorText->setPixmap( 0, onlyWarning );
break;
case 6:
errorText->setText(1, transpar);
errorText->setPixmap( 0, graveError );
hasGraveError = true;
pageGraveError = true;
itemError = true;
break;
}
}
}
290,6 → 320,7
bool itemError = false;
QListViewItem * object = new QListViewItem( page, 0 );
object->setText(0, doc->DocItems.at(it2.key())->AnName);
itemMap.insert(object, doc->DocItems.at(it2.key())->ItemNr);
errorCodes::Iterator it3;
if (it2.data().count() == 1)
{
317,6 → 348,12
case 5:
object->setText(1, lowDPI);
break;
case 6:
object->setText(1, transpar);
hasGraveError = true;
pageGraveError = true;
itemError = true;
break;
}
}
else
352,6 → 389,13
errorText->setText(1, lowDPI);
errorText->setPixmap( 0, onlyWarning );
break;
case 6:
errorText->setText(1, transpar);
errorText->setPixmap( 0, graveError );
hasGraveError = true;
pageGraveError = true;
itemError = true;
break;
}
}
}
395,6 → 439,7
hasError = true;
QListViewItem * object = new QListViewItem( page, 0 );
object->setText(0, doc->DocItems.at(it2.key())->AnName);
itemMap.insert(object, doc->DocItems.at(it2.key())->ItemNr);
errorCodes::Iterator it3;
if (it2.data().count() == 1)
{
420,6 → 465,11
case 5:
object->setText(1, lowDPI);
break;
case 6:
object->setText(1, transpar);
hasGraveError = true;
pageGraveError = true;
break;
}
}
else
453,6 → 503,12
errorText->setText(1, lowDPI);
errorText->setPixmap( 0, onlyWarning );
break;
case 6:
errorText->setText(1, transpar);
errorText->setPixmap( 0, graveError );
hasGraveError = true;
pageGraveError = true;
break;
}
}
}
480,6 → 536,8
item->setText( 1, tr( "Problems found" ) );
item->setOpen( true );
}
newCheck->setEnabled(true);
connect(reportDisplay, SIGNAL(selectionChanged(QListViewItem*)), this, SLOT(slotSelect(QListViewItem*)));
}
 
/*
/branches/Version13x/Scribus/scribus/Makefile.am
1,7 → 1,7
bin_PROGRAMS = scribus
 
scribus_SOURCES = art_kmisc.c art_render_misc.c art_render_pattern.c art_rgb.c art_rgb_affine_private.c art_rgb_svp.c art_rgba_affine.c gdk-pixbuf-xlib-drawable.c gdk-pixbuf-xlib-render.c gdk-pixbuf-xlib.c gdk-pixbuf-xlibrgb.c checkDocument.cpp units.cpp scraction.cpp menumanager.cpp scmenu.cpp charselect.cpp filewatcher.cpp tabtools.cpp tabguides.cpp tabtypography.cpp arrowchooser.cpp polygonwidget.cpp prefsdialogbase.cpp fileloader.cpp gradienteditor.cpp gtgettext.cpp gtdialogs.cpp gtstyle.cpp gtframestyle.cpp gtparagraphstyle.cpp gtfont.cpp gtwriter.cpp gtaction.cpp gtmeasure.cpp undomanager.cpp undostate.cpp undoobject.cpp undogui.cpp prefsfile.cpp prefscontext.cpp prefsreader.cpp prefstable.cpp measurements.cpp langmgr.cpp tabruler.cpp insertTable.cpp pageselector.cpp shadebutton.cpp alignselect.cpp styleselect.cpp search.cpp tabmanager.cpp fparser.cpp autoform.cpp story.cpp vgradient.cpp scpainter.cpp fontcombo.cpp scpreview.cpp lineformats.cpp multiline.cpp splash.cpp mergedoc.cpp bookpalette.cpp rc4.c md5.c cupsoptions.cpp guidemanager.cpp scribuswin.cpp hyphenator.cpp hyphen.c hyask.cpp hnjalloc.c hysettings.cpp seiten.cpp fpointarray.cpp fpoint.cpp annota.cpp buttonicon.cpp javadocs.cpp selfield.cpp editor.cpp page.cpp layers.cpp polyprops.cpp mpalette.cpp werktoolb.cpp keymanager.cpp navigator.cpp annot.cpp bookmwin.cpp cmsprefs.cpp customfdialog.cpp picsearch.cpp picstatus.cpp newtemp.cpp applytemplate.cpp muster.cpp scfonts_ttf.cpp scrap.cpp scfonts.cpp frameedit.cpp spalette.cpp edit1format.cpp editformats.cpp druck.cpp colorchart.cpp util.cpp cmykcolor.cpp cmykfw.cpp scribusXml.cpp linecombo.cpp linkbutton.cpp helpbrowser.cpp mspinbox.cpp movepage.cpp delpages.cpp inspage.cpp pdfopts.cpp tree.cpp missing.cpp fontprefs.cpp fmitem.cpp align.cpp serializer.cpp reformdoc.cpp docinfo.cpp mdup.cpp cpalette.cpp dcolor.cpp query.cpp colorm.cpp vruler.cpp hruler.cpp pageitem.cpp newfile.cpp scribusview.cpp scribusdoc.cpp scribus.cpp main.cpp
SOURCES = art_kmisc.c art_render_misc.c art_render_pattern.c art_rgb.c art_rgb_affine_private.c art_rgb_svp.c art_rgba_affine.c gdk-pixbuf-xlib-drawable.c gdk-pixbuf-xlib-render.c gdk-pixbuf-xlib.c gdk-pixbuf-xlibrgb.c checkDocument.cpp units.cpp scraction.cpp menumanager.cpp scmenu.cpp charselect.cpp filewatcher.cpp tabtools.cpp tabguides.cpp tabtypography.cpp arrowchooser.cpp polygonwidget.cpp prefsdialogbase.cpp fileloader.cpp gradienteditor.cpp gtgettext.cpp gtdialogs.cpp gtstyle.cpp gtframestyle.cpp gtparagraphstyle.cpp gtfont.cpp gtwriter.cpp gtaction.cpp gtmeasure.cpp undomanager.cpp undostate.cpp undoobject.cpp undogui.cpp measurements.cpp langmgr.cpp tabruler.cpp insertTable.cpp pageselector.cpp shadebutton.cpp alignselect.cpp styleselect.cpp search.cpp tabmanager.cpp fparser.cpp autoform.cpp story.cpp vgradient.cpp scpainter.cpp libpdf/pdflib.cpp libpostscript/pslib.cpp plugins/libchar/charselect.cpp libprefs/prefs.cpp libabout/about.cpp fontcombo.cpp scpreview.cpp lineformats.cpp multiline.cpp splash.cpp mergedoc.cpp bookpalette.cpp rc4.c md5.c cupsoptions.cpp guidemanager.cpp scribuswin.cpp hyphenator.cpp hyphen.c hyask.cpp hnjalloc.c hysettings.cpp seiten.cpp fpointarray.cpp fpoint.cpp annota.cpp buttonicon.cpp javadocs.cpp selfield.cpp editor.cpp page.cpp layers.cpp polyprops.cpp mpalette.cpp werktoolb.cpp keymanager.cpp navigator.cpp annot.cpp bookmwin.cpp cmsprefs.cpp customfdialog.cpp picsearch.cpp picstatus.cpp newtemp.cpp applytemplate.cpp muster.cpp scfonts_ttf.cpp scrap.cpp scfonts.cpp frameedit.cpp spalette.cpp edit1format.cpp editformats.cpp druck.cpp colorchart.cpp util.cpp cmykcolor.cpp cmykfw.cpp scribusXml.cpp linecombo.cpp linkbutton.cpp helpbrowser.cpp mspinbox.cpp movepage.cpp delpages.cpp inspage.cpp pdfopts.cpp tree.cpp missing.cpp fontprefs.cpp fmitem.cpp align.cpp serializer.cpp reformdoc.cpp docinfo.cpp mdup.cpp cpalette.cpp dcolor.cpp query.cpp colorm.cpp vruler.cpp hruler.cpp pageback.cpp pageitem.cpp newfile.cpp scribusview.cpp scribusdoc.cpp scribus.cpp main.cpp
scribus_SOURCES = art_kmisc.c art_render_misc.c art_render_pattern.c art_rgb.c art_rgb_affine_private.c art_rgb_svp.c art_rgba_affine.c gdk-pixbuf-xlib-drawable.c gdk-pixbuf-xlib-render.c gdk-pixbuf-xlib.c gdk-pixbuf-xlibrgb.c tabcheckdoc.cpp checkDocument.cpp units.cpp scraction.cpp menumanager.cpp scmenu.cpp charselect.cpp filewatcher.cpp tabtools.cpp tabguides.cpp tabtypography.cpp arrowchooser.cpp polygonwidget.cpp prefsdialogbase.cpp fileloader.cpp gradienteditor.cpp gtgettext.cpp gtdialogs.cpp gtstyle.cpp gtframestyle.cpp gtparagraphstyle.cpp gtfont.cpp gtwriter.cpp gtaction.cpp gtmeasure.cpp undomanager.cpp undostate.cpp undoobject.cpp undogui.cpp prefsfile.cpp prefscontext.cpp prefsreader.cpp prefstable.cpp measurements.cpp langmgr.cpp tabruler.cpp insertTable.cpp pageselector.cpp shadebutton.cpp alignselect.cpp styleselect.cpp search.cpp tabmanager.cpp fparser.cpp autoform.cpp story.cpp vgradient.cpp scpainter.cpp fontcombo.cpp scpreview.cpp lineformats.cpp multiline.cpp splash.cpp mergedoc.cpp bookpalette.cpp rc4.c md5.c cupsoptions.cpp guidemanager.cpp scribuswin.cpp hyphenator.cpp hyphen.c hyask.cpp hnjalloc.c hysettings.cpp seiten.cpp fpointarray.cpp fpoint.cpp annota.cpp buttonicon.cpp javadocs.cpp selfield.cpp editor.cpp page.cpp layers.cpp polyprops.cpp mpalette.cpp werktoolb.cpp keymanager.cpp navigator.cpp annot.cpp bookmwin.cpp cmsprefs.cpp customfdialog.cpp picsearch.cpp picstatus.cpp newtemp.cpp applytemplate.cpp muster.cpp scfonts_ttf.cpp scrap.cpp scfonts.cpp frameedit.cpp spalette.cpp edit1format.cpp editformats.cpp druck.cpp colorchart.cpp util.cpp cmykcolor.cpp cmykfw.cpp scribusXml.cpp linecombo.cpp linkbutton.cpp helpbrowser.cpp mspinbox.cpp movepage.cpp delpages.cpp inspage.cpp pdfopts.cpp tree.cpp missing.cpp fontprefs.cpp fmitem.cpp align.cpp serializer.cpp reformdoc.cpp docinfo.cpp mdup.cpp cpalette.cpp dcolor.cpp query.cpp colorm.cpp vruler.cpp hruler.cpp pageitem.cpp newfile.cpp scribusview.cpp scribusdoc.cpp scribus.cpp main.cpp
SOURCES = art_kmisc.c art_render_misc.c art_render_pattern.c art_rgb.c art_rgb_affine_private.c art_rgb_svp.c art_rgba_affine.c gdk-pixbuf-xlib-drawable.c gdk-pixbuf-xlib-render.c gdk-pixbuf-xlib.c gdk-pixbuf-xlibrgb.c tabcheckdoc.cpp checkDocument.cpp units.cpp scraction.cpp menumanager.cpp scmenu.cpp charselect.cpp filewatcher.cpp tabtools.cpp tabguides.cpp tabtypography.cpp arrowchooser.cpp polygonwidget.cpp prefsdialogbase.cpp fileloader.cpp gradienteditor.cpp gtgettext.cpp gtdialogs.cpp gtstyle.cpp gtframestyle.cpp gtparagraphstyle.cpp gtfont.cpp gtwriter.cpp gtaction.cpp gtmeasure.cpp undomanager.cpp undostate.cpp undoobject.cpp undogui.cpp measurements.cpp langmgr.cpp tabruler.cpp insertTable.cpp pageselector.cpp shadebutton.cpp alignselect.cpp styleselect.cpp search.cpp tabmanager.cpp fparser.cpp autoform.cpp story.cpp vgradient.cpp scpainter.cpp libpdf/pdflib.cpp libpostscript/pslib.cpp plugins/libchar/charselect.cpp libprefs/prefs.cpp libabout/about.cpp fontcombo.cpp scpreview.cpp lineformats.cpp multiline.cpp splash.cpp mergedoc.cpp bookpalette.cpp rc4.c md5.c cupsoptions.cpp guidemanager.cpp scribuswin.cpp hyphenator.cpp hyphen.c hyask.cpp hnjalloc.c hysettings.cpp seiten.cpp fpointarray.cpp fpoint.cpp annota.cpp buttonicon.cpp javadocs.cpp selfield.cpp editor.cpp page.cpp layers.cpp polyprops.cpp mpalette.cpp werktoolb.cpp keymanager.cpp navigator.cpp annot.cpp bookmwin.cpp cmsprefs.cpp customfdialog.cpp picsearch.cpp picstatus.cpp newtemp.cpp applytemplate.cpp muster.cpp scfonts_ttf.cpp scrap.cpp scfonts.cpp frameedit.cpp spalette.cpp edit1format.cpp editformats.cpp druck.cpp colorchart.cpp util.cpp cmykcolor.cpp cmykfw.cpp scribusXml.cpp linecombo.cpp linkbutton.cpp helpbrowser.cpp mspinbox.cpp movepage.cpp delpages.cpp inspage.cpp pdfopts.cpp tree.cpp missing.cpp fontprefs.cpp fmitem.cpp align.cpp serializer.cpp reformdoc.cpp docinfo.cpp mdup.cpp cpalette.cpp dcolor.cpp query.cpp colorm.cpp vruler.cpp hruler.cpp pageback.cpp pageitem.cpp newfile.cpp scribusview.cpp scribusdoc.cpp scribus.cpp main.cpp
 
INTERFACES =
TRANSLATIONS =
8,7 → 8,7
 
SUBDIRS = dicts doc icons libabout libpdf libpostscript libprefs manpages plugins po profiles qm templates
 
EXTRA_DIST = main.cpp scribus.cpp scribus.h scribusdoc.cpp scribusdoc.h scribusview.cpp scribusview.h newfile.h newfile.cpp pageitem.cpp pageitem.h hruler.cpp hruler.h vruler.cpp vruler.h colorm.cpp colorm.h query.cpp query.h dcolor.cpp dcolor.h cpalette.cpp cpalette.h mdup.cpp mdup.h docinfo.cpp docinfo.h reformdoc.cpp reformdoc.h serializer.cpp serializer.h align.cpp align.h fmitem.cpp fmitem.h fontprefs.cpp fontprefs.h missing.cpp missing.h tree.cpp tree.h pdfopts.cpp pdfopts.h inspage.cpp inspage.h delpages.cpp delpages.h movepage.cpp movepage.h mspinbox.cpp mspinbox.h helpbrowser.cpp helpbrowser.h icons5.h linkbutton.cpp linkbutton.h icons6.h linecombo.cpp linecombo.h scribusXml.cpp scribusXml.h cmykfw.cpp cmykfw.h cmykcolor.cpp cmykcolor.h util.cpp colorchart.cpp colorchart.h druck.cpp druck.h editformats.cpp editformats.h edit1format.cpp edit1format.h spalette.cpp spalette.h frameedit.cpp frameedit.h scfonts.cpp scfonts.h scrap.cpp scrap.h scfonts_ttf.cpp scfonts_ttf.h muster.cpp muster.h applytemplate.cpp applytemplate.h newtemp.cpp newtemp.h picstatus.cpp picstatus.h picsearch.cpp picsearch.h customfdialog.cpp customfdialog.h cmsprefs.cpp cmsprefs.h bookmwin.cpp bookmwin.h annot.cpp annot.h navigator.cpp navigator.h keymanager.cpp keymanager.h werktoolb.cpp werktoolb.h mpalette.h mpalette.cpp polyprops.cpp polyprops.h layers.cpp layers.h page.cpp page.h editor.cpp editor.h selfield.cpp selfield.h javadocs.cpp javadocs.h buttonicon.cpp buttonicon.h annota.cpp annota.h fpoint.cpp fpoint.h fpointarray.cpp fpointarray.h seiten.cpp seiten.h hysettings.cpp hysettings.h hnjalloc.c hnjalloc.h hyask.cpp hyask.h hyphen.c hyphen.h hyphenator.cpp hyphenator.h scribuswin.cpp scribuswin.h guidemanager.cpp guidemanager.h cupsoptions.cpp cupsoptions.h md5.c md5.h rc4.c rc4.h mergedoc.cpp mergedoc.h bookpalette.cpp bookpalette.h splash.h fontcombo.h scpainter.cpp scpainter.h vgradient.cpp vgradient.h story.cpp story.h autoform.cpp autoform.h fparser.cpp fparser.h tabmanager.cpp tabmanager.h search.cpp search.h styleselect.cpp styleselect.h alignselect.cpp alignselect.h shadebutton.cpp shadebutton.h pageselector.cpp color.h gtaction.cpp gtaction.h gtwriter.cpp gtwriter.h gtfont.cpp gtfont.h gtdialogs.cpp gtdialogs.h gtstyle.cpp gtstyle.h gtframestyle.cpp gtframestyle.h gtparagraphstyle.cpp gtparagraphstyle.h gtmeasure.cpp gtmeasure.h undomanager.cpp undomanager.h undostate.cpp undostate.h undoobject.cpp undoobject.h undogui.cpp undogui.h prefsfile.cpp prefsfile.h prefscontext.cpp prefscontext.h prefsreader.cpp prefsreader.h prefstable.cpp prefstable.h langmgr.h langmgr.cpp polygonwidget.cpp polygonwidget.h fileloader.cpp fileloader.h prefsdialogbase.cpp prefsdialogbase.h gradienteditor.cpp gradienteditor.h pageselector.h insertTable.cpp insertTable.h tabtools.cpp tabtools.h tabguides.cpp tabguides.h tabtypography.cpp tabtypography.h arrowchooser.cpp arrowchooser.h charselect.cpp charselect.h filewatcher.cpp filewatcher.h checkDocument.cpp checkDocument.h art_kmisc.c art_kmisc.h art_render_misc.c art_render_misc.h art_render_pattern.c art_render_pattern.h art_rgb.c art_rgb.h art_rgb_affine_private.c art_rgb_affine_private.h art_rgb_svp.c art_rgb_svp.h art_rgba_affine.c art_rgba_affine.h gdk-pixbuf-xlib-drawable.c gdk-pixbuf-xlib-private.h gdk-pixbuf-xlib-render.c gdk-pixbuf-xlib.c gdk-pixbuf-xlib.h gdk-pixbuf-xlibrgb.c gdk-pixbuf-xlibrgb.h LoremIpsum.txt rgbscribus.txt rgbscribusgreys.txt rgbscribusgnome.txt rgbsvg.txt units.h units.cpp scribusstructs.h scraction.cpp scraction.h menumanager.cpp menumanager.h scmenu.cpp scmenu.h
EXTRA_DIST = main.cpp scribus.cpp scribus.h scribusdoc.cpp scribusdoc.h scribusview.cpp scribusview.h newfile.h newfile.cpp pageitem.cpp pageitem.h hruler.cpp hruler.h vruler.cpp vruler.h colorm.cpp colorm.h query.cpp query.h dcolor.cpp dcolor.h cpalette.cpp cpalette.h mdup.cpp mdup.h docinfo.cpp docinfo.h reformdoc.cpp reformdoc.h serializer.cpp serializer.h align.cpp align.h fmitem.cpp fmitem.h fontprefs.cpp fontprefs.h missing.cpp missing.h tree.cpp tree.h pdfopts.cpp pdfopts.h inspage.cpp inspage.h delpages.cpp delpages.h movepage.cpp movepage.h mspinbox.cpp mspinbox.h helpbrowser.cpp helpbrowser.h icons5.h linkbutton.cpp linkbutton.h icons6.h linecombo.cpp linecombo.h scribusXml.cpp scribusXml.h cmykfw.cpp cmykfw.h cmykcolor.cpp cmykcolor.h util.cpp colorchart.cpp colorchart.h druck.cpp druck.h editformats.cpp editformats.h edit1format.cpp edit1format.h spalette.cpp spalette.h frameedit.cpp frameedit.h scfonts.cpp scfonts.h scrap.cpp scrap.h scfonts_ttf.cpp scfonts_ttf.h muster.cpp muster.h applytemplate.cpp applytemplate.h newtemp.cpp newtemp.h picstatus.cpp picstatus.h picsearch.cpp picsearch.h customfdialog.cpp customfdialog.h cmsprefs.cpp cmsprefs.h bookmwin.cpp bookmwin.h annot.cpp annot.h navigator.cpp navigator.h keymanager.cpp keymanager.h werktoolb.cpp werktoolb.h mpalette.h mpalette.cpp polyprops.cpp polyprops.h layers.cpp layers.h page.cpp page.h editor.cpp editor.h selfield.cpp selfield.h javadocs.cpp javadocs.h buttonicon.cpp buttonicon.h annota.cpp annota.h fpoint.cpp fpoint.h fpointarray.cpp fpointarray.h seiten.cpp seiten.h hysettings.cpp hysettings.h hnjalloc.c hnjalloc.h hyask.cpp hyask.h hyphen.c hyphen.h hyphenator.cpp hyphenator.h scribuswin.cpp scribuswin.h guidemanager.cpp guidemanager.h cupsoptions.cpp cupsoptions.h md5.c md5.h rc4.c rc4.h mergedoc.cpp mergedoc.h bookpalette.cpp bookpalette.h splash.h fontcombo.h scpainter.cpp scpainter.h vgradient.cpp vgradient.h story.cpp story.h autoform.cpp autoform.h fparser.cpp fparser.h tabmanager.cpp tabmanager.h search.cpp search.h styleselect.cpp styleselect.h alignselect.cpp alignselect.h shadebutton.cpp shadebutton.h pageselector.cpp color.h gtaction.cpp gtaction.h gtwriter.cpp gtwriter.h gtfont.cpp gtfont.h gtdialogs.cpp gtdialogs.h gtstyle.cpp gtstyle.h gtframestyle.cpp gtframestyle.h gtparagraphstyle.cpp gtparagraphstyle.h gtmeasure.cpp gtmeasure.h undomanager.cpp undomanager.h undostate.cpp undostate.h undoobject.cpp undoobject.h undogui.cpp undogui.h prefsfile.cpp prefsfile.h prefscontext.cpp prefscontext.h prefsreader.cpp prefsreader.h prefstable.cpp prefstable.h langmgr.h langmgr.cpp polygonwidget.cpp polygonwidget.h fileloader.cpp fileloader.h prefsdialogbase.cpp prefsdialogbase.h gradienteditor.cpp gradienteditor.h pageselector.h insertTable.cpp insertTable.h tabtools.cpp tabtools.h tabguides.cpp tabguides.h tabtypography.cpp tabtypography.h tabcheckdoc.cpp tabcheckdoc.h arrowchooser.cpp arrowchooser.h charselect.cpp charselect.h filewatcher.cpp filewatcher.h checkDocument.cpp checkDocument.h art_kmisc.c art_kmisc.h art_render_misc.c art_render_misc.h art_render_pattern.c art_render_pattern.h art_rgb.c art_rgb.h art_rgb_affine_private.c art_rgb_affine_private.h art_rgb_svp.c art_rgb_svp.h art_rgba_affine.c art_rgba_affine.h gdk-pixbuf-xlib-drawable.c gdk-pixbuf-xlib-private.h gdk-pixbuf-xlib-render.c gdk-pixbuf-xlib.c gdk-pixbuf-xlib.h gdk-pixbuf-xlibrgb.c gdk-pixbuf-xlibrgb.h LoremIpsum.txt rgbscribus.txt rgbscribusgreys.txt rgbscribusgnome.txt rgbsvg.txt units.h units.cpp scribusstructs.h scraction.cpp scraction.h menumanager.cpp menumanager.h scmenu.cpp scmenu.h
 
install-data-local:
$(mkinstalldirs) $(prefix)/share/scribus/samples/
/branches/Version13x/Scribus/scribus/libprefs/prefs.cpp
21,6 → 21,7
#include "keymanager.h"
#include "tabtools.h"
#include "undomanager.h"
#include "tabcheckdoc.h"
 
using namespace std;
 
366,6 → 367,9
tabHyphenator->maxCount->setValue(prefsData->HyCount);
addItem( tr("Hyphenator"), loadIcon("hyphenate.png"), tabHyphenator);
 
tabDocChecker = new TabCheckDoc( prefsWidgets, &prefsData->checkerSettings);
addItem( tr("Doc-Checker"), loadIcon("checkdoc.png"), tabDocChecker);
 
if (CMSavail)
{
tabColorManagement = new CMSPrefs(prefsWidgets, &prefsData->DCMSset, &InputProfiles, &ap->PrinterProfiles, &ap->MonitorProfiles);
/branches/Version13x/Scribus/scribus/libprefs/prefs.h
31,6 → 31,7
class KeyManager;
class TabGuides;
class TabTools;
class TabCheckDoc;
 
#include "langmgr.h"
 
100,6 → 101,7
TabTools* tabTools;
 
HySettings* tabHyphenator;
TabCheckDoc* tabDocChecker;
CMSPrefs* tabColorManagement;
KeyManager* tabKeys;
 
/branches/Version13x/Scribus/scribus/reformdoc.cpp
6,6 → 6,7
#include "tabtypography.h"
#include "tabguides.h"
#include "tabtools.h"
#include "tabcheckdoc.h"
#include "hysettings.h"
#include "cmsprefs.h"
#include "units.h"
313,6 → 314,9
tabHyphenator->maxCount->setValue(doc->docHyphenator->HyCount);
addItem( tr("Hyphenator"), loadIcon("hyphenate.png"), tabHyphenator);
tabDocChecker = new TabCheckDoc( prefsWidgets, &doc->checkerSettings);
addItem( tr("Doc-Checker"), loadIcon("checkdoc.png"), tabDocChecker);
 
int cmsTab = 0;
if (CMSavail)
{
/branches/Version13x/Scribus/scribus/scribusdoc.cpp
109,6 → 109,15
toolSettings.magMin = prefsData->toolSettings.magMin;
toolSettings.magMax = prefsData->toolSettings.magMax;
toolSettings.magStep = prefsData->toolSettings.magStep;
checkerSettings.ignoreErrors = prefsData->checkerSettings.ignoreErrors;
checkerSettings.autoCheck = prefsData->checkerSettings.autoCheck;
checkerSettings.checkGlyphs = prefsData->checkerSettings.checkGlyphs;
checkerSettings.checkOrphans = prefsData->checkerSettings.checkOrphans;
checkerSettings.checkOverflow = prefsData->checkerSettings.checkOverflow;
checkerSettings.checkPictures = prefsData->checkerSettings.checkPictures;
checkerSettings.checkResolution = prefsData->checkerSettings.checkResolution;
checkerSettings.checkTransparency = prefsData->checkerSettings.checkTransparency;
checkerSettings.minResolution = prefsData->checkerSettings.minResolution;
docUnitIndex = prefsData->docUnitIndex;
marginColored = prefsData->marginColored;
Language = prefsData->Language;
187,8 → 196,6
Layers.append(ll);
ActiveLayer = 0;
JavaScripts.clear();
UnDoValid = false;
UnData.UnCode = -1;
CurrentStyle = 0;
currentParaStyle = 0;
TotalItems = 0;
254,6 → 261,8
ScratchBottom = prefsData->ScratchBottom;
arrowStyles = prefsData->arrowStyles;
undoManager = UndoManager::instance();
docItemErrors.clear();
masterItemErrors.clear();
}
 
ScribusDoc::~ScribusDoc()
/branches/Version13x/Scribus/scribus/scribusXml.cpp
2578,6 → 2578,15
dc.setAttribute("PAGEC",doc->papColor.name());
dc.setAttribute("MARGC",doc->guidesSettings.margColor.name());
dc.setAttribute("RANDF", static_cast<int>(doc->marginColored));
dc.setAttribute("ignoreErrors", static_cast<int>(doc->checkerSettings.ignoreErrors));
dc.setAttribute("autoCheck", static_cast<int>(doc->checkerSettings.autoCheck));
dc.setAttribute("checkGlyphs", static_cast<int>(doc->checkerSettings.checkGlyphs));
dc.setAttribute("checkOrphans", static_cast<int>(doc->checkerSettings.checkOrphans));
dc.setAttribute("checkOverflow", static_cast<int>(doc->checkerSettings.checkOverflow));
dc.setAttribute("checkPictures", static_cast<int>(doc->checkerSettings.checkPictures));
dc.setAttribute("checkResolution", static_cast<int>(doc->checkerSettings.checkResolution));
dc.setAttribute("checkTransparency", static_cast<int>(doc->checkerSettings.checkTransparency));
dc.setAttribute("minResolution",doc->checkerSettings.minResolution);
QMap<QString,multiLine>::Iterator itMU;
for (itMU = doc->MLineStyles.begin(); itMU != doc->MLineStyles.end(); ++itMU)
{
2972,6 → 2981,15
dc79.setAttribute("VISIBLE", static_cast<int>(Vor->checkPalSettings.visible));
dc79.setAttribute("XPOS",Vor->checkPalSettings.xPosition);
dc79.setAttribute("YPOS",Vor->checkPalSettings.yPosition);
dc79.setAttribute("ignoreErrors", static_cast<int>(Vor->checkerSettings.ignoreErrors));
dc79.setAttribute("autoCheck", static_cast<int>(Vor->checkerSettings.autoCheck));
dc79.setAttribute("checkGlyphs", static_cast<int>(Vor->checkerSettings.checkGlyphs));
dc79.setAttribute("checkOrphans", static_cast<int>(Vor->checkerSettings.checkOrphans));
dc79.setAttribute("checkOverflow", static_cast<int>(Vor->checkerSettings.checkOverflow));
dc79.setAttribute("checkPictures", static_cast<int>(Vor->checkerSettings.checkPictures));
dc79.setAttribute("checkResolution", static_cast<int>(Vor->checkerSettings.checkResolution));
dc79.setAttribute("checkTransparency", static_cast<int>(Vor->checkerSettings.checkTransparency));
dc79.setAttribute("minResolution",Vor->checkerSettings.minResolution);
elem.appendChild(dc79);
QDomElement dc8=docu.createElement("MEASUREMENTS");
dc8.setAttribute("VISIBLE", static_cast<int>(Vor->mPaletteSettings.visible));
3299,6 → 3317,15
Vorein->checkPalSettings.visible = static_cast<bool>(QStoInt(dc.attribute("VISIBLE", "1")));
Vorein->checkPalSettings.xPosition = QStoInt(dc.attribute("XPOS"));
Vorein->checkPalSettings.yPosition = QStoInt(dc.attribute("YPOS"));
Vorein->checkerSettings.ignoreErrors = static_cast<bool>(QStoInt(dc.attribute("ignoreErrors", "0")));
Vorein->checkerSettings.autoCheck = static_cast<bool>(QStoInt(dc.attribute("autoCheck", "1")));
Vorein->checkerSettings.checkGlyphs = static_cast<bool>(QStoInt(dc.attribute("checkGlyphs", "1")));
Vorein->checkerSettings.checkOrphans = static_cast<bool>(QStoInt(dc.attribute("checkOrphans", "1")));
Vorein->checkerSettings.checkOverflow = static_cast<bool>(QStoInt(dc.attribute("checkOverflow", "1")));
Vorein->checkerSettings.checkPictures = static_cast<bool>(QStoInt(dc.attribute("checkPictures", "1")));
Vorein->checkerSettings.checkResolution = static_cast<bool>(QStoInt(dc.attribute("checkResolution", "1")));
Vorein->checkerSettings.checkTransparency = static_cast<bool>(QStoInt(dc.attribute("checkTransparency", "1")));
Vorein->checkerSettings.minResolution = QStodouble(dc.attribute("minResolution","72"));
}
if (dc.tagName()=="PRINTER")
{
/branches/Version13x/Scribus/scribus/icons/Makefile.am
1,4 → 1,4
EXTRA_DIST = vectorgfx.png ooo_draw.png ooo_writer.png key_bindings.png blend.png hyphenate.png scrap.png misc.png tools.png page.png guides.png font.png screen.png nftabout.xpm nftinfo.xpm dist.png tab.png view.png Kreuz.xpm Bild.xpm Editm.xpm Kreise.xpm Lock.xpm Lupe.xpm Rechtecke.xpm Rotieren.xpm Stift.xpm Text.xpm Unlock.xpm DateiClose.png DateiNeu.xpm DateiOpen.xpm DateiPrint.xpm DateiSave2.png AppIcon2.png AppIcon.png LupeZ.xpm Gross.xpm Klein.xpm DragPix.xpm Rotieren2.xpm HandC.xpm scribus_logo.jpg DateiClos16.png DateiNeu16.png DateiOpen16.png DateiPrint16.png DateiSave16.png editcopy.png editcut.png editdelete.png editpaste.png exit.png doc.png image.png pdf.png postscript.png txt.png Zeichen.xpm Hoch.xpm Kapital.xpm Strike.xpm Tief.xpm Unter.xpm Kern.xpm Spacing.xpm Corner.xpm FlipH.xpm FlipV.xpm Winkel.xpm acrobat.png scribusicon.png text_block.png text_center.png text_left.png text_right.png Text2.xpm spline.png triangle.png Stiftalt.xpm beziertool.png AddNode.png DeleteNode.png MoveAsym.png MoveKontrol.png MoveNode.png MoveSym.png BevelJoin.png ButtCap.png MiterJoin.png RoundJoin.png SquareCap.png ResetNode.png RoundCap.png Reset1Node.png BezierClose.png PolyCut.png AddPoint.png DelPoint.png Split.png Deletelayer.png Layervisible.xpm Lowerlayer.png Newlayer.png Raiselayer.png checkbox.png combobox.png listbox.png pushbutton.png textview.png charset.png goto.png document2.png trashcan.png trashcan2.png gohome.png bottom.png down.png top.png up.png irreg.png text_force.png ok.png ok22.png Revers.png hmirror.png vmirror.png shear_right.png shear_left.png shear_up.png shear_down.png Splash.png back.png start.png forward.png finish.png penciladd.png pencilsub.png outlined.png fill.png NoPrint.png unlock.png locked.png signature.png rotate_cw.png rotate_ccw.png crop.png expand.png frameresize.png framenoresize.png testfill.png frame_table.png scribusdoc.png documentinfo.png filesaveas.png revert.png reload.png compfile.png reload16.png compfile16.png find.png find16.png addf.png removef.png u_undo.png u_redo.png u_undo16.png u_redo16.png u_margins.png u_margins_locked.png u_move_text.png u_move_image.png u_move_line.png u_move_polygon.png u_move_polyline.png u_resize_text.png u_resize_image.png u_resize_line.png u_resize_polygon.png u_resize_polyline.png u_rotate_text.png u_rotate_image.png u_rotate_line.png u_rotate_polygon.png u_rotate_polyline.png
EXTRA_DIST = checkdoc.png vectorgfx.png ooo_draw.png ooo_writer.png key_bindings.png blend.png hyphenate.png scrap.png misc.png tools.png page.png guides.png font.png screen.png nftabout.xpm nftinfo.xpm dist.png tab.png view.png Kreuz.xpm Bild.xpm Editm.xpm Kreise.xpm Lock.xpm Lupe.xpm Rechtecke.xpm Rotieren.xpm Stift.xpm Text.xpm Unlock.xpm DateiClose.png DateiNeu.xpm DateiOpen.xpm DateiPrint.xpm DateiSave2.png AppIcon2.png AppIcon.png LupeZ.xpm Gross.xpm Klein.xpm DragPix.xpm Rotieren2.xpm HandC.xpm scribus_logo.jpg DateiClos16.png DateiNeu16.png DateiOpen16.png DateiPrint16.png DateiSave16.png editcopy.png editcut.png editdelete.png editpaste.png exit.png doc.png image.png pdf.png postscript.png txt.png Zeichen.xpm Hoch.xpm Kapital.xpm Strike.xpm Tief.xpm Unter.xpm Kern.xpm Spacing.xpm Corner.xpm FlipH.xpm FlipV.xpm Winkel.xpm acrobat.png scribusicon.png text_block.png text_center.png text_left.png text_right.png Text2.xpm spline.png triangle.png Stiftalt.xpm beziertool.png AddNode.png DeleteNode.png MoveAsym.png MoveKontrol.png MoveNode.png MoveSym.png BevelJoin.png ButtCap.png MiterJoin.png RoundJoin.png SquareCap.png ResetNode.png RoundCap.png Reset1Node.png BezierClose.png PolyCut.png AddPoint.png DelPoint.png Split.png Deletelayer.png Layervisible.xpm Lowerlayer.png Newlayer.png Raiselayer.png checkbox.png combobox.png listbox.png pushbutton.png textview.png charset.png goto.png document2.png trashcan.png trashcan2.png gohome.png bottom.png down.png top.png up.png irreg.png text_force.png ok.png ok22.png Revers.png hmirror.png vmirror.png shear_right.png shear_left.png shear_up.png shear_down.png Splash.png back.png start.png forward.png finish.png penciladd.png pencilsub.png outlined.png fill.png NoPrint.png unlock.png locked.png signature.png rotate_cw.png rotate_ccw.png crop.png expand.png frameresize.png framenoresize.png testfill.png frame_table.png scribusdoc.png documentinfo.png filesaveas.png revert.png reload.png compfile.png reload16.png compfile16.png find.png find16.png addf.png removef.png u_undo.png u_redo.png u_undo16.png u_redo16.png u_margins.png u_margins_locked.png u_move_text.png u_move_image.png u_move_line.png u_move_polygon.png u_move_polyline.png u_resize_text.png u_resize_image.png u_resize_line.png u_resize_polygon.png u_resize_polyline.png u_rotate_text.png u_rotate_image.png u_rotate_line.png u_rotate_polygon.png u_rotate_polyline.png
 
install-data-local:
$(mkinstalldirs) $(prefix)/share/scribus/icons/
190,6 → 190,7
$(INSTALL_DATA) $(srcdir)/u_rotate_line.png $(prefix)/share/scribus/icons/u_rotate_line.png
$(INSTALL_DATA) $(srcdir)/u_rotate_polygon.png $(prefix)/share/scribus/icons/u_rotate_polygon.png
$(INSTALL_DATA) $(srcdir)/u_rotate_polyline.png $(prefix)/share/scribus/icons/u_rotate_polyline.png
$(INSTALL_DATA) $(srcdir)/checkdoc.png $(prefix)/share/scribus/icons/checkdoc.png
 
uninstall-local:
-rm -f $(prefix)/share/scribus/icons/nftinfo.xpm
381,4 → 382,5
-rm -f $(prefix)/share/scribus/icons/u_rotate_line.png
-rm -f $(prefix)/share/scribus/icons/u_rotate_polygon.png
-rm -f $(prefix)/share/scribus/icons/u_rotate_polyline.png
-rm -f $(prefix)/share/scribus/icons/checkdoc.png
 
/branches/Version13x/Scribus/scribus/icons/checkdoc.png
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Property changes:
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Index: branches/Version13x/Scribus/scribus/scribusstructs.h
===================================================================
--- branches/Version13x/Scribus/scribus/scribusstructs.h (revision 1234)
+++ branches/Version13x/Scribus/scribus/scribusstructs.h (revision 1235)
@@ -227,23 +227,6 @@
bool BlackPoint;
} ;
-struct UndoData
-{
- PageItem* Item;
- uint PageNr;
- uint ItemNr;
- double Xpos;
- double Ypos;
- double Width;
- double Height;
- double Rot;
- double Gx;
- double Gy;
- double Gw;
- double Gh;
- int UnCode;
-};
-
struct SingleLine
{
double Width;
@@ -342,6 +325,19 @@
/** Definition der Farbenlisten */
typedef QMap<QString,CMYKColor> ColorList;
+struct checkerPrefs
+{
+ bool ignoreErrors;
+ bool autoCheck;
+ bool checkGlyphs;
+ bool checkOverflow;
+ bool checkOrphans;
+ bool checkPictures;
+ bool checkResolution;
+ double minResolution;
+ bool checkTransparency;
+};
+
struct typoPrefs
{
int valueSuperScript;
@@ -439,6 +435,7 @@
guidesPrefs guidesSettings;
typoPrefs typographicSetttings;
toolPrefs toolSettings;
+ checkerPrefs checkerSettings;
int docUnitIndex;
windowPrefs mainToolBarSettings;
windowPrefs pdfToolBarSettings;
/branches/Version13x/Scribus/scribus/reformdoc.h
25,8 → 25,8
class MSpinBox;
class TabGuides;
class TabTools;
class TabCheckDoc;
 
 
class ReformDoc : public PrefsDialogBase
{
Q_OBJECT
77,6 → 77,7
TabTypograpy* tabTypo;
TabTools* tabTools;
HySettings* tabHyphenator;
TabCheckDoc* tabDocChecker;
CMSPrefs* tabColorManagement;
QLabel* textLabel9;
QPushButton* backColor;
/branches/Version13x/Scribus/scribus/scribusdoc.h
177,6 → 177,7
typoPrefs typographicSetttings;
guidesPrefs guidesSettings;
toolPrefs toolSettings;
checkerPrefs checkerSettings;
/** Letztes Element fuer AutoTextrahmen */
PageItem *LastAuto;
/** Erstes Element fuer AutoTextrahmen */
202,8 → 203,6
#endif
bool HasCMS;
QMap<QString,QString> JavaScripts;
bool UnDoValid;
UndoData UnData;
int TotalItems;
Hyphenator *docHyphenator;
int MinWordLen;
/branches/Version13x/Scribus/scribus/libabout/about.cpp
65,7 → 65,7
tabLayout1->addWidget( pixmapLabel1 );
buildID = new QLabel( tab, "BB" );
buildID->setAlignment(Qt::AlignCenter);
QString bu = tr("%1. %2 %3 ").arg("22").arg("January").arg("2005");
QString bu = tr("%1. %2 %3 ").arg("23").arg("January").arg("2005");
#ifdef HAVE_CMS
bu += "C";
#else
/branches/Version13x/Scribus/scribus/scribus.cpp
85,6 → 85,7
#include "filewatcher.h"
#include "charselect.h"
#include "checkDocument.h"
#include "tabcheckdoc.h"
#ifdef _MSC_VER
#if (_MSC_VER >= 1200)
#include "win-config.h"
525,6 → 526,15
Prefs.ScratchRight = 100;
Prefs.ScratchTop = 20;
Prefs.ScratchBottom = 20;
Prefs.checkerSettings.ignoreErrors = false;
Prefs.checkerSettings.autoCheck = true;
Prefs.checkerSettings.checkGlyphs = true;
Prefs.checkerSettings.checkOrphans = true;
Prefs.checkerSettings.checkOverflow = true;
Prefs.checkerSettings.checkPictures = true;
Prefs.checkerSettings.checkResolution = true;
Prefs.checkerSettings.checkTransparency = true;
Prefs.checkerSettings.minResolution = 72.0;
}
 
 
727,6 → 737,7
connect(Mpal->Cpal, SIGNAL(QueryItem()), this, SLOT(GetBrushPen()));
connect(docChecker, SIGNAL(closePal()), this, SLOT(ToggleCheckPal()));
connect(docChecker, SIGNAL(rescan()), this, SLOT(slotCheckDoc()));
connect(docChecker, SIGNAL(selectElement(int, int)), this, SLOT(SelectFromOutl(int, int)));
connect(Tpal, SIGNAL(Schliessen()), this, SLOT(ToggleTpal()));
connect(Tpal, SIGNAL(CloseMpal()), this, SLOT(ToggleMpal()));
connect(Tpal, SIGNAL(CloseSpal()), this, SLOT(ToggleBpal()));
1216,6 → 1227,7
viewSepal = toolMenu->insertItem( tr("P&age Palette"), this, SLOT(ToggleSepal()));
viewBopal = toolMenu->insertItem( tr("&Bookmarks"), this, SLOT(ToggleBookpal()));
viewUndoPalette = toolMenu->insertItem(tr("Action &History"), this, SLOT(ToggleUndoPalette()));
M_ToolsCheckDoc = toolMenu->insertItem( tr("Check Document"), this, SLOT(slotCheckDoc()));
toolbarMenuTools = toolMenu->insertItem( tr("&Tools"), this, SLOT(ToggleTools()));
toolbarMenuPDFTools = toolMenu->insertItem( tr("P&DF Tools"), this, SLOT(TogglePDFTools()));
SetKeyEntry(45, tr("Tools"), toolbarMenuTools, 0);
1228,8 → 1240,6
SetKeyEntry(50, tr("Hyphenate Text"), hyph, 0);
M_ExtraCharSelect = extraMenu->insertItem( tr("Insert Special"), this, SLOT(slotCharSelect()));
extraMenu->setItemEnabled(M_ExtraCharSelect, 0);
M_ExtraCheckDoc = extraMenu->insertItem( tr("Check Document"), this, SLOT(slotCheckDoc()));
extraMenu->setItemEnabled(M_ExtraCheckDoc, 0);
 
windowsMenu = new QPopupMenu();
windowsMenu->setCheckable( true );
2694,6 → 2704,7
doc = ActWin->doc;
view = ActWin->view;
Sepal->SetView(view);
scanDocument();
docChecker->buildErrorList(doc);
ScribusWin* swin;
if (!doc->loading)
2722,7 → 2733,6
viewMenu->setItemChecked(M_ViewShowBaseline, doc->guidesSettings.baseShown);
viewMenu->setItemChecked(M_ViewShowImages, doc->guidesSettings.showPic);
viewMenu->setItemChecked(M_ViewShowTextChain, doc->guidesSettings.linkShown);
extraMenu->setItemEnabled(M_ExtraCheckDoc, 1);
// if (!doc->TemplateMode)
// Sepal->Rebuild();
// Tpal->BuildTree(view);
2790,6 → 2800,15
doc->guidesSettings.margColor = dia->tabGuides->colorMargin;
doc->guidesSettings.guideColor = dia->tabGuides->colorGuides;
doc->guidesSettings.baseColor = dia->tabGuides->colorBaselineGrid;
doc->checkerSettings.ignoreErrors = dia->tabDocChecker->ignoreErrors->isChecked();
doc->checkerSettings.autoCheck = dia->tabDocChecker->automaticCheck->isChecked();
doc->checkerSettings.checkGlyphs = dia->tabDocChecker->missingGlyphs->isChecked();
doc->checkerSettings.checkOrphans = dia->tabDocChecker->checkOrphans->isChecked();
doc->checkerSettings.checkOverflow = dia->tabDocChecker->textOverflow->isChecked();
doc->checkerSettings.checkPictures = dia->tabDocChecker->missingPictures->isChecked();
doc->checkerSettings.checkResolution = dia->tabDocChecker->pictResolution->isChecked();
doc->checkerSettings.checkTransparency = dia->tabDocChecker->tranparentObjects->isChecked();
doc->checkerSettings.minResolution = dia->tabDocChecker->resolutionValue->value();
doc->typographicSetttings.valueSuperScript = dia->tabTypo->superDisplacement->value();
doc->typographicSetttings.scalingSuperScript = dia->tabTypo->superScaling->value();
doc->typographicSetttings.valueSubScript = dia->tabTypo->subDisplacement->value();
3101,7 → 3120,6
menuBar()->setItemEnabled(ViMen, 1);
menuBar()->setItemEnabled(WinMen, 1);
extraMenu->setItemEnabled(M_ExtraCheckDoc, 1);
viewMenu->setItemChecked(M_ViewSnapToGuides, doc->SnapGuides);
viewMenu->setItemChecked(M_ViewSnapToGrid, doc->useRaster);
menuBar()->setItemEnabled(pgmm, 1);
3573,6 → 3591,11
for (uint upd = 0; upd < view->SelItem.count(); ++upd)
Tpal->slotUpdateElement(doc->currentPage->PageNr, view->SelItem.at(upd)->ItemNr);
} */
if (docChecker->isVisible())
{
scanDocument();
docChecker->buildErrorList(doc);
}
if (!doc->isModified())
doc->setModified();
ActWin->setCaption( doc->DocName + "*");
4428,8 → 4451,6
if (b->PicAvail)
fileWatcher->removeFile(b->Pfile);
}
if ((doc->UnData.UnCode == 0) && (doc->UnDoValid))
delete doc->UnData.Item;
if (CMSavail)
ActWin->CloseCMSProfiles();
// Mpal->NewSel(-1);
4480,7 → 4501,6
scrActions["editTemplates"]->setEnabled(false);
scrActions["editJavascripts"]->setEnabled(false);
extraMenu->setItemEnabled(M_ExtraCheckDoc, 0);
extraMenu->setItemEnabled(hyph, 0);
menuBar()->setItemEnabled(ViMen, 0);
menuBar()->setItemEnabled(WinMen, 0);
4528,6 → 4548,17
//int Nr;
//bool fil, sep, farbe, PSfile, mirrorH, mirrorV, useICC, DoGCR;
//PSfile = false;
if ((doc->checkerSettings.autoCheck) && (!doc->checkerSettings.ignoreErrors))
{
scanDocument();
if ((doc->docItemErrors.count() != 0) || (doc->masterItemErrors.count() != 0))
{
docChecker->buildErrorList(doc);
docChecker->show();
toolMenu->setItemChecked(M_ToolsCheckDoc, true);
return;
}
}
PrintOptions options;
FMess->setText( tr("Printing..."));
if (PrinterUsed)
4619,8 → 4650,7
QMap<QString,QFont> ReallyUsed;
QString filename = options->filename;
ReallyUsed.clear();
if (!GetUsedFonts(&ReallyUsed))
return false;
GetUsedFonts(&ReallyUsed);
fileWatcher->forceScan();
fileWatcher->stop();
PSLib *dd = getPSDriver(true, Prefs.AvailFonts, ReallyUsed, doc->PageColors, false);
5381,7 → 5411,7
Prefs.checkPalSettings.yPosition = docChecker->pos().y();
docChecker->hide();
}
extraMenu->setItemChecked(M_ExtraCheckDoc, visible);
toolMenu->setItemChecked(M_ToolsCheckDoc, visible);
}
 
void ScribusApp::ToggleCheckPal()
7080,6 → 7110,7
NoFrameEdit();
setActiveWindow();
view->Deselect(true);
if (Page != -1)
view->GotoPage(Page);
view->SelectItemNr(Item);
if (view->SelItem.count() != 0)
7379,6 → 7410,15
Prefs.guidesSettings.margColor = dia->tabGuides->colorMargin;
Prefs.guidesSettings.guideColor = dia->tabGuides->colorGuides;
Prefs.guidesSettings.baseColor = dia->tabGuides->colorBaselineGrid;
Prefs.checkerSettings.ignoreErrors = dia->tabDocChecker->ignoreErrors->isChecked();
Prefs.checkerSettings.autoCheck = dia->tabDocChecker->automaticCheck->isChecked();
Prefs.checkerSettings.checkGlyphs = dia->tabDocChecker->missingGlyphs->isChecked();
Prefs.checkerSettings.checkOrphans = dia->tabDocChecker->checkOrphans->isChecked();
Prefs.checkerSettings.checkOverflow = dia->tabDocChecker->textOverflow->isChecked();
Prefs.checkerSettings.checkPictures = dia->tabDocChecker->missingPictures->isChecked();
Prefs.checkerSettings.checkResolution = dia->tabDocChecker->pictResolution->isChecked();
Prefs.checkerSettings.checkTransparency = dia->tabDocChecker->tranparentObjects->isChecked();
Prefs.checkerSettings.minResolution = dia->tabDocChecker->resolutionValue->value();
Prefs.typographicSetttings.valueSuperScript = dia->tabTypo->superDisplacement->value();
Prefs.typographicSetttings.scalingSuperScript = dia->tabTypo->superScaling->value();
Prefs.typographicSetttings.valueSubScript = dia->tabTypo->subDisplacement->value();
7692,8 → 7732,7
qApp->setOverrideCursor(QCursor(waitCursor), true);
QMap<QString,QFont> ReallyUsed;
ReallyUsed.clear();
if (!GetUsedFonts(&ReallyUsed))
return false;
GetUsedFonts(&ReallyUsed);
fileWatcher->forceScan();
fileWatcher->stop();
PSLib *dd = getPSDriver(false, Prefs.AvailFonts, ReallyUsed, doc->PageColors, false);
7714,6 → 7753,17
void ScribusApp::SaveAsEps()
{
QString fna;
if ((doc->checkerSettings.autoCheck) && (!doc->checkerSettings.ignoreErrors))
{
scanDocument();
if ((doc->docItemErrors.count() != 0) || (doc->masterItemErrors.count() != 0))
{
docChecker->buildErrorList(doc);
docChecker->show();
toolMenu->setItemChecked(M_ToolsCheckDoc, true);
return;
}
}
if (!doc->DocName.startsWith( tr("Document")))
{
QFileInfo fi(doc->DocName);
7779,6 → 7829,17
void ScribusApp::SaveAsPDF()
{
QString fn;
if ((doc->checkerSettings.autoCheck) && (!doc->checkerSettings.ignoreErrors))
{
scanDocument();
if ((doc->docItemErrors.count() != 0) || (doc->masterItemErrors.count() != 0))
{
docChecker->buildErrorList(doc);
docChecker->show();
toolMenu->setItemChecked(M_ToolsCheckDoc, true);
return;
}
}
int Components = 3;
QString nam = "";
/* if (BookPal->BView->childCount() == 0)
7785,8 → 7846,7
doc->PDF_Optionen.Bookmarks = false; */
QMap<QString,QFont> ReallyUsed;
ReallyUsed.clear();
if (!GetUsedFonts(&ReallyUsed))
return;
GetUsedFonts(&ReallyUsed);
if (doc->PDF_Optionen.EmbedList.count() != 0)
{
QValueList<QString> tmpEm;
8337,7 → 8397,7
 
void ScribusApp::RunPlug(int id)
{
if (extraMenu->indexOf(id) > 4)
if (extraMenu->indexOf(id) > 3)
CallDLLbyMenu(id);
}
 
9569,16 → 9629,11
buildFontMenu();
}
 
bool ScribusApp::GetUsedFonts(QMap<QString,QFont> *Really)
void ScribusApp::GetUsedFonts(QMap<QString,QFont> *Really)
{
PageItem* it;
FPointArray gly;
QString chx;
bool missing = false;
bool ret = true;
doc->docItemErrors.clear();
errorCodes itemError;
QMap<QString, QString> missingPlace;
for (uint d = 0; d < doc->MasterItems.count(); ++d)
{
it = doc->MasterItems.at(d);
9606,17 → 9661,7
gly = (*doc->AllFonts)[it->itemText.at(e)->cfont]->GlyphArray[numco].Outlines.copy();
(*doc->AllFonts)[it->itemText.at(e)->cfont]->RealGlyphs.insert(numco, gly);
}
else
{
QString tmp;
missing = true;
if (it->OwnPage == -1)
tmp = tr("Free Object");
else
tmp = "on Template Page " + doc->MasterPages.at(it->OwnPage)->PageNam;
missingPlace.insert(it->AnName, tmp);
}
}
continue;
}
if ((*doc->AllFonts)[it->itemText.at(e)->cfont]->CharWidth.contains(chr))
9624,39 → 9669,14
gly = (*doc->AllFonts)[it->itemText.at(e)->cfont]->GlyphArray[chr].Outlines.copy();
(*doc->AllFonts)[it->itemText.at(e)->cfont]->RealGlyphs.insert(chr, gly);
}
else
{
QString tmp;
missing = true;
if (it->OwnPage == -1)
tmp = tr("Free Object");
else
tmp = "on Template Page " + doc->MasterPages.at(it->OwnPage)->PageNam;
missingPlace.insert(it->AnName, tmp);
}
}
}
}
for (uint d = 0; d < doc->Items.count(); ++d)
{
it = doc->Items.at(d);
itemError.clear();
if (it->OwnPage == -1)
itemError.insert(3, 0);
if (it->PType == 2)
{
if (!it->PicAvail)
itemError.insert(4, 0);
else
{
if (((72.0 / it->LocalScX) < 72.0) || ((72.0 / it->LocalScY) < 72.0))
itemError.insert(5, 0);
}
}
if ((it->PType == 4) || (it->PType == 8))
{
if (it->itemText.count() > it->MaxChars)
itemError.insert(2, 0);
for (uint e = 0; e < it->itemText.count(); ++e)
{
Really->insert(it->itemText.at(e)->cfont, doc->UsedFonts[it->itemText.at(e)->cfont]);
9679,18 → 9699,7
gly = (*doc->AllFonts)[it->itemText.at(e)->cfont]->GlyphArray[numco].Outlines.copy();
(*doc->AllFonts)[it->itemText.at(e)->cfont]->RealGlyphs.insert(numco, gly);
}
else
{
QString tmp, tmp2;
missing = true;
if (it->OwnPage == -1)
tmp = tr("Free Object");
else
tmp = "on Page " + tmp2.setNum(it->OwnPage+1);
missingPlace.insert(it->AnName, tmp);
itemError.insert(1, 0);
}
}
continue;
}
if ((*doc->AllFonts)[it->itemText.at(e)->cfont]->CharWidth.contains(chr))
9698,76 → 9707,10
gly = (*doc->AllFonts)[it->itemText.at(e)->cfont]->GlyphArray[chr].Outlines.copy();
(*doc->AllFonts)[it->itemText.at(e)->cfont]->RealGlyphs.insert(chr, gly);
}
else
{
QString tmp, tmp2;
missing = true;
if (it->OwnPage == -1)
tmp = tr("Free Object");
else
tmp = "on Page " + tmp2.setNum(it->OwnPage+1);
missingPlace.insert(it->AnName, tmp);
itemError.insert(1, 0);
}
}
}
if (itemError.count() != 0)
doc->docItemErrors.insert(it->ItemNr, itemError);
}
if (missing)
{
qApp->setOverrideCursor(QCursor(arrowCursor), true);
QString mess = tr("Detected some Objects with missing Glyphs:")+"\n\n";
QMap<QString,QString>::Iterator it;
for (it = missingPlace.begin(); it != missingPlace.end(); ++it)
{
mess += it.key() + " "+ it.data() +"\n";
}
mess += "\n"+ tr("Do you really want to continue?");
if (doc->docItemErrors.count() != 0)
{
QString tmp, tmp2;
mess += "\n";
QMap<int, errorCodes>::Iterator it2;
for (it2 = doc->docItemErrors.begin(); it2 != doc->docItemErrors.end(); ++it2)
{
mess += doc->Items.at(it2.key())->AnName + "\n";
errorCodes::Iterator it3;
for (it3 = it2.data().begin(); it3 != it2.data().end(); ++it3)
{
mess += "\t ";
switch (it3.key())
{
case 1:
mess += "Missing Glyph";
break;
case 2:
mess += "To much Text to fit in Frame";
break;
case 3:
mess += "Object is not on a Page";
break;
case 4:
mess += "Image is missing";
break;
case 5:
mess += "Image has a DPI-Value less than 72 DPI";
break;
}
mess += "\n";
}
}
}
int t = QMessageBox::warning(this, tr("Warning"), mess, tr("No"), tr("Yes"), 0, 0, 0);
if (t == 0)
ret = false;
else
ret = true;
}
else
ret = true;
return ret;
}
 
void ScribusApp::slotCheckDoc()
{
9774,7 → 9717,7
scanDocument();
docChecker->buildErrorList(doc);
docChecker->show();
extraMenu->setItemChecked(M_ExtraCheckDoc, true);
toolMenu->setItemChecked(M_ToolsCheckDoc, true);
}
 
void ScribusApp::scanDocument()
9788,21 → 9731,24
{
it = doc->MasterItems.at(d);
itemError.clear();
if (it->OwnPage == -1)
if (((it->TranspStroke != 0.0) || (it->TranspStroke != 0.0)) && (doc->checkerSettings.checkTransparency))
itemError.insert(6, 0);
if ((it->OwnPage == -1) && (doc->checkerSettings.checkOrphans))
itemError.insert(3, 0);
if (it->PType == 2)
{
if (!it->PicAvail)
if ((!it->PicAvail) && (doc->checkerSettings.checkPictures))
itemError.insert(4, 0);
else
{
if (((72.0 / it->LocalScX) < 72.0) || ((72.0 / it->LocalScY) < 72.0))
if ((((72.0 / it->LocalScX) < doc->checkerSettings.minResolution) || ((72.0 / it->LocalScY) < doc->checkerSettings.minResolution))
&& (it->isRaster) && (doc->checkerSettings.checkResolution))
itemError.insert(5, 0);
}
}
if ((it->PType == 4) || (it->PType == 8))
{
if (it->itemText.count() > it->MaxChars)
if ((it->itemText.count() > it->MaxChars) && (doc->checkerSettings.checkOverflow))
itemError.insert(2, 0);
for (uint e = 0; e < it->itemText.count(); ++e)
{
9820,12 → 9766,12
{
for (uint numco = 0x30; numco < 0x3A; ++numco)
{
if (!(*doc->AllFonts)[it->itemText.at(e)->cfont]->CharWidth.contains(numco))
if ((!(*doc->AllFonts)[it->itemText.at(e)->cfont]->CharWidth.contains(numco)) && (doc->checkerSettings.checkGlyphs))
itemError.insert(1, 0);
}
continue;
}
if (!(*doc->AllFonts)[it->itemText.at(e)->cfont]->CharWidth.contains(chr))
if ((!(*doc->AllFonts)[it->itemText.at(e)->cfont]->CharWidth.contains(chr)) && (doc->checkerSettings.checkGlyphs))
itemError.insert(1, 0);
}
}
9836,21 → 9782,24
{
it = doc->Items.at(d);
itemError.clear();
if (it->OwnPage == -1)
if (((it->TranspStroke != 0.0) || (it->TranspStroke != 0.0)) && (doc->checkerSettings.checkTransparency))
itemError.insert(6, 0);
if ((it->OwnPage == -1) && (doc->checkerSettings.checkOrphans))
itemError.insert(3, 0);
if (it->PType == 2)
{
if (!it->PicAvail)
if ((!it->PicAvail) && (doc->checkerSettings.checkPictures))
itemError.insert(4, 0);
else
{
if (((72.0 / it->LocalScX) < 72.0) || ((72.0 / it->LocalScY) < 72.0))
if ((((72.0 / it->LocalScX) < doc->checkerSettings.minResolution) || ((72.0 / it->LocalScY) < doc->checkerSettings.minResolution))
&& (it->isRaster) && (doc->checkerSettings.checkResolution))
itemError.insert(5, 0);
}
}
if ((it->PType == 4) || (it->PType == 8))
{
if (it->itemText.count() > it->MaxChars)
if ((it->itemText.count() > it->MaxChars) && (doc->checkerSettings.checkOverflow))
itemError.insert(2, 0);
for (uint e = 0; e < it->itemText.count(); ++e)
{
9868,12 → 9817,12
{
for (uint numco = 0x30; numco < 0x3A; ++numco)
{
if (!(*doc->AllFonts)[it->itemText.at(e)->cfont]->CharWidth.contains(numco))
if ((!(*doc->AllFonts)[it->itemText.at(e)->cfont]->CharWidth.contains(numco)) && (doc->checkerSettings.checkGlyphs))
itemError.insert(1, 0);
}
continue;
}
if (!(*doc->AllFonts)[it->itemText.at(e)->cfont]->CharWidth.contains(chr))
if ((!(*doc->AllFonts)[it->itemText.at(e)->cfont]->CharWidth.contains(chr)) && (doc->checkerSettings.checkGlyphs))
itemError.insert(1, 0);
}
}
/branches/Version13x/Scribus/scribus/scribus.h
132,7 → 132,7
void RestoreBookMarks();
void AdjustBM();
void ReorgFonts();
bool GetUsedFonts(QMap<QString,QFont> *Really);
void GetUsedFonts(QMap<QString,QFont> *Really);
void ToggleAllGuides();
static void defaultCrashHandler (int sig);
void emergencySave();
606,7 → 606,7
int exmn;
int hyph;
int M_ExtraCharSelect;
int M_ExtraCheckDoc;
int M_ToolsCheckDoc;
int M_ItemRaise;
int M_ItemLower;
int M_ItemSendToBack;
/branches/Version13x/Scribus/scribus/tabcheckdoc.cpp
0,0 → 1,65
#include "tabcheckdoc.h"
#include "tabcheckdoc.moc"
#include <qvariant.h>
#include <qcheckbox.h>
#include <qgroupbox.h>
#include <qlabel.h>
#include <qspinbox.h>
#include <qlayout.h>
#include <qtooltip.h>
#include <qwhatsthis.h>
#include "scribusstructs.h"
 
TabCheckDoc::TabCheckDoc( QWidget* parent, struct checkerPrefs *prefsData ) : QWidget( parent, "tabcheckDoc", 0 )
{
TabCheckDocLayout = new QVBoxLayout( this, 10, 5, "TabCheckDocLayout");
TabCheckDocLayout->setAlignment( Qt::AlignTop );
ignoreErrors = new QCheckBox( this, "ignoreErrors" );
ignoreErrors->setText( tr( "Ignore all Errors" ) );
ignoreErrors->setChecked(prefsData->ignoreErrors);
TabCheckDocLayout->addWidget( ignoreErrors );
automaticCheck = new QCheckBox( this, "automaticCheck" );
automaticCheck->setText( tr( "Automatic Check before Printing or Exporting" ) );
automaticCheck->setChecked(prefsData->autoCheck);
TabCheckDocLayout->addWidget( automaticCheck );
missingGlyphs = new QCheckBox( this, "missingGlyphs" );
missingGlyphs->setText( tr( "Check for missing Glyphs" ) );
missingGlyphs->setChecked(prefsData->checkGlyphs);
TabCheckDocLayout->addWidget( missingGlyphs );
checkOrphans = new QCheckBox( this, "checkOrphans" );
checkOrphans->setText( tr( "Check for Objects not on a Page" ) );
checkOrphans->setChecked(prefsData->checkOrphans);
TabCheckDocLayout->addWidget( checkOrphans );
textOverflow = new QCheckBox( this, "textOverflow" );
textOverflow->setText( tr( "Check for overflow in Textframes" ) );
textOverflow->setChecked(prefsData->checkOverflow);
TabCheckDocLayout->addWidget( textOverflow );
tranparentObjects = new QCheckBox( this, "tranparentObjects" );
tranparentObjects->setText( tr( "Check for Transparencys used" ) );
tranparentObjects->setChecked(prefsData->checkTransparency);
TabCheckDocLayout->addWidget( tranparentObjects );
missingPictures = new QCheckBox( this, "missingPictures" );
missingPictures->setText( tr( "Check for missing Images" ) );
missingPictures->setChecked(prefsData->checkPictures);
TabCheckDocLayout->addWidget( missingPictures );
pictResolution = new QGroupBox( this, "pictResolution" );
pictResolution->setTitle( tr( "Check Image Resolution" ) );
pictResolution->setCheckable( true );
pictResolution->setChecked(prefsData->checkResolution);
pictResolution->setColumnLayout(0, Qt::Vertical );
pictResolution->layout()->setSpacing( 5 );
pictResolution->layout()->setMargin( 10 );
pictResolutionLayout = new QHBoxLayout( pictResolution->layout() );
pictResolutionLayout->setAlignment( Qt::AlignTop );
textLabel1 = new QLabel( pictResolution, "textLabel1" );
textLabel1->setText( tr( "Lowest allowed Resolution" ) );
pictResolutionLayout->addWidget( textLabel1 );
resolutionValue = new QSpinBox( pictResolution, "resolutionValue" );
resolutionValue->setMaxValue( 3600 );
resolutionValue->setMinValue( 10 );
resolutionValue->setValue( qRound(prefsData->minResolution) );
resolutionValue->setSuffix( tr( " dpi" ) );
pictResolutionLayout->addWidget( resolutionValue );
TabCheckDocLayout->addWidget( pictResolution );
clearWState( WState_Polished );
}
Property changes:
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+Author Date Id Revision
\ No newline at end of property
Index: branches/Version13x/Scribus/scribus/tabcheckdoc.h
===================================================================
--- branches/Version13x/Scribus/scribus/tabcheckdoc.h (nonexistent)
+++ branches/Version13x/Scribus/scribus/tabcheckdoc.h (revision 1235)
@@ -0,0 +1,38 @@
+#ifndef TABCHECKDOC_H
+#define TABCHECKDOC_H
+
+#include <qvariant.h>
+#include <qwidget.h>
+
+class QVBoxLayout;
+class QHBoxLayout;
+class QCheckBox;
+class QGroupBox;
+class QLabel;
+class QSpinBox;
+
+class TabCheckDoc : public QWidget
+{
+ Q_OBJECT
+
+public:
+ TabCheckDoc( QWidget* parent, struct checkerPrefs *prefsData );
+ ~TabCheckDoc() {};
+
+ QCheckBox* ignoreErrors;
+ QCheckBox* automaticCheck;
+ QCheckBox* missingGlyphs;
+ QCheckBox* checkOrphans;
+ QCheckBox* textOverflow;
+ QCheckBox* tranparentObjects;
+ QCheckBox* missingPictures;
+ QGroupBox* pictResolution;
+ QLabel* textLabel1;
+ QSpinBox* resolutionValue;
+
+protected:
+ QVBoxLayout* TabCheckDocLayout;
+ QHBoxLayout* pictResolutionLayout;
+};
+
+#endif // TABCHECKDOC_H
/branches/Version13x/Scribus/scribus/tabcheckdoc.h
Property changes:
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+Author Date Id Revision
\ No newline at end of property
Index: branches/Version13x/Scribus/scribus/checkDocument.h
===================================================================
--- branches/Version13x/Scribus/scribus/checkDocument.h (revision 1234)
+++ branches/Version13x/Scribus/scribus/checkDocument.h (revision 1235)
@@ -28,13 +28,16 @@
QListView* reportDisplay;
QPushButton* okButton;
QPushButton* newCheck;
+ QMap<QListViewItem*, int> itemMap;
public slots:
+ void slotSelect(QListViewItem* ite);
void newScan();
signals:
void rescan();
void closePal();
+ void selectElement(int, int);
protected:
QVBoxLayout* checkDocumentLayout;
@@ -44,6 +47,7 @@
virtual void languageChange();
private:
+ ScribusDoc* document;
QPixmap graveError;
QPixmap onlyWarning;
QPixmap noErrors;