1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
|
/*
ksubscription.cpp
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software Foundation,
Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, US
*/
#include "ksubscription.h"
#include "kaccount.h"
#include <qlayout.h>
#include <qtimer.h>
#include <qlabel.h>
#include <qpushbutton.h>
#include <qheader.h>
#include <qtoolbutton.h>
#include <kseparator.h>
#include <kapplication.h>
#include <kiconloader.h>
#include <klocale.h>
#include <kdebug.h>
#include <klineedit.h>
//=============================================================================
KGroupInfo::KGroupInfo(const QString &name, const QString &description,
bool newGroup, bool subscribed,
Status status, QString path)
: name(name), description(description),
newGroup(newGroup), subscribed(subscribed),
status(status), path(path)
{
}
//-----------------------------------------------------------------------------
bool KGroupInfo::operator== (const KGroupInfo &gi2)
{
return (name == gi2.name);
}
//-----------------------------------------------------------------------------
bool KGroupInfo::operator< (const KGroupInfo &gi2)
{
return (name < gi2.name);
}
//=============================================================================
GroupItem::GroupItem( QListView *v, const KGroupInfo &gi, KSubscription* browser,
bool isCheckItem )
: QCheckListItem( v, gi.name, isCheckItem ? CheckBox : CheckBoxController ),
mInfo( gi ), mBrowser( browser ), mIsCheckItem( isCheckItem ),
mIgnoreStateChange( false )
{
if (listView()->columns() > 1)
setDescription();
}
//-----------------------------------------------------------------------------
GroupItem::GroupItem( QListViewItem *i, const KGroupInfo &gi, KSubscription* browser,
bool isCheckItem )
: QCheckListItem( i, gi.name, isCheckItem ? CheckBox : CheckBoxController ),
mInfo( gi ), mBrowser( browser ), mIsCheckItem( isCheckItem ),
mIgnoreStateChange( false )
{
if (listView()->columns() > 1)
setDescription();
}
//-----------------------------------------------------------------------------
void GroupItem::setInfo( KGroupInfo info )
{
mInfo = info;
setText(0, mInfo.name);
if (listView()->columns() > 1)
setDescription();
}
//-----------------------------------------------------------------------------
void GroupItem::setDescription()
{
setText(1, mInfo.description);
}
//-----------------------------------------------------------------------------
void GroupItem::setOn( bool on )
{
if (mBrowser->isLoading())
{
// set this only if we're loading/creating items
// otherwise changes are only permanent when the dialog is saved
mInfo.subscribed = on;
}
if (isCheckItem())
QCheckListItem::setOn(on);
}
//------------------------------------------------------------------------------
void GroupItem::stateChange( bool on )
{
// delegate to parent
if ( !mIgnoreStateChange )
mBrowser->changeItemState(this, on);
}
//------------------------------------------------------------------------------
void GroupItem::setVisible( bool b )
{
if (b)
{
QListViewItem::setVisible(b);
setEnabled(true);
}
else
{
if (isCheckItem())
{
bool setInvisible = true;
for (QListViewItem * lvchild = firstChild(); lvchild != 0;
lvchild = lvchild->nextSibling())
{
if (lvchild->isVisible()) // item has a visible child
setInvisible = false;
}
if (setInvisible)
QListViewItem::setVisible(b);
else
{
// leave it visible so that children remain visible
setOpen(true);
setEnabled(false);
}
}
else
{
// non-checkable item
QPtrList<QListViewItem> moveItems;
for (QListViewItem * lvchild = firstChild(); lvchild != 0;
lvchild = lvchild->nextSibling())
{
if (static_cast<GroupItem*>(lvchild)->isCheckItem())
{
// remember the items
moveItems.append(lvchild);
}
}
QPtrListIterator<QListViewItem> it( moveItems );
for ( ; it.current(); ++it)
{
// move the checkitem to top
QListViewItem* parent = it.current()->parent();
if (parent) parent->takeItem(it.current());
listView()->insertItem(it.current());
}
QListViewItem::setVisible(false);
}
}
}
//-----------------------------------------------------------------------------
void GroupItem::paintCell( QPainter * p, const QColorGroup & cg,
int column, int width, int align )
{
if (mIsCheckItem)
return QCheckListItem::paintCell( p, cg, column, width, align );
else
return QListViewItem::paintCell( p, cg, column, width, align );
}
//-----------------------------------------------------------------------------
void GroupItem::paintFocus( QPainter * p, const QColorGroup & cg,
const QRect & r )
{
if (mIsCheckItem)
QCheckListItem::paintFocus(p, cg, r);
else
QListViewItem::paintFocus(p, cg, r);
}
//-----------------------------------------------------------------------------
int GroupItem::width( const QFontMetrics& fm, const QListView* lv, int column) const
{
if (mIsCheckItem)
return QCheckListItem::width(fm, lv, column);
else
return QListViewItem::width(fm, lv, column);
}
//-----------------------------------------------------------------------------
void GroupItem::setup()
{
if (mIsCheckItem)
QCheckListItem::setup();
else
QListViewItem::setup();
}
//=============================================================================
KSubscription::KSubscription( QWidget *parent, const QString &caption,
KAccount * acct, int buttons, const QString &user1, bool descriptionColumn )
: KDialogBase( parent, 0, true, caption, buttons | Help | Ok | Cancel, Ok,
true, i18n("Reload &List"), user1 ),
mAcct( acct )
{
mLoading = true;
setWFlags( getWFlags() | WDestructiveClose );
// create Widgets
page = new QWidget(this);
setMainWidget(page);
QLabel *comment = new QLabel("<p>"+
i18n("Manage which mail folders you want to see in your folder view") + "</p>", page);
QToolButton *clearButton = new QToolButton( page );
clearButton->setIconSet( KGlobal::iconLoader()->loadIconSet(
KApplication::reverseLayout() ? "clear_left":"locationbar_erase", KIcon::Small, 0 ) );
filterEdit = new KLineEdit(page);
QLabel *l = new QLabel(filterEdit,i18n("S&earch:"), page);
connect( clearButton, SIGNAL( clicked() ), filterEdit, SLOT( clear() ) );
// checkboxes
noTreeCB = new QCheckBox(i18n("Disable &tree view"), page);
noTreeCB->setChecked(false);
subCB = new QCheckBox(i18n("&Subscribed only"), page);
subCB->setChecked(false);
newCB = new QCheckBox(i18n("&New only"), page);
newCB->setChecked(false);
KSeparator *sep = new KSeparator(KSeparator::HLine, page);
// init the labels
QFont fnt = font();
fnt.setBold(true);
leftLabel = new QLabel(i18n("Loading..."), page);
rightLabel = new QLabel(i18n("Current changes:"), page);
leftLabel->setFont(fnt);
rightLabel->setFont(fnt);
// icons
pmRight = BarIconSet("forward");
pmLeft = BarIconSet("back");
arrowBtn1 = new QPushButton(page);
arrowBtn1->setEnabled(false);
arrowBtn2 = new QPushButton(page);
arrowBtn2->setEnabled(false);
arrowBtn1->setIconSet(pmRight);
arrowBtn2->setIconSet(pmRight);
arrowBtn1->setFixedSize(35,30);
arrowBtn2->setFixedSize(35,30);
// the main listview
groupView = new QListView(page);
groupView->setRootIsDecorated(true);
groupView->addColumn(i18n("Name"));
groupView->setAllColumnsShowFocus(true);
if (descriptionColumn)
mDescrColumn = groupView->addColumn(i18n("Description"));
else
groupView->header()->setStretchEnabled(true, 0);
// layout
QGridLayout *topL = new QGridLayout(page,4,1,0, KDialog::spacingHint());
QHBoxLayout *filterL = new QHBoxLayout(KDialog::spacingHint());
QVBoxLayout *arrL = new QVBoxLayout(KDialog::spacingHint());
listL = new QGridLayout(2, 3, KDialog::spacingHint());
topL->addWidget(comment, 0,0);
topL->addLayout(filterL, 1,0);
topL->addWidget(sep,2,0);
topL->addLayout(listL, 3,0);
filterL->addWidget(clearButton);
filterL->addWidget(l);
filterL->addWidget(filterEdit, 1);
filterL->addWidget(noTreeCB);
filterL->addWidget(subCB);
filterL->addWidget(newCB);
listL->addWidget(leftLabel, 0,0);
listL->addWidget(rightLabel, 0,2);
listL->addWidget(groupView, 1,0);
listL->addLayout(arrL, 1,1);
listL->setRowStretch(1,1);
listL->setColStretch(0,5);
listL->setColStretch(2,2);
arrL->addWidget(arrowBtn1, AlignCenter);
arrL->addWidget(arrowBtn2, AlignCenter);
// listviews
subView = new QListView(page);
subView->addColumn(i18n("Subscribe To"));
subView->header()->setStretchEnabled(true, 0);
unsubView = new QListView(page);
unsubView->addColumn(i18n("Unsubscribe From"));
unsubView->header()->setStretchEnabled(true, 0);
QVBoxLayout *protL = new QVBoxLayout(3);
listL->addLayout(protL, 1,2);
protL->addWidget(subView);
protL->addWidget(unsubView);
// disable some widgets as long we're loading
enableButton(User1, false);
enableButton(User2, false);
newCB->setEnabled(false);
noTreeCB->setEnabled(false);
subCB->setEnabled(false);
filterEdit->setFocus();
// items clicked
connect(groupView, SIGNAL(clicked(QListViewItem *)),
this, SLOT(slotChangeButtonState(QListViewItem*)));
connect(subView, SIGNAL(clicked(QListViewItem *)),
this, SLOT(slotChangeButtonState(QListViewItem*)));
connect(unsubView, SIGNAL(clicked(QListViewItem *)),
this, SLOT(slotChangeButtonState(QListViewItem*)));
// connect buttons
connect(arrowBtn1, SIGNAL(clicked()), SLOT(slotButton1()));
connect(arrowBtn2, SIGNAL(clicked()), SLOT(slotButton2()));
connect(this, SIGNAL(user1Clicked()), SLOT(slotLoadFolders()));
// connect checkboxes
connect(subCB, SIGNAL(clicked()), SLOT(slotCBToggled()));
connect(newCB, SIGNAL(clicked()), SLOT(slotCBToggled()));
connect(noTreeCB, SIGNAL(clicked()), SLOT(slotCBToggled()));
// connect textfield
connect(filterEdit, SIGNAL(textChanged(const QString&)),
SLOT(slotFilterTextChanged(const QString&)));
// update status
connect(this, SIGNAL(listChanged()), SLOT(slotUpdateStatusLabel()));
}
//-----------------------------------------------------------------------------
KSubscription::~KSubscription()
{
}
//-----------------------------------------------------------------------------
void KSubscription::setStartItem( const KGroupInfo &info )
{
QListViewItemIterator it(groupView);
for ( ; it.current(); ++it)
{
if (static_cast<GroupItem*>(it.current())->info() == info)
{
it.current()->setSelected(true);
it.current()->setOpen(true);
}
}
}
//-----------------------------------------------------------------------------
void KSubscription::removeListItem( QListView *view, const KGroupInfo &gi )
{
if(!view) return;
QListViewItemIterator it(view);
for ( ; it.current(); ++it)
{
if (static_cast<GroupItem*>(it.current())->info() == gi)
{
delete it.current();
break;
}
}
if (view == groupView)
emit listChanged();
}
//-----------------------------------------------------------------------------
QListViewItem* KSubscription::getListItem( QListView *view, const KGroupInfo &gi )
{
if(!view) return 0;
QListViewItemIterator it(view);
for ( ; it.current(); ++it)
{
if (static_cast<GroupItem*>(it.current())->info() == gi)
return (it.current());
}
return 0;
}
//-----------------------------------------------------------------------------
bool KSubscription::itemInListView( QListView *view, const KGroupInfo &gi )
{
if(!view) return false;
QListViewItemIterator it(view);
for ( ; it.current(); ++it)
if (static_cast<GroupItem*>(it.current())->info() == gi)
return true;
return false;
}
//------------------------------------------------------------------------------
void KSubscription::setDirectionButton1( Direction dir )
{
mDirButton1 = dir;
if (dir == Left)
arrowBtn1->setIconSet(pmLeft);
else
arrowBtn1->setIconSet(pmRight);
}
//------------------------------------------------------------------------------
void KSubscription::setDirectionButton2( Direction dir )
{
mDirButton2 = dir;
if (dir == Left)
arrowBtn2->setIconSet(pmLeft);
else
arrowBtn2->setIconSet(pmRight);
}
//------------------------------------------------------------------------------
void KSubscription::changeItemState( GroupItem* item, bool on )
{
// is this a checkable item
if (!item->isCheckItem()) return;
// if we're currently loading the items ignore changes
if (mLoading) return;
if (on)
{
if (!itemInListView(unsubView, item->info()))
{
QListViewItem *p = item->parent();
while (p)
{
// make sure all parents are subscribed
GroupItem* pi = static_cast<GroupItem*>(p);
if (pi->isCheckItem() && !pi->isOn())
{
pi->setIgnoreStateChange(true);
pi->setOn(true);
pi->setIgnoreStateChange(false);
new GroupItem(subView, pi->info(), this);
}
p = p->parent();
}
new GroupItem(subView, item->info(), this);
}
// eventually remove it from the other listview
removeListItem(unsubView, item->info());
}
else {
if (!itemInListView(subView, item->info()))
{
new GroupItem(unsubView, item->info(), this);
}
// eventually remove it from the other listview
removeListItem(subView, item->info());
}
// update the buttons
slotChangeButtonState(item);
}
//------------------------------------------------------------------------------
void KSubscription::filterChanged( QListViewItem* item, const QString & text )
{
if ( !item && groupView )
item = groupView->firstChild();
if ( !item )
return;
do
{
if ( item->firstChild() ) // recursive descend
filterChanged(item->firstChild(), text);
GroupItem* gr = static_cast<GroupItem*>(item);
if (subCB->isChecked() || newCB->isChecked() || !text.isEmpty() ||
noTreeCB->isChecked())
{
// set it invisible
if ( subCB->isChecked() &&
(!gr->isCheckItem() ||
(gr->isCheckItem() && !gr->info().subscribed)) )
{
// only subscribed
gr->setVisible(false);
continue;
}
if ( newCB->isChecked() &&
(!gr->isCheckItem() ||
(gr->isCheckItem() && !gr->info().newGroup)) )
{
// only new
gr->setVisible(false);
continue;
}
if ( !text.isEmpty() &&
gr->text(0).find(text, 0, false) == -1)
{
// searchfield
gr->setVisible(false);
continue;
}
if ( noTreeCB->isChecked() &&
!gr->isCheckItem() )
{
// disable treeview
gr->setVisible(false);
continue;
}
gr->setVisible(true);
} else {
gr->setVisible(true);
}
} while ((item = item->nextSibling()));
}
//------------------------------------------------------------------------------
uint KSubscription::activeItemCount()
{
QListViewItemIterator it(groupView);
uint count = 0;
for ( ; it.current(); ++it)
{
if (static_cast<GroupItem*>(it.current())->isCheckItem() &&
it.current()->isVisible() && it.current()->isEnabled())
count++;
}
return count;
}
//------------------------------------------------------------------------------
void KSubscription::restoreOriginalParent()
{
QPtrList<QListViewItem> move;
QListViewItemIterator it(groupView);
for ( ; it.current(); ++it)
{
QListViewItem* origParent = static_cast<GroupItem*>(it.current())->
originalParent();
if (origParent && origParent != it.current()->parent())
{
// remember this to avoid messing up the iterator
move.append(it.current());
}
}
QPtrListIterator<QListViewItem> it2( move );
for ( ; it2.current(); ++it2)
{
// restore the original parent
QListViewItem* origParent = static_cast<GroupItem*>(it2.current())->
originalParent();
groupView->takeItem(it2.current());
origParent->insertItem(it2.current());
}
}
//-----------------------------------------------------------------------------
void KSubscription::saveOpenStates()
{
QListViewItemIterator it(groupView);
for ( ; it.current(); ++it)
{
static_cast<GroupItem*>(it.current())->setLastOpenState(
it.current()->isOpen() );
}
}
//-----------------------------------------------------------------------------
void KSubscription::restoreOpenStates()
{
QListViewItemIterator it(groupView);
for ( ; it.current(); ++it)
{
it.current()->setOpen(
static_cast<GroupItem*>(it.current())->lastOpenState() );
}
}
//-----------------------------------------------------------------------------
void KSubscription::slotLoadingComplete()
{
mLoading = false;
enableButton(User1, true);
enableButton(User2, true);
newCB->setEnabled(true);
noTreeCB->setEnabled(true);
subCB->setEnabled(true);
// remember the correct parent
QListViewItemIterator it(groupView);
for ( ; it.current(); ++it)
{
static_cast<GroupItem*>(it.current())->
setOriginalParent( it.current()->parent() );
}
emit listChanged();
}
//------------------------------------------------------------------------------
void KSubscription::slotChangeButtonState( QListViewItem *item )
{
if (!item ||
(item->listView() == groupView &&
!static_cast<GroupItem*>(item)->isCheckItem()))
{
// disable and return
arrowBtn1->setEnabled(false);
arrowBtn2->setEnabled(false);
return;
}
// set the direction of the buttons and enable/disable them
QListView* currentView = item->listView();
if (currentView == groupView)
{
setDirectionButton1(Right);
setDirectionButton2(Right);
if (static_cast<GroupItem*>(item)->isOn())
{
// already subscribed
arrowBtn1->setEnabled(false);
arrowBtn2->setEnabled(true);
} else {
// unsubscribed
arrowBtn1->setEnabled(true);
arrowBtn2->setEnabled(false);
}
} else if (currentView == subView)
{
// undo possible
setDirectionButton1(Left);
arrowBtn1->setEnabled(true);
arrowBtn2->setEnabled(false);
} else if (currentView == unsubView)
{
// undo possible
setDirectionButton2(Left);
arrowBtn1->setEnabled(false);
arrowBtn2->setEnabled(true);
}
}
//------------------------------------------------------------------------------
void KSubscription::slotButton1()
{
if (mDirButton1 == Right)
{
if (groupView->currentItem() &&
static_cast<GroupItem*>(groupView->currentItem())->isCheckItem())
{
// activate
GroupItem* item = static_cast<GroupItem*>(groupView->currentItem());
item->setOn(true);
}
}
else {
if (subView->currentItem())
{
GroupItem* item = static_cast<GroupItem*>(subView->currentItem());
// get the corresponding item from the groupView
QListViewItem* listitem = getListItem(groupView, item->info());
if (listitem)
{
// deactivate
GroupItem* chk = static_cast<GroupItem*>(listitem);
chk->setOn(false);
}
}
}
}
//------------------------------------------------------------------------------
void KSubscription::slotButton2()
{
if (mDirButton2 == Right)
{
if (groupView->currentItem() &&
static_cast<GroupItem*>(groupView->currentItem())->isCheckItem())
{
// deactivate
GroupItem* item = static_cast<GroupItem*>(groupView->currentItem());
item->setOn(false);
}
}
else {
if (unsubView->currentItem())
{
GroupItem* item = static_cast<GroupItem*>(unsubView->currentItem());
// get the corresponding item from the groupView
QListViewItem* listitem = getListItem(groupView, item->info());
if (listitem)
{
// activate
GroupItem* chk = static_cast<GroupItem*>(listitem);
chk->setOn(true);
}
}
}
}
//------------------------------------------------------------------------------
void KSubscription::slotCBToggled()
{
if (!noTreeCB->isChecked() && !newCB->isChecked() && !subCB->isChecked())
{
restoreOriginalParent();
}
// set items {in}visible
filterChanged(groupView->firstChild());
emit listChanged();
}
//------------------------------------------------------------------------------
void KSubscription::slotFilterTextChanged( const QString & text )
{
// remember is the items are open
if (mLastText.isEmpty())
saveOpenStates();
if (!mLastText.isEmpty() && text.length() < mLastText.length())
{
// reset
restoreOriginalParent();
QListViewItemIterator it(groupView);
for ( ; it.current(); ++it)
{
it.current()->setVisible(true);
it.current()->setEnabled(true);
}
}
// set items {in}visible
filterChanged(groupView->firstChild(), text);
// restore the open-states
if (text.isEmpty())
restoreOpenStates();
emit listChanged();
mLastText = text;
}
//------------------------------------------------------------------------------
void KSubscription::slotUpdateStatusLabel()
{
QString text;
if (mLoading)
text = i18n("Loading... (1 matching)", "Loading... (%n matching)",
activeItemCount());
else
text = i18n("%1: (1 matching)", "%1: (%n matching)", activeItemCount())
.arg(account()->name());
leftLabel->setText(text);
}
//------------------------------------------------------------------------------
void KSubscription::slotLoadFolders()
{
enableButton(User1, false);
mLoading = true;
subView->clear();
unsubView->clear();
groupView->clear();
}
#include "ksubscription.moc"
|