• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • tdespell2
 

tdespell2

  • tdespell2
  • ui
configdialog.cpp
1 /*
2  * configdialog.cpp
3  *
4  * Copyright (C) 2004 Zack Rusin <zack@kde.org>
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or (at your option) any later version.
10  *
11  * This library 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 GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
19  * 02110-1301 USA
20  */
21 #include "configdialog.h"
22 #include "configwidget.h"
23 
24 #include <tdelocale.h>
25 
26 #include <tqvbox.h>
27 
28 using namespace KSpell2;
29 
30 class ConfigDialog::Private
31 {
32 public:
33  ConfigWidget *ui;
34 };
35 
36 ConfigDialog::ConfigDialog( Broker *broker, TQWidget *parent )
37  : KDialogBase( parent, "KSpell2ConfigDialog", true,
38  i18n( "KSpell2 Configuration" ),
39  KDialogBase::Ok|KDialogBase::Apply|KDialogBase::Cancel,
40  KDialogBase::Ok, true )
41 {
42  init( broker );
43 }
44 
45 ConfigDialog::~ConfigDialog()
46 {
47  delete d; d = 0;
48 }
49 
50 void ConfigDialog::init( Broker *broker )
51 {
52  d = new Private;
53  TQVBox *page = makeVBoxMainWidget();
54  d->ui = new ConfigWidget( broker, page );
55 }
56 
57 void ConfigDialog::slotOk()
58 {
59  d->ui->save();
60  accept();
61 }
62 
63 void ConfigDialog::slotApply()
64 {
65  d->ui->save();
66 }
67 
68 
69 #include "configdialog.moc"
KSpell2
tdespell_hspellclient.h
Definition: backgroundchecker.h:28
KSpell2::Broker
Class used to deal with dictionaries.
Definition: broker.h:47

tdespell2

Skip menu "tdespell2"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members

tdespell2

Skip menu "tdespell2"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  •     tdecore
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  • tdeioslave
  •   http
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdespell2 by doxygen 1.8.8
This website is maintained by Timothy Pearson.