From e9ae80694875f869892f13f4fcaf1170a00dea41 Mon Sep 17 00:00:00 2001 From: toma Date: Wed, 25 Nov 2009 17:56:58 +0000 Subject: Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdewebdev@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- quanta/dialogs/tagdialogs/tagimgdlg.h | 93 +++++++++++++++++++++++++++++++++++ 1 file changed, 93 insertions(+) create mode 100644 quanta/dialogs/tagdialogs/tagimgdlg.h (limited to 'quanta/dialogs/tagdialogs/tagimgdlg.h') diff --git a/quanta/dialogs/tagdialogs/tagimgdlg.h b/quanta/dialogs/tagdialogs/tagimgdlg.h new file mode 100644 index 00000000..f1229ee2 --- /dev/null +++ b/quanta/dialogs/tagdialogs/tagimgdlg.h @@ -0,0 +1,93 @@ +/*************************************************************************** + tagimgdlg.h - description + ------------------- + begin : Sat Nov 27 1999 + copyright : (C) 1999 by Yacovlev Alexander & Dmitry Poplavsky + (C) 2002, 2006 Andras Mantia + email : pdima@mail.univ.kiev.ua, amantia@kde.org + ***************************************************************************/ + +/*************************************************************************** + * * + * This program is free software; you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation; either version 2 of the License, or * + * (at your option) any later version. * + * * + ***************************************************************************/ + +#ifndef TAGIMGDLG_H +#define TAGIMGDLG_H + +//Generated area. DO NOT EDIT!!!(begin) +#include +#include +#include +#include +#include +//Generated area. DO NOT EDIT!!!(end) + +#include "tagwidget.h" +#include "qtag.h" + +class PictureView; +class QSpinBox; +class QImage; + +/** + *@author Dmitry Poplavsky & Yacovlev Alexander + */ + +class TagImgDlg : public QWidget, TagWidget { + Q_OBJECT +public: + TagImgDlg(const DTDStruct *dtd, QWidget *parent=0, const char *name=0); + ~TagImgDlg(); + +public: + void initDialog(); + //Generated area. DO NOT EDIT!!!(begin) + QLabel *labelImgSource; + KLineEdit *lineImgSource; + QPushButton *buttonImgSource; + QPushButton *buttonRecalcImgSize; + QLabel *QLabel_4; + KLineEdit *lineWidth; + QLabel *QLabel_5; + KLineEdit *lineHeight; + QLabel *QLabel_6; + KLineEdit *lineHSpace; + QLabel *QLabel_7; + KLineEdit *lineVSpace; + QLabel *QLabel_8; + KLineEdit *lineAltText; + QLabel *QLabel_9; + QSpinBox *spinBorder; + QLabel *QLabel_10; + QComboBox *comboAlign; + PictureView *widgetImg; + QPushButton *buttonOk; + QPushButton *buttonCancel; + //Generated area. DO NOT EDIT!!!(end) + +private: + QImage *img; + QString imgFileName; + bool isTmpFile; + const DTDStruct *m_dtd; + +public slots: // Public slots + /** Choose new image */ + void slotImageSet( const KURL& imageURL); + /** select image */ + void slotFileSelect(); + void slotLineFileSelect(); + + void readAttributes( QDict *d ); + void writeAttributes( QDict *d ); + /** recalculate image size */ + void slotRecalcImgSize(); +}; + +#endif + -- cgit v1.2.1