File indexing completed on 2024-05-12 16:35:27
0001 /* This file is part of the KDE project 0002 Copyright (C) 2002-2003 Norbert Andres <nandres@web.de> 0003 (C) 2002 John Dailey <dailey@vt.edu> 0004 (C) 2001-2002 Philipp Mueller <philipp.mueller@gmx.de> 0005 (C) 1999-2005 Laurent Montel <montel@kde.org> 0006 (C) 1998-1999 Torben Weis <weis@kde.org> 0007 0008 This library is free software; you can redistribute it and/or 0009 modify it under the terms of the GNU Library General Public 0010 License as published by the Free Software Foundation; either 0011 version 2 of the License, or (at your option) any later version. 0012 0013 This library is distributed in the hope that it will be useful, 0014 but WITHOUT ANY WARRANTY; without even the implied warranty of 0015 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 0016 Library General Public License for more details. 0017 0018 You should have received a copy of the GNU Library General Public License 0019 along with this library; see the file COPYING.LIB. If not, write to 0020 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 0021 Boston, MA 02110-1301, USA. 0022 */ 0023 0024 #ifndef CALLIGRA_SHEETS_VALIDITY_DIALOG 0025 #define CALLIGRA_SHEETS_VALIDITY_DIALOG 0026 0027 #include <kpagedialog.h> 0028 0029 #include "Validity.h" 0030 0031 class QLabel; 0032 class KLineEdit; 0033 class KTextEdit; 0034 class KComboBox; 0035 class QCheckBox; 0036 0037 namespace Calligra 0038 { 0039 namespace Sheets 0040 { 0041 class Selection; 0042 0043 /** 0044 * \ingroup UI 0045 * Dialog for setting cell validations. 0046 */ 0047 class ValidityDialog : public KPageDialog 0048 { 0049 Q_OBJECT 0050 0051 public: 0052 ValidityDialog(QWidget* parent, Selection* selection); 0053 void init(); 0054 0055 public Q_SLOTS: 0056 void OkPressed(); 0057 void clearAllPressed(); 0058 void changeIndexCond(int); 0059 void changeIndexType(int); 0060 0061 protected: 0062 void displayOrNotListOfValidity(bool _displayList); 0063 0064 Selection* m_selection; 0065 0066 KLineEdit *val_max; 0067 KLineEdit *val_min; 0068 QLabel *edit1; 0069 QLabel *edit2; 0070 QLabel *chooseLabel; 0071 KComboBox *choose; 0072 KComboBox *chooseAction; 0073 KComboBox *chooseType; 0074 KLineEdit * title; 0075 KTextEdit *message; 0076 QCheckBox *displayMessage; 0077 QCheckBox *allowEmptyCell; 0078 QCheckBox *displayHelp; 0079 KTextEdit *messageHelp; 0080 KLineEdit *titleHelp; 0081 KTextEdit *validityList; 0082 QLabel *validityLabelList; 0083 }; 0084 0085 } // namespace Sheets 0086 } // namespace Calligra 0087 0088 #endif // CALLIGRA_SHEETS_VALIDITY_DIALOG