• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdepim API Reference
  • KDE Home
  • Contact Us
 

kaddressbook

  • sources
  • kde-4.12
  • kdepim
  • kaddressbook
  • printing
stylepage.h
Go to the documentation of this file.
1 /*
2  This file is part of KAddressBook.
3  Copyright (c) 2002 Anders Lund <anders.lund@lund.tdcadsl.dk>
4  Tobias Koenig <tokoe@kde.org>
5 
6  Copyright (c) 2009 Laurent Montel <montel@kde.org>
7 
8  This program is free software; you can redistribute it and/or modify
9  it under the terms of the GNU General Public License as published by
10  the Free Software Foundation; either version 2 of the License, or
11  (at your option) any later version.
12 
13  This program is distributed in the hope that it will be useful,
14  but WITHOUT ANY WARRANTY; without even the implied warranty of
15  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  GNU General Public License for more details.
17 
18  You should have received a copy of the GNU General Public License along
19  with this program; if not, write to the Free Software Foundation, Inc.,
20  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21 
22  As a special exception, permission is given to link this program
23  with any edition of Qt, and distribute the resulting executable,
24  without including the source code for Qt in the source distribution.
25 */
26 
27 #ifndef STYLEPAGE_H
28 #define STYLEPAGE_H
29 
30 #include <QWidget>
31 #include "contactfields.h"
32 
33 class QLabel;
34 class QPixmap;
35 class KComboBox;
36 
37 class StylePage : public QWidget
38 {
39  Q_OBJECT
40 
41  public:
42  explicit StylePage( QWidget *parent = 0, const char *name = 0 );
43  ~StylePage();
44 
49  void setPreview( const QPixmap &pixmap );
50 
54  void addStyleName( const QString &name );
55 
59  void clearStyleNames();
60 
64  void setSortField( ContactFields::Field field );
65 
69  ContactFields::Field sortField() const;
70 
74  void setSortOrder( Qt::SortOrder sortOrder );
75 
79  Qt::SortOrder sortOrder() const;
80 
84  int printingStyle() const;
85 
89  void setPrintingStyle( int index );
90 
91  Q_SIGNALS:
96  void styleChanged( int index );
97 
98  private:
99  void initGUI();
100  void initFieldCombo();
101 
102  KComboBox *mFieldCombo;
103  KComboBox *mSortTypeCombo;
104  KComboBox *mStyleCombo;
105  QLabel *mPreview;
106 
107  ContactFields::Fields mFields;
108 };
109 
110 #endif // STYLEPAGE_H
StylePage
Definition: stylepage.h:37
contactfields.h
StylePage::setPrintingStyle
void setPrintingStyle(int index)
Returns the sort order.
Definition: stylepage.cpp:210
StylePage::StylePage
StylePage(QWidget *parent=0, const char *name=0)
Definition: stylepage.cpp:45
StylePage::setPreview
void setPreview(const QPixmap &pixmap)
Set a preview image.
Definition: stylepage.cpp:63
StylePage::printingStyle
int printingStyle() const
Returns the sort order.
Definition: stylepage.cpp:205
StylePage::styleChanged
void styleChanged(int index)
This signal is emmited when the user selects a new style in the style combo box.
StylePage::~StylePage
~StylePage()
Definition: stylepage.cpp:59
ContactFields::Fields
QVector< Field > Fields
Defines a list of Field enums.
Definition: contactfields.h:95
StylePage::setSortOrder
void setSortOrder(Qt::SortOrder sortOrder)
Sets the sort order.
Definition: stylepage.cpp:87
StylePage::addStyleName
void addStyleName(const QString &name)
Add a style name.
Definition: stylepage.cpp:72
StylePage::setSortField
void setSortField(ContactFields::Field field)
Set the sort criterion field.
Definition: stylepage.cpp:82
StylePage::clearStyleNames
void clearStyleNames()
Clear the style name list.
Definition: stylepage.cpp:77
StylePage::sortField
ContactFields::Field sortField() const
Returns the sort criterion field.
Definition: stylepage.cpp:96
StylePage::sortOrder
Qt::SortOrder sortOrder() const
Returns the sort order.
Definition: stylepage.cpp:105
ContactFields::Field
Field
Describes the standard fields that are available for every contact.
Definition: contactfields.h:33
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:55:51 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kaddressbook

Skip menu "kaddressbook"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdepim API Reference

Skip menu "kdepim API Reference"
  • akonadi_next
  • akregator
  • blogilo
  • calendarsupport
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt2
  • kjots
  • kleopatra
  • kmail
  • knode
  • knotes
  • kontact
  • korgac
  • korganizer
  • ktimetracker
  • libkdepim
  • libkleo
  • libkpgp
  • mailcommon
  • messagelist
  • messageviewer

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal