kspread

kspread_dlg_sort.h

00001 /* This file is part of the KDE project
00002    Copyright (C) 2006 Robert Knight <robertknight@gmail.com>
00003              (C) 2002-2003 Norbert Andres <nandres@web.de>
00004              (C) 2002 Ariya Hidayat <ariya@kde.org>
00005              (C) 2002 John Dailey <dailey@vt.edu>
00006              (C) 2002 Werner Trobin <trobin@kde.org>
00007              (C) 2001-2002 Philipp Mueller <philipp.mueller@gmx.de>
00008              (C) 1999-2002 Laurent Montel <montel@kde.org>
00009              (C) 2000 David Faure <faure@kde.org>
00010              (C) 1998-2000 Torben Weis <weis@kde.org>
00011 
00012    This library is free software; you can redistribute it and/or
00013    modify it under the terms of the GNU Library General Public
00014    License as published by the Free Software Foundation; either
00015    version 2 of the License, or (at your option) any later version.
00016 
00017    This library is distributed in the hope that it will be useful,
00018    but WITHOUT ANY WARRANTY; without even the implied warranty of
00019    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00020    Library General Public License for more details.
00021 
00022    You should have received a copy of the GNU Library General Public License
00023    along with this library; see the file COPYING.LIB.  If not, write to
00024    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00025  * Boston, MA 02110-1301, USA.
00026 */
00027 
00028 #ifndef __kspread_dlg_sort__
00029 #define __kspread_dlg_sort__
00030 
00031 
00032 #include <kdialogbase.h>
00033 #include <qstringlist.h>
00034 
00035 class QCheckBox;
00036 class QComboBox;
00037 class QLabel;
00038 class QLineEdit;
00039 class QPushButton;
00040 class QRadioButton;
00041 class QTabWidget;
00042 class QWidget;
00043 
00044 namespace KSpread
00045 {
00046 class Sheet;
00047 class View;
00048 
00049 class SortDialog : public KDialogBase
00050 {
00051   Q_OBJECT
00052 
00053  public:
00054   enum Orientation
00055   {
00056     SortColumns=0,
00057     SortRows=1
00058   };
00059   
00060   SortDialog( View * parent, const char * name = 0,
00061                   bool modal = false );
00062   ~SortDialog();
00063  
00064  protected:
00065     Orientation guessDataOrientation();
00066     QRect       sourceArea();
00067  
00068  private slots:
00069   void sortKey2textChanged( int );
00070   void useCustomListsStateChanged( int );
00071   void firstRowHeaderChanged( int );
00072   virtual void slotOk();
00073   void slotOrientationChanged(int id);
00074 
00075  private:
00076   void init();
00077 
00078   View  * m_pView;
00079 
00080   QStringList    m_listColumn;
00081   QStringList    m_listRow;
00082 
00083   QWidget      * m_page1;
00084   QWidget      * m_page2;
00085 
00086   QTabWidget   * m_tabWidget;
00087 
00088   QComboBox    * m_sortKey1;
00089   QComboBox    * m_sortOrder1;
00090   QComboBox    * m_sortKey2;
00091   QComboBox    * m_sortOrder2;
00092   QComboBox    * m_sortKey3;
00093   QComboBox    * m_sortOrder3;
00094 
00095   QCheckBox    * m_useCustomLists;
00096   QComboBox    * m_customList;
00097 
00098   QRadioButton * m_sortColumn;
00099   QRadioButton * m_sortRow;
00100 
00101   QCheckBox    * m_copyLayout;
00102   QCheckBox    * m_firstRowOrColHeader;
00103   QCheckBox    * m_respectCase;
00104 
00105   /*QComboBox    * m_outputSheet;
00106   QLineEdit    * m_outputCell;*/
00107 };
00108 
00109 } // namespace KSpread
00110 
00111 #endif
KDE Home | KDE Accessibility Home | Description of Access Keys