KTutorial  0.5.1
DefaultKdeCustomization.h
00001 /***************************************************************************
00002  *   Copyright (C) 2012 by Daniel Calviño Sánchez <danxuliu@gmail.com>     *
00003  *                                                                         *
00004  *   This program is free software; you can redistribute it and/or modify  *
00005  *   it under the terms of the GNU General Public License as published by  *
00006  *   the Free Software Foundation; either version 2 of the License, or     *
00007  *   (at your option) any later version.                                   *
00008  *                                                                         *
00009  *   This program is distributed in the hope that it will be useful,       *
00010  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
00011  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
00012  *   GNU General Public License for more details.                          *
00013  *                                                                         *
00014  *   You should have received a copy of the GNU General Public License     *
00015  *   along with this program; If not, see <http://www.gnu.org/licenses/>.  *
00016  ***************************************************************************/
00017 
00018 #ifndef KTUTORIAL_CUSTOMIZATION_DEFAULTKDECUSTOMIZATION_H
00019 #define KTUTORIAL_CUSTOMIZATION_DEFAULTKDECUSTOMIZATION_H
00020 
00021 #include "../KTutorialCustomization.h"
00022 
00023 class KAction;
00024 class KXmlGuiWindow;
00025 
00026 namespace ktutorial {
00027 namespace customization {
00028 
00041 class DefaultKdeCustomization: public KTutorialCustomization {
00042 Q_OBJECT
00043 public:
00044 
00050     explicit DefaultKdeCustomization(KXmlGuiWindow* window);
00051 
00063     virtual void setup(TutorialManager* tutorialManager);
00064 
00070     virtual QWidget* mainApplicationWindow();
00071 
00072 public slots:
00073 
00080     virtual void showTutorialUI(Tutorial* tutorial);
00081 
00082 private:
00083 
00087     KXmlGuiWindow* mWindow;
00088 
00092     TutorialManager* mTutorialManager;
00093 
00097     KAction* mTutorialsAction;
00098 
00099 private slots:
00100 
00105     void showTutorialManagerDialog() const;
00106 
00112     void disableTutorialsAction();
00113 
00119     void enableTutorialsAction();
00120 
00121 };
00122 
00123 }
00124 }
00125 
00126 #endif