summaryrefslogtreecommitdiffabout
path: root/kaddressbook/jumpbuttonbar.h
Unidiff
Diffstat (limited to 'kaddressbook/jumpbuttonbar.h') (more/less context) (show whitespace changes)
-rw-r--r--kaddressbook/jumpbuttonbar.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/kaddressbook/jumpbuttonbar.h b/kaddressbook/jumpbuttonbar.h
index d534f2b..0589812 100644
--- a/kaddressbook/jumpbuttonbar.h
+++ b/kaddressbook/jumpbuttonbar.h
@@ -5,80 +5,83 @@
5 This program is free software; you can redistribute it and/or modify 5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by 6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or 7 the Free Software Foundation; either version 2 of the License, or
8 (at your option) any later version. 8 (at your option) any later version.
9 9
10 This program is distributed in the hope that it will be useful, 10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of 11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details. 13 GNU General Public License for more details.
14 14
15 You should have received a copy of the GNU General Public License 15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the Free Software 16 along with this program; if not, write to the Free Software
17 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 17 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18 18
19 As a special exception, permission is given to link this program 19 As a special exception, permission is given to link this program
20 with any edition of Qt, and distribute the resulting executable, 20 with any edition of Qt, and distribute the resulting executable,
21 without including the source code for Qt in the source distribution. 21 without including the source code for Qt in the source distribution.
22*/ 22*/
23 23
24#ifndef JUMPBUTTONBAR_H 24#ifndef JUMPBUTTONBAR_H
25#define JUMPBUTTONBAR_H 25#define JUMPBUTTONBAR_H
26 26
27#include <qsizepolicy.h> 27#include <qsizepolicy.h>
28#include <qwidget.h> 28#include <qwidget.h>
29#include <qptrlist.h> 29#include <q3ptrlist.h>
30#include <qstringlist.h> 30#include <qstringlist.h>
31//Added by qt3to4:
32#include <QResizeEvent>
33#include <Q3GridLayout>
31 34
32class QChar; 35class QChar;
33class QGridLayout; 36class Q3GridLayout;
34class QResizeEvent; 37class QResizeEvent;
35class QPushButton; 38class QPushButton;
36class JumpButton; 39class JumpButton;
37 40
38namespace KABC { 41namespace KABC {
39class Field; 42class Field;
40} 43}
41 44
42class KABCore; 45class KABCore;
43 46
44/** 47/**
45 Used to draw the jump button bar on the right of the view. 48 Used to draw the jump button bar on the right of the view.
46 */ 49 */
47class JumpButtonBar : public QWidget 50class JumpButtonBar : public QWidget
48{ 51{
49 Q_OBJECT 52 Q_OBJECT
50 53
51 public: 54 public:
52 JumpButtonBar( KABCore *core, QWidget *parent, const char *name = 0 ); 55 JumpButtonBar( KABCore *core, QWidget *parent, const char *name = 0 );
53 ~JumpButtonBar(); 56 ~JumpButtonBar();
54 57
55 QSizePolicy sizePolicy() const; 58 QSizePolicy sizePolicy() const;
56 59
57 public slots: 60 public slots:
58 /** 61 /**
59 This method removes all buttons from the GUI and recreates them 62 This method removes all buttons from the GUI and recreates them
60 according to the current global search field and the content of 63 according to the current global search field and the content of
61 the address book. 64 the address book.
62 */ 65 */
63 void recreateButtons(); 66 void recreateButtons();
64 67
65 signals: 68 signals:
66 /** 69 /**
67 Emitted whenever a letter is selected by the user. 70 Emitted whenever a letter is selected by the user.
68 */ 71 */
69 void jumpToLetter( const QString &character ); 72 void jumpToLetter( const QString &character );
70 73
71 protected slots: 74 protected slots:
72 void letterClicked(); 75 void letterClicked();
73 76
74 private: 77 private:
75 void sortListLocaleAware( QStringList &list ); 78 void sortListLocaleAware( QStringList &list );
76 79
77 KABCore *mCore; 80 KABCore *mCore;
78 81
79 QGridLayout *mButtonLayout; 82 Q3GridLayout *mButtonLayout;
80 QStringList mCharacters; 83 QStringList mCharacters;
81 QPtrList<JumpButton> mButtons; 84 Q3PtrList<JumpButton> mButtons;
82}; 85};
83 86
84#endif 87#endif