|
|
@ -360,7 +360,7 @@ void FrmPrintWizard::FrmPrintWizardBaseSelected(const TQString &)
|
|
|
|
printer.setUsePrinterResolution(true);
|
|
|
|
printer.setUsePrinterResolution(true);
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
if (printer.setup())
|
|
|
|
if (printer.setup())
|
|
|
|
printPhotos(m_photos, s->tqlayouts, printer);
|
|
|
|
printPhotos(m_photos, s->layouts, printer);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
else
|
|
|
|
if (RdoOutputFile->isChecked())
|
|
|
|
if (RdoOutputFile->isChecked())
|
|
|
@ -395,11 +395,11 @@ void FrmPrintWizard::FrmPrintWizardBaseSelected(const TQString &)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
double getMaxDPI(TQPtrList<TPhoto> photos, TQPtrList<TQRect> tqlayouts, unsigned int current)
|
|
|
|
double getMaxDPI(TQPtrList<TPhoto> photos, TQPtrList<TQRect> layouts, unsigned int current)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
Q_ASSERT(tqlayouts.count() > 1);
|
|
|
|
Q_ASSERT(layouts.count() > 1);
|
|
|
|
|
|
|
|
|
|
|
|
TQRect *tqlayout = tqlayouts.at(1);
|
|
|
|
TQRect *tqlayout = layouts.at(1);
|
|
|
|
|
|
|
|
|
|
|
|
double maxDPI = 0.0;
|
|
|
|
double maxDPI = 0.0;
|
|
|
|
|
|
|
|
|
|
|
@ -411,7 +411,7 @@ double getMaxDPI(TQPtrList<TPhoto> photos, TQPtrList<TQRect> tqlayouts, unsigned
|
|
|
|
if (dpi > maxDPI)
|
|
|
|
if (dpi > maxDPI)
|
|
|
|
maxDPI = dpi;
|
|
|
|
maxDPI = dpi;
|
|
|
|
// iterate to the next position
|
|
|
|
// iterate to the next position
|
|
|
|
tqlayout = tqlayouts.next();
|
|
|
|
tqlayout = layouts.next();
|
|
|
|
if (tqlayout == 0)
|
|
|
|
if (tqlayout == 0)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
break;
|
|
|
|
break;
|
|
|
@ -427,13 +427,13 @@ TQRect * FrmPrintWizard::getLayout(int photoIndex)
|
|
|
|
// how many photos would actually be printed, including copies?
|
|
|
|
// how many photos would actually be printed, including copies?
|
|
|
|
int photoCount = (photoIndex + 1);
|
|
|
|
int photoCount = (photoIndex + 1);
|
|
|
|
// how many pages? Recall that the first tqlayout item is the paper size
|
|
|
|
// how many pages? Recall that the first tqlayout item is the paper size
|
|
|
|
int photosPerPage = s->tqlayouts.count() - 1;
|
|
|
|
int photosPerPage = s->layouts.count() - 1;
|
|
|
|
int remainder = photoCount % photosPerPage;
|
|
|
|
int remainder = photoCount % photosPerPage;
|
|
|
|
|
|
|
|
|
|
|
|
int retVal = remainder;
|
|
|
|
int retVal = remainder;
|
|
|
|
if (remainder == 0)
|
|
|
|
if (remainder == 0)
|
|
|
|
retVal = photosPerPage;
|
|
|
|
retVal = photosPerPage;
|
|
|
|
return s->tqlayouts.at(retVal);
|
|
|
|
return s->layouts.at(retVal);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
int FrmPrintWizard::getPageCount()
|
|
|
|
int FrmPrintWizard::getPageCount()
|
|
|
@ -443,7 +443,7 @@ int FrmPrintWizard::getPageCount()
|
|
|
|
|
|
|
|
|
|
|
|
int photoCount = m_photos.count();
|
|
|
|
int photoCount = m_photos.count();
|
|
|
|
// how many pages? Recall that the first tqlayout item is the paper size
|
|
|
|
// how many pages? Recall that the first tqlayout item is the paper size
|
|
|
|
int photosPerPage = s->tqlayouts.count() - 1;
|
|
|
|
int photosPerPage = s->layouts.count() - 1;
|
|
|
|
int remainder = photoCount % photosPerPage;
|
|
|
|
int remainder = photoCount % photosPerPage;
|
|
|
|
int emptySlots = 0;
|
|
|
|
int emptySlots = 0;
|
|
|
|
if (remainder > 0)
|
|
|
|
if (remainder > 0)
|
|
|
@ -566,15 +566,15 @@ TQString FrmPrintWizard::captionFormatter(TPhoto *photo, const TQString& format)
|
|
|
|
return str;
|
|
|
|
return str;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
bool FrmPrintWizard::paintOnePage(TQPainter &p, TQPtrList<TPhoto> photos, TQPtrList<TQRect> tqlayouts,
|
|
|
|
bool FrmPrintWizard::paintOnePage(TQPainter &p, TQPtrList<TPhoto> photos, TQPtrList<TQRect> layouts,
|
|
|
|
int captionType, unsigned int ¤t, bool useThumbnails)
|
|
|
|
int captionType, unsigned int ¤t, bool useThumbnails)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
Q_ASSERT(tqlayouts.count() > 1);
|
|
|
|
Q_ASSERT(layouts.count() > 1);
|
|
|
|
|
|
|
|
|
|
|
|
if (photos.count() == 0) return true; // no photos => last photo
|
|
|
|
if (photos.count() == 0) return true; // no photos => last photo
|
|
|
|
|
|
|
|
|
|
|
|
TQRect *srcPage = tqlayouts.at(0);
|
|
|
|
TQRect *srcPage = layouts.at(0);
|
|
|
|
TQRect *tqlayout = tqlayouts.at(1);
|
|
|
|
TQRect *tqlayout = layouts.at(1);
|
|
|
|
|
|
|
|
|
|
|
|
// scale the page size to best fit the painter
|
|
|
|
// scale the page size to best fit the painter
|
|
|
|
// size the rectangle based on the minimum image dimension
|
|
|
|
// size the rectangle based on the minimum image dimension
|
|
|
@ -742,7 +742,7 @@ bool FrmPrintWizard::paintOnePage(TQPainter &p, TQPtrList<TPhoto> photos, TQPtrL
|
|
|
|
} // caption
|
|
|
|
} // caption
|
|
|
|
|
|
|
|
|
|
|
|
// iterate to the next position
|
|
|
|
// iterate to the next position
|
|
|
|
tqlayout = tqlayouts.next();
|
|
|
|
tqlayout = layouts.next();
|
|
|
|
if (tqlayout == 0)
|
|
|
|
if (tqlayout == 0)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
current++;
|
|
|
|
current++;
|
|
|
@ -760,13 +760,13 @@ bool FrmPrintWizard::paintOnePage(TQPainter &p, TQPtrList<TPhoto> photos, TQPtrL
|
|
|
|
// to use a TQPixmap, which will have the same bit depth as the display.
|
|
|
|
// to use a TQPixmap, which will have the same bit depth as the display.
|
|
|
|
// So someone with an 8-bit display would not be able to save 24-bit
|
|
|
|
// So someone with an 8-bit display would not be able to save 24-bit
|
|
|
|
// images!
|
|
|
|
// images!
|
|
|
|
bool FrmPrintWizard::paintOnePage(TQImage &p, TQPtrList<TPhoto> photos, TQPtrList<TQRect> tqlayouts,
|
|
|
|
bool FrmPrintWizard::paintOnePage(TQImage &p, TQPtrList<TPhoto> photos, TQPtrList<TQRect> layouts,
|
|
|
|
int captionType, unsigned int ¤t)
|
|
|
|
int captionType, unsigned int ¤t)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
Q_ASSERT(tqlayouts.count() > 1);
|
|
|
|
Q_ASSERT(layouts.count() > 1);
|
|
|
|
|
|
|
|
|
|
|
|
TQRect *srcPage = tqlayouts.at(0);
|
|
|
|
TQRect *srcPage = layouts.at(0);
|
|
|
|
TQRect *tqlayout = tqlayouts.at(1);
|
|
|
|
TQRect *tqlayout = layouts.at(1);
|
|
|
|
|
|
|
|
|
|
|
|
// scale the page size to best fit the painter
|
|
|
|
// scale the page size to best fit the painter
|
|
|
|
// size the rectangle based on the minimum image dimension
|
|
|
|
// size the rectangle based on the minimum image dimension
|
|
|
@ -929,7 +929,7 @@ bool FrmPrintWizard::paintOnePage(TQImage &p, TQPtrList<TPhoto> photos, TQPtrLis
|
|
|
|
} // caption
|
|
|
|
} // caption
|
|
|
|
|
|
|
|
|
|
|
|
// iterate to the next position
|
|
|
|
// iterate to the next position
|
|
|
|
tqlayout = tqlayouts.next();
|
|
|
|
tqlayout = layouts.next();
|
|
|
|
if (tqlayout == 0)
|
|
|
|
if (tqlayout == 0)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
current++;
|
|
|
|
current++;
|
|
|
@ -949,7 +949,7 @@ void FrmPrintWizard::previewPhotos()
|
|
|
|
|
|
|
|
|
|
|
|
int photoCount = m_photos.count();
|
|
|
|
int photoCount = m_photos.count();
|
|
|
|
// how many pages? Recall that the first tqlayout item is the paper size
|
|
|
|
// how many pages? Recall that the first tqlayout item is the paper size
|
|
|
|
int photosPerPage = s->tqlayouts.count() - 1;
|
|
|
|
int photosPerPage = s->layouts.count() - 1;
|
|
|
|
int remainder = photoCount % photosPerPage;
|
|
|
|
int remainder = photoCount % photosPerPage;
|
|
|
|
int emptySlots = 0;
|
|
|
|
int emptySlots = 0;
|
|
|
|
if (remainder > 0)
|
|
|
|
if (remainder > 0)
|
|
|
@ -973,8 +973,8 @@ void FrmPrintWizard::previewPhotos()
|
|
|
|
if (page == m_currentPreviewPage) {
|
|
|
|
if (page == m_currentPreviewPage) {
|
|
|
|
photo->cropRegion.setRect(-1, -1, -1, -1);
|
|
|
|
photo->cropRegion.setRect(-1, -1, -1, -1);
|
|
|
|
photo->rotation = 0;
|
|
|
|
photo->rotation = 0;
|
|
|
|
int w = s->tqlayouts.at(count+1)->width();
|
|
|
|
int w = s->layouts.at(count+1)->width();
|
|
|
|
int h = s->tqlayouts.at(count+1)->height();
|
|
|
|
int h = s->layouts.at(count+1)->height();
|
|
|
|
cropFrame->init(photo, w, h, s->autoRotate, false);
|
|
|
|
cropFrame->init(photo, w, h, s->autoRotate, false);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
count++;
|
|
|
|
count++;
|
|
|
@ -993,7 +993,7 @@ void FrmPrintWizard::previewPhotos()
|
|
|
|
TQPainter p;
|
|
|
|
TQPainter p;
|
|
|
|
p.begin(&img);
|
|
|
|
p.begin(&img);
|
|
|
|
p.fillRect(0, 0, img.width(), img.height(), this->paletteBackgroundColor());
|
|
|
|
p.fillRect(0, 0, img.width(), img.height(), this->paletteBackgroundColor());
|
|
|
|
paintOnePage(p, m_photos, s->tqlayouts, m_captions->currentItem(), current, true);
|
|
|
|
paintOnePage(p, m_photos, s->layouts, m_captions->currentItem(), current, true);
|
|
|
|
p.end();
|
|
|
|
p.end();
|
|
|
|
BmpFirstPagePreview->setPixmap(img);
|
|
|
|
BmpFirstPagePreview->setPixmap(img);
|
|
|
|
LblPreview->setText(i18n("Page ") + TQString::number(m_currentPreviewPage + 1) + i18n(" of ") + TQString::number(getPageCount()));
|
|
|
|
LblPreview->setText(i18n("Page ") + TQString::number(m_currentPreviewPage + 1) + i18n(" of ") + TQString::number(getPageCount()));
|
|
|
@ -1171,7 +1171,7 @@ void FrmPrintWizard::reject()
|
|
|
|
TQDialog::reject();
|
|
|
|
TQDialog::reject();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void FrmPrintWizard::printPhotos(TQPtrList<TPhoto> photos, TQPtrList<TQRect> tqlayouts, KPrinter &printer)
|
|
|
|
void FrmPrintWizard::printPhotos(TQPtrList<TPhoto> photos, TQPtrList<TQRect> layouts, KPrinter &printer)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
m_cancelPrinting = false;
|
|
|
|
m_cancelPrinting = false;
|
|
|
|
LblPrintProgress->setText("");
|
|
|
|
LblPrintProgress->setText("");
|
|
|
@ -1188,7 +1188,7 @@ void FrmPrintWizard::printPhotos(TQPtrList<TPhoto> photos, TQPtrList<TQRect> tql
|
|
|
|
bool printing = true;
|
|
|
|
bool printing = true;
|
|
|
|
while(printing)
|
|
|
|
while(printing)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
printing = paintOnePage(p, photos, tqlayouts, m_captions->currentItem(), current);
|
|
|
|
printing = paintOnePage(p, photos, layouts, m_captions->currentItem(), current);
|
|
|
|
if (printing)
|
|
|
|
if (printing)
|
|
|
|
printer.newPage();
|
|
|
|
printer.newPage();
|
|
|
|
PrgPrintProgress->setProgress(current);
|
|
|
|
PrgPrintProgress->setProgress(current);
|
|
|
@ -1208,9 +1208,9 @@ void FrmPrintWizard::printPhotos(TQPtrList<TPhoto> photos, TQPtrList<TQRect> tql
|
|
|
|
LblPrintProgress->setText(i18n("Complete. Click Finish to exit the Print Wizard."));
|
|
|
|
LblPrintProgress->setText(i18n("Complete. Click Finish to exit the Print Wizard."));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
TQStringList FrmPrintWizard::printPhotosToFile(TQPtrList<TPhoto> photos, TQString &baseFilename, TPhotoSize* tqlayouts)
|
|
|
|
TQStringList FrmPrintWizard::printPhotosToFile(TQPtrList<TPhoto> photos, TQString &baseFilename, TPhotoSize* layouts)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
Q_ASSERT(tqlayouts->tqlayouts.count() > 1);
|
|
|
|
Q_ASSERT(layouts->layouts.count() > 1);
|
|
|
|
|
|
|
|
|
|
|
|
m_cancelPrinting = false;
|
|
|
|
m_cancelPrinting = false;
|
|
|
|
LblPrintProgress->setText("");
|
|
|
|
LblPrintProgress->setText("");
|
|
|
@ -1224,15 +1224,15 @@ TQStringList FrmPrintWizard::printPhotosToFile(TQPtrList<TPhoto> photos, TQStrin
|
|
|
|
bool printing = true;
|
|
|
|
bool printing = true;
|
|
|
|
TQStringList files;
|
|
|
|
TQStringList files;
|
|
|
|
|
|
|
|
|
|
|
|
TQRect *srcPage = tqlayouts->tqlayouts.at(0);
|
|
|
|
TQRect *srcPage = layouts->layouts.at(0);
|
|
|
|
|
|
|
|
|
|
|
|
while (printing)
|
|
|
|
while (printing)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
// make a pixmap to save to file. Make it just big enough to show the
|
|
|
|
// make a pixmap to save to file. Make it just big enough to show the
|
|
|
|
// highest-dpi image on the page without losing data.
|
|
|
|
// highest-dpi image on the page without losing data.
|
|
|
|
double dpi = tqlayouts->dpi;
|
|
|
|
double dpi = layouts->dpi;
|
|
|
|
if (dpi == 0.0)
|
|
|
|
if (dpi == 0.0)
|
|
|
|
dpi = getMaxDPI(photos, tqlayouts->tqlayouts, current) * 1.1;
|
|
|
|
dpi = getMaxDPI(photos, layouts->layouts, current) * 1.1;
|
|
|
|
int w = NINT(srcPage->width() / 1000.0 * dpi);
|
|
|
|
int w = NINT(srcPage->width() / 1000.0 * dpi);
|
|
|
|
int h = NINT(srcPage->height() / 1000.0 * dpi);
|
|
|
|
int h = NINT(srcPage->height() / 1000.0 * dpi);
|
|
|
|
TQImage *img = new TQImage(w, h, 32);
|
|
|
|
TQImage *img = new TQImage(w, h, 32);
|
|
|
@ -1258,7 +1258,7 @@ TQStringList FrmPrintWizard::printPhotosToFile(TQPtrList<TPhoto> photos, TQStrin
|
|
|
|
|
|
|
|
|
|
|
|
// paint this page, even if we aren't saving it to keep the page
|
|
|
|
// paint this page, even if we aren't saving it to keep the page
|
|
|
|
// count accurate.
|
|
|
|
// count accurate.
|
|
|
|
printing = paintOnePage(*img, photos, tqlayouts->tqlayouts, m_captions->currentItem(), current);
|
|
|
|
printing = paintOnePage(*img, photos, layouts->layouts, m_captions->currentItem(), current);
|
|
|
|
|
|
|
|
|
|
|
|
if (saveFile)
|
|
|
|
if (saveFile)
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -1535,13 +1535,13 @@ TPhotoSize * createPhotoGrid(int pageWidth, int pageHeight, TQString label, int
|
|
|
|
p->label = label;
|
|
|
|
p->label = label;
|
|
|
|
p->dpi = 100;
|
|
|
|
p->dpi = 100;
|
|
|
|
p->autoRotate = false;
|
|
|
|
p->autoRotate = false;
|
|
|
|
p->tqlayouts.append(new TQRect(0, 0, pageWidth, pageHeight));
|
|
|
|
p->layouts.append(new TQRect(0, 0, pageWidth, pageHeight));
|
|
|
|
|
|
|
|
|
|
|
|
int row = 0;
|
|
|
|
int row = 0;
|
|
|
|
for(int y=MARGIN; row < rows && y < pageHeight - MARGIN; y += photoHeight + GAP) {
|
|
|
|
for(int y=MARGIN; row < rows && y < pageHeight - MARGIN; y += photoHeight + GAP) {
|
|
|
|
int col = 0;
|
|
|
|
int col = 0;
|
|
|
|
for(int x=MARGIN; col < columns && x < pageWidth - MARGIN; x += photoWidth + GAP) {
|
|
|
|
for(int x=MARGIN; col < columns && x < pageWidth - MARGIN; x += photoWidth + GAP) {
|
|
|
|
p->tqlayouts.append(new TQRect(x, y, photoWidth, photoHeight));
|
|
|
|
p->layouts.append(new TQRect(x, y, photoWidth, photoHeight));
|
|
|
|
col++;
|
|
|
|
col++;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
row++;
|
|
|
|
row++;
|
|
|
@ -1575,12 +1575,12 @@ void FrmPrintWizard::initPhotoSizes(PageSize pageSize)
|
|
|
|
p->dpi = 0;
|
|
|
|
p->dpi = 0;
|
|
|
|
p->autoRotate = true;
|
|
|
|
p->autoRotate = true;
|
|
|
|
// page size
|
|
|
|
// page size
|
|
|
|
p->tqlayouts.append(new TQRect(0, 0, 8500, 11000));
|
|
|
|
p->layouts.append(new TQRect(0, 0, 8500, 11000));
|
|
|
|
// photo tqlayouts
|
|
|
|
// photo layouts
|
|
|
|
p->tqlayouts.append(new TQRect( 700, 500, 3500, 5000));
|
|
|
|
p->layouts.append(new TQRect( 700, 500, 3500, 5000));
|
|
|
|
p->tqlayouts.append(new TQRect(4300, 500, 3500, 5000));
|
|
|
|
p->layouts.append(new TQRect(4300, 500, 3500, 5000));
|
|
|
|
p->tqlayouts.append(new TQRect( 700, 5600, 3500, 5000));
|
|
|
|
p->layouts.append(new TQRect( 700, 5600, 3500, 5000));
|
|
|
|
p->tqlayouts.append(new TQRect(4300, 5600, 3500, 5000));
|
|
|
|
p->layouts.append(new TQRect(4300, 5600, 3500, 5000));
|
|
|
|
// add to the list
|
|
|
|
// add to the list
|
|
|
|
m_photoSizes.append(p);
|
|
|
|
m_photoSizes.append(p);
|
|
|
|
|
|
|
|
|
|
|
@ -1590,11 +1590,11 @@ void FrmPrintWizard::initPhotoSizes(PageSize pageSize)
|
|
|
|
p->dpi = 0;
|
|
|
|
p->dpi = 0;
|
|
|
|
p->autoRotate = true;
|
|
|
|
p->autoRotate = true;
|
|
|
|
// page size
|
|
|
|
// page size
|
|
|
|
p->tqlayouts.append(new TQRect(0, 0, 8500, 11000));
|
|
|
|
p->layouts.append(new TQRect(0, 0, 8500, 11000));
|
|
|
|
// photo tqlayouts
|
|
|
|
// photo layouts
|
|
|
|
p->tqlayouts.append(new TQRect( 225, 500, 4000, 6000));
|
|
|
|
p->layouts.append(new TQRect( 225, 500, 4000, 6000));
|
|
|
|
p->tqlayouts.append(new TQRect(4275, 500, 4000, 6000));
|
|
|
|
p->layouts.append(new TQRect(4275, 500, 4000, 6000));
|
|
|
|
p->tqlayouts.append(new TQRect(1250, 6600, 6000, 4000));
|
|
|
|
p->layouts.append(new TQRect(1250, 6600, 6000, 4000));
|
|
|
|
// add to the list
|
|
|
|
// add to the list
|
|
|
|
m_photoSizes.append(p);
|
|
|
|
m_photoSizes.append(p);
|
|
|
|
|
|
|
|
|
|
|
@ -1604,10 +1604,10 @@ void FrmPrintWizard::initPhotoSizes(PageSize pageSize)
|
|
|
|
p->dpi = 0;
|
|
|
|
p->dpi = 0;
|
|
|
|
p->autoRotate = true;
|
|
|
|
p->autoRotate = true;
|
|
|
|
// page size
|
|
|
|
// page size
|
|
|
|
p->tqlayouts.append(new TQRect(0, 0, 8500, 11000));
|
|
|
|
p->layouts.append(new TQRect(0, 0, 8500, 11000));
|
|
|
|
// photo tqlayouts
|
|
|
|
// photo layouts
|
|
|
|
p->tqlayouts.append(new TQRect( 1250, 1000, 6000, 4000));
|
|
|
|
p->layouts.append(new TQRect( 1250, 1000, 6000, 4000));
|
|
|
|
p->tqlayouts.append(new TQRect( 1250, 6000, 6000, 4000));
|
|
|
|
p->layouts.append(new TQRect( 1250, 6000, 6000, 4000));
|
|
|
|
// add to the list
|
|
|
|
// add to the list
|
|
|
|
m_photoSizes.append(p);
|
|
|
|
m_photoSizes.append(p);
|
|
|
|
|
|
|
|
|
|
|
@ -1617,10 +1617,10 @@ void FrmPrintWizard::initPhotoSizes(PageSize pageSize)
|
|
|
|
p->dpi = 0;
|
|
|
|
p->dpi = 0;
|
|
|
|
p->autoRotate = true;
|
|
|
|
p->autoRotate = true;
|
|
|
|
// page size
|
|
|
|
// page size
|
|
|
|
p->tqlayouts.append(new TQRect(0, 0, 8500, 11000));
|
|
|
|
p->layouts.append(new TQRect(0, 0, 8500, 11000));
|
|
|
|
// photo tqlayouts
|
|
|
|
// photo layouts
|
|
|
|
p->tqlayouts.append(new TQRect( 750, 500, 7000, 5000));
|
|
|
|
p->layouts.append(new TQRect( 750, 500, 7000, 5000));
|
|
|
|
p->tqlayouts.append(new TQRect( 750, 5750, 7000, 5000));
|
|
|
|
p->layouts.append(new TQRect( 750, 5750, 7000, 5000));
|
|
|
|
// add to the list
|
|
|
|
// add to the list
|
|
|
|
m_photoSizes.append(p);
|
|
|
|
m_photoSizes.append(p);
|
|
|
|
|
|
|
|
|
|
|
@ -1630,9 +1630,9 @@ void FrmPrintWizard::initPhotoSizes(PageSize pageSize)
|
|
|
|
p->dpi = 0;
|
|
|
|
p->dpi = 0;
|
|
|
|
p->autoRotate = true;
|
|
|
|
p->autoRotate = true;
|
|
|
|
// page size
|
|
|
|
// page size
|
|
|
|
p->tqlayouts.append(new TQRect(0, 0, 8500, 11000));
|
|
|
|
p->layouts.append(new TQRect(0, 0, 8500, 11000));
|
|
|
|
// photo tqlayouts
|
|
|
|
// photo layouts
|
|
|
|
p->tqlayouts.append(new TQRect(250, 500, 8000, 10000));
|
|
|
|
p->layouts.append(new TQRect(250, 500, 8000, 10000));
|
|
|
|
// add to the list
|
|
|
|
// add to the list
|
|
|
|
m_photoSizes.append(p);
|
|
|
|
m_photoSizes.append(p);
|
|
|
|
|
|
|
|
|
|
|
@ -1648,20 +1648,20 @@ void FrmPrintWizard::initPhotoSizes(PageSize pageSize)
|
|
|
|
p->dpi = 0;
|
|
|
|
p->dpi = 0;
|
|
|
|
p->autoRotate = false;
|
|
|
|
p->autoRotate = false;
|
|
|
|
// page size
|
|
|
|
// page size
|
|
|
|
p->tqlayouts.append(new TQRect(0, 0, 8500, 11000));
|
|
|
|
p->layouts.append(new TQRect(0, 0, 8500, 11000));
|
|
|
|
// photo tqlayouts
|
|
|
|
// photo layouts
|
|
|
|
// photo 1 is in the center, 3x4.5
|
|
|
|
// photo 1 is in the center, 3x4.5
|
|
|
|
p->tqlayouts.append(new TQRect(2750, 3250, 3000, 4500));
|
|
|
|
p->layouts.append(new TQRect(2750, 3250, 3000, 4500));
|
|
|
|
// the remaining 1.5x2 photos begin with upper left and circle around
|
|
|
|
// the remaining 1.5x2 photos begin with upper left and circle around
|
|
|
|
// top row
|
|
|
|
// top row
|
|
|
|
p->tqlayouts.append(new TQRect(750, 750, 1500, 2000));
|
|
|
|
p->layouts.append(new TQRect(750, 750, 1500, 2000));
|
|
|
|
p->tqlayouts.append(new TQRect(3500, 750, 1500, 2000));
|
|
|
|
p->layouts.append(new TQRect(3500, 750, 1500, 2000));
|
|
|
|
p->tqlayouts.append(new TQRect(6250, 750, 1500, 2000));
|
|
|
|
p->layouts.append(new TQRect(6250, 750, 1500, 2000));
|
|
|
|
p->tqlayouts.append(new TQRect(6250, 4500, 1500, 2000));
|
|
|
|
p->layouts.append(new TQRect(6250, 4500, 1500, 2000));
|
|
|
|
p->tqlayouts.append(new TQRect(6250, 8250, 1500, 2000));
|
|
|
|
p->layouts.append(new TQRect(6250, 8250, 1500, 2000));
|
|
|
|
p->tqlayouts.append(new TQRect(3500, 8250, 1500, 2000));
|
|
|
|
p->layouts.append(new TQRect(3500, 8250, 1500, 2000));
|
|
|
|
p->tqlayouts.append(new TQRect(750, 8250, 1500, 2000));
|
|
|
|
p->layouts.append(new TQRect(750, 8250, 1500, 2000));
|
|
|
|
p->tqlayouts.append(new TQRect(750, 4500, 1500, 2000));
|
|
|
|
p->layouts.append(new TQRect(750, 4500, 1500, 2000));
|
|
|
|
m_photoSizes.append(p);
|
|
|
|
m_photoSizes.append(p);
|
|
|
|
|
|
|
|
|
|
|
|
// album collage 2
|
|
|
|
// album collage 2
|
|
|
@ -1670,14 +1670,14 @@ void FrmPrintWizard::initPhotoSizes(PageSize pageSize)
|
|
|
|
p->dpi = 0;
|
|
|
|
p->dpi = 0;
|
|
|
|
p->autoRotate = false;
|
|
|
|
p->autoRotate = false;
|
|
|
|
// page size
|
|
|
|
// page size
|
|
|
|
p->tqlayouts.append(new TQRect(0, 0, 8500, 11000));
|
|
|
|
p->layouts.append(new TQRect(0, 0, 8500, 11000));
|
|
|
|
// photo tqlayouts
|
|
|
|
// photo layouts
|
|
|
|
p->tqlayouts.append(new TQRect(1000, 1000, 3000, 3000));
|
|
|
|
p->layouts.append(new TQRect(1000, 1000, 3000, 3000));
|
|
|
|
p->tqlayouts.append(new TQRect(5000, 1000, 2500, 1250));
|
|
|
|
p->layouts.append(new TQRect(5000, 1000, 2500, 1250));
|
|
|
|
p->tqlayouts.append(new TQRect(5000, 2750, 2500, 1250));
|
|
|
|
p->layouts.append(new TQRect(5000, 2750, 2500, 1250));
|
|
|
|
p->tqlayouts.append(new TQRect(1000, 5000, 1500, 2000));
|
|
|
|
p->layouts.append(new TQRect(1000, 5000, 1500, 2000));
|
|
|
|
p->tqlayouts.append(new TQRect(2750, 5000, 4750, 2000));
|
|
|
|
p->layouts.append(new TQRect(2750, 5000, 4750, 2000));
|
|
|
|
p->tqlayouts.append(new TQRect(1000, 8000, 6500, 2000));
|
|
|
|
p->layouts.append(new TQRect(1000, 8000, 6500, 2000));
|
|
|
|
m_photoSizes.append(p);
|
|
|
|
m_photoSizes.append(p);
|
|
|
|
} // letter
|
|
|
|
} // letter
|
|
|
|
break;
|
|
|
|
break;
|
|
|
@ -1694,9 +1694,9 @@ void FrmPrintWizard::initPhotoSizes(PageSize pageSize)
|
|
|
|
p->autoRotate = true;
|
|
|
|
p->autoRotate = true;
|
|
|
|
p->label = i18n("21 x 29.7cm");
|
|
|
|
p->label = i18n("21 x 29.7cm");
|
|
|
|
// page size
|
|
|
|
// page size
|
|
|
|
p->tqlayouts.append(new TQRect(0, 0, 2100, 2970));
|
|
|
|
p->layouts.append(new TQRect(0, 0, 2100, 2970));
|
|
|
|
// photo tqlayouts
|
|
|
|
// photo layouts
|
|
|
|
p->tqlayouts.append(new TQRect( 0, 0, 2100, 2970));
|
|
|
|
p->layouts.append(new TQRect( 0, 0, 2100, 2970));
|
|
|
|
// add to the list
|
|
|
|
// add to the list
|
|
|
|
m_photoSizes.append(p);
|
|
|
|
m_photoSizes.append(p);
|
|
|
|
|
|
|
|
|
|
|
@ -1706,16 +1706,16 @@ void FrmPrintWizard::initPhotoSizes(PageSize pageSize)
|
|
|
|
p->autoRotate = true;
|
|
|
|
p->autoRotate = true;
|
|
|
|
p->label = i18n("6 x 9cm (8 photos)");
|
|
|
|
p->label = i18n("6 x 9cm (8 photos)");
|
|
|
|
// page size
|
|
|
|
// page size
|
|
|
|
p->tqlayouts.append(new TQRect(0, 0, 2100, 2970));
|
|
|
|
p->layouts.append(new TQRect(0, 0, 2100, 2970));
|
|
|
|
// photo tqlayouts
|
|
|
|
// photo layouts
|
|
|
|
p->tqlayouts.append(new TQRect( 100, 100, 900, 600));
|
|
|
|
p->layouts.append(new TQRect( 100, 100, 900, 600));
|
|
|
|
p->tqlayouts.append(new TQRect(1100, 100, 900, 600));
|
|
|
|
p->layouts.append(new TQRect(1100, 100, 900, 600));
|
|
|
|
p->tqlayouts.append(new TQRect( 100, 800, 900, 600));
|
|
|
|
p->layouts.append(new TQRect( 100, 800, 900, 600));
|
|
|
|
p->tqlayouts.append(new TQRect(1100, 800, 900, 600));
|
|
|
|
p->layouts.append(new TQRect(1100, 800, 900, 600));
|
|
|
|
p->tqlayouts.append(new TQRect( 100, 1500, 900, 600));
|
|
|
|
p->layouts.append(new TQRect( 100, 1500, 900, 600));
|
|
|
|
p->tqlayouts.append(new TQRect(1100, 1500, 900, 600));
|
|
|
|
p->layouts.append(new TQRect(1100, 1500, 900, 600));
|
|
|
|
p->tqlayouts.append(new TQRect( 100, 2200, 900, 600));
|
|
|
|
p->layouts.append(new TQRect( 100, 2200, 900, 600));
|
|
|
|
p->tqlayouts.append(new TQRect(1100, 2200, 900, 600));
|
|
|
|
p->layouts.append(new TQRect(1100, 2200, 900, 600));
|
|
|
|
// add to the list
|
|
|
|
// add to the list
|
|
|
|
m_photoSizes.append(p);
|
|
|
|
m_photoSizes.append(p);
|
|
|
|
|
|
|
|
|
|
|
@ -1725,12 +1725,12 @@ void FrmPrintWizard::initPhotoSizes(PageSize pageSize)
|
|
|
|
p->autoRotate = true;
|
|
|
|
p->autoRotate = true;
|
|
|
|
p->label = i18n("9 x 13cm");
|
|
|
|
p->label = i18n("9 x 13cm");
|
|
|
|
// page size
|
|
|
|
// page size
|
|
|
|
p->tqlayouts.append(new TQRect(0, 0, 2100, 2970));
|
|
|
|
p->layouts.append(new TQRect(0, 0, 2100, 2970));
|
|
|
|
// photo tqlayouts
|
|
|
|
// photo layouts
|
|
|
|
p->tqlayouts.append(new TQRect( 100, 100, 900, 1300));
|
|
|
|
p->layouts.append(new TQRect( 100, 100, 900, 1300));
|
|
|
|
p->tqlayouts.append(new TQRect(1100, 100, 900, 1300));
|
|
|
|
p->layouts.append(new TQRect(1100, 100, 900, 1300));
|
|
|
|
p->tqlayouts.append(new TQRect( 100, 1500, 900, 1300));
|
|
|
|
p->layouts.append(new TQRect( 100, 1500, 900, 1300));
|
|
|
|
p->tqlayouts.append(new TQRect(1100, 1500, 900, 1300));
|
|
|
|
p->layouts.append(new TQRect(1100, 1500, 900, 1300));
|
|
|
|
// add to the list
|
|
|
|
// add to the list
|
|
|
|
m_photoSizes.append(p);
|
|
|
|
m_photoSizes.append(p);
|
|
|
|
|
|
|
|
|
|
|
@ -1740,12 +1740,12 @@ void FrmPrintWizard::initPhotoSizes(PageSize pageSize)
|
|
|
|
p->autoRotate = true;
|
|
|
|
p->autoRotate = true;
|
|
|
|
p->label = i18n("10 x 13.33cm");
|
|
|
|
p->label = i18n("10 x 13.33cm");
|
|
|
|
// page size
|
|
|
|
// page size
|
|
|
|
p->tqlayouts.append(new TQRect(0, 0, 2100, 2970));
|
|
|
|
p->layouts.append(new TQRect(0, 0, 2100, 2970));
|
|
|
|
// photo tqlayouts
|
|
|
|
// photo layouts
|
|
|
|
p->tqlayouts.append(new TQRect( 50, 100, 1000, 1333));
|
|
|
|
p->layouts.append(new TQRect( 50, 100, 1000, 1333));
|
|
|
|
p->tqlayouts.append(new TQRect(1060, 100, 1000, 1333));
|
|
|
|
p->layouts.append(new TQRect(1060, 100, 1000, 1333));
|
|
|
|
p->tqlayouts.append(new TQRect( 50, 1500, 1000, 1333));
|
|
|
|
p->layouts.append(new TQRect( 50, 1500, 1000, 1333));
|
|
|
|
p->tqlayouts.append(new TQRect(1060, 1500, 1000, 1333));
|
|
|
|
p->layouts.append(new TQRect(1060, 1500, 1000, 1333));
|
|
|
|
// add to the list
|
|
|
|
// add to the list
|
|
|
|
m_photoSizes.append(p);
|
|
|
|
m_photoSizes.append(p);
|
|
|
|
|
|
|
|
|
|
|
@ -1755,11 +1755,11 @@ void FrmPrintWizard::initPhotoSizes(PageSize pageSize)
|
|
|
|
p->autoRotate = true;
|
|
|
|
p->autoRotate = true;
|
|
|
|
p->label = i18n("10 x 15cm");
|
|
|
|
p->label = i18n("10 x 15cm");
|
|
|
|
// page size
|
|
|
|
// page size
|
|
|
|
p->tqlayouts.append(new TQRect(0, 0, 2100, 2970));
|
|
|
|
p->layouts.append(new TQRect(0, 0, 2100, 2970));
|
|
|
|
// photo tqlayouts
|
|
|
|
// photo layouts
|
|
|
|
p->tqlayouts.append(new TQRect( 50, 150, 1000, 1500));
|
|
|
|
p->layouts.append(new TQRect( 50, 150, 1000, 1500));
|
|
|
|
p->tqlayouts.append(new TQRect(1060, 150, 1000, 1500));
|
|
|
|
p->layouts.append(new TQRect(1060, 150, 1000, 1500));
|
|
|
|
p->tqlayouts.append(new TQRect( 300, 1750, 1500, 1000));
|
|
|
|
p->layouts.append(new TQRect( 300, 1750, 1500, 1000));
|
|
|
|
// add to the list
|
|
|
|
// add to the list
|
|
|
|
m_photoSizes.append(p);
|
|
|
|
m_photoSizes.append(p);
|
|
|
|
|
|
|
|
|
|
|
@ -1769,10 +1769,10 @@ void FrmPrintWizard::initPhotoSizes(PageSize pageSize)
|
|
|
|
p->autoRotate = true;
|
|
|
|
p->autoRotate = true;
|
|
|
|
p->label = i18n("10 x 15cm Album");
|
|
|
|
p->label = i18n("10 x 15cm Album");
|
|
|
|
// page size
|
|
|
|
// page size
|
|
|
|
p->tqlayouts.append(new TQRect(0, 0, 2100, 2970));
|
|
|
|
p->layouts.append(new TQRect(0, 0, 2100, 2970));
|
|
|
|
// photo tqlayouts
|
|
|
|
// photo layouts
|
|
|
|
p->tqlayouts.append(new TQRect( 300, 350, 1500, 1000));
|
|
|
|
p->layouts.append(new TQRect( 300, 350, 1500, 1000));
|
|
|
|
p->tqlayouts.append(new TQRect( 300, 1620, 1500, 1000));
|
|
|
|
p->layouts.append(new TQRect( 300, 1620, 1500, 1000));
|
|
|
|
// add to the list
|
|
|
|
// add to the list
|
|
|
|
m_photoSizes.append(p);
|
|
|
|
m_photoSizes.append(p);
|
|
|
|
|
|
|
|
|
|
|
@ -1782,10 +1782,10 @@ void FrmPrintWizard::initPhotoSizes(PageSize pageSize)
|
|
|
|
p->autoRotate = true;
|
|
|
|
p->autoRotate = true;
|
|
|
|
p->label = i18n("11.5 x 15cm Album");
|
|
|
|
p->label = i18n("11.5 x 15cm Album");
|
|
|
|
// page size
|
|
|
|
// page size
|
|
|
|
p->tqlayouts.append(new TQRect(0, 0, 2100, 2970));
|
|
|
|
p->layouts.append(new TQRect(0, 0, 2100, 2970));
|
|
|
|
// photo tqlayouts
|
|
|
|
// photo layouts
|
|
|
|
p->tqlayouts.append(new TQRect( 300, 250, 1500, 1100));
|
|
|
|
p->layouts.append(new TQRect( 300, 250, 1500, 1100));
|
|
|
|
p->tqlayouts.append(new TQRect( 300, 1570, 1500, 1100));
|
|
|
|
p->layouts.append(new TQRect( 300, 1570, 1500, 1100));
|
|
|
|
// add to the list
|
|
|
|
// add to the list
|
|
|
|
m_photoSizes.append(p);
|
|
|
|
m_photoSizes.append(p);
|
|
|
|
|
|
|
|
|
|
|
@ -1795,10 +1795,10 @@ void FrmPrintWizard::initPhotoSizes(PageSize pageSize)
|
|
|
|
p->autoRotate = true;
|
|
|
|
p->autoRotate = true;
|
|
|
|
p->label = i18n("13 x 18cm");
|
|
|
|
p->label = i18n("13 x 18cm");
|
|
|
|
// page size
|
|
|
|
// page size
|
|
|
|
p->tqlayouts.append(new TQRect(0, 0, 2100, 2970));
|
|
|
|
p->layouts.append(new TQRect(0, 0, 2100, 2970));
|
|
|
|
// photo tqlayouts
|
|
|
|
// photo layouts
|
|
|
|
p->tqlayouts.append(new TQRect( 150, 150, 1800, 1300));
|
|
|
|
p->layouts.append(new TQRect( 150, 150, 1800, 1300));
|
|
|
|
p->tqlayouts.append(new TQRect( 150, 1520, 1800, 1300));
|
|
|
|
p->layouts.append(new TQRect( 150, 1520, 1800, 1300));
|
|
|
|
// add to the list
|
|
|
|
// add to the list
|
|
|
|
m_photoSizes.append(p);
|
|
|
|
m_photoSizes.append(p);
|
|
|
|
|
|
|
|
|
|
|
@ -1808,9 +1808,9 @@ void FrmPrintWizard::initPhotoSizes(PageSize pageSize)
|
|
|
|
p->autoRotate = true;
|
|
|
|
p->autoRotate = true;
|
|
|
|
p->label = i18n("20 x 25cm");
|
|
|
|
p->label = i18n("20 x 25cm");
|
|
|
|
// page size
|
|
|
|
// page size
|
|
|
|
p->tqlayouts.append(new TQRect(0, 0, 2100, 2970));
|
|
|
|
p->layouts.append(new TQRect(0, 0, 2100, 2970));
|
|
|
|
// photo tqlayouts
|
|
|
|
// photo layouts
|
|
|
|
p->tqlayouts.append(new TQRect( 50, 230, 2000, 2500));
|
|
|
|
p->layouts.append(new TQRect( 50, 230, 2000, 2500));
|
|
|
|
// add to the list
|
|
|
|
// add to the list
|
|
|
|
m_photoSizes.append(p);
|
|
|
|
m_photoSizes.append(p);
|
|
|
|
|
|
|
|
|
|
|
@ -1833,9 +1833,9 @@ void FrmPrintWizard::initPhotoSizes(PageSize pageSize)
|
|
|
|
p->autoRotate = true;
|
|
|
|
p->autoRotate = true;
|
|
|
|
p->label = i18n("9 x 13cm");
|
|
|
|
p->label = i18n("9 x 13cm");
|
|
|
|
// page size
|
|
|
|
// page size
|
|
|
|
p->tqlayouts.append(new TQRect(0, 0, 1050, 1480));
|
|
|
|
p->layouts.append(new TQRect(0, 0, 1050, 1480));
|
|
|
|
// photo tqlayouts
|
|
|
|
// photo layouts
|
|
|
|
p->tqlayouts.append(new TQRect( 50, 100, 900, 1300));
|
|
|
|
p->layouts.append(new TQRect( 50, 100, 900, 1300));
|
|
|
|
// add to the list
|
|
|
|
// add to the list
|
|
|
|
m_photoSizes.append(p);
|
|
|
|
m_photoSizes.append(p);
|
|
|
|
|
|
|
|
|
|
|
@ -1845,9 +1845,9 @@ void FrmPrintWizard::initPhotoSizes(PageSize pageSize)
|
|
|
|
p->autoRotate = true;
|
|
|
|
p->autoRotate = true;
|
|
|
|
p->label = i18n("10.5 x 14.8cm");
|
|
|
|
p->label = i18n("10.5 x 14.8cm");
|
|
|
|
// page size
|
|
|
|
// page size
|
|
|
|
p->tqlayouts.append(new TQRect(0, 0, 1050, 1480));
|
|
|
|
p->layouts.append(new TQRect(0, 0, 1050, 1480));
|
|
|
|
// photo tqlayouts
|
|
|
|
// photo layouts
|
|
|
|
p->tqlayouts.append(new TQRect(0, 0, 1050, 1480));
|
|
|
|
p->layouts.append(new TQRect(0, 0, 1050, 1480));
|
|
|
|
// add to the list
|
|
|
|
// add to the list
|
|
|
|
m_photoSizes.append(p);
|
|
|
|
m_photoSizes.append(p);
|
|
|
|
|
|
|
|
|
|
|
@ -1870,9 +1870,9 @@ void FrmPrintWizard::initPhotoSizes(PageSize pageSize)
|
|
|
|
p->autoRotate = true;
|
|
|
|
p->autoRotate = true;
|
|
|
|
p->label = i18n("10 x 15cm");
|
|
|
|
p->label = i18n("10 x 15cm");
|
|
|
|
// page size
|
|
|
|
// page size
|
|
|
|
p->tqlayouts.append(new TQRect(0, 0, 1016, 1524));
|
|
|
|
p->layouts.append(new TQRect(0, 0, 1016, 1524));
|
|
|
|
// photo tqlayouts
|
|
|
|
// photo layouts
|
|
|
|
p->tqlayouts.append(new TQRect(0, 0, 1016, 1524));
|
|
|
|
p->layouts.append(new TQRect(0, 0, 1016, 1524));
|
|
|
|
// add to the list
|
|
|
|
// add to the list
|
|
|
|
m_photoSizes.append(p);
|
|
|
|
m_photoSizes.append(p);
|
|
|
|
|
|
|
|
|
|
|
@ -1882,9 +1882,9 @@ void FrmPrintWizard::initPhotoSizes(PageSize pageSize)
|
|
|
|
p->autoRotate = true;
|
|
|
|
p->autoRotate = true;
|
|
|
|
p->label = i18n("9 x 13cm");
|
|
|
|
p->label = i18n("9 x 13cm");
|
|
|
|
// page size
|
|
|
|
// page size
|
|
|
|
p->tqlayouts.append(new TQRect(0, 0, 1016, 1524));
|
|
|
|
p->layouts.append(new TQRect(0, 0, 1016, 1524));
|
|
|
|
// photo tqlayouts
|
|
|
|
// photo layouts
|
|
|
|
p->tqlayouts.append(new TQRect( 50, 100, 900, 1300));
|
|
|
|
p->layouts.append(new TQRect( 50, 100, 900, 1300));
|
|
|
|
// add to the list
|
|
|
|
// add to the list
|
|
|
|
m_photoSizes.append(p);
|
|
|
|
m_photoSizes.append(p);
|
|
|
|
|
|
|
|
|
|
|
@ -1909,9 +1909,9 @@ void FrmPrintWizard::initPhotoSizes(PageSize pageSize)
|
|
|
|
p->autoRotate = true;
|
|
|
|
p->autoRotate = true;
|
|
|
|
p->label = i18n("13 x 18cm");
|
|
|
|
p->label = i18n("13 x 18cm");
|
|
|
|
// page size
|
|
|
|
// page size
|
|
|
|
p->tqlayouts.append(new TQRect(0, 0, 1270, 1778));
|
|
|
|
p->layouts.append(new TQRect(0, 0, 1270, 1778));
|
|
|
|
// photo tqlayouts
|
|
|
|
// photo layouts
|
|
|
|
p->tqlayouts.append(new TQRect(0, 0, 1270, 1778));
|
|
|
|
p->layouts.append(new TQRect(0, 0, 1270, 1778));
|
|
|
|
// add to the list
|
|
|
|
// add to the list
|
|
|
|
m_photoSizes.append(p);
|
|
|
|
m_photoSizes.append(p);
|
|
|
|
|
|
|
|
|
|
|
@ -1921,9 +1921,9 @@ void FrmPrintWizard::initPhotoSizes(PageSize pageSize)
|
|
|
|
p->autoRotate = true;
|
|
|
|
p->autoRotate = true;
|
|
|
|
p->label = i18n("10 x 15cm");
|
|
|
|
p->label = i18n("10 x 15cm");
|
|
|
|
// page size
|
|
|
|
// page size
|
|
|
|
p->tqlayouts.append(new TQRect(0, 0, 1270, 1778));
|
|
|
|
p->layouts.append(new TQRect(0, 0, 1270, 1778));
|
|
|
|
// photo tqlayouts
|
|
|
|
// photo layouts
|
|
|
|
p->tqlayouts.append(new TQRect(0, 0, 1016, 1524));
|
|
|
|
p->layouts.append(new TQRect(0, 0, 1016, 1524));
|
|
|
|
// add to the list
|
|
|
|
// add to the list
|
|
|
|
m_photoSizes.append(p);
|
|
|
|
m_photoSizes.append(p);
|
|
|
|
|
|
|
|
|
|
|
@ -1933,9 +1933,9 @@ void FrmPrintWizard::initPhotoSizes(PageSize pageSize)
|
|
|
|
p->autoRotate = true;
|
|
|
|
p->autoRotate = true;
|
|
|
|
p->label = i18n("9 x 13cm");
|
|
|
|
p->label = i18n("9 x 13cm");
|
|
|
|
// page size
|
|
|
|
// page size
|
|
|
|
p->tqlayouts.append(new TQRect(0, 0, 1270, 1778));
|
|
|
|
p->layouts.append(new TQRect(0, 0, 1270, 1778));
|
|
|
|
// photo tqlayouts
|
|
|
|
// photo layouts
|
|
|
|
p->tqlayouts.append(new TQRect( 50, 100, 900, 1300));
|
|
|
|
p->layouts.append(new TQRect( 50, 100, 900, 1300));
|
|
|
|
// add to the list
|
|
|
|
// add to the list
|
|
|
|
m_photoSizes.append(p);
|
|
|
|
m_photoSizes.append(p);
|
|
|
|
|
|
|
|
|
|
|
@ -1950,7 +1950,7 @@ void FrmPrintWizard::initPhotoSizes(PageSize pageSize)
|
|
|
|
|
|
|
|
|
|
|
|
default:
|
|
|
|
default:
|
|
|
|
{
|
|
|
|
{
|
|
|
|
kdDebug( 51000 ) << "Initializing Unsupported page tqlayouts\n";
|
|
|
|
kdDebug( 51000 ) << "Initializing Unsupported page layouts\n";
|
|
|
|
// We don't support this page size yet. Just create a default page.
|
|
|
|
// We don't support this page size yet. Just create a default page.
|
|
|
|
TPhotoSize *p;
|
|
|
|
TPhotoSize *p;
|
|
|
|
p = new TPhotoSize;
|
|
|
|
p = new TPhotoSize;
|
|
|
@ -1958,8 +1958,8 @@ void FrmPrintWizard::initPhotoSizes(PageSize pageSize)
|
|
|
|
p->autoRotate = false;
|
|
|
|
p->autoRotate = false;
|
|
|
|
p->label = i18n("Unsupported Paper Size");
|
|
|
|
p->label = i18n("Unsupported Paper Size");
|
|
|
|
// page size
|
|
|
|
// page size
|
|
|
|
p->tqlayouts.append(new TQRect(0, 0, 8500, 11000));
|
|
|
|
p->layouts.append(new TQRect(0, 0, 8500, 11000));
|
|
|
|
p->tqlayouts.append(new TQRect(0, 0, 8500, 11000));
|
|
|
|
p->layouts.append(new TQRect(0, 0, 8500, 11000));
|
|
|
|
// add to the list
|
|
|
|
// add to the list
|
|
|
|
m_photoSizes.append(p);
|
|
|
|
m_photoSizes.append(p);
|
|
|
|
}
|
|
|
|
}
|
|
|
|