28
28
#ifndef KSPREAD_SORT_DIALOG
29
29
#define KSPREAD_SORT_DIALOG
33
#include <QStringList>
33
class QTableWidgetItem;
41
* Dialog to set options for the sort cell values command.
50
43
class SortDialog : public KDialog
60
explicit SortDialog(QWidget* parent, Selection* selection);
47
SortDialog(QWidget* parent, Selection* selection);
64
Orientation guessDataOrientation();
68
void sortKey2textChanged(int);
69
void useCustomListsStateChanged(int);
70
void firstRowHeaderChanged(int);
71
virtual void slotOk();
72
void slotOrientationChanged(int id);
50
public Q_SLOTS: // reimplementations
51
virtual void accept();
52
virtual void slotButtonClicked(int button);
77
Selection * m_selection;
79
QStringList m_listColumn;
80
QStringList m_listRow;
85
KTabWidget * m_tabWidget;
87
KComboBox * m_sortKey1;
88
KComboBox * m_sortOrder1;
89
KComboBox * m_sortKey2;
90
KComboBox * m_sortOrder2;
91
KComboBox * m_sortKey3;
92
KComboBox * m_sortOrder3;
94
QCheckBox * m_useCustomLists;
95
KComboBox * m_customList;
97
QRadioButton * m_sortColumn;
98
QRadioButton * m_sortRow;
100
QCheckBox * m_copyLayout;
101
QCheckBox * m_firstRowOrColHeader;
102
QCheckBox * m_respectCase;
104
/*KComboBox * m_outputSheet;
105
KLineEdit * m_outputCell;*/
58
void useHeaderChanged(bool);
59
void orientationChanged(bool horizontal);
60
void itemActivated(QTableWidgetItem *item);
61
void itemSelectionChanged();
63
void removeCriterion();
64
void moveCriterionUp();
65
void moveCriterionDown();
108
72
} // namespace KSpread