kspread
kspread_dlg_sort.h00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028 #ifndef __kspread_dlg_sort__
00029 #define __kspread_dlg_sort__
00030
00031
00032 #include <kdialogbase.h>
00033 #include <qstringlist.h>
00034
00035 class QCheckBox;
00036 class QComboBox;
00037 class QLabel;
00038 class QLineEdit;
00039 class QPushButton;
00040 class QRadioButton;
00041 class QTabWidget;
00042 class QWidget;
00043
00044 namespace KSpread
00045 {
00046 class Sheet;
00047 class View;
00048
00049 class SortDialog : public KDialogBase
00050 {
00051 Q_OBJECT
00052
00053 public:
00054 enum Orientation
00055 {
00056 SortColumns=0,
00057 SortRows=1
00058 };
00059
00060 SortDialog( View * parent, const char * name = 0,
00061 bool modal = false );
00062 ~SortDialog();
00063
00064 protected:
00065 Orientation guessDataOrientation();
00066 QRect sourceArea();
00067
00068 private slots:
00069 void sortKey2textChanged( int );
00070 void useCustomListsStateChanged( int );
00071 void firstRowHeaderChanged( int );
00072 virtual void slotOk();
00073 void slotOrientationChanged(int id);
00074
00075 private:
00076 void init();
00077
00078 View * m_pView;
00079
00080 QStringList m_listColumn;
00081 QStringList m_listRow;
00082
00083 QWidget * m_page1;
00084 QWidget * m_page2;
00085
00086 QTabWidget * m_tabWidget;
00087
00088 QComboBox * m_sortKey1;
00089 QComboBox * m_sortOrder1;
00090 QComboBox * m_sortKey2;
00091 QComboBox * m_sortOrder2;
00092 QComboBox * m_sortKey3;
00093 QComboBox * m_sortOrder3;
00094
00095 QCheckBox * m_useCustomLists;
00096 QComboBox * m_customList;
00097
00098 QRadioButton * m_sortColumn;
00099 QRadioButton * m_sortRow;
00100
00101 QCheckBox * m_copyLayout;
00102 QCheckBox * m_firstRowOrColHeader;
00103 QCheckBox * m_respectCase;
00104
00105
00106
00107 };
00108
00109 }
00110
00111 #endif
|