diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-16 09:06:37 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-16 09:06:37 +0000 |
commit | 39d98386f72c65826e162e3e8fd36752ec469252 (patch) | |
tree | 5cec746207c4c892d064beafca1de94568a3aeb9 /sip/kspell2 | |
download | pytde-39d98386f72c65826e162e3e8fd36752ec469252.tar.gz pytde-39d98386f72c65826e162e3e8fd36752ec469252.zip |
Move python-kde3 to the more correct python-trinity
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/libraries/python-trinity@1247483 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'sip/kspell2')
-rw-r--r-- | sip/kspell2/backgroundchecker.sip | 68 | ||||
-rw-r--r-- | sip/kspell2/broker.sip | 62 | ||||
-rw-r--r-- | sip/kspell2/configdialog.sip | 49 | ||||
-rw-r--r-- | sip/kspell2/configwidget.sip | 54 | ||||
-rw-r--r-- | sip/kspell2/defaultdictionary.sip | 60 | ||||
-rw-r--r-- | sip/kspell2/dialog.sip | 61 | ||||
-rw-r--r-- | sip/kspell2/dictionary.sip | 57 | ||||
-rw-r--r-- | sip/kspell2/filter.sip | 87 | ||||
-rw-r--r-- | sip/kspell2/highlighter.sip | 54 | ||||
-rw-r--r-- | sip/kspell2/kspell2mod.sip.in | 48 | ||||
-rw-r--r-- | sip/kspell2/settings.sip | 63 |
11 files changed, 663 insertions, 0 deletions
diff --git a/sip/kspell2/backgroundchecker.sip b/sip/kspell2/backgroundchecker.sip new file mode 100644 index 0000000..8efd997 --- /dev/null +++ b/sip/kspell2/backgroundchecker.sip @@ -0,0 +1,68 @@ +// +// Copyright 2004 Jim Bublitz <[email protected]> +// 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., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, 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/sip/kspell2/broker.sip b/sip/kspell2/broker.sip new file mode 100644 index 0000000..4f880e1 --- /dev/null +++ b/sip/kspell2/broker.sip @@ -0,0 +1,62 @@ +// +// Copyright 2004 Jim Bublitz <[email protected]> +// 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., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, 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/sip/kspell2/configdialog.sip b/sip/kspell2/configdialog.sip new file mode 100644 index 0000000..19ed07e --- /dev/null +++ b/sip/kspell2/configdialog.sip @@ -0,0 +1,49 @@ +// +// Copyright 2004 Jim Bublitz <[email protected]> +// 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., +// 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*, QWidget*); + +protected slots: + virtual void slotOk (); + virtual void slotApply (); + +}; // class ConfigDialog + +}; // namespace KSpell2 + +%End + diff --git a/sip/kspell2/configwidget.sip b/sip/kspell2/configwidget.sip new file mode 100644 index 0000000..402f63b --- /dev/null +++ b/sip/kspell2/configwidget.sip @@ -0,0 +1,54 @@ +// +// Copyright 2004 Jim Bublitz <[email protected]> +// 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., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, 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/sip/kspell2/defaultdictionary.sip b/sip/kspell2/defaultdictionary.sip new file mode 100644 index 0000000..4d70d8b --- /dev/null +++ b/sip/kspell2/defaultdictionary.sip @@ -0,0 +1,60 @@ +// +// Copyright 2004 Jim Bublitz <[email protected]> +// 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., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, 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/sip/kspell2/dialog.sip b/sip/kspell2/dialog.sip new file mode 100644 index 0000000..4444f81 --- /dev/null +++ b/sip/kspell2/dialog.sip @@ -0,0 +1,61 @@ +// +// Copyright 2004 Jim Bublitz <[email protected]> +// 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., +// 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*, 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/sip/kspell2/dictionary.sip b/sip/kspell2/dictionary.sip new file mode 100644 index 0000000..0f33b56 --- /dev/null +++ b/sip/kspell2/dictionary.sip @@ -0,0 +1,57 @@ +// +// Copyright 2004 Jim Bublitz <[email protected]> +// 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., +// 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 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/sip/kspell2/filter.sip b/sip/kspell2/filter.sip new file mode 100644 index 0000000..863d355 --- /dev/null +++ b/sip/kspell2/filter.sip @@ -0,0 +1,87 @@ +// +// Copyright 2004 Jim Bublitz <[email protected]> +// 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., +// 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 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/sip/kspell2/highlighter.sip b/sip/kspell2/highlighter.sip new file mode 100644 index 0000000..0e7ea2d --- /dev/null +++ b/sip/kspell2/highlighter.sip @@ -0,0 +1,54 @@ +// +// Copyright 2004 Jim Bublitz <[email protected]> +// 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., +// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, 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/sip/kspell2/kspell2mod.sip.in b/sip/kspell2/kspell2mod.sip.in new file mode 100644 index 0000000..4517fe7 --- /dev/null +++ b/sip/kspell2/kspell2mod.sip.in @@ -0,0 +1,48 @@ +// +// Copyright 2004 Jim Bublitz <[email protected]> +// 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., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, 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/sip/kspell2/settings.sip b/sip/kspell2/settings.sip new file mode 100644 index 0000000..6b4f030 --- /dev/null +++ b/sip/kspell2/settings.sip @@ -0,0 +1,63 @@ +// +// Copyright 2004 Jim Bublitz <[email protected]> +// 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., +// 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 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 + |