addimage.h

00001 /*
00002  * Silence
00003  *
00004  * Copyright (C) 2009 Manuel Unglaub
00005  *
00006  * This file is part of Silence.
00007  *
00008  * Silence is free software: you can redistribute it and/or modify
00009  * it under the terms of the GNU General Public License as published by
00010  * the Free Software Foundation, version GPLv2 only of the License.
00011  *
00012  * Silence is distributed in the hope that it will be useful,
00013  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00014  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015  * GNU General Public License for more details.
00016 
00017  * You should have received a copy of the GNU General Public License
00018  * along with Silence.  If not, see <http://www.gnu.org/licenses/>.
00019  */
00020 
00021 #ifndef ADDIMAGE_H
00022 #define ADDIMAGE_H
00023 
00024 #include <klineedit.h>
00025 #include <knuminput.h>
00026 #include <QCheckBox>
00027 #include <QGridLayout>
00028 #include <QPushButton>
00029 
00030 
00038 class AddImage : public QGridLayout
00039 {
00040     Q_OBJECT
00041 
00042     public:
00050         AddImage(QWidget *parent);
00051 
00057         ~AddImage();
00058 
00059     public slots:
00063         void exit();
00064 
00065     signals:
00071         void addedImage(const QString &html);
00072 
00073     private slots:
00074         void addImage();
00075         void browse();
00076 
00077     private:
00078         KIntSpinBox *sbWidth,
00079                     *sbHeight;
00080         QCheckBox   *cbWidth,
00081                     *cbHeight;
00082         KLineEdit   *ledFile;
00083         QPushButton *btnBrowse,
00084                     *btnOk,
00085                     *btnCancel;
00086         QWidget *parent;
00087 };
00088 
00089 
00090 #endif // ADDIMAGE_H
00091 
00092 
Generated on Fri May 14 19:12:50 2010 for Silence by  doxygen 1.6.3