kspread Library API Documentation

kspread_dlg_reference.h

00001 /* This file is part of the KDE project
00002    Copyright (C) 2002-2003 Norbert Andres <nandres@web.de>
00003              (C) 2002 Ariya Hidayat <ariya@kde.org>
00004              (C) 2002 Harri Porten <porten@kde.org>
00005              (C) 2002 John Dailey <dailey@vt.edu>
00006              (C) 1999-2002 Laurent Montel <montel@kde.org>
00007              (C) 2001-2002 Philipp Mueller <philipp.mueller@gmx.de>
00008              (C) 1998-2000 Torben Weis <weis@kde.org>
00009 
00010    This library is free software; you can redistribute it and/or
00011    modify it under the terms of the GNU Library General Public
00012    License as published by the Free Software Foundation; either
00013    version 2 of the License, or (at your option) any later version.
00014 
00015    This library is distributed in the hope that it will be useful,
00016    but WITHOUT ANY WARRANTY; without even the implied warranty of
00017    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00018    Library General Public License for more details.
00019 
00020    You should have received a copy of the GNU Library General Public License
00021    along with this library; see the file COPYING.LIB.  If not, write to
00022    the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
00023    Boston, MA 02111-1307, USA.
00024 */
00025 
00026 #ifndef __kspread_dlg_reference__
00027 #define __kspread_dlg_reference__
00028 
00029 #include <kdialogbase.h>
00030 
00031 class QComboBox;
00032 class QLabel;
00033 class QLineEdit;
00034 class QPushButton;
00035 class QListBox;
00036 class QListBoxItem;
00037 
00038 class KSpreadView;
00039 
00040 class KSpreadreference: public QDialog
00041 {
00042   Q_OBJECT
00043 public:
00044   KSpreadreference( KSpreadView* parent, const char* name );
00045 
00046 
00047 public slots:
00048   void slotOk();
00049   void slotCancel();
00050   void slotDoubleClicked(QListBoxItem *);
00051   void slotRemove();
00052   void slotEdit();
00053   void slotHighlighted(QListBoxItem *);
00054 protected:
00055   KSpreadView * m_pView;
00056 
00057   QListBox    * m_list;
00058   QPushButton * m_pOk;
00059   QPushButton * m_pCancel;
00060   QPushButton * m_pEdit;
00061   QPushButton * m_pRemove;
00062   QLabel      * m_rangeName;
00063 
00064 private:
00065   void displayAreaValues(QString const & areaName);
00066 };
00067 
00068 class KSpreadEditAreaName : public KDialogBase
00069 {
00070     Q_OBJECT
00071 
00072 public:
00073     KSpreadEditAreaName( KSpreadView * parent, const char * name,
00074                          QString const & areaname );
00075     ~KSpreadEditAreaName();
00076 
00077 public slots:
00078   virtual void slotOk();
00079 
00080 private:
00081     KSpreadView * m_pView;
00082 
00083     QLineEdit   * m_area;
00084     QComboBox   * m_sheets;
00085     QLabel      * m_areaName;
00086 };
00087 
00088 #endif
KDE Logo
This file is part of the documentation for kspread Library Version 1.4.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Mon Feb 13 09:43:02 2006 by doxygen 1.4.2 written by Dimitri van Heesch, © 1997-2003