author | thufir <thufir> | 2002-07-04 16:58:16 (UTC) |
---|---|---|
committer | thufir <thufir> | 2002-07-04 16:58:16 (UTC) |
commit | d2b982a38091cbc7cd4eba0994ab6c5e3c7f7189 (patch) (side-by-side diff) | |
tree | d1e0a5fa80a12717b46257936ee3f8bb1b3ef89e /noncore/apps/opie-sheet/sortdlg.h | |
parent | a53847b7d27938551bb4f1c8891e7bacc93143ee (diff) | |
download | opie-d2b982a38091cbc7cd4eba0994ab6c5e3c7f7189.zip opie-d2b982a38091cbc7cd4eba0994ab6c5e3c7f7189.tar.gz opie-d2b982a38091cbc7cd4eba0994ab6c5e3c7f7189.tar.bz2 |
added opie-sheet
Diffstat (limited to 'noncore/apps/opie-sheet/sortdlg.h') (more/less context) (show 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 @@ +#ifndef SORTDLG_H +#define SORTDLG_H + +#include <qdialog.h> +#include <qtabwidget.h> +#include <qlayout.h> +#include <qcombobox.h> +#include <qcheckbox.h> +#include <qpushbutton.h> +#include <qvbuttongroup.h> +#include "sheet.h" + +class SortDialog: public QDialog +{ + Q_OBJECT + + // QT objects + QBoxLayout *box; + QTabWidget *tabs; + QWidget *widgetSort, *widgetOptions; + QVButtonGroup *groupOrderA, *groupOrderB, *groupOrderC, *groupDirection; + QCheckBox *checkCase; + QComboBox *comboFieldA, *comboFieldB, *comboFieldC; + + // Other objects & variables + int row1, col1, row2, col2, direction; + Sheet *sheet; + + // Private functions + QVButtonGroup *createOrderButtons(int y); + QComboBox *createFieldCombo(const QString &caption, int y); + void fillFieldCombo(QComboBox *combo); + int compareItems(QTableItem *item1, QTableItem *item2, int descending=0, bool caseSensitive=TRUE); + + private slots: + void directionChanged(int id); + + public: + SortDialog(QWidget *parent=0); + ~SortDialog(); + + int exec(Sheet *s); +}; + +#endif |