kspread

kspread_dlg_reference.h

00001 /* This file is part of the KDE project
00002    Copyright (C) 2002-2003 Norbert Andres <nandres@web.de>
00003              (C) 2002 Ariya Hidayat <ariya@kde.org>
00004              (C) 2002 Harri Porten <porten@kde.org>
00005              (C) 2002 John Dailey <dailey@vt.edu>
00006              (C) 1999-2002 Laurent Montel <montel@kde.org>
00007              (C) 2001-2002 Philipp Mueller <philipp.mueller@gmx.de>
00008              (C) 1998-2000 Torben Weis <weis@kde.org>
00009 
00010    This library is free software; you can redistribute it and/or
00011    modify it under the terms of the GNU Library General Public
00012    License as published by the Free Software Foundation; either
00013    version 2 of the License, or (at your option) any later version.
00014 
00015    This library is distributed in the hope that it will be useful,
00016    but WITHOUT ANY WARRANTY; without even the implied warranty of
00017    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00018    Library General Public License for more details.
00019 
00020    You should have received a copy of the GNU Library General Public License
00021    along with this library; see the file COPYING.LIB.  If not, write to
00022    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00023  * Boston, MA 02110-1301, USA.
00024 */
00025 
00026 #ifndef __kspread_dlg_reference__
00027 #define __kspread_dlg_reference__
00028 
00029 #include <kdialogbase.h>
00030 
00031 class QComboBox;
00032 class QLabel;
00033 class QLineEdit;
00034 class QPushButton;
00035 class QListBox;
00036 class QListBoxItem;
00037 
00038 namespace KSpread
00039 {
00040 class View;
00041 
00042 class reference: public QDialog
00043 {
00044   Q_OBJECT
00045 public:
00046   reference( View* parent, const char* name );
00047 
00048 
00049 public slots:
00050   void slotOk();
00051   void slotCancel();
00052   void slotDoubleClicked(QListBoxItem *);
00053   void slotRemove();
00054   void slotEdit();
00055   void slotHighlighted(QListBoxItem *);
00056 protected:
00057   View * m_pView;
00058 
00059   QListBox    * m_list;
00060   QPushButton * m_pOk;
00061   QPushButton * m_pCancel;
00062   QPushButton * m_pEdit;
00063   QPushButton * m_pRemove;
00064   QLabel      * m_rangeName;
00065 
00066 private:
00067   void displayAreaValues(QString const & areaName);
00068 };
00069 
00070 class EditAreaName : public KDialogBase
00071 {
00072     Q_OBJECT
00073 
00074 public:
00075     EditAreaName( View * parent, const char * name,
00076                          QString const & areaname );
00077     ~EditAreaName();
00078 
00079 public slots:
00080   virtual void slotOk();
00081 
00082 private:
00083     View * m_pView;
00084 
00085     QLineEdit   * m_area;
00086     QComboBox   * m_sheets;
00087     QLabel      * m_areaName;
00088 };
00089 
00090 } // namespace KSpread
00091 
00092 #endif
KDE Home | KDE Accessibility Home | Description of Access Keys