~ubuntu-branches/ubuntu/precise/koffice/precise

« back to all changes in this revision

Viewing changes to kspread/dialogs/SortDialog.h

  • Committer: Bazaar Package Importer
  • Author(s): Alessandro Ghersi
  • Date: 2010-10-27 17:52:57 UTC
  • mfrom: (0.12.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20101027175257-s04zqqk5bs8ckm9o
Tags: 1:2.2.83-0ubuntu1
* Merge with Debian git remaining changes:
 - Add build-deps on librcps-dev, opengtl-dev, libqtgtl-dev, freetds-dev,
   create-resources, libspnav-dev
 - Remove needless build-dep on libwv2-dev
 - koffice-libs recommends create-resources
 - krita recommends pstoedit
 - Keep our patches
* New upstream release 2.3 beta 3
  - Remove debian/patches fixed by upstream
  - Update install files

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
#ifndef KSPREAD_SORT_DIALOG
29
29
#define KSPREAD_SORT_DIALOG
30
30
 
31
 
 
32
 
#include <kdialog.h>
33
 
#include <QStringList>
34
 
//Added by qt3to4:
35
 
#include <QLabel>
36
 
 
37
 
class QCheckBox;
38
 
class KComboBox;
39
 
class QLabel;
40
 
class KLineEdit;
41
 
class QRadioButton;
42
 
class KTabWidget;
43
 
class QWidget;
 
31
#include <KDialog>
 
32
 
 
33
class QTableWidgetItem;
44
34
 
45
35
namespace KSpread
46
36
{
47
37
class Selection;
48
 
class Sheet;
49
38
 
 
39
/**
 
40
 * \ingroup UI
 
41
 * Dialog to set options for the sort cell values command.
 
42
 */
50
43
class SortDialog : public KDialog
51
44
{
52
45
    Q_OBJECT
53
 
 
54
46
public:
55
 
    enum Orientation {
56
 
        SortColumns = 0,
57
 
        SortRows = 1
58
 
    };
59
 
 
60
 
    explicit SortDialog(QWidget* parent, Selection* selection);
 
47
    SortDialog(QWidget* parent, Selection* selection);
61
48
    ~SortDialog();
62
49
 
63
 
protected:
64
 
    Orientation guessDataOrientation();
65
 
    QRect       sourceArea();
66
 
 
67
 
private slots:
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);
73
53
 
74
54
private:
75
55
    void init();
76
56
 
77
 
    Selection    * m_selection;
78
 
 
79
 
    QStringList    m_listColumn;
80
 
    QStringList    m_listRow;
81
 
 
82
 
    QWidget      * m_page1;
83
 
    QWidget      * m_page2;
84
 
 
85
 
    KTabWidget   * m_tabWidget;
86
 
 
87
 
    KComboBox    * m_sortKey1;
88
 
    KComboBox    * m_sortOrder1;
89
 
    KComboBox    * m_sortKey2;
90
 
    KComboBox    * m_sortOrder2;
91
 
    KComboBox    * m_sortKey3;
92
 
    KComboBox    * m_sortOrder3;
93
 
 
94
 
    QCheckBox    * m_useCustomLists;
95
 
    KComboBox    * m_customList;
96
 
 
97
 
    QRadioButton * m_sortColumn;
98
 
    QRadioButton * m_sortRow;
99
 
 
100
 
    QCheckBox    * m_copyLayout;
101
 
    QCheckBox    * m_firstRowOrColHeader;
102
 
    QCheckBox    * m_respectCase;
103
 
 
104
 
    /*KComboBox    * m_outputSheet;
105
 
    KLineEdit    * m_outputCell;*/
 
57
private Q_SLOTS:
 
58
    void useHeaderChanged(bool);
 
59
    void orientationChanged(bool horizontal);
 
60
    void itemActivated(QTableWidgetItem *item);
 
61
    void itemSelectionChanged();
 
62
    void addCriterion();
 
63
    void removeCriterion();
 
64
    void moveCriterionUp();
 
65
    void moveCriterionDown();
 
66
 
 
67
private:
 
68
    class Private;
 
69
    Private *const d;
106
70
};
107
71
 
108
72
} // namespace KSpread