digiKam
DigikamGenericPrintCreatorPlugin::AdvPrintSettings Class Reference

Public Types

enum  CaptionType {
  NONE = 0 , FILENAME , DATETIME , COMMENT ,
  CUSTOM
}
 Caption type to print over the images. More...
 
enum  ImageFormat { JPEG = 0 , PNG , TIFF }
 Image format for Output::FILES. More...
 
enum  Output { PDF = 0 , FILES , GIMP }
 Print output destination, outside real printers configured. More...
 
enum  Selection { IMAGES = 0 , ALBUMS }
 Images selection mode. More...
 

Public Member Functions

 AdvPrintSettings ()
 
QString format () const
 
QRect * getLayout (int photoIndex, int sizeIndex) const
 
QString outputName (Output out) const
 
void readSettings (KConfigGroup &group)
 Read and write settings in config file between sessions. More...
 
void writeSettings (KConfigGroup &group)
 
 ~AdvPrintSettings ()
 

Static Public Member Functions

static QMap< CaptionType, QString > captionTypeNames ()
 
static QMap< ImageFormat, QString > imageFormatNames ()
 
static QMap< Output, QString > outputNames ()
 Helper methods to fill combobox from GUI. More...
 

Public Attributes

QColor captionColor
 
QFont captionFont
 
int captionSize
 
QString captionTxt
 String use to customize caption with CUSTOM mode. More...
 
CaptionType captionType
 Caption management. More...
 
FileSaveConflictBox::ConflictRule conflictRule
 Rule if output image files already exists. More...
 
int currentCropPhoto
 Crop management. More...
 
int currentPreviewPage
 
bool disableCrop
 
QStringList gimpFiles
 
QString gimpPath
 
ImageFormat imageFormat
 For print to image files only. More...
 
QList< QUrl > inputImages
 
bool openInFileBrowser
 
QUrl outputDir
 Directory where to store output images. More...
 
AdvPrintPhotoSizeoutputLayouts
 Generic data used by printing thread. More...
 
QString outputPath
 
QPrinter * outputPrinter
 
QSizeF pageSize
 Page Size in mm. More...
 
QList< AdvPrintPhoto * > photos
 
QList< AdvPrintPhotoSize * > photosizes
 
QString printerName
 
QString savedPhotoSize
 
Selection selMode
 Items selection mode. More...
 
QString tempPath
 For Print to Gimp only. More...
 

Member Enumeration Documentation

◆ CaptionType

Caption type to print over the images.

Enumerator
NONE 
FILENAME 
DATETIME 
COMMENT 
CUSTOM 

◆ ImageFormat

Image format for Output::FILES.

Enumerator
JPEG 
PNG 
TIFF 

◆ Output

Print output destination, outside real printers configured.

Enumerator
PDF 
FILES 
GIMP 

◆ Selection

Images selection mode.

Enumerator
IMAGES 
ALBUMS 

Constructor & Destructor Documentation

◆ AdvPrintSettings()

DigikamGenericPrintCreatorPlugin::AdvPrintSettings::AdvPrintSettings ( )
explicit

◆ ~AdvPrintSettings()

DigikamGenericPrintCreatorPlugin::AdvPrintSettings::~AdvPrintSettings ( )

References photos.

Member Function Documentation

◆ captionTypeNames()

QMap< AdvPrintSettings::CaptionType, QString > DigikamGenericPrintCreatorPlugin::AdvPrintSettings::captionTypeNames ( )
static

◆ format()

QString DigikamGenericPrintCreatorPlugin::AdvPrintSettings::format ( ) const

References imageFormat, JPEG, and TIFF.

◆ getLayout()

QRect * DigikamGenericPrintCreatorPlugin::AdvPrintSettings::getLayout ( int  photoIndex,
int  sizeIndex 
) const

◆ imageFormatNames()

QMap< AdvPrintSettings::ImageFormat, QString > DigikamGenericPrintCreatorPlugin::AdvPrintSettings::imageFormatNames ( )
static

◆ outputName()

QString DigikamGenericPrintCreatorPlugin::AdvPrintSettings::outputName ( Output  out) const

References outputNames().

Referenced by readSettings().

◆ outputNames()

QMap< AdvPrintSettings::Output, QString > DigikamGenericPrintCreatorPlugin::AdvPrintSettings::outputNames ( )
static

◆ readSettings()

