kspread

kspread_dlg_list.h

00001 /* This file is part of the KDE project
00002    Copyright (C) 2002-2003 Ariya Hidayat <ariya@kde.org>
00003              (C) 2001-2003 Laurent Montel <montel@kde.org>
00004              (C) 1998, 1999 Torben Weis <weis@kde.org>
00005 
00006    This library is free software; you can redistribute it and/or
00007    modify it under the terms of the GNU Library General Public
00008    License as published by the Free Software Foundation; either
00009    version 2 of the License, or (at your option) any later version.
00010 
00011    This library is distributed in the hope that it will be useful,
00012    but WITHOUT ANY WARRANTY; without even the implied warranty of
00013    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014    Library General Public License for more details.
00015 
00016    You should have received a copy of the GNU Library General Public License
00017    along with this library; see the file COPYING.LIB.  If not, write to
00018    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00019  * Boston, MA 02110-1301, USA.
00020 */
00021 
00022 #ifndef __kspread_dlg_list__
00023 #define __kspread_dlg_list__
00024 
00025 #include <kdialogbase.h>
00026 
00027 class QListBox;
00028 class QListBoxItem;
00029 class QLineEdit;
00030 class QMultiLineEdit;
00031 class QPushButton;
00032 
00033 class KConfig;
00034 
00035 namespace KSpread
00036 {
00037 
00038 class ListDialog: public KDialogBase
00039 {
00040   Q_OBJECT
00041 
00042 public:
00043   ListDialog( QWidget* parent, const char* name );
00044   void init();
00045 
00046 public slots:
00047   virtual void slotOk();
00048   void slotDoubleClicked(QListBoxItem *);
00049   void slotTextClicked(QListBoxItem*);
00050   void slotRemove();
00051   void slotAdd();
00052   void slotNew();
00053   void slotModify();
00054   void slotCopy();
00055 
00056 protected:
00057   KConfig *config;
00058 
00059   QListBox * list;
00060   QMultiLineEdit *entryList;
00061   QPushButton* m_pRemove;
00062   QPushButton* m_pNew;
00063   QPushButton* m_pAdd;
00064   QPushButton* m_pModify;
00065   QPushButton* m_pCopy;
00066   bool m_bChanged;
00067 };
00068 
00069 } // namespace KSpread
00070 
00071 #endif
KDE Home | KDE Accessibility Home | Description of Access Keys