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 <tqwidget.h>
00029
00030 #include <tdeabc/addressbook.h>
00031 #include <tdeabc/field.h>
00032
00033 class TQLabel;
00034 class TQPixmap;
00035 class TQRadioButton;
00036 class KComboBox;
00037
00038 class StylePage : public TQWidget
00039 {
00040 Q_OBJECT
00041
00042
00043 public:
00044 StylePage( TDEABC::AddressBook *ab, TQWidget* parent = 0, const char* name = 0 );
00045 ~StylePage();
00046
00051 void setPreview( const TQPixmap &pixmap );
00052
00056 void addStyleName( const TQString &name );
00057
00061 void clearStyleNames();
00062
00066 void setSortField( TDEABC::Field *field );
00067
00071 TDEABC::Field* sortField();
00072
00076 void setSortAscending( bool value = true );
00077
00081 bool sortAscending();
00082
00083 signals:
00088 void styleChanged( int index );
00089
00090 private:
00091 void initGUI();
00092 void initFieldCombo();
00093
00094 KComboBox *mFieldCombo;
00095 KComboBox *mSortTypeCombo;
00096 KComboBox *mStyleCombo;
00097 TQLabel *mPreview;
00098
00099 TDEABC::AddressBook *mAddressBook;
00100 TDEABC::Field::List mFields;
00101 };
00102
00103 #endif // STYLEPAGE_H
|