// ****************************************************************************
// copyright (c) 2000-2005 Horst Knorr <hk_classes@knoda.org>  
// This file is part of the hk_kdeclasses library.
// This file may be distributed and/or modified under the terms of the
// GNU Library Public License version 2 as published by the Free Software
// Foundation and appearing in the file LGPL included in the
// packaging of this file.
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
// ****************************************************************************

#ifndef HK_KDECSVIMPORTDIALOG_H
#define HK_KDECSVIMPORTDIALOG_H

#include <qvariant.h>
#include <hk_kdecsvimportdialogbase.h>
#include <hk_dsvisible.h>
#include <hk_datasource.h>
#include <hk_importcsv.h>
class QVBoxLayout;
class QHBoxLayout;
class QGridLayout;
class QCheckBox;
class QComboBox;
class QLabel;
class QLineEdit;
class QPushButton;
class QToolButton;
class QProgressDialog;

/**
 *
 *@short KDE Widget frontend to import CSV data
 *@version $Revision: 1.10 $
 *@author Horst Knorr (hk_classes@knoda.org)
 */

class hk_kdecsvimportdialog : public hk_kdecsvimportdialogbase  ,public hk_importcsv
{
    Q_OBJECT

        public:
        hk_kdecsvimportdialog( QWidget* parent = 0, const char* name = 0, bool modal = false, WFlags fl = 0 );
        ~hk_kdecsvimportdialog();

    protected slots:
        virtual void filebutton_clicked();
        virtual void buttons_enabled();
        virtual void ok_clicked(void);
        void printing_cancelled(void);

    protected:
        virtual bool widget_specific_after_new_row(void);
    private:
//  hk_importcsv* p_import;
        void before_execute(void);
        void after_execute(void);
        QString      p_file;
        QString      p_tab;
        bool p_cancelprinting;
        QProgressDialog* p_progressdialog;

};
#endif                                            // HK_KDECSVIMPORTDIALOG_H
