kspread_dlg_cons.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
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
This file is part of the documentation for kspread Library Version 1.4.2.