File indexing completed on 2024-05-05 17:15:12

0001 /**************************************************************************
0002 *   Copyright (C) 2007-2022 by Michel Ludwig (michel.ludwig@kdemail.net)  *
0003 ***************************************************************************/
0004 
0005 /**************************************************************************
0006 *                                                                         *
0007 *   This program is free software; you can redistribute it and/or modify  *
0008 *   it under the terms of the GNU General Public License as published by  *
0009 *   the Free Software Foundation; either version 2 of the License, or     *
0010 *   (at your option) any later version.                                   *
0011 *                                                                         *
0012 ***************************************************************************/
0013 
0014 #ifndef NEWTOOLWIZARD_H
0015 #define NEWTOOLWIZARD_H
0016 
0017 #include "kassistantdialog.h"
0018 
0019 #include "ui_newtoolwizard_class_page.h"
0020 #include "ui_newtoolwizard_toolname_page.h"
0021 
0022 class NewToolWizard : public KAssistantDialog, public Ui::NewToolWizardToolNamePage, public Ui::NewToolWizardClassPage
0023 {
0024     Q_OBJECT
0025 
0026 public:
0027     explicit NewToolWizard(QWidget *parent = 0, Qt::WindowFlags flags = Qt::WindowFlags());
0028 
0029     virtual QString customTool();
0030     virtual QString toolName();
0031     virtual QString parentTool();
0032 
0033 protected Q_SLOTS:
0034     void nameChanged(const QString & name);
0035     void slotCurrentPageChanged(KPageWidgetItem* current, KPageWidgetItem* before);
0036 
0037 private:
0038     QStringList m_toolList;
0039     KPageWidgetItem *toolNamePage, *classPage;
0040 };
0041 
0042 #endif