kaddressbook
stylepage.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 #ifndef STYLEPAGE_H
00026 #define STYLEPAGE_H
00027
00028 #include <qwidget.h>
00029
00030 #include <kabc/addressbook.h>
00031 #include <kabc/field.h>
00032
00033 class QLabel;
00034 class QPixmap;
00035 class QRadioButton;
00036 class KComboBox;
00037
00038 class StylePage : public QWidget
00039 {
00040 Q_OBJECT
00041
00042 public:
00043 StylePage( KABC::AddressBook *ab, QWidget* parent = 0, const char* name = 0 );
00044 ~StylePage();
00045
00050 void setPreview( const QPixmap &pixmap );
00051
00055 void addStyleName( const QString &name );
00056
00060 void clearStyleNames();
00061
00065 void setSortField( KABC::Field *field );
00066
00070 KABC::Field* sortField();
00071
00075 void setSortAscending( bool value = true );
00076
00080 bool sortAscending();
00081
00082 signals:
00087 void styleChanged( int index );
00088
00089 private:
00090 void initGUI();
00091 void initFieldCombo();
00092
00093 KComboBox *mFieldCombo;
00094 KComboBox *mSortTypeCombo;
00095 KComboBox *mStyleCombo;
00096 QLabel *mPreview;
00097
00098 KABC::AddressBook *mAddressBook;
00099 KABC::Field::List mFields;
00100 };
00101
00102 #endif // STYLEPAGE_H
|