1
/***************************************************************************
4
--------------------------------------------------------------------
5
Copyright : (C) 2006 by Ion Vasilief, Tilman Benkert
6
Email (use @ for *) : ion_vasilief*yahoo.fr, thzs*gmx.net
7
Description : Sorting options dialog
9
***************************************************************************/
11
/***************************************************************************
13
* This program is free software; you can redistribute it and/or modify *
14
* it under the terms of the GNU General Public License as published by *
15
* the Free Software Foundation; either version 2 of the License, or *
16
* (at your option) any later version. *
18
* This program is distributed in the hope that it will be useful, *
19
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
20
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
21
* GNU General Public License for more details. *
23
* You should have received a copy of the GNU General Public License *
24
* along with this program; if not, write to the Free Software *
25
* Foundation, Inc., 51 Franklin Street, Fifth Floor, *
26
* Boston, MA 02110-1301 USA *
28
***************************************************************************/
29
#ifndef FUTURE_SORTDIALOG_H
30
#define FUTURE_SORTDIALOG_H
32
#include "core/column/Column.h"
40
//! Sorting options dialog
41
class SortDialog : public QDialog
46
SortDialog( QWidget* parent = 0, Qt::WFlags fl = 0 );
47
void setColumnsList(QList<Column*> list);
49
enum { Separately=0, Together=1 };
50
enum { Ascending=0, Descending=1 };
54
void changeType(int index);
57
void sort(Column *leading, QList<Column*> cols, bool ascending);
60
QList<Column*> d_columns_list;
62
QPushButton* button_ok;
63
QPushButton* button_close;
64
QPushButton* button_help;
67
QComboBox *columns_list;