KTutorial  0.5.1
TutorialManagerDialog.h
00001 /***************************************************************************
00002  *   Copyright (C) 2008 by Daniel Calviño Sánchez <danxuliu@gmail.com>     *
00003  *   Copyright (C) 2009 by Daniel Calviño Sánchez <danxuliu@gmail.com>     *
00004  *   Copyright (C) 2010 by Daniel Calviño Sánchez <danxuliu@gmail.com>     *
00005  *   Copyright (C) 2012 by Daniel Calviño Sánchez <danxuliu@gmail.com>     *
00006  *                                                                         *
00007  *   This program is free software; you can redistribute it and/or modify  *
00008  *   it under the terms of the GNU General Public License as published by  *
00009  *   the Free Software Foundation; either version 2 of the License, or     *
00010  *   (at your option) any later version.                                   *
00011  *                                                                         *
00012  *   This program is distributed in the hope that it will be useful,       *
00013  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
00014  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
00015  *   GNU General Public License for more details.                          *
00016  *                                                                         *
00017  *   You should have received a copy of the GNU General Public License     *
00018  *   along with this program; If not, see <http://www.gnu.org/licenses/>.  *
00019  ***************************************************************************/
00020 
00021 #ifndef KTUTORIAL_VIEW_TUTORIALMANAGERDIALOG_H
00022 #define KTUTORIAL_VIEW_TUTORIALMANAGERDIALOG_H
00023 
00024 #include <KDialog>
00025 
00026 class QItemSelection;
00027 
00028 namespace ktutorial {
00029 class TutorialInformation;
00030 class TutorialManager;
00031 }
00032 
00033 namespace Ui {
00034 class TutorialManagerDialog;
00035 }
00036 
00037 namespace ktutorial {
00038 namespace view {
00039 
00051 class TutorialManagerDialog: public KDialog {
00052 Q_OBJECT
00053 public:
00054 
00061     explicit TutorialManagerDialog(TutorialManager* tutorialManager,
00062                                    QWidget* parent = 0);
00063 
00067     virtual ~TutorialManagerDialog();
00068 
00069 public slots:
00070 
00075     void finish();
00076 
00077 private:
00078 
00082     TutorialManager* mTutorialManager;
00083 
00087     Ui::TutorialManagerDialog* ui;
00088 
00092     const TutorialInformation* mCurrentTutorialInformation;
00093 
00102     void select(const TutorialInformation* tutorialInformation);
00103 
00104 private slots:
00105 
00113     void select(const QItemSelection& selected);
00114 
00119     void start();
00120 
00121 };
00122 
00123 }
00124 }
00125 
00126 #endif