File indexing completed on 2024-05-12 16:35:15
0001 /* This file is part of the KDE project 0002 Copyright 2002-2003 Norbert Andres <nandres@web.de> 0003 Copyright 2002 Philipp Mueller <philipp.mueller@gmx.de> 0004 Copyright 2002 John Dailey <dailey@vt.edu> 0005 Copyright 1999-2001 Laurent Montel <montel@kde.org> 0006 Copyright 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_ADD_NAMED_AREA_DIALOG 0025 #define CALLIGRA_SHEETS_ADD_NAMED_AREA_DIALOG 0026 0027 #include <KoDialog.h> 0028 0029 class KLineEdit; 0030 0031 namespace Calligra 0032 { 0033 namespace Sheets 0034 { 0035 class Selection; 0036 0037 /** 0038 * \ingroup UI 0039 * Dialog to add a named area. 0040 */ 0041 class AddNamedAreaDialog : public KoDialog 0042 { 0043 Q_OBJECT 0044 0045 public: 0046 AddNamedAreaDialog(QWidget* parent, Selection* selection); 0047 0048 public Q_SLOTS: 0049 void slotOk(); 0050 void slotAreaNameChanged(const QString& name); 0051 0052 protected: 0053 Selection* m_selection; 0054 KLineEdit* m_areaName; 0055 }; 0056 0057 } // namespace Sheets 0058 } // namespace Calligra 0059 0060 #endif // CALLIGRA_SHEETS_ADD_NAMED_AREA_DIALOG