addtable.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 ADDTABLE_H
00022 #define ADDTABLE_H
00023 
00024 #include <knuminput.h>
00025 #include <QGridLayout>
00026 #include <QLabel>
00027 #include <QPushButton>
00028 
00029 
00037 class AddTable : public QGridLayout
00038 {
00039     Q_OBJECT
00040 
00041     public:
00049         AddTable(QWidget *parent);
00050 
00056         ~AddTable();
00057 
00058     public slots:
00062         void exit();
00063 
00064     signals:
00070         void addedTable(const QString &html);
00071 
00072     private slots:
00073         void addTable();
00074 
00075     private:
00076         KIntSpinBox *sbColumns,
00077                     *sbRows;
00078         QLabel  *lblColumns,
00079                 *lblRows;
00080         QPushButton *btnOk,
00081                     *btnCancel;
00082 };
00083 
00084 #endif // ADDTABLE_H
00085 
Generated on Fri May 14 19:12:50 2010 for Silence by  doxygen 1.6.3