/******************************************************************************
  Copyright (C) 2003 by Jeroen Wijnhout (Jeroen.Wijnhout@kdemail.net)
		2017 by Michel Ludwig (michel.ludwig@kdemail.net)
 ******************************************************************************/

/***************************************************************************
 *                                                                         *
 *   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 KILEWIZARD_H
#define KILEWIZARD_H

#include <QDialog>

#include "kileactions.h"

class KConfig;
class QDialogButtonBox;
class QShowEvent;

namespace KileDialog
{
class Wizard : public QDialog
{
public:
    explicit Wizard(KConfig *, QWidget *parent = nullptr, const char *name = nullptr, const QString &caption = QString());
    virtual ~Wizard();

public:
    const KileAction::TagData & tagData() const {
        return m_td;
    }

protected:
    KConfig * config() const;
    QDialogButtonBox * buttonBox() const;
    KileAction::TagData m_td;

    virtual void showEvent(QShowEvent *event) override;

private:
    KConfig *m_config;
    QDialogButtonBox *m_buttonBox;
};
}

#endif
