Changeset View
Changeset View
Standalone View
Standalone View
HTMLGenerator/HTMLDialog.cpp
Show First 20 Lines • Show All 54 Lines • ▼ Show 20 Line(s) | |||||
55 | #include "ImageSizeCheckBox.h" | 55 | #include "ImageSizeCheckBox.h" | ||
56 | 56 | | |||
57 | using namespace HTMLGenerator; | 57 | using namespace HTMLGenerator; | ||
58 | 58 | | |||
59 | HTMLDialog::HTMLDialog( QWidget* parent ) | 59 | HTMLDialog::HTMLDialog( QWidget* parent ) | ||
60 | : KPageDialog(parent) | 60 | : KPageDialog(parent) | ||
61 | , m_list() | 61 | , m_list() | ||
62 | { | 62 | { | ||
63 | setWindowTitle( i18n("HTML Export") ); | 63 | setWindowTitle( i18nc("@title:window", "HTML Export") ); | ||
pino: extra whitespace changes | |||||
64 | QWidget *mainWidget = new QWidget(this); | 64 | QWidget *mainWidget = new QWidget(this); | ||
65 | this->layout()->addWidget(mainWidget); | 65 | this->layout()->addWidget(mainWidget); | ||
66 | 66 | | |||
67 | createContentPage(); | 67 | createContentPage(); | ||
68 | createLayoutPage(); | 68 | createLayoutPage(); | ||
69 | createDestinationPage(); | 69 | createDestinationPage(); | ||
70 | // destUrl is only relevant for .kim file creation: | 70 | // destUrl is only relevant for .kim file creation: | ||
71 | connect(m_generateKimFile,&QCheckBox::toggled,m_destURL,&QLineEdit::setEnabled); | 71 | connect(m_generateKimFile,&QCheckBox::toggled,m_destURL,&QLineEdit::setEnabled); | ||
▲ Show 20 Lines • Show All 46 Lines • ▼ Show 20 Line(s) | 87 | { | |||
118 | label->setBuddy( m_description ); | 118 | label->setBuddy( m_description ); | ||
119 | lay2->addWidget( m_description, 2, 1 ); | 119 | lay2->addWidget( m_description, 2, 1 ); | ||
120 | 120 | | |||
121 | m_generateKimFile = new QCheckBox( i18n("Create .kim export file"), contentPage ); | 121 | m_generateKimFile = new QCheckBox( i18n("Create .kim export file"), contentPage ); | ||
122 | m_generateKimFile->setChecked( Settings::SettingsData::instance()->HTMLKimFile() ); | 122 | m_generateKimFile->setChecked( Settings::SettingsData::instance()->HTMLKimFile() ); | ||
123 | lay1->addWidget( m_generateKimFile ); | 123 | lay1->addWidget( m_generateKimFile ); | ||
124 | 124 | | |||
125 | m_inlineMovies = new QCheckBox( i18nc("Inline as a verb, i.e. 'please show movies right on the page, not as links'", | 125 | m_inlineMovies = new QCheckBox( i18nc("Inline as a verb, i.e. 'please show movies right on the page, not as links'", | ||
126 | "Inline Movies in pages" ), contentPage ); | 126 | "Inline Movies in pages" ), contentPage ); | ||
127 | m_inlineMovies->setChecked( Settings::SettingsData::instance()->HTMLInlineMovies() ); | 127 | m_inlineMovies->setChecked( Settings::SettingsData::instance()->HTMLInlineMovies() ); | ||
128 | lay1->addWidget( m_inlineMovies ); | 128 | lay1->addWidget( m_inlineMovies ); | ||
129 | 129 | | |||
130 | m_html5Video = new QCheckBox( i18nc("Tag as in HTML-tag, not as in image tag", "Use HTML5 video tag" ), contentPage ); | 130 | m_html5Video = new QCheckBox( i18nc("Tag as in HTML-tag, not as in image tag", "Use HTML5 video tag" ), contentPage ); | ||
pino: extra whitespace changes | |||||
131 | m_html5Video->setChecked( Settings::SettingsData::instance()->HTML5Video() ); | 131 | m_html5Video->setChecked( Settings::SettingsData::instance()->HTML5Video() ); | ||
132 | lay1->addWidget( m_html5Video ); | 132 | lay1->addWidget( m_html5Video ); | ||
133 | 133 | | |||
134 | QString avconv = QStandardPaths::findExecutable(QString::fromUtf8("avconv")); | 134 | QString avconv = QStandardPaths::findExecutable(QString::fromUtf8("avconv")); | ||
135 | const QString ffmpeg2theora = QStandardPaths::findExecutable(QString::fromUtf8("ffmpeg2theora")); | 135 | const QString ffmpeg2theora = QStandardPaths::findExecutable(QString::fromUtf8("ffmpeg2theora")); | ||
136 | 136 | | |||
137 | QStandardPaths::findExecutable(QString::fromUtf8("avconv")); | 137 | QStandardPaths::findExecutable(QString::fromUtf8("avconv")); | ||
138 | if ( avconv.isNull() ) | 138 | if ( avconv.isNull() ) | ||
▲ Show 20 Lines • Show All 422 Lines • ▼ Show 20 Line(s) | 559 | else { | |||
561 | if (defaultthemes > 1) | 561 | if (defaultthemes > 1) | ||
562 | KMessageBox::information( this, i18n("More than one theme is set as default, using theme %1", m_themeBox->currentText()) ); | 562 | KMessageBox::information( this, i18n("More than one theme is set as default, using theme %1", m_themeBox->currentText()) ); | ||
563 | } | 563 | } | ||
564 | } | 564 | } | ||
565 | 565 | | |||
566 | void HTMLDialog::displayThemeDescription(int themenr) | 566 | void HTMLDialog::displayThemeDescription(int themenr) | ||
567 | { | 567 | { | ||
568 | // SLOT: update m_themeInfo label whenever the m_theme QComboBox changes. | 568 | // SLOT: update m_themeInfo label whenever the m_theme QComboBox changes. | ||
569 | QString outtxt = i18nc( "This is to show the author of the theme. E.g. copyright character (©) by itself will work fine on this context if no proper word is available in your language.", "by " ); | 569 | QString outtxt = i18nc( "This is to show the author of the theme. E.g. copyright character (©) by itself will work fine on this context if no proper word is available in your language.", "by " ); | ||
pino: extra whitespace changes | |||||
570 | outtxt.append( m_themeAuthors[themenr] ); | 570 | outtxt.append( m_themeAuthors[themenr] ); | ||
571 | outtxt.append( i18n( "\n " ) ); | 571 | outtxt.append( i18n( "\n " ) ); | ||
572 | outtxt.append( m_themeDescriptions[themenr] ); | 572 | outtxt.append( m_themeDescriptions[themenr] ); | ||
573 | m_themeInfo->setText( outtxt ); | 573 | m_themeInfo->setText( outtxt ); | ||
574 | // Instead of two separate lists for authors and descriptions one could have a combined one by appending the text prior to storing within populateThemesCombo(), | 574 | // Instead of two separate lists for authors and descriptions one could have a combined one by appending the text prior to storing within populateThemesCombo(), | ||
575 | // however, storing author and descriptions separately might be cleaner. | 575 | // however, storing author and descriptions separately might be cleaner. | ||
576 | } | 576 | } | ||
577 | 577 | | |||
▲ Show 20 Lines • Show All 74 Lines • Show Last 20 Lines |
extra whitespace changes