/***************************************************************************
 * C++ Implementation:                                                     *
 * Copyright (C) 2012-2017 by Eduard Kalinowski                            *
 * Germany, Lower Saxony, Hanover                                          *
 * eduard_kalinowski@yahoo.de                                              *
 *                                                                         *
 * HTTraQt is free software; may be distributed and/or modified under the  *
 * terms of the GNU General Public License version 3 as published by the   *
 * Free Software Foundation and appearing in the file LICENSE_GPLv3        *
 * included in the packaging of this file.                                 *
 *                                                                         *
 * This program is distributed in the hope that it will be useful,         *
 * but WITHOUT ANY WARRANTY; without even the implied warranty of          *
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the           *
 * GNU General Public License for more details.                            *
 *                                                                         *
 * You should have received a copy of the GNU Lesser General Public        *
 * License along with HTTraQt. If not, see  http://www.gnu.org/licenses    *
 ***************************************************************************/

#ifndef PROCESSTABULATOR_H
#define PROCESSTABULATOR_H

#include <QtGui>
#include <QtCore>
#include <QWidget>
#include <QString>
#include <QStandardItemModel>

#include "httraqt.h"
#include "ui_ProgressTab.h"


class HTTraQt;

class ProgressTab: public QWidget, public Ui::ProgressTab, public cTranslator
{
        Q_OBJECT
    public:
        ProgressTab(QWidget *parent = 0, Qt::WindowFlags fl = Qt::WindowType::Widget);
        void translateTab();
        void inProcessRefresh();

    private slots:
        void update();
        void cancelDwnload();

    protected:
        void resizeEvent(QResizeEvent *event);

    private:
        HTTraQt* parent;
        QVector<QPushButton*> cancelButtons;

};

#endif
