kspread Library API Documentation

kspread_dlg_cons.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 Philipp Mueller <philipp.mueller@gmx.de>
00005              (C) 2002 John Dailey <dailey@vt.edu>
00006              (C) 2000-2001 Werner Trobin <trobin@kde.org>
00007              (C) 2000-2001 Laurent Montel <montel@kde.org>
00008              (C) 1999-2002 David Faure <faure@kde.org>
00009              (C) 1999 Stephan Kulow <coolo@kde.org>
00010              (C) 1999 Reginald Stadlbauer <reggie@kde.org>
00011              (C) 1998-1999 Torben Weis <weis@kde.org>
00012 
00013    This library is free software; you can redistribute it and/or
00014    modify it under the terms of the GNU Library General Public
00015    License as published by the Free Software Foundation; either
00016    version 2 of the License, or (at your option) any later version.
00017 
00018    This library is distributed in the hope that it will be useful,
00019    but WITHOUT ANY WARRANTY; without even the implied warranty of
00020    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00021    Library General Public License for more details.
00022 
00023    You should have received a copy of the GNU Library General Public License
00024    along with this library; see the file COPYING.LIB.  If not, write to
00025    the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
00026    Boston, MA 02111-1307, USA.
00027 */
00028 
00029 #ifndef __kspread_dlg_cons__
00030 #define __kspread_dlg_cons__
00031 
00032 #include <qstringlist.h>
00033 #include <kdialogbase.h>
00034 
00035 class QLineEdit;
00036 class QPushButton;
00037 class QComboBox;
00038 class QCheckBox;
00039 class QListBox;
00040 
00041 class KSpreadView;
00042 class KSpreadSheet;
00043 
00044 class KSpreadConsolidate : public KDialogBase
00045 {
00046   Q_OBJECT
00047 public:
00048   KSpreadConsolidate( KSpreadView* parent, const char* name );
00049   ~KSpreadConsolidate();
00050   QStringList refs();
00051 
00052 public slots:
00053   virtual void slotOk();
00054   virtual void slotCancel();
00055   void slotAdd();
00056   void slotRemove();
00057 
00058   void slotSelectionChanged( KSpreadSheet* _sheet, const QRect& _selection );
00059   void slotReturnPressed();
00060 
00061 protected:
00062   virtual void closeEvent ( QCloseEvent * );
00063 
00064   KSpreadView* m_pView;
00065   QLineEdit* m_pRef;
00066   QListBox* m_pRefs;
00067   QComboBox* m_pFunction;
00068   QPushButton* m_pAdd;
00069   QPushButton* m_pRemove;
00070   QCheckBox* m_pRow;
00071   QCheckBox* m_pCol;
00072   QCheckBox* m_pCopy;
00073 
00074   QString evaluate( const QString& formula, KSpreadSheet* sheet );
00075 
00076   enum { Sum = 0, Average, Count, Max, Min, Product, StdDev, Var };
00077 };
00078 
00079 #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:42:54 2006 by doxygen 1.4.2 written by Dimitri van Heesch, © 1997-2003