diff options
Diffstat (limited to 'quanta/dialogs/tagdialogs/tagimgdlgdata.cpp')
-rw-r--r-- | quanta/dialogs/tagdialogs/tagimgdlgdata.cpp | 129 |
1 files changed, 129 insertions, 0 deletions
diff --git a/quanta/dialogs/tagdialogs/tagimgdlgdata.cpp b/quanta/dialogs/tagdialogs/tagimgdlgdata.cpp new file mode 100644 index 00000000..ec4a6a36 --- /dev/null +++ b/quanta/dialogs/tagdialogs/tagimgdlgdata.cpp @@ -0,0 +1,129 @@ +/********************************************************************** + --- KDevelop (KDlgEdit) generated file --- + + Last generated: Fri Apr 7 23:17:41 2000 + + DO NOT EDIT!!! This file will be automatically + regenerated by KDevelop. All changes will be lost. + + (C) 2006 Andras Mantia +**********************************************************************/ +#include <klocale.h> +#include <kurl.h> +#include <knumvalidator.h> +#include <kiconloader.h> + +#include <qlayout.h> +#include <qspinbox.h> + +#include "pictureview.h" +#include "tagimgdlg.h" + +void TagImgDlg::initDialog(){ + QGridLayout *grid = new QGridLayout( this ); + grid->setSpacing( 13 ); + grid->setMargin( 11 ); + labelImgSource= new QLabel(this,"labelImgSource"); + labelImgSource->setText(i18n("Image source:")); + grid->addMultiCellWidget(labelImgSource, 0, 0, 0, 0); + + lineImgSource= new KLineEdit(this,"lineImgSource"); + grid->addMultiCellWidget(lineImgSource, 0, 0, 1, 3); + + buttonImgSource= new QPushButton(this,"NoName"); + buttonImgSource->setText(i18n("...")); + grid->addMultiCellWidget(buttonImgSource, 0, 0, 4, 4); + + QTag *imgTag = m_dtd->tagsList->find("img"); + + if (!imgTag) + return; + + lineWidth = 0L; + if (imgTag->attribute("width")) + { + QLabel_4= new QLabel(this,"NoName"); + QLabel_4->setText(i18n("Width:")); + grid->addMultiCellWidget(QLabel_4, 1, 1, 0, 0); + + lineWidth= new KLineEdit(this,"NoName"); + lineWidth->setValidator( new KFloatValidator( lineWidth ) ); + grid->addMultiCellWidget(lineWidth, 1, 1, 1, 1); + } + + lineHeight = 0L; + if (imgTag->attribute("height")) + { + QLabel_5= new QLabel(this,"NoName"); + QLabel_5->setText(i18n("Height:")); + grid->addMultiCellWidget(QLabel_5, 1, 1, 2, 2); + + lineHeight= new KLineEdit(this,"NoName"); + lineHeight->setValidator( new KFloatValidator( lineHeight ) ); + grid->addMultiCellWidget(lineHeight, 1, 1, 3, 3); + } + + buttonRecalcImgSize= new QPushButton(this,"NoName"); + buttonRecalcImgSize->setText(i18n("...")); + grid->addMultiCellWidget(buttonRecalcImgSize, 1, 1, 4, 4); + + lineHSpace = 0L; + if (imgTag->attribute("hspace")) + { + QLabel_6= new QLabel(this,"NoName"); + QLabel_6->setText(i18n("HSpace:")); + grid->addMultiCellWidget(QLabel_6, 2, 2, 0, 0); + + lineHSpace= new KLineEdit(this,"NoName"); + grid->addMultiCellWidget(lineHSpace, 2, 2, 1, 1); + } + + lineVSpace = 0L; + if (imgTag->attribute("vspace")) + { + QLabel_7= new QLabel(this,"NoName"); + QLabel_7->setText(i18n("VSpace:")); + grid->addMultiCellWidget(QLabel_7, 2, 2, 2, 2); + + lineVSpace= new KLineEdit(this,"NoName"); + grid->addMultiCellWidget(lineVSpace, 2, 2, 3, 3); + } + + QLabel_8= new QLabel(this,"NoName"); + QLabel_8->setText(i18n("Alternate text:")); + grid->addMultiCellWidget(QLabel_8, 3, 3, 0, 0); + + lineAltText= new KLineEdit(this,"NoName"); + grid->addMultiCellWidget(lineAltText, 3, 3, 1, 4); + + spinBorder = 0L; + if (imgTag->attribute("border")) + { + QLabel_9= new QLabel(this,"NoName"); + QLabel_9->setText(i18n("Border:")); + grid->addMultiCellWidget(QLabel_9, 4, 4, 0, 0); + + spinBorder= new QSpinBox(this,"NoName"); + spinBorder->setRange(0,20); + grid->addMultiCellWidget(spinBorder, 4, 4, 1, 1); + } + + comboAlign = 0L; + if (imgTag->attribute("align")) + { + QLabel_10= new QLabel(this,"NoName"); + QLabel_10->setText(i18n("Align:")); + grid->addMultiCellWidget(QLabel_10, 4, 4, 2, 2); + + comboAlign= new QComboBox(this,"NoName"); + grid->addMultiCellWidget(comboAlign, 4, 4, 3, 4); + comboAlign->insertStringList(imgTag->attribute("align")->values); + } + + widgetImg= new PictureView(this); + grid->addMultiCellWidget(widgetImg, 5, 10, 0, 4); + + buttonImgSource->setPixmap( SmallIcon("fileopen") ); + buttonRecalcImgSize->setPixmap( SmallIcon("reload") ); + +} |