kaddressbook Library API Documentation

stylepage.h

00001 /* 00002 This file is part of KAddressBook. 00003 Copyright (c) 2002 Anders Lund <anders.lund@lund.tdcadsl.dk> 00004 Tobias Koenig <tokoe@kde.org> 00005 00006 This program is free software; you can redistribute it and/or modify 00007 it under the terms of the GNU General Public License as published by 00008 the Free Software Foundation; either version 2 of the License, or 00009 (at your option) any later version. 00010 00011 This program is distributed in the hope that it will be useful, 00012 but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 GNU General Public License for more details. 00015 00016 You should have received a copy of the GNU General Public License 00017 along with this program; if not, write to the Free Software 00018 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00019 00020 As a special exception, permission is given to link this program 00021 with any edition of Qt, and distribute the resulting executable, 00022 without including the source code for Qt in the source distribution. 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
KDE Logo
This file is part of the documentation for kaddressbook Library Version 3.2.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Jul 28 23:58:09 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003