Diffstat (limited to 'korganizer/kosyncprefsdialog.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | korganizer/kosyncprefsdialog.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/korganizer/kosyncprefsdialog.cpp b/korganizer/kosyncprefsdialog.cpp index 2e051f2..b7e4265 100644 --- a/korganizer/kosyncprefsdialog.cpp +++ b/korganizer/kosyncprefsdialog.cpp | |||
@@ -18,97 +18,96 @@ | |||
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 | #include <qlayout.h> | 24 | #include <qlayout.h> |
25 | #include <qlabel.h> | 25 | #include <qlabel.h> |
26 | #include <qgroupbox.h> | 26 | #include <qgroupbox.h> |
27 | #include <qbuttongroup.h> | 27 | #include <qbuttongroup.h> |
28 | #include <qlineedit.h> | 28 | #include <qlineedit.h> |
29 | #include <qfont.h> | 29 | #include <qfont.h> |
30 | #include <qslider.h> | 30 | #include <qslider.h> |
31 | #include <qfile.h> | 31 | #include <qfile.h> |
32 | #include <qtextstream.h> | 32 | #include <qtextstream.h> |
33 | #include <qcombobox.h> | 33 | #include <qcombobox.h> |
34 | #include <qvbox.h> | 34 | #include <qvbox.h> |
35 | #include <qhbox.h> | 35 | #include <qhbox.h> |
36 | #include <qspinbox.h> | 36 | #include <qspinbox.h> |
37 | #include <qdatetime.h> | 37 | #include <qdatetime.h> |
38 | #include <qcheckbox.h> | 38 | #include <qcheckbox.h> |
39 | #include <qradiobutton.h> | 39 | #include <qradiobutton.h> |
40 | #include <qpushbutton.h> | 40 | #include <qpushbutton.h> |
41 | #include <qstrlist.h> | 41 | #include <qstrlist.h> |
42 | #include <qapplication.h> | 42 | #include <qapplication.h> |
43 | 43 | ||
44 | #include <kcolorbutton.h> | 44 | #include <kcolorbutton.h> |
45 | #include <kdebug.h> | 45 | #include <kdebug.h> |
46 | #include <klocale.h> | 46 | #include <klocale.h> |
47 | #include <kglobal.h> | 47 | #include <kglobal.h> |
48 | #include <kfontdialog.h> | 48 | #include <kfontdialog.h> |
49 | #include <kmessagebox.h> | 49 | #include <kmessagebox.h> |
50 | #include <kcolordialog.h> | 50 | #include <kcolordialog.h> |
51 | #include <kiconloader.h> | 51 | #include <kiconloader.h> |
52 | #include <kemailsettings.h> | 52 | #include <kemailsettings.h> |
53 | #include <kstandarddirs.h> | 53 | #include <kstandarddirs.h> |
54 | #include <kfiledialog.h> | 54 | #include <kfiledialog.h> |
55 | #include <kmessagebox.h> | 55 | #include <kmessagebox.h> |
56 | 56 | ||
57 | #include <kurlrequester.h> | 57 | #include <kurlrequester.h> |
58 | #include <klineedit.h> | 58 | #include <klineedit.h> |
59 | #include <libkdepim/ksyncprofile.h> | 59 | #include <libkdepim/ksyncprofile.h> |
60 | 60 | ||
61 | 61 | ||
62 | #include "koprefs.h" | 62 | #include "koprefs.h" |
63 | 63 | ||
64 | #include "kosyncprefsdialog.h" | 64 | #include "kosyncprefsdialog.h" |
65 | #include "koglobals.h" | 65 | #include "koglobals.h" |
66 | #include "kosyncprefsdialog.moc" | ||
67 | 66 | ||
68 | 67 | ||
69 | KOSyncPrefsDialog::KOSyncPrefsDialog(QWidget *parent, char *name, bool modal) : | 68 | KOSyncPrefsDialog::KOSyncPrefsDialog(QWidget *parent, char *name, bool modal) : |
70 | KDialog(parent,name,true) | 69 | KDialog(parent,name,true) |
71 | { | 70 | { |
72 | 71 | ||
73 | setCaption( i18n("Synchronization Preferences")); | 72 | setCaption( i18n("Synchronization Preferences")); |
74 | 73 | ||
75 | mSyncProfiles.setAutoDelete( true ); | 74 | mSyncProfiles.setAutoDelete( true ); |
76 | setupSyncAlgTab(); | 75 | setupSyncAlgTab(); |
77 | } | 76 | } |
78 | 77 | ||
79 | 78 | ||
80 | KOSyncPrefsDialog::~KOSyncPrefsDialog() | 79 | KOSyncPrefsDialog::~KOSyncPrefsDialog() |
81 | { | 80 | { |
82 | } | 81 | } |
83 | 82 | ||
84 | #include <qlayout.h> | 83 | #include <qlayout.h> |
85 | #include <qscrollview.h> | 84 | #include <qscrollview.h> |
86 | void KOSyncPrefsDialog::setupSyncAlgTab() | 85 | void KOSyncPrefsDialog::setupSyncAlgTab() |
87 | { | 86 | { |
88 | QLabel * lab; | 87 | QLabel * lab; |
89 | //QFrame *page = addPage(i18n("Sync Prefs"),0,0); | 88 | //QFrame *page = addPage(i18n("Sync Prefs"),0,0); |
90 | QVBox * mainbox = new QVBox( this ); | 89 | QVBox * mainbox = new QVBox( this ); |
91 | QScrollView* sv = new QScrollView( mainbox ); | 90 | QScrollView* sv = new QScrollView( mainbox ); |
92 | QHBoxLayout * lay = new QHBoxLayout( this ); | 91 | QHBoxLayout * lay = new QHBoxLayout( this ); |
93 | lay->addWidget( mainbox ); | 92 | lay->addWidget( mainbox ); |
94 | QHBox * b_box = new QHBox( mainbox ); | 93 | QHBox * b_box = new QHBox( mainbox ); |
95 | 94 | ||
96 | QPushButton* button = new QPushButton( i18n("Ok"), b_box ); | 95 | QPushButton* button = new QPushButton( i18n("Ok"), b_box ); |
97 | connect ( button, SIGNAL( clicked()), this, SLOT (slotOK() ) ); | 96 | connect ( button, SIGNAL( clicked()), this, SLOT (slotOK() ) ); |
98 | button = new QPushButton( i18n("Cancel"), b_box ); | 97 | button = new QPushButton( i18n("Cancel"), b_box ); |
99 | connect ( button, SIGNAL( clicked()), this, SLOT (reject() ) ); | 98 | connect ( button, SIGNAL( clicked()), this, SLOT (reject() ) ); |
100 | //QBoxLayout * sl = new QVBoxLayout(this ); | 99 | //QBoxLayout * sl = new QVBoxLayout(this ); |
101 | //sl->addWidget ( sv ); | 100 | //sl->addWidget ( sv ); |
102 | sv->setResizePolicy ( QScrollView::AutoOneFit ); | 101 | sv->setResizePolicy ( QScrollView::AutoOneFit ); |
103 | QFrame *topFrame = new QFrame ( sv ); | 102 | QFrame *topFrame = new QFrame ( sv ); |
104 | sv->addChild( topFrame ); | 103 | sv->addChild( topFrame ); |
105 | mSetupSyncAlgTab = topFrame; | 104 | mSetupSyncAlgTab = topFrame; |
106 | QGridLayout *topLayout = new QGridLayout(topFrame,6,2); | 105 | QGridLayout *topLayout = new QGridLayout(topFrame,6,2); |
107 | topLayout->setSpacing(spacingHint()); | 106 | topLayout->setSpacing(spacingHint()); |
108 | topLayout->setMargin(marginHint()); | 107 | topLayout->setMargin(marginHint()); |
109 | 108 | ||
110 | //lab = new QLabel(i18n("Sync settings not yet implemented. DO NOT USE!"), topFrame); | 109 | //lab = new QLabel(i18n("Sync settings not yet implemented. DO NOT USE!"), topFrame); |
111 | int iii = 0; | 110 | int iii = 0; |
112 | //topLayout->addMultiCellWidget(lab , iii,iii,0,1); | 111 | //topLayout->addMultiCellWidget(lab , iii,iii,0,1); |
113 | //++iii; | 112 | //++iii; |
114 | 113 | ||