summaryrefslogtreecommitdiffstats
path: root/python/pykde/sip/kspell2
diff options
context:
space:
mode:
Diffstat (limited to 'python/pykde/sip/kspell2')
-rw-r--r--python/pykde/sip/kspell2/backgroundchecker.sip68
-rw-r--r--python/pykde/sip/kspell2/broker.sip62
-rw-r--r--python/pykde/sip/kspell2/configdialog.sip49
-rw-r--r--python/pykde/sip/kspell2/configwidget.sip54
-rw-r--r--python/pykde/sip/kspell2/defaultdictionary.sip60
-rw-r--r--python/pykde/sip/kspell2/dialog.sip61
-rw-r--r--python/pykde/sip/kspell2/dictionary.sip57
-rw-r--r--python/pykde/sip/kspell2/filter.sip87
-rw-r--r--python/pykde/sip/kspell2/highlighter.sip54
-rw-r--r--python/pykde/sip/kspell2/kspell2mod.sip.in48
-rw-r--r--python/pykde/sip/kspell2/settings.sip63
11 files changed, 663 insertions, 0 deletions
diff --git a/python/pykde/sip/kspell2/backgroundchecker.sip b/python/pykde/sip/kspell2/backgroundchecker.sip
new file mode 100644
index 00000000..56ab44c9
--- /dev/null
+++ b/python/pykde/sip/kspell2/backgroundchecker.sip
@@ -0,0 +1,68 @@
+//
+// Copyright 2004 Jim Bublitz <jbublitz@nwinternet.com>
+// Earlier copyrights 1998 - 2003 Jim Bublitz and/or Phil Thompson
+// may also apply
+
+
+// Generated by preSip
+// module kspell2 version KDE_3_3_0
+
+
+// This software 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.
+//
+// This software is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public
+// License along with this library; see the file COPYING.
+// If not, write to the Free Software Foundation, Inc.,
+// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+
+%If ( KDE_3_3_0 - )
+namespace KSpell2
+{
+
+class BackgroundChecker : QObject
+{
+%TypeHeaderCode
+#include <backgroundchecker.h>
+%End
+
+public:
+ BackgroundChecker (const Broker::Ptr&, QObject* = 0, const char* = 0);
+ void checkText (const QString&);
+ KSpell2::Filter* filter () const;
+ KSpell2::Broker* broker () const;
+ void changeLanguage (const QString&);
+ bool checkWord (const QString&);
+ QStringList suggest (const QString&) const;
+
+public slots:
+ virtual void setFilter (KSpell2::Filter*);
+ virtual void start ();
+ virtual void stop ();
+ virtual void continueChecking ();
+
+signals:
+ void misspelling (const QString&, int);
+ void done ();
+
+protected:
+ virtual QString getMoreText ();
+ virtual void finishedCurrentFeed ();
+
+protected slots:
+ void slotEngineDone ();
+
+}; // class BackgroundChecker
+
+}; // namespace KSpell2
+
+%End
+
diff --git a/python/pykde/sip/kspell2/broker.sip b/python/pykde/sip/kspell2/broker.sip
new file mode 100644
index 00000000..fce46354
--- /dev/null
+++ b/python/pykde/sip/kspell2/broker.sip
@@ -0,0 +1,62 @@
+//
+// Copyright 2004 Jim Bublitz <jbublitz@nwinternet.com>
+// Earlier copyrights 1998 - 2003 Jim Bublitz and/or Phil Thompson
+// may also apply
+
+
+// Generated by preSip
+// module kspell2 version KDE_3_3_0
+
+
+// This software 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.
+//
+// This software is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public
+// License along with this library; see the file COPYING.
+// If not, write to the Free Software Foundation, Inc.,
+// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+
+%If ( KDE_3_3_0 - )
+namespace KSpell2
+{
+
+class Broker : QObject, KShared
+{
+%TypeHeaderCode
+#include <broker.h>
+%End
+
+public:
+ typedef KSharedPtr<Broker> Ptr;
+ static KSpell2::Broker* openBroker (KSharedConfig* = 0);
+
+public:
+ KSpell2::DefaultDictionary* defaultDictionary () const;
+ KSpell2::Dictionary* dictionary (const QString& = QString ::null , const QString& = QString ::null ) const;
+ QStringList clients () const;
+ QStringList languages () const;
+ KSpell2::Settings* settings () const;
+
+signals:
+ void configurationChanged ();
+
+protected:
+ void changed ();
+
+private:
+ Broker (KSharedConfig*);
+
+}; // class Broker
+
+}; // namespace KSpell2
+
+%End
+
diff --git a/python/pykde/sip/kspell2/configdialog.sip b/python/pykde/sip/kspell2/configdialog.sip
new file mode 100644
index 00000000..27581de0
--- /dev/null
+++ b/python/pykde/sip/kspell2/configdialog.sip
@@ -0,0 +1,49 @@
+//
+// Copyright 2004 Jim Bublitz <jbublitz@nwinternet.com>
+// Earlier copyrights 1998 - 2003 Jim Bublitz and/or Phil Thompson
+// may also apply
+
+
+// Generated by preSip
+// module kspell2 version KDE_3_3_0
+
+
+// This software 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.
+//
+// This software is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public
+// License along with this library; see the file COPYING.
+// If not, write to the Free Software Foundation, Inc.,
+// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+
+%If ( KDE_3_3_0 - )
+namespace KSpell2
+{
+
+class ConfigDialog : KDialogBase
+{
+%TypeHeaderCode
+#include <configdialog.h>
+%End
+
+public:
+ ConfigDialog (KSpell2::Broker*, QWidget*);
+
+protected slots:
+ virtual void slotOk ();
+ virtual void slotApply ();
+
+}; // class ConfigDialog
+
+}; // namespace KSpell2
+
+%End
+
diff --git a/python/pykde/sip/kspell2/configwidget.sip b/python/pykde/sip/kspell2/configwidget.sip
new file mode 100644
index 00000000..459c5692
--- /dev/null
+++ b/python/pykde/sip/kspell2/configwidget.sip
@@ -0,0 +1,54 @@
+//
+// Copyright 2004 Jim Bublitz <jbublitz@nwinternet.com>
+// Earlier copyrights 1998 - 2003 Jim Bublitz and/or Phil Thompson
+// may also apply
+
+
+// Generated by preSip
+// module kspell2 version KDE_3_3_0
+
+
+// This software 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.
+//
+// This software is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public
+// License along with this library; see the file COPYING.
+// If not, write to the Free Software Foundation, Inc.,
+// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+
+%If ( KDE_3_3_0 - )
+namespace KSpell2
+{
+
+class ConfigWidget : QWidget
+{
+%TypeHeaderCode
+#include <configwidget.h>
+%End
+
+public:
+ ConfigWidget (KSpell2::Broker*, QWidget*, const char* = 0);
+ bool backgroundCheckingButtonShown () const;
+
+public slots:
+ void save ();
+ void setBackgroundCheckingButtonShown (bool);
+ void slotDefault ();
+
+protected slots:
+ void slotChanged ();
+
+}; // class ConfigWidget
+
+}; // namespace KSpell2
+
+%End
+
diff --git a/python/pykde/sip/kspell2/defaultdictionary.sip b/python/pykde/sip/kspell2/defaultdictionary.sip
new file mode 100644
index 00000000..f57ffbce
--- /dev/null
+++ b/python/pykde/sip/kspell2/defaultdictionary.sip
@@ -0,0 +1,60 @@
+//
+// Copyright 2004 Jim Bublitz <jbublitz@nwinternet.com>
+// Earlier copyrights 1998 - 2003 Jim Bublitz and/or Phil Thompson
+// may also apply
+
+
+// Generated by preSip
+// module kspell2 version KDE_3_3_0
+
+
+// This software 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.
+//
+// This software is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public
+// License along with this library; see the file COPYING.
+// If not, write to the Free Software Foundation, Inc.,
+// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+
+%If ( KDE_3_3_0 - )
+namespace KSpell2
+{
+
+class DefaultDictionary : QObject, KSpell2::Dictionary
+{
+%TypeHeaderCode
+#include <defaultdictionary.h>
+%End
+
+public:
+ DefaultDictionary (const QString&, KSpell2::Broker*);
+
+public:
+ bool isValid () const;
+ virtual bool check (const QString&);
+ virtual QStringList suggest (const QString&);
+ virtual bool checkAndSuggest (const QString&, QStringList&);
+ virtual bool storeReplacement (const QString&, const QString&);
+ virtual bool addToPersonal (const QString&);
+ virtual bool addToSession (const QString&);
+
+signals:
+ void changed ();
+
+protected slots:
+ void defaultConfigurationChanged ();
+
+}; // class DefaultDictionary
+
+}; // namespace KSpell2
+
+%End
+
diff --git a/python/pykde/sip/kspell2/dialog.sip b/python/pykde/sip/kspell2/dialog.sip
new file mode 100644
index 00000000..448a4283
--- /dev/null
+++ b/python/pykde/sip/kspell2/dialog.sip
@@ -0,0 +1,61 @@
+//
+// Copyright 2004 Jim Bublitz <jbublitz@nwinternet.com>
+// Earlier copyrights 1998 - 2003 Jim Bublitz and/or Phil Thompson
+// may also apply
+
+
+// Generated by preSip
+// module kspell2 version KDE_3_3_0
+
+
+// This software 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.
+//
+// This software is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public
+// License along with this library; see the file COPYING.
+// If not, write to the Free Software Foundation, Inc.,
+// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+
+%If ( KDE_3_3_0 - )
+namespace KSpell2
+{
+
+class Dialog : KDialogBase
+{
+%TypeHeaderCode
+#include <dialog.h>
+%End
+
+public:
+ Dialog (KSpell2::BackgroundChecker*, QWidget*, const char* = 0);
+ QString originalBuffer () const;
+ QString buffer () const;
+ void show ();
+ void activeAutoCorrect (bool);
+
+public slots:
+ void setBuffer (const QString&);
+ void setFilter (KSpell2::Filter*);
+
+signals:
+ void done (const QString&);
+ void misspelling (const QString&, int);
+ void replace (const QString&, int, const QString&);
+ void stop ();
+ void cancel ();
+ void autoCorrect (const QString&, const QString&);
+
+}; // class Dialog
+
+}; // namespace KSpell2
+
+%End
+
diff --git a/python/pykde/sip/kspell2/dictionary.sip b/python/pykde/sip/kspell2/dictionary.sip
new file mode 100644
index 00000000..b5b7ce05
--- /dev/null
+++ b/python/pykde/sip/kspell2/dictionary.sip
@@ -0,0 +1,57 @@
+//
+// Copyright 2004 Jim Bublitz <jbublitz@nwinternet.com>
+// Earlier copyrights 1998 - 2003 Jim Bublitz and/or Phil Thompson
+// may also apply
+
+
+// Generated by preSip
+// module kspell2 version KDE_3_3_0
+
+
+// This software 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.
+//
+// This software is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public
+// License along with this library; see the file COPYING.
+// If not, write to the Free Software Foundation, Inc.,
+// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+
+%If ( KDE_3_3_0 - )
+namespace KSpell2
+{
+
+class Dictionary
+{
+%TypeHeaderCode
+#include <dictionary.h>
+%End
+
+public:
+ virtual bool check (const QString&) = 0;
+ virtual QStringList suggest (const QString&) = 0;
+ virtual bool checkAndSuggest (const QString&, QStringList&) = 0;
+ virtual bool storeReplacement (const QString&, const QString&) = 0;
+ virtual bool addToPersonal (const QString&) = 0;
+ virtual bool addToSession (const QString&) = 0;
+ QString language () const;
+ bool isDefault () const;
+
+protected:
+ Dictionary (const QString&, bool = 0);
+
+protected:
+
+}; // class Dictionary
+
+}; // namespace KSpell2
+
+%End
+
diff --git a/python/pykde/sip/kspell2/filter.sip b/python/pykde/sip/kspell2/filter.sip
new file mode 100644
index 00000000..915ba463
--- /dev/null
+++ b/python/pykde/sip/kspell2/filter.sip
@@ -0,0 +1,87 @@
+//
+// Copyright 2004 Jim Bublitz <jbublitz@nwinternet.com>
+// Earlier copyrights 1998 - 2003 Jim Bublitz and/or Phil Thompson
+// may also apply
+
+
+// Generated by preSip
+// module kspell2 version KDE_3_3_0
+
+
+// This software 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.
+//
+// This software is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public
+// License along with this library; see the file COPYING.
+// If not, write to the Free Software Foundation, Inc.,
+// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+
+%If ( KDE_3_3_0 - )
+namespace KSpell2
+{
+
+class Word
+{
+%TypeHeaderCode
+#include <filter.h>
+%End
+
+public:
+ Word ();
+ Word (const QString&, int, bool = 0);
+ Word (const KSpell2::Word&);
+ QString word;
+ uint start;
+ bool end;
+
+}; // class Word
+
+
+class Filter
+{
+%TypeHeaderCode
+#include <filter.h>
+%End
+
+public:
+ static KSpell2::Filter* defaultFilter ();
+
+public:
+ Filter ();
+ static KSpell2::Word end ();
+ void setSettings (KSpell2::Settings*);
+ KSpell2::Settings* settings () const;
+ bool atEnd () const;
+ void setBuffer (const QString&);
+ QString buffer () const;
+ void restart ();
+ virtual KSpell2::Word nextWord () const;
+ virtual KSpell2::Word previousWord () const;
+ virtual KSpell2::Word wordAtPosition (uint) const;
+ virtual void setCurrentPosition (int);
+ virtual int currentPosition () const;
+ virtual void replace (const KSpell2::Word&, const QString&);
+ virtual QString context () const;
+
+protected:
+ bool trySkipLinks () const;
+ bool ignore (const QString&) const;
+ QChar skipToLetter (uint&) const;
+ bool shouldBeSkipped (bool, bool, const QString&) const;
+
+protected:
+
+}; // class Filter
+
+}; // namespace KSpell2
+
+%End
+
diff --git a/python/pykde/sip/kspell2/highlighter.sip b/python/pykde/sip/kspell2/highlighter.sip
new file mode 100644
index 00000000..b64814af
--- /dev/null
+++ b/python/pykde/sip/kspell2/highlighter.sip
@@ -0,0 +1,54 @@
+//
+// Copyright 2004 Jim Bublitz <jbublitz@nwinternet.com>
+// Earlier copyrights 1998 - 2003 Jim Bublitz and/or Phil Thompson
+// may also apply
+
+
+// Generated by preSip
+// module kspell2 version KDE_3_3_0
+
+
+// This software 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.
+//
+// This software is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public
+// License along with this library; see the file COPYING.
+// If not, write to the Free Software Foundation, Inc.,
+// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+
+%If ( KDE_3_3_0 - )
+namespace KSpell2
+{
+
+class Highlighter : QSyntaxHighlighter
+{
+%TypeHeaderCode
+#include <highlighter.h>
+%End
+
+public:
+ Highlighter (QTextEdit*, const QString& = QString ::null , KSpell2::Filter* = Filter ::defaultFilter ());
+ virtual int highlightParagraph (const QString&, int);
+ KSpell2::Filter* currentFilter () const;
+ void setCurrentFilter (KSpell2::Filter*);
+ QString currentLanguage () const;
+ void setCurrentLanguage (const QString&);
+
+protected:
+ virtual void setMisspelled (int, int);
+ virtual void unsetMisspelled (int, int);
+
+}; // class Highlighter
+
+}; // namespace KSpell2
+
+%End
+
diff --git a/python/pykde/sip/kspell2/kspell2mod.sip.in b/python/pykde/sip/kspell2/kspell2mod.sip.in
new file mode 100644
index 00000000..c18a5155
--- /dev/null
+++ b/python/pykde/sip/kspell2/kspell2mod.sip.in
@@ -0,0 +1,48 @@
+//
+// Copyright 2004 Jim Bublitz <jbublitz@nwinternet.com>
+// Earlier copyrights 1998 - 2003 Jim Bublitz and/or Phil Thompson
+// may also apply
+
+
+// Generated by preSip
+// module kspell2 version KDE_3_3_0
+
+%Copying
+
+ This software 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.
+
+ This software is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public
+ License along with this library; see the file COPYING.
+ If not, write to the Free Software Foundation, Inc.,
+ 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+%End
+
+%Module kspell2
+
+%Import qt/qtmod.sip
+%Import qtxml/qtxmlmod.sip
+%Import dcopmod.sip
+%Import kdecoremod.sip
+%Import kdefxmod.sip
+%Import kdeuimod.sip
+
+%Include backgroundchecker.sip
+%Include broker.sip
+%Include configdialog.sip
+%Include configwidget.sip
+%Include defaultdictionary.sip
+%Include dialog.sip
+%Include dictionary.sip
+%Include filter.sip
+%Include highlighter.sip
+%Include settings.sip
+@mark@
diff --git a/python/pykde/sip/kspell2/settings.sip b/python/pykde/sip/kspell2/settings.sip
new file mode 100644
index 00000000..ded7b04e
--- /dev/null
+++ b/python/pykde/sip/kspell2/settings.sip
@@ -0,0 +1,63 @@
+//
+// Copyright 2004 Jim Bublitz <jbublitz@nwinternet.com>
+// Earlier copyrights 1998 - 2003 Jim Bublitz and/or Phil Thompson
+// may also apply
+
+
+// Generated by preSip
+// module kspell2 version KDE_3_3_0
+
+
+// This software 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.
+//
+// This software is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public
+// License along with this library; see the file COPYING.
+// If not, write to the Free Software Foundation, Inc.,
+// 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+
+%If ( KDE_3_3_0 - )
+namespace KSpell2
+{
+
+class Settings
+{
+%TypeHeaderCode
+#include <settings.h>
+%End
+
+public:
+ void setDefaultLanguage (const QString&);
+ QString defaultLanguage () const;
+ void setDefaultClient (const QString&);
+ QString defaultClient () const;
+ void setCheckUppercase (bool);
+ bool checkUppercase () const;
+ void setSkipRunTogether (bool);
+ bool skipRunTogether () const;
+ void setBackgroundCheckerEnabled (bool);
+ bool backgroundCheckerEnabled () const;
+ void setCurrentIgnoreList (const QStringList&);
+ void addWordToIgnore (const QString&);
+ QStringList currentIgnoreList () const;
+ bool ignore (const QString&);
+ void save ();
+ KSharedConfig* sharedConfig () const;
+
+private:
+ Settings (KSpell2::Broker*, KSharedConfig*);
+
+}; // class Settings
+
+}; // namespace KSpell2
+
+%End
+