kdf
kdfconfig.h
Go to the documentation of this file.00001 /* 00002 * kdfconfig.h 00003 * 00004 * Copyright (c) 1999 Michael Kropfberger <michael.kropfberger@gmx.net> 00005 * 00006 * Requires the Qt widget libraries, available at no cost at 00007 * http://www.troll.no/ 00008 * 00009 * This program is free software; you can redistribute it and/or modify 00010 * it under the terms of the GNU General Public License as published by 00011 * the Free Software Foundation; either version 2 of the License, or 00012 * (at your option) any later version. 00013 * 00014 * This program is distributed in the hope that it will be useful, 00015 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00016 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00017 * GNU General Public License for more details. 00018 * 00019 * You should have received a copy of the GNU General Public License 00020 * along with this program; if not, write to the Free Software 00021 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 00022 */ 00023 00024 #ifndef __KDFCONFIG_H__ 00025 #define __KDFCONFIG_H__ 00026 00027 #include <QtCore/QVector> 00028 #include <QtGui/QLabel> 00029 #include <QtGui/QCloseEvent> 00030 00031 #include "stdoption.h" 00032 00033 class QCheckBox; 00034 class QLabel; 00035 class QLCDNumber; 00036 class KLineEdit; 00037 class Q3ListViewItem; 00038 class QScrollBar; 00039 00040 class CListView; 00041 00042 class KDFConfigWidget : public QWidget 00043 { 00044 Q_OBJECT 00045 00046 class CTabName 00047 { 00048 public: 00049 CTabName( const QString &res, const QString &name ) 00050 { 00051 mRes = res; 00052 mName = name; 00053 } 00054 CTabName( void ) { } 00055 ~CTabName( void ) { } 00056 00057 QString mRes; 00058 QString mName; 00059 }; 00060 00061 public: 00062 explicit KDFConfigWidget( QWidget *parent=0, bool init=false); 00063 ~KDFConfigWidget(); 00064 00065 public slots: 00066 void loadSettings( void ); 00067 void applySettings( void ); 00068 void defaultsBtnClicked( void ); 00069 00070 protected slots: 00071 void slotChanged(); 00072 00073 private slots: 00074 void toggleListText( Q3ListViewItem *item, const QPoint &, int column ); 00075 00076 protected: 00077 void closeEvent( QCloseEvent * ); 00078 00079 private: 00080 QVector<CTabName*> mTabName; 00081 CListView *mList; 00082 QScrollBar *mScroll; 00083 QLCDNumber *mLCD; 00084 KLineEdit *mFileManagerEdit; 00085 QCheckBox *mOpenMountCheck; 00086 QCheckBox *mPopupFullCheck; 00087 CStdOption mStd; 00088 00089 signals: 00090 void configChanged(); 00091 }; 00092 00093 #endif
KDE 4.2 API Reference