Diffstat (limited to 'noncore/apps/opie-sheet/sortdlg.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/opie-sheet/sortdlg.h | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/noncore/apps/opie-sheet/sortdlg.h b/noncore/apps/opie-sheet/sortdlg.h new file mode 100644 index 0000000..2c99f02 --- a/dev/null +++ b/noncore/apps/opie-sheet/sortdlg.h | |||
@@ -0,0 +1,45 @@ | |||
1 | #ifndef SORTDLG_H | ||
2 | #define SORTDLG_H | ||
3 | |||
4 | #include <qdialog.h> | ||
5 | #include <qtabwidget.h> | ||
6 | #include <qlayout.h> | ||
7 | #include <qcombobox.h> | ||
8 | #include <qcheckbox.h> | ||
9 | #include <qpushbutton.h> | ||
10 | #include <qvbuttongroup.h> | ||
11 | #include "sheet.h" | ||
12 | |||
13 | class SortDialog: public QDialog | ||
14 | { | ||
15 | Q_OBJECT | ||
16 | |||
17 | // QT objects | ||
18 | QBoxLayout *box; | ||
19 | QTabWidget *tabs; | ||
20 | QWidget *widgetSort, *widgetOptions; | ||
21 | QVButtonGroup *groupOrderA, *groupOrderB, *groupOrderC, *groupDirection; | ||
22 | QCheckBox *checkCase; | ||
23 | QComboBox *comboFieldA, *comboFieldB, *comboFieldC; | ||
24 | |||
25 | // Other objects & variables | ||
26 | int row1, col1, row2, col2, direction; | ||
27 | Sheet *sheet; | ||
28 | |||
29 | // Private functions | ||
30 | QVButtonGroup *createOrderButtons(int y); | ||
31 | QComboBox *createFieldCombo(const QString &caption, int y); | ||
32 | void fillFieldCombo(QComboBox *combo); | ||
33 | int compareItems(QTableItem *item1, QTableItem *item2, int descending=0, bool caseSensitive=TRUE); | ||
34 | |||
35 | private slots: | ||
36 | void directionChanged(int id); | ||
37 | |||
38 | public: | ||
39 | SortDialog(QWidget *parent=0); | ||
40 | ~SortDialog(); | ||
41 | |||
42 | int exec(Sheet *s); | ||
43 | }; | ||
44 | |||
45 | #endif | ||