author | zautrix <zautrix> | 2004-06-26 19:01:18 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2004-06-26 19:01:18 (UTC) |
commit | b9aad1f15dc600e4dbe4c62d3fcced6363188ba3 (patch) (unidiff) | |
tree | 2c3d4004fb21c72cba65793859f9bcd8ffd3a49c /kaddressbook/xxportselectdialog.h | |
download | kdepimpi-b9aad1f15dc600e4dbe4c62d3fcced6363188ba3.zip kdepimpi-b9aad1f15dc600e4dbe4c62d3fcced6363188ba3.tar.gz kdepimpi-b9aad1f15dc600e4dbe4c62d3fcced6363188ba3.tar.bz2 |
Initial revision
Diffstat (limited to 'kaddressbook/xxportselectdialog.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | kaddressbook/xxportselectdialog.h | 81 |
1 files changed, 81 insertions, 0 deletions
diff --git a/kaddressbook/xxportselectdialog.h b/kaddressbook/xxportselectdialog.h new file mode 100644 index 0000000..8d56f66 --- a/dev/null +++ b/kaddressbook/xxportselectdialog.h | |||
@@ -0,0 +1,81 @@ | |||
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 | This program is free software; you can redistribute it and/or modify | ||
7 | it under the terms of the GNU General Public License as published by | ||
8 | the Free Software Foundation; either version 2 of the License, or | ||
9 | (at your option) any later version. | ||
10 | |||
11 | This program is distributed in the hope that it will be useful, | ||
12 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
14 | GNU General Public License for more details. | ||
15 | |||
16 | You should have received a copy of the GNU General Public License | ||
17 | along with this program; if not, write to the Free Software | ||
18 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | ||
19 | |||
20 | As a special exception, permission is given to link this program | ||
21 | with any edition of Qt, and distribute the resulting executable, | ||
22 | without including the source code for Qt in the source distribution. | ||
23 | */ | ||
24 | #ifndef XXPORTSELECTDIALOG_H | ||
25 | #define XXPORTSELECTDIALOG_H | ||
26 | |||
27 | #include <kabc/addresseelist.h> | ||
28 | #include <kabc/field.h> | ||
29 | #include <kdialogbase.h> | ||
30 | |||
31 | #include "filter.h" | ||
32 | |||
33 | class QButtonGroup; | ||
34 | class QComboBox; | ||
35 | class QListView; | ||
36 | class QListViewItem; | ||
37 | class QRadioButton; | ||
38 | |||
39 | class KABCore; | ||
40 | class KComboBox; | ||
41 | |||
42 | class XXPortSelectDialog : public KDialogBase | ||
43 | { | ||
44 | Q_OBJECT | ||
45 | |||
46 | public: | ||
47 | XXPortSelectDialog( KABCore *core, bool sort, QWidget* parent, | ||
48 | const char* name = 0 ); | ||
49 | |||
50 | KABC::AddresseeList contacts(); | ||
51 | |||
52 | private slots: | ||
53 | void filterChanged( int ); | ||
54 | void categoryClicked( QListViewItem * i ); | ||
55 | |||
56 | protected slots: | ||
57 | void slotHelp(); | ||
58 | |||
59 | private: | ||
60 | void initGUI(); | ||
61 | QStringList categories() const; | ||
62 | |||
63 | QButtonGroup* mButtonGroup; | ||
64 | QRadioButton* mUseCategories; | ||
65 | QRadioButton* mUseFilters; | ||
66 | QRadioButton* mUseWholeBook; | ||
67 | QRadioButton* mUseSelection; | ||
68 | QComboBox* mFiltersCombo; | ||
69 | QListView* mCategoriesView; | ||
70 | |||
71 | KComboBox *mFieldCombo; | ||
72 | KComboBox *mSortTypeCombo; | ||
73 | |||
74 | KABCore *mCore; | ||
75 | KABC::AddresseeList mAddresseeList; | ||
76 | Filter::List mFilters; | ||
77 | KABC::Field::List mFields; | ||
78 | bool mUseSorting; | ||
79 | }; | ||
80 | |||
81 | #endif | ||