kspread

kspread_dlg_validity.h
1/* This file is part of the KDE project
2 Copyright (C) 2002-2003 Norbert Andres <nandres@web.de>
3 (C) 2002 John Dailey <dailey@vt.edu>
4 (C) 2001-2002 Philipp Mueller <philipp.mueller@gmx.de>
5 (C) 1999-2005 Laurent Montel <montel@kde.org>
6 (C) 1998-1999 Torben Weis <weis@kde.org>
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Library General Public
10 License as published by the Free Software Foundation; either
11 version 2 of the License, or (at your option) any later version.
12
13 This library is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 Library General Public License for more details.
17
18 You should have received a copy of the GNU Library General Public License
19 along with this library; see the file COPYING.LIB. If not, write to
20 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
21 * Boston, MA 02110-1301, USA.
22*/
23
24#ifndef __kspread_dlg_validity__
25#define __kspread_dlg_validity__
26
27#include <kdialogbase.h>
28
29#include "kspread_cell.h"
30
31class TQLabel;
32class TQLineEdit;
33class TQTextEdit;
34class TQComboBox;
35class TQPushButton;
36class TQCheckBox;
37
38namespace KSpread
39{
40class Sheet;
41class View;
42
43class DlgValidity : public KDialogBase
44{
45 TQ_OBJECT
46
47public:
48DlgValidity(View* parent, const char* name ,const TQRect &_marker );
49void init();
50
51public slots:
52 void OkPressed();
53 void clearAllPressed();
54 void changeIndexCond(int);
55 void changeIndexType(int);
56protected:
57 void displayOrNotListOfValidity( bool _displayList);
58
59 View* m_pView;
60 TQRect marker;
61 TQLineEdit *val_max;
62 TQLineEdit *val_min;
63 TQLabel *edit1;
64 TQLabel *edit2;
65 TQComboBox *choose;
66 TQComboBox *chooseAction;
67 TQComboBox *chooseType;
68 TQLineEdit * title;
69 TQTextEdit *message;
70 Validity result;
71 TQCheckBox *displayMessage;
72 TQCheckBox *allowEmptyCell;
73 TQCheckBox *displayHelp;
74 TQTextEdit *messageHelp;
75 TQLineEdit *titleHelp;
76 TQTextEdit *validityList;
77 TQLabel *validityLabelList;
78};
79
80} // namespace KSpread
81
82#endif
The View class displays a KSpread document.
The KSpread namespace.
Definition commands.h:39