kspread

kspread_dlg_cons.h
1/* This file is part of the KDE project
2 Copyright (C) 2002-2003 Norbert Andres <nandres@web.de>
3 (C) 2002 Ariya Hidayat <ariya@kde.org>
4 (C) 2002 Philipp Mueller <philipp.mueller@gmx.de>
5 (C) 2002 John Dailey <dailey@vt.edu>
6 (C) 2000-2001 Werner Trobin <trobin@kde.org>
7 (C) 2000-2001 Laurent Montel <montel@kde.org>
8 (C) 1999-2002 David Faure <faure@kde.org>
9 (C) 1999 Stephan Kulow <coolo@kde.org>
10 (C) 1999 Reginald Stadlbauer <reggie@kde.org>
11 (C) 1998-1999 Torben Weis <weis@kde.org>
12
13 This library is free software; you can redistribute it and/or
14 modify it under the terms of the GNU Library General Public
15 License as published by the Free Software Foundation; either
16 version 2 of the License, or (at your option) any later version.
17
18 This library is distributed in the hope that it will be useful,
19 but WITHOUT ANY WARRANTY; without even the implied warranty of
20 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
21 Library General Public License for more details.
22
23 You should have received a copy of the GNU Library General Public License
24 along with this library; see the file COPYING.LIB. If not, write to
25 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
26 * Boston, MA 02110-1301, USA.
27*/
28
29#ifndef __kspread_dlg_cons__
30#define __kspread_dlg_cons__
31
32#include <tqstringlist.h>
33#include <kdialogbase.h>
34
35class TQLineEdit;
36class TQPushButton;
37class TQComboBox;
38class TQCheckBox;
39class TQListBox;
40
41namespace KSpread
42{
43class Sheet;
44class View;
45
46class ConsolidateDialog : public KDialogBase
47{
48 TQ_OBJECT
49
50public:
51 ConsolidateDialog( View* parent, const char* name );
52 ~ConsolidateDialog();
53 TQStringList refs();
54
55public slots:
56 virtual void slotOk();
57 virtual void slotCancel();
58 void slotAdd();
59 void slotRemove();
60
61 void slotSelectionChanged();
62 void slotReturnPressed();
63
64protected:
65 virtual void closeEvent ( TQCloseEvent * );
66
67 View* m_pView;
68 TQLineEdit* m_pRef;
69 TQListBox* m_pRefs;
70 TQComboBox* m_pFunction;
71 TQPushButton* m_pAdd;
72 TQPushButton* m_pRemove;
73 TQCheckBox* m_pRow;
74 TQCheckBox* m_pCol;
75 TQCheckBox* m_pCopy;
76
77 TQString evaluate( const TQString& formula, Sheet* sheet );
78
79 enum { Sum = 0, Average, Count, Max, Min, Product, StdDev, Var };
80};
81
82} // namespace KSpread
83
84#endif
The KSpread namespace.
Definition commands.h:39