summaryrefslogtreecommitdiffstats
path: root/sip/tdespell2
diff options
context:
space:
mode:
Diffstat (limited to 'sip/tdespell2')
-rw-r--r--sip/tdespell2/backgroundchecker.sip68
-rw-r--r--sip/tdespell2/broker.sip62
-rw-r--r--sip/tdespell2/configdialog.sip49
-rw-r--r--sip/tdespell2/configwidget.sip54
-rw-r--r--sip/tdespell2/defaultdictionary.sip60
-rw-r--r--sip/tdespell2/dialog.sip61
-rw-r--r--sip/tdespell2/dictionary.sip57
-rw-r--r--sip/tdespell2/filter.sip87
-rw-r--r--sip/tdespell2/highlighter.sip54
-rw-r--r--sip/tdespell2/settings.sip63
-rw-r--r--sip/tdespell2/tdespell2mod.sip.in48
11 files changed, 663 insertions, 0 deletions
diff --git a/sip/tdespell2/backgroundchecker.sip b/sip/tdespell2/backgroundchecker.sip
new file mode 100644
index 0000000..6002c3a
--- /dev/null
+++ b/sip/tdespell2/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 tdespell2 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.,
+// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+
+
+%If ( KDE_3_3_0 - )
+namespace KSpell2
+{
+
+class BackgroundChecker : TQObject
+{
+%TypeHeaderCode
+#include <backgroundchecker.h>
+%End
+
+public:
+ BackgroundChecker (const Broker::Ptr&, TQObject* = 0, const char* = 0);
+ void checkText (const TQString&);
+ KSpell2::Filter* filter () const;
+ KSpell2::Broker* broker () const;
+ void changeLanguage (const TQString&);
+ bool checkWord (const TQString&);
+ TQStringList suggest (const TQString&) const;
+
+public slots:
+ virtual void setFilter (KSpell2::Filter*);
+ virtual void start ();
+ virtual void stop ();
+ virtual void continueChecking ();
+
+signals:
+ void misspelling (const TQString&, int);
+ void done ();
+
+protected:
+ virtual TQString getMoreText ();
+ virtual void finishedCurrentFeed ();
+
+protected slots:
+ void slotEngineDone ();
+
+}; // class BackgroundChecker
+
+}; // namespace KSpell2
+
+%End
+
diff --git a/sip/tdespell2/broker.sip b/sip/tdespell2/broker.sip
new file mode 100644
index 0000000..b506f3c
--- /dev/null
+++ b/sip/tdespell2/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 tdespell2 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.,
+// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+
+
+%If ( KDE_3_3_0 - )
+namespace KSpell2
+{
+
+class Broker : TQObject, 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 TQString& = TQString ::null , const TQString& = TQString ::null ) const;
+ TQStringList clients () const;
+ TQStringList languages () const;
+ KSpell2::Settings* settings () const;
+
+signals:
+ void configurationChanged ();
+
+protected:
+ void changed ();
+
+private:
+ Broker (KSharedConfig*);
+
+}; // class Broker
+
+}; // namespace KSpell2
+
+%End
+
diff --git a/sip/tdespell2/configdialog.sip b/sip/tdespell2/configdialog.sip
new file mode 100644
index 0000000..b13da2b
--- /dev/null
+++ b/sip/tdespell2/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 tdespell2 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.,
+// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+
+
+%If ( KDE_3_3_0 - )
+namespace KSpell2
+{
+
+class ConfigDialog : KDialogBase
+{
+%TypeHeaderCode
+#include <configdialog.h>
+%End
+
+public:
+ ConfigDialog (KSpell2::Broker*, TQWidget*);
+
+protected slots:
+ virtual void slotOk ();
+ virtual void slotApply ();
+
+}; // class ConfigDialog
+
+}; // namespace KSpell2
+
+%End
+
diff --git a/sip/tdespell2/configwidget.sip b/sip/tdespell2/configwidget.sip
new file mode 100644
index 0000000..a86b5d5
--- /dev/null
+++ b/sip/tdespell2/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 tdespell2 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.,
+// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+
+
+%If ( KDE_3_3_0 - )
+namespace KSpell2
+{
+
+class ConfigWidget : TQWidget
+{
+%TypeHeaderCode
+#include <configwidget.h>
+%End
+
+public:
+ ConfigWidget (KSpell2::Broker*, TQWidget*, 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/sip/tdespell2/defaultdictionary.sip b/sip/tdespell2/defaultdictionary.sip
new file mode 100644
index 0000000..ae803c4
--- /dev/null
+++ b/sip/tdespell2/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 tdespell2 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.,
+// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+
+
+%If ( KDE_3_3_0 - )
+namespace KSpell2
+{
+
+class DefaultDictionary : TQObject, KSpell2::Dictionary
+{
+%TypeHeaderCode
+#include <defaultdictionary.h>
+%End
+
+public:
+ DefaultDictionary (const TQString&, KSpell2::Broker*);
+
+public:
+ bool isValid () const;
+ virtual bool check (const TQString&);
+ virtual TQStringList suggest (const TQString&);
+ virtual bool checkAndSuggest (const TQString&, TQStringList&);
+ virtual bool storeReplacement (const TQString&, const TQString&);
+ virtual bool addToPersonal (const TQString&);
+ virtual bool addToSession (const TQString&);
+
+signals:
+ void changed ();
+
+protected slots:
+ void defaultConfigurationChanged ();
+
+}; // class DefaultDictionary
+
+}; // namespace KSpell2
+
+%End
+
diff --git a/sip/tdespell2/dialog.sip b/sip/tdespell2/dialog.sip
new file mode 100644
index 0000000..33b7d47
--- /dev/null
+++ b/sip/tdespell2/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 tdespell2 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.,
+// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+
+
+%If ( KDE_3_3_0 - )
+namespace KSpell2
+{
+
+class Dialog : KDialogBase
+{
+%TypeHeaderCode
+#include <dialog.h>
+%End
+
+public:
+ Dialog (KSpell2::BackgroundChecker*, TQWidget*, const char* = 0);
+ TQString originalBuffer () const;
+ TQString buffer () const;
+ void show ();
+ void activeAutoCorrect (bool);
+
+public slots:
+ void setBuffer (const TQString&);
+ void setFilter (KSpell2::Filter*);
+
+signals:
+ void done (const TQString&);
+ void misspelling (const TQString&, int);
+ void replace (const TQString&, int, const TQString&);
+ void stop ();
+ void cancel ();
+ void autoCorrect (const TQString&, const TQString&);
+
+}; // class Dialog
+
+}; // namespace KSpell2
+
+%End
+
diff --git a/sip/tdespell2/dictionary.sip b/sip/tdespell2/dictionary.sip
new file mode 100644
index 0000000..5293390
--- /dev/null
+++ b/sip/tdespell2/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 tdespell2 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.,
+// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+
+
+%If ( KDE_3_3_0 - )
+namespace KSpell2
+{
+
+class Dictionary
+{
+%TypeHeaderCode
+#include <dictionary.h>
+%End
+
+public:
+ virtual bool check (const TQString&) = 0;
+ virtual TQStringList suggest (const TQString&) = 0;
+ virtual bool checkAndSuggest (const TQString&, TQStringList&) = 0;
+ virtual bool storeReplacement (const TQString&, const TQString&) = 0;
+ virtual bool addToPersonal (const TQString&) = 0;
+ virtual bool addToSession (const TQString&) = 0;
+ TQString language () const;
+ bool isDefault () const;
+
+protected:
+ Dictionary (const TQString&, bool = 0);
+
+protected:
+
+}; // class Dictionary
+
+}; // namespace KSpell2
+
+%End
+
diff --git a/sip/tdespell2/filter.sip b/sip/tdespell2/filter.sip
new file mode 100644
index 0000000..d720a17
--- /dev/null
+++ b/sip/tdespell2/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 tdespell2 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.,
+// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+
+
+%If ( KDE_3_3_0 - )
+namespace KSpell2
+{
+
+class Word
+{
+%TypeHeaderCode
+#include <filter.h>
+%End
+
+public:
+ Word ();
+ Word (const TQString&, int, bool = 0);
+ Word (const KSpell2::Word&);
+ TQString 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 TQString&);
+ TQString 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 TQString&);
+ virtual TQString context () const;
+
+protected:
+ bool trySkipLinks () const;
+ bool ignore (const TQString&) const;
+ TQChar skipToLetter (uint&) const;
+ bool shouldBeSkipped (bool, bool, const TQString&) const;
+
+protected:
+
+}; // class Filter
+
+}; // namespace KSpell2
+
+%End
+
diff --git a/sip/tdespell2/highlighter.sip b/sip/tdespell2/highlighter.sip
new file mode 100644
index 0000000..45796f8
--- /dev/null
+++ b/sip/tdespell2/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 tdespell2 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.,
+// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+
+
+%If ( KDE_3_3_0 - )
+namespace KSpell2
+{
+
+class Highlighter : TQSyntaxHighlighter
+{
+%TypeHeaderCode
+#include <highlighter.h>
+%End
+
+public:
+ Highlighter (TQTextEdit*, const TQString& = TQString ::null , KSpell2::Filter* = Filter ::defaultFilter ());
+ virtual int highlightParagraph (const TQString&, int);
+ KSpell2::Filter* currentFilter () const;
+ void setCurrentFilter (KSpell2::Filter*);
+ TQString currentLanguage () const;
+ void setCurrentLanguage (const TQString&);
+
+protected:
+ virtual void setMisspelled (int, int);
+ virtual void unsetMisspelled (int, int);
+
+}; // class Highlighter
+
+}; // namespace KSpell2
+
+%End
+
diff --git a/sip/tdespell2/settings.sip b/sip/tdespell2/settings.sip
new file mode 100644
index 0000000..0c4692b
--- /dev/null
+++ b/sip/tdespell2/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 tdespell2 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.,
+// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+
+
+%If ( KDE_3_3_0 - )
+namespace KSpell2
+{
+
+class Settings
+{
+%TypeHeaderCode
+#include <settings.h>
+%End
+
+public:
+ void setDefaultLanguage (const TQString&);
+ TQString defaultLanguage () const;
+ void setDefaultClient (const TQString&);
+ TQString defaultClient () const;
+ void setCheckUppercase (bool);
+ bool checkUppercase () const;
+ void setSkipRunTogether (bool);
+ bool skipRunTogether () const;
+ void setBackgroundCheckerEnabled (bool);
+ bool backgroundCheckerEnabled () const;
+ void setCurrentIgnoreList (const TQStringList&);
+ void addWordToIgnore (const TQString&);
+ TQStringList currentIgnoreList () const;
+ bool ignore (const TQString&);
+ void save ();
+ KSharedConfig* sharedConfig () const;
+
+private:
+ Settings (KSpell2::Broker*, KSharedConfig*);
+
+}; // class Settings
+
+}; // namespace KSpell2
+
+%End
+
diff --git a/sip/tdespell2/tdespell2mod.sip.in b/sip/tdespell2/tdespell2mod.sip.in
new file mode 100644
index 0000000..1078351
--- /dev/null
+++ b/sip/tdespell2/tdespell2mod.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 tdespell2 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.,
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+
+%End
+
+%Module tdespell2
+
+%Import qt/qtmod.sip
+%Import qtxml/qtxmlmod.sip
+%Import dcopmod.sip
+%Import tdecoremod.sip
+%Import tdefxmod.sip
+%Import tdeuimod.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@