kspread

kspread_dlg_sort.h
1/* This file is part of the KDE project
2 Copyright (C) 2006 Robert Knight <robertknight@gmail.com>
3 (C) 2002-2003 Norbert Andres <nandres@web.de>
4 (C) 2002 Ariya Hidayat <ariya@kde.org>
5 (C) 2002 John Dailey <dailey@vt.edu>
6 (C) 2002 Werner Trobin <trobin@kde.org>
7 (C) 2001-2002 Philipp Mueller <philipp.mueller@gmx.de>
8 (C) 1999-2002 Laurent Montel <montel@kde.org>
9 (C) 2000 David Faure <faure@kde.org>
10 (C) 1998-2000 Torben Weis <weis@kde.org>
11
12 This library is free software; you can redistribute it and/or
13 modify it under the terms of the GNU Library General Public
14 License as published by the Free Software Foundation; either
15 version 2 of the License, or (at your option) any later version.
16
17 This library is distributed in the hope that it will be useful,
18 but WITHOUT ANY WARRANTY; without even the implied warranty of
19 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20 Library General Public License for more details.
21
22 You should have received a copy of the GNU Library General Public License
23 along with this library; see the file COPYING.LIB. If not, write to
24 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
25 * Boston, MA 02110-1301, USA.
26*/
27
28#ifndef __kspread_dlg_sort__
29#define __kspread_dlg_sort__
30
31
32#include <kdialogbase.h>
33#include <tqstringlist.h>
34
35class TQCheckBox;
36class TQComboBox;
37class TQLabel;
38class TQLineEdit;
39class TQPushButton;
40class TQRadioButton;
41class TQTabWidget;
42class TQWidget;
43
44namespace KSpread
45{
46class Sheet;
47class View;
48
49class SortDialog : public KDialogBase
50{
51 TQ_OBJECT
52
53
54 public:
55 enum Orientation
56 {
57 SortColumns=0,
58 SortRows=1
59 };
60
61 SortDialog( View * parent, const char * name = 0,
62 bool modal = false );
63 ~SortDialog();
64
65 protected:
66 Orientation guessDataOrientation();
67 TQRect sourceArea();
68
69 private slots:
70 void sortKey2textChanged( int );
71 void useCustomListsStateChanged( int );
72 void firstRowHeaderChanged( int );
73 virtual void slotOk();
74 void slotOrientationChanged(int id);
75
76 private:
77 void init();
78
79 View * m_pView;
80
81 TQStringList m_listColumn;
82 TQStringList m_listRow;
83
84 TQWidget * m_page1;
85 TQWidget * m_page2;
86
87 TQTabWidget * m_tabWidget;
88
89 TQComboBox * m_sortKey1;
90 TQComboBox * m_sortOrder1;
91 TQComboBox * m_sortKey2;
92 TQComboBox * m_sortOrder2;
93 TQComboBox * m_sortKey3;
94 TQComboBox * m_sortOrder3;
95
96 TQCheckBox * m_useCustomLists;
97 TQComboBox * m_customList;
98
99 TQRadioButton * m_sortColumn;
100 TQRadioButton * m_sortRow;
101
102 TQCheckBox * m_copyLayout;
103 TQCheckBox * m_firstRowOrColHeader;
104 TQCheckBox * m_respectCase;
105
106 /*TQComboBox * m_outputSheet;
107 TQLineEdit * m_outputCell;*/
108};
109
110} // namespace KSpread
111
112#endif
The View class displays a KSpread document.
The KSpread namespace.
Definition commands.h:39