kitchensync

groupconfigdialog.cpp
1 /*
2  This file is part of KitchenSync.
3 
4  Copyright (c) 2005 Cornelius Schumacher <schumacher@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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19 */
20 
21 #include "groupconfigdialog.h"
22 
23 #include "groupconfig.h"
24 
25 #include <tdelocale.h>
26 
27 #include <tqlayout.h>
28 
29 GroupConfigDialog::GroupConfigDialog( TQWidget *parent, SyncProcess *process )
30  : KDialogBase( parent, 0, true, i18n("Configure Synchronization Group"),
31  Ok )
32 {
33  TQFrame *topFrame = makeMainWidget();
34 
35  TQBoxLayout *topLayout = new TQVBoxLayout( topFrame );
36 
37  mConfigWidget = new GroupConfig( topFrame );
38  topLayout->addWidget( mConfigWidget );
39 
40  mConfigWidget->setSyncProcess( process );
41 
42  setInitialSize( configDialogSize( "size_groupconfigdialog" ) );
43 }
44 
45 GroupConfigDialog::~GroupConfigDialog()
46 {
47  saveDialogSize( "size_groupconfigdialog" );
48 }
49 
50 void GroupConfigDialog::slotOk()
51 {
52  mConfigWidget->saveConfig();
53 
54  accept();
55 }
56 
57 #include "groupconfigdialog.moc"