File indexing completed on 2024-04-21 15:55:45

0001 /******************************************************************************
0002   Copyright (C) 2003 by Jeroen Wijnhout (Jeroen.Wijnhout@kdemail.net)
0003         2017 by Michel Ludwig (michel.ludwig@kdemail.net)
0004  ******************************************************************************/
0005 
0006 /***************************************************************************
0007  *                                                                         *
0008  *   This program is free software; you can redistribute it and/or modify  *
0009  *   it under the terms of the GNU General Public License as published by  *
0010  *   the Free Software Foundation; either version 2 of the License, or     *
0011  *   (at your option) any later version.                                   *
0012  *                                                                         *
0013  ***************************************************************************/
0014 
0015 #ifndef KILEWIZARD_H
0016 #define KILEWIZARD_H
0017 
0018 #include <QDialog>
0019 
0020 #include "kileactions.h"
0021 
0022 class KConfig;
0023 class QDialogButtonBox;
0024 class QShowEvent;
0025 
0026 namespace KileDialog
0027 {
0028 class Wizard : public QDialog
0029 {
0030 public:
0031     explicit Wizard(KConfig *, QWidget *parent = Q_NULLPTR, const char *name = Q_NULLPTR, const QString &caption = QString());
0032     virtual ~Wizard();
0033 
0034 public:
0035     const KileAction::TagData & tagData() const {
0036         return m_td;
0037     }
0038 
0039 protected:
0040     KConfig * config() const;
0041     QDialogButtonBox * buttonBox() const;
0042     KileAction::TagData m_td;
0043 
0044     virtual void showEvent(QShowEvent *event) override;
0045 
0046 private:
0047     KConfig *m_config;
0048     QDialogButtonBox *m_buttonBox;
0049 };
0050 }
0051 
0052 #endif