From kde-commits Sun May 01 10:01:13 2005 From: Christoph Cullmann Date: Sun, 01 May 2005 10:01:13 +0000 To: kde-commits Subject: kdelibs/kate/part Message-Id: <20050501100113.A4154666 () office ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=111494171813230 CVS commit by cullmann: remove the spell config, this is kde global and the user can still switch languages in the spelling dialog M +4 -27 katedialogs.cpp 1.168 M +0 -17 katedialogs.h 1.81 M +1 -13 katedocument.cpp 1.821 --- kdelibs/kate/part/katedialogs.cpp #1.167:1.168 @@ -72,5 +72,4 @@ #include #include -#include #include #include @@ -134,26 +133,4 @@ void KateConfigPage::somethingHasChanged //END KateConfigPage -//BEGIN KateSpellConfigPage -KateSpellConfigPage::KateSpellConfigPage( QWidget* parent ) - : KateConfigPage( parent) -{ - QVBoxLayout* l = new QVBoxLayout( this ); - cPage = new KSpellConfig( this, 0L, 0L, false ); - l->addWidget( cPage ); - connect( cPage, SIGNAL( configChanged() ), this, SLOT( slotChanged() ) ); -} - -void KateSpellConfigPage::apply () -{ - // nothing changed, no need to apply stuff - if (!changed()) - return; - - m_changed = false; - // kspell - cPage->writeGlobalSettings (); -} -//END KateSpellConfigPage - //BEGIN KateIndentConfigTab const int KateIndentConfigTab::flags[] = { --- kdelibs/kate/part/katedialogs.h #1.80:1.81 @@ -63,5 +63,4 @@ class KPushButton; class KRegExpDialog; class KIntNumInput; -class KSpellConfig; class QButtonGroup; @@ -97,20 +96,4 @@ class KateConfigPage : public Kate::Conf }; -class KateSpellConfigPage : public KateConfigPage -{ - Q_OBJECT - - public: - KateSpellConfigPage( QWidget* parent ); - ~KateSpellConfigPage() {}; - - void apply(); - void reset () { ; }; - void defaults () { ; }; - - private: - KSpellConfig *cPage; -}; - class KateGotoLineDialog : public KDialogBase { --- kdelibs/kate/part/katedocument.cpp #1.820:1.821 @@ -374,5 +374,5 @@ void KateDocument::setActiveView( KateVi uint KateDocument::configPages () const { - return 11; + return 10; } @@ -409,7 +409,4 @@ KTextEditor::ConfigPage *KateDocument::c case 9: - return new KateSpellConfigPage (parent); - - case 10: return new KatePartPluginConfigPage (parent); @@ -453,7 +450,4 @@ QString KateDocument::configPageName (ui case 9: - return i18n("Spelling"); - - case 10: return i18n ("Plugins"); @@ -497,7 +491,4 @@ QString KateDocument::configPageFullName case 9: - return i18n("Spell Checker Behavior"); - - case 10: return i18n ("Plugin Manager"); @@ -541,7 +532,4 @@ QPixmap KateDocument::configPagePixmap ( case 9: - return BarIcon("spellcheck", size); - - case 10: return BarIcon("connect_established", size);