kpilot Library API Documentation

uiDialog.h

00001 #ifndef _KPILOT_UIDIALOG_H
00002 #define _KPILOT_UIDIALOG_H
00003 /* uiDialog.h                           KPilot
00004 **
00005 ** Copyright (C) 2001 by Dan Pilone
00006 **
00007 ** This defines a subclass of KDialogBase that handles the setup for
00008 ** KPilot -- and conduits -- configuration dialogs. It also provides
00009 ** some support for the default about-page in setup dialogs, for applications
00010 ** (like conduits) with no main window or menu.
00011 */
00012  
00013 /*
00014 ** This program is free software; you can redistribute it and/or modify
00015 ** it under the terms of the GNU Lesser General Public License as published by
00016 ** the Free Software Foundation; either version 2.1 of the License, or
00017 ** (at your option) any later version.
00018 **
00019 ** This program is distributed in the hope that it will be useful,
00020 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
00021 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
00022 ** GNU Lesser General Public License for more details.
00023 **
00024 ** You should have received a copy of the GNU Lesser General Public License
00025 ** along with this program in a file called COPYING; if not, write to
00026 ** the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston,
00027 ** MA 02111-1307, USA.
00028 */
00029  
00030 /*
00031 ** Bug reports and questions can be sent to kde-pim@kde.org
00032 */
00033 
00034 #include <kdialogbase.h>
00035 
00036 class QTabWidget;
00037 class KAboutData;
00038 
00039 class UIDialog : public KDialogBase
00040 {
00041 Q_OBJECT
00042 public:
00043         UIDialog(QWidget *parent=0L, const char *name=0L,bool modal=false);
00044         virtual ~UIDialog();
00045 
00046 protected:
00053         void addAboutPage(bool aboutbutton=false,KAboutData *data=0L);
00054 
00055 protected slots:
00056         void showAbout();
00057         virtual void slotOk();
00058 
00059 protected:
00060         virtual bool validate() { return true; } ;
00061         virtual void commitChanges() = 0;
00062 
00063         QWidget *widget() const { return fMainWidget; } ;
00064         QTabWidget *tabWidget() const { return fP; } ;
00065         void setTabWidget(QTabWidget *w);
00066 
00067 private:
00068         QWidget *fMainWidget;
00069         QTabWidget *fP;
00070 } ;
00071 
00072 #endif
KDE Logo
This file is part of the documentation for kdelibs Version 3.1.5.
Documentation copyright © 1996-2002 the KDE developers.
Generated on Sun Feb 15 11:40:45 2004 by doxygen 1.3.5 written by Dimitri van Heesch, © 1997-2001