ImagePreview::ImagePreview(const QString& fileOrig, const QString& fileDest, bool cropActionOrig, const QString& EffectName, const QString& FileName, QWidget* const parent) : KPToolDialog(parent) { setCaption(i18n("Batch Process Preview (%1 - %2)", EffectName, FileName)); setModal(true); setButtons(Ok | Help); setDefaultButton(Ok); KPAboutData* about = new KPAboutData(ki18n("Batch Process Images"), QByteArray(), KAboutData::License_GPL, ki18n("A Kipi plugin for batch process images using \"ImageMagick\""), ki18n("(c) 2003-2012, Gilles Caulier\n" "(c) 2007-2009, Aurélien Gateau")); about->addAuthor(ki18n("Gilles Caulier"), ki18n("Author"), "caulier dot gilles at gmail dot com"); about->addAuthor(ki18n("Aurelien Gateau"), ki18n("Maintainer"), "aurelien dot gateau at free dot fr"); setAboutData(about); //--------------------------------------------- QWidget* box = new QWidget(this); setupUi(box); setMainWidget(box); resize(700, 400); QImage original(fileOrig); const QImage cropped = original.copy(0, 0, 300, 300); if (cropActionOrig) { m_origView->setImage(cropped, true); } else { m_origView->load(fileOrig, true); } m_destView->load(fileDest, true); }
HelpDialog::HelpDialog() : KPToolDialog(0) { setWindowIcon(QIcon::fromTheme(QString::fromLatin1("kipi-ogl"))); setWindowTitle(i18n("Usage of OpenGL Image Viewer")); startButton()->setVisible(false); KPAboutData* about = new KPAboutData(ki18n("OpenGL Image Viewer"), 0, KAboutLicense::GPL, ki18n("A Kipi plugin to view image using OpenGL."), ki18n("(c) 2007-2008, Markus Leuthold\n" "(c) 2008-2013, Gilles Caulier")); about->addAuthor(i18n("Markus Leuthold"), i18n("Author"), QString::fromLatin1("kusi at forum dot titlis dot org")); about->addAuthor(i18n("Gilles Caulier"), i18n("Developer"), QString::fromLatin1("caulier dot gilles at gmail dot com")); setAboutData(about); // ------------------------------------------------------------------------------------------------------------------- QTextBrowser* brw = new QTextBrowser(this); setMainWidget(brw); brw->setHtml(i18n( "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\"" "\"http://www.w3.org/TR/REC-html40/strict.dtd\">\n" "<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n" "p, li { white-space: pre-wrap; }\n" "</style></head><body style=\" font-family:'Sans Serif'; font-size:10pt; " "font-weight:400; font-style:normal;\">\n" "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; " "-qt-block-indent:0; text-indent:0px;\"><span style=\" font-size:x-large; " "font-weight:600; color:#5500ff;\">Image Access</span><br /></p>\n" "<table border=\"0\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px;\" cellspacing=\"2\" cellpadding=\"0\">\n" "<tr>\n" "<td>\n" "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">next image </p></td>\n" "<td>\n" "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">scrollwheel down/down arrow" "/right arrow/PgDown/Space/n </p></td></tr>\n" "<tr>\n" "<td>\n" "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">previous image </p></td>\n" "<td>\n" "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">scrollwheel up/up arrow/left arrow/PgUp/p </p></td></tr>\n" "<tr>\n" "<td>\n" "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">quit </p></td>\n" "<td>\n" "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">Esc </p></td></tr></table>\n" "<p style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"></p>\n" "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-weight:600;" "\"><span style=\" font-size:x-large; color:#5500ff;\">Display</span></p>\n" "<p style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:x-large; font-weight:600; color:#5500ff;\"></p>\n" "<p style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:x-large; font-weight:600; color:#5500ff;\"></p>\n" "<table border=\"0\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px;\" cellspacing=\"2\" cellpadding=\"0\">\n" "<tr>\n" "<td>\n" "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">toggle fullscreen/normal </p></td>\n" "<td>\n" "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">f </p></td></tr>\n" "<tr>\n" "<td>\n" "<p style=\" margin-top:0px; margin-bottom:" "0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">toggle scrollwheel action </p></td>\n" "<td>\n" "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">c (either zoom or change image) </p></td></tr>\n" "<tr>\n" "<td>\n" "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">rotation </p></td>\n" "<td>\n" "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">r </p></td></tr>\n" "<tr>\n" "<td>\n" "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">reset view </p></td>\n" "<td>\n" "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">double click </p></td></tr>\n" "<tr>\n" "<td>\n" "<p style=\" margin-top:0px; margin-bottom:0px; margin-l" "eft:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">original size </p></td>\n" "<td>\n" "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">o </p></td></tr></table>\n" "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><br /><span style=\" font-size:x-large; font-weight:600; color:#5500ff;\">Zooming</span></p>\n" "<ul style=\"-qt-list-indent: 1;\"><li style=\" margin-top:12px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">move mouse in up/down-direction while pressing the right mouse button</li>\n" "<li style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">alternatively, press c and use the scrollwheel<br /></li>\n" "<li style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">plus/minu" "s</li>\n" "<li style=\" margin-top:0px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">ctrl + scrollwheel</li></ul>\n" "<p style=\" margin-top:0px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:x-large; font-weight:600; color:#5500ff;\"><span style=\" font-size:x-large;\">Panning</span></p>\n" "<ul style=\"-qt-list-indent: 1;\"><li style=\" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">move mouse while pressing the left button</li></ul></body></html>", 0)); brw->setProperty("text", QVariant(i18n( "<b><font color=\"#5500ff\">" "<font size=\"+2\">Image Access</font></font></b><br>\n" "<TABLE> \n" " <TR> \n" " <TD>next image</TD> \n" " <TD>scrollwheel down/down arrow/right arrow/PgDown/Space/n</TD>\n" " </TR> \n" " <TR> \n" " <TD>previous image </TD> \n" " <TD>scrollwheel up/up arrow/left arrow/PgUp/p </TD> \n" " </TR>\n" "<TR> \n" " <TD>quit</TD> \n" " <TD>Esc</TD> \n" " </TR> \n" " </TABLE>\n" "<br>\n" " <TH><b><font color=\"#5500ff\"><font size=\"+2\">Display</font></font></b></TH> </br>\n" "<TABLE> \n" " <TR> \n" " <TD>toggle fullscreen/normal </TD> \n" " <TD>f</TD> \n" " </TR> \n" " <TR> \n" " <TD>toggle scrollwheel action</TD> \n" " <TD>c (either zoom or change image)</TD> \n" " </TR>\n" " <TR> \n" " <TD>rotation </TD> \n" " <TD>r</TD> \n" " </TR> \n" " <TR> \n" " <TD>reset view </TD> \n" " <TD>double click</TD> \n" " </TR> \n" " <TR> \n" " <TD>original size</TD> \n" " <TD>o</TD> \n" " </TR>\n" " </TABLE>\n" "<br>\n" "\n" "\n" "<b><font color=\"#5500ff\" size=\"+2\">Zooming</font></b><br> \n" "<UL>\n" "" "<LI>move mouse in up/down-direction while pressing the right mouse button\n" "<LI>alternatively, press c and use the scrollwheel<br>\n" "<LI>plus/minus\n" "<LI>ctrl + scrollwheel\n" "</UL>\n" "\n" "<b><font color=\"#5500ff\" size=\"+2\">Panning</font></b><br>\n" "<UL> \n" "<LI>move mouse while pressing the left button\n" "</UL>", 0))); // --------------------------------------------------------------------------------------------------------------------- resize(700, 550); }
Wizard::Wizard(QWidget* const parent, GalleryInfo* const info) : KPWizardDialog(parent) { d = new Private; d->mInfo = info; setCaption(i18n("Export image collections to HTML pages")); // --------------------------------------------------------------- // About data and help button. KPAboutData* about = new KPAboutData( ki18n("HTML Export"), QByteArray(), KAboutLicense::GPL, ki18n("A KIPI plugin to export image collections to HTML pages"), ki18n("(c) 2006-2009, Aurelien Gateau\n" "(c) 2010, Gianluca Urgese")); about->addAuthor( ki18n("Gianluca Urgese"), ki18n("Maintainer"), "*****@*****.**"); about->addAuthor( ki18n("Aurelien Gateau"), ki18n("Former Author and Maintainer"), "*****@*****.**"); about->setHandbookEntry("htmlexport"); setAboutData(about); // --------------------------------------------------------------- d->mCollectionSelector = iface()->imageCollectionSelector(this); d->mCollectionSelectorPage = addPage(d->mCollectionSelector, i18n("Collection Selection")); updateCollectionSelectorPageValidity(); connect(d->mCollectionSelector, SIGNAL(selectionChanged()), this, SLOT(updateCollectionSelectorPageValidity())); d->mThemePage = new ThemePage(this, i18n("Theme")); d->initThemePage(); connect(d->mThemePage->mThemeList, SIGNAL(itemSelectionChanged()), this, SLOT(slotThemeSelectionChanged()) ); d->mThemeParametersPage = new ThemeParametersPage(this, i18n("Theme Parameters")); d->mImageSettingsPage = new ImageSettingsPage(this, i18n("Image Settings")); d->mOutputPage = new OutputPage(this, i18n("Output")); d->mOutputPage->kcfg_destUrl->setMode(KFile::Directory); connect(d->mOutputPage->kcfg_destUrl, SIGNAL(textChanged(QString)), this, SLOT(updateFinishPageValidity()) ); d->mConfigManager = new KConfigDialogManager(this, d->mInfo); d->mConfigManager->updateWidgets(); // Set page states // Pages can only be disabled after they have *all* been added! slotThemeSelectionChanged(); updateFinishPageValidity(); }