Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

SortDialog Class Reference

#include </home/clem/local/src/opie/noncore/apps/opie-sheet/sortdlg.h>

Collaboration diagram for SortDialog:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 SortDialog (QWidget *parent=0)
 ~SortDialog ()
int exec (Sheet *s)

Private Slots

void directionChanged (int id)

Private Member 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 Attributes

QBoxLayout * box
QTabWidget * tabs
QWidget * widgetSort
QWidget * widgetOptions
QVButtonGroup * groupOrderA
QVButtonGroup * groupOrderB
QVButtonGroup * groupOrderC
QVButtonGroup * groupDirection
QCheckBox * checkCase
QComboBox * comboFieldA
QComboBox * comboFieldB
QComboBox * comboFieldC
int row1
int col1
int row2
int col2
int direction
Sheetsheet

Constructor & Destructor Documentation

SortDialog::SortDialog QWidget *  parent = 0  ) 
 

Definition at line 41 of file sortdlg.cpp.

References box, checkCase, comboFieldA, comboFieldB, comboFieldC, createFieldCombo(), createOrderButtons(), directionChanged(), groupDirection, groupOrderA, groupOrderB, groupOrderC, tabs, tr, TRUE, widgetOptions, and widgetSort.

SortDialog::~SortDialog  ) 
 

Definition at line 78 of file sortdlg.cpp.


Member Function Documentation

int SortDialog::compareItems QTableItem *  item1,
QTableItem *  item2,
int  descending = 0,
bool  caseSensitive = TRUE
[private]
 

Definition at line 201 of file sortdlg.cpp.

Referenced by exec().

QComboBox * SortDialog::createFieldCombo const QString caption,
int  y
[private]
 

Definition at line 81 of file sortdlg.cpp.

References FALSE, and widgetSort.

Referenced by SortDialog().

QVButtonGroup * SortDialog::createOrderButtons int  y  )  [private]
 

Definition at line 91 of file sortdlg.cpp.

References tr, and widgetSort.

Referenced by SortDialog().

void SortDialog::directionChanged int  id  )  [private, slot]
 

Definition at line 101 of file sortdlg.cpp.

References comboFieldA, comboFieldB, comboFieldC, direction, and fillFieldCombo().

Referenced by SortDialog().

int SortDialog::exec Sheet s  ) 
 

Definition at line 120 of file sortdlg.cpp.

References checkCase, col, col1, col2, comboFieldA, comboFieldB, comboFieldC, compareItems(), direction, FALSE, fillFieldCombo(), QString::find(), Sheet::getHeaderColumn(), Sheet::getSelection(), groupOrderA, groupOrderB, groupOrderC, i, QString::mid(), row, row1, row2, sheet, Sheet::swapCells(), QString::toInt(), tr, TRUE, and warning().

Referenced by MainWindow::slotDataSort().

void SortDialog::fillFieldCombo QComboBox *  combo  )  [private]
 

Definition at line 109 of file sortdlg.cpp.

References col, col1, col2, direction, Sheet::getHeaderString(), QString::number(), row, row1, and row2.

Referenced by directionChanged(), and exec().


Member Data Documentation

QBoxLayout* SortDialog::box [private]
 

Definition at line 50 of file sortdlg.h.

Referenced by SortDialog().

QCheckBox* SortDialog::checkCase [private]
 

Definition at line 57 of file sortdlg.h.

Referenced by exec(), and SortDialog().

int SortDialog::col1 [private]
 

Definition at line 61 of file sortdlg.h.

Referenced by exec(), and fillFieldCombo().

int SortDialog::col2 [private]
 

Definition at line 61 of file sortdlg.h.

Referenced by exec(), and fillFieldCombo().

QComboBox* SortDialog::comboFieldA [private]
 

Definition at line 58 of file sortdlg.h.

Referenced by directionChanged(), exec(), and SortDialog().

QComboBox * SortDialog::comboFieldB [private]
 

Definition at line 58 of file sortdlg.h.

Referenced by directionChanged(), exec(), and SortDialog().

QComboBox * SortDialog::comboFieldC [private]
 

Definition at line 58 of file sortdlg.h.

Referenced by directionChanged(), exec(), and SortDialog().

int SortDialog::direction [private]
 

Definition at line 61 of file sortdlg.h.

Referenced by directionChanged(), exec(), and fillFieldCombo().

QVButtonGroup * SortDialog::groupDirection [private]
 

Definition at line 56 of file sortdlg.h.

Referenced by SortDialog().

QVButtonGroup* SortDialog::groupOrderA [private]
 

Definition at line 56 of file sortdlg.h.

Referenced by exec(), and SortDialog().

QVButtonGroup * SortDialog::groupOrderB [private]
 

Definition at line 56 of file sortdlg.h.

Referenced by exec(), and SortDialog().

QVButtonGroup * SortDialog::groupOrderC [private]
 

Definition at line 56 of file sortdlg.h.

Referenced by exec(), and SortDialog().

int SortDialog::row1 [private]
 

Definition at line 61 of file sortdlg.h.

Referenced by exec(), and fillFieldCombo().

int SortDialog::row2 [private]
 

Definition at line 61 of file sortdlg.h.

Referenced by exec(), and fillFieldCombo().

Sheet* SortDialog::sheet [private]
 

Definition at line 62 of file sortdlg.h.

Referenced by exec().

QTabWidget* SortDialog::tabs [private]
 

Definition at line 54 of file sortdlg.h.

Referenced by SortDialog().

QWidget * SortDialog::widgetOptions [private]
 

Definition at line 55 of file sortdlg.h.

Referenced by SortDialog().

QWidget* SortDialog::widgetSort [private]
 

Definition at line 55 of file sortdlg.h.

Referenced by createFieldCombo(), createOrderButtons(), and SortDialog().


The documentation for this class was generated from the following files:
Generated on Sat Nov 5 17:52:14 2005 for OPIE by  doxygen 1.4.2