void DigikamGenericPrintCreatorPlugin::AdvPrintSettings::readSettings ( KConfigGroup &  group)

◆ writeSettings()

void DigikamGenericPrintCreatorPlugin::AdvPrintSettings::writeSettings ( KConfigGroup &  group)

Member Data Documentation

◆ captionColor

QColor DigikamGenericPrintCreatorPlugin::AdvPrintSettings::captionColor

Referenced by readSettings(), and writeSettings().

◆ captionFont

QFont DigikamGenericPrintCreatorPlugin::AdvPrintSettings::captionFont

Referenced by readSettings(), and writeSettings().

◆ captionSize

int DigikamGenericPrintCreatorPlugin::AdvPrintSettings::captionSize

Referenced by readSettings(), and writeSettings().

◆ captionTxt

QString DigikamGenericPrintCreatorPlugin::AdvPrintSettings::captionTxt

String use to customize caption with CUSTOM mode.

Referenced by readSettings(), and writeSettings().

◆ captionType

CaptionType DigikamGenericPrintCreatorPlugin::AdvPrintSettings::captionType

Caption management.

Referenced by readSettings(), and writeSettings().

◆ conflictRule

FileSaveConflictBox::ConflictRule DigikamGenericPrintCreatorPlugin::AdvPrintSettings::conflictRule

Rule if output image files already exists.

Referenced by readSettings(), and writeSettings().

◆ currentCropPhoto

int DigikamGenericPrintCreatorPlugin::AdvPrintSettings::currentCropPhoto

Crop management.

◆ currentPreviewPage

int DigikamGenericPrintCreatorPlugin::AdvPrintSettings::currentPreviewPage

◆ disableCrop

bool DigikamGenericPrintCreatorPlugin::AdvPrintSettings::disableCrop

◆ gimpFiles

QStringList DigikamGenericPrintCreatorPlugin::AdvPrintSettings::gimpFiles

◆ gimpPath

QString DigikamGenericPrintCreatorPlugin::AdvPrintSettings::gimpPath

◆ imageFormat

ImageFormat DigikamGenericPrintCreatorPlugin::AdvPrintSettings::imageFormat

For print to image files only.

Referenced by format(), readSettings(), and writeSettings().

◆ inputImages

QList<QUrl> DigikamGenericPrintCreatorPlugin::AdvPrintSettings::inputImages

◆ openInFileBrowser

bool DigikamGenericPrintCreatorPlugin::AdvPrintSettings::openInFileBrowser

Referenced by readSettings(), and writeSettings().

◆ outputDir

QUrl DigikamGenericPrintCreatorPlugin::AdvPrintSettings::outputDir

Directory where to store output images.

Referenced by readSettings(), and writeSettings().

◆ outputLayouts

AdvPrintPhotoSize* DigikamGenericPrintCreatorPlugin::AdvPrintSettings::outputLayouts

Generic data used by printing thread.

Referenced by DigikamGenericPrintCreatorPlugin::AdvPrintWizard::previewPhotos().

◆ outputPath

QString DigikamGenericPrintCreatorPlugin::AdvPrintSettings::outputPath

◆ outputPrinter

QPrinter* DigikamGenericPrintCreatorPlugin::AdvPrintSettings::outputPrinter

◆ pageSize

QSizeF DigikamGenericPrintCreatorPlugin::AdvPrintSettings::pageSize

Page Size in mm.

◆ photos

QList<AdvPrintPhoto*> DigikamGenericPrintCreatorPlugin::AdvPrintSettings::photos

◆ photosizes

QList<AdvPrintPhotoSize*> DigikamGenericPrintCreatorPlugin::AdvPrintSettings::photosizes

Referenced by getLayout().

◆ printerName

QString DigikamGenericPrintCreatorPlugin::AdvPrintSettings::printerName

Referenced by readSettings(), and writeSettings().

◆ savedPhotoSize

QString DigikamGenericPrintCreatorPlugin::AdvPrintSettings::savedPhotoSize

Referenced by readSettings(), and writeSettings().

◆ selMode

Selection DigikamGenericPrintCreatorPlugin::AdvPrintSettings::selMode

Items selection mode.

Referenced by readSettings(), and writeSettings().

◆ tempPath

QString DigikamGenericPrintCreatorPlugin::AdvPrintSettings::tempPath

For Print to Gimp only.


The documentation for this class was generated from the following files: