KDEUI
kassistantdialog.h
Go to the documentation of this file.
00001 /* This file is part of the KDE libraries 00002 Copyright (C) 2006 Olivier Goffart <ogoffart at kde.org> 00003 00004 This library is free software; you can redistribute it and/or 00005 modify it under the terms of the GNU Library General Public 00006 License version 2 as published by the Free Software Foundation. 00007 00008 This library is distributed in the hope that it will be useful, 00009 but WITHOUT ANY WARRANTY; without even the implied warranty of 00010 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00011 Library General Public License for more details. 00012 00013 You should have received a copy of the GNU Library General Public License 00014 along with this library; see the file COPYING.LIB. If not, write to 00015 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 00016 Boston, MA 02110-1301, USA. 00017 */ 00018 00019 00020 #ifndef KASSISTANTDIALOG_H 00021 #define KASSISTANTDIALOG_H 00022 00023 #include <kpagedialog.h> 00024 00054 class KDEUI_EXPORT KAssistantDialog : public KPageDialog 00055 { 00056 Q_OBJECT 00057 public: 00064 explicit KAssistantDialog(QWidget *parent=0, Qt::WFlags flags=0); 00065 virtual ~KAssistantDialog(); 00066 00076 void setValid(KPageWidgetItem* page, bool enable); 00077 00083 bool isValid(KPageWidgetItem *page) const; 00084 00099 void setAppropriate(KPageWidgetItem *page, bool appropriate); 00100 00106 bool isAppropriate(KPageWidgetItem *page) const; 00107 00108 00109 public Q_SLOTS: 00116 virtual void back(); 00117 00124 virtual void next(); 00125 00126 protected: 00136 explicit KAssistantDialog(KPageWidget *widget, QWidget *parent=0, Qt::WFlags flags=0); 00137 00138 virtual void showEvent(QShowEvent * event); 00139 00140 private: 00141 class Private; 00142 Private * const d; 00143 00144 Q_PRIVATE_SLOT( d, void _k_slotUpdateButtons() ) 00145 00146 Q_DISABLE_COPY( KAssistantDialog ) 00147 }; 00148 00149 00150 #endif
KDE 4.6 API Reference