kpilot Library API Documentation

conduitConfigDialog.h

00001 #ifndef _KPILOT_CONDUITCONFIGDIALOG_H 00002 #define _KPILOT_CONDUITCONFIGDIALOG_H 00003 /* conduitConfigDialog.h KPilot 00004 ** 00005 ** Copyright (C) 2001 by Dan Pilone 00006 ** 00007 ** This file defines a dialog that uses the .ui-defined widget for 00008 ** configuring conduits. 00009 */ 00010 00011 /* 00012 ** This program is free software; you can redistribute it and/or modify 00013 ** it under the terms of the GNU General Public License as published by 00014 ** the Free Software Foundation; either version 2 of the License, or 00015 ** (at your option) any later version. 00016 ** 00017 ** This program is distributed in the hope that it will be useful, 00018 ** but WITHOUT ANY WARRANTY; without even the implied warranty of 00019 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00020 ** GNU General Public License for more details. 00021 ** 00022 ** You should have received a copy of the GNU General Public License 00023 ** along with this program in a file called COPYING; if not, write to 00024 ** the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, 00025 ** MA 02111-1307, USA. 00026 */ 00027 00028 /* 00029 ** Bug reports and questions can be sent to kde-pim@kde.org 00030 */ 00031 00032 #include <qstringlist.h> 00033 #include <qhbox.h> 00034 00035 // #include "conduitConfigDialog_base.h" 00036 #include "uiDialog.h" 00037 00038 class QListView; 00039 class QListViewItem; 00040 class QPushButton; 00041 class QLabel; 00042 class QWidgetStack; 00043 class KProcess; 00044 class ConduitConfigBase; 00045 class ConduitConfig; 00046 00047 class ConduitConfigWidgetBase : public QObject 00048 { 00049 Q_OBJECT 00050 public: 00051 ConduitConfigWidgetBase(QHBox *p=0L,const char *n=0L); 00052 00053 QListView *fConduitList; 00054 QWidgetStack *fStack; 00055 QLabel *fOldStyleLabel; 00056 QPushButton *fConfigureButton; 00057 } ; 00058 00059 class ConduitConfigWidget : public ConduitConfigWidgetBase 00060 { 00061 Q_OBJECT 00062 public: 00063 ConduitConfigWidget(QHBox *, 00064 const char *name=0L, bool ownButtons=false); 00065 virtual ~ConduitConfigWidget(); 00066 00067 protected: 00068 void fillLists(); 00069 00070 void warnNoExec(const QListViewItem *); 00071 void warnNoLibrary(const QListViewItem *); 00072 00073 void loadAndConfigure(QListViewItem *); // ,bool); 00074 00075 public: 00083 bool release(); 00084 public slots: 00085 void commitChanges(); 00086 00087 signals: 00088 void selectionChanged(QListViewItem *); 00089 void sizeChanged(); 00090 00091 protected slots: 00092 void selected(QListViewItem *); 00093 void configure(); 00094 00095 private: 00096 QPushButton *fConfigure; 00097 QListViewItem *fCurrentConduit; 00098 ConduitConfigBase *fCurrentConfig; 00099 ConduitConfig *fCurrentOldStyle; 00100 QWidget *fParentWidget; 00101 } ; 00102 00103 class ConduitConfigDialog : public UIDialog 00104 { 00105 Q_OBJECT; 00106 public: 00107 ConduitConfigDialog(QWidget *,const char *,bool); 00108 virtual ~ConduitConfigDialog(); 00109 00110 protected: 00111 // These are slots in the base class 00112 virtual void commitChanges(); 00113 virtual bool validate(); 00114 protected slots: 00115 virtual void slotApply(); 00116 00117 private: 00118 ConduitConfigWidget *fConfigWidget; 00119 } ; 00120 00121 #endif
KDE Logo
This file is part of the documentation for kpilot Library Version 3.2.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Jul 28 23:57:48 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003