From e36b30d13d1f89100fae656adfde2b52234d12b6 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Fri, 1 Feb 2013 17:25:43 -0600 Subject: Fix FTBFS --- lib/widgets/klistviewaction.cpp | 86 --------------------------------------- lib/widgets/klistviewaction.h | 56 ------------------------- lib/widgets/tdelistviewaction.cpp | 86 +++++++++++++++++++++++++++++++++++++++ lib/widgets/tdelistviewaction.h | 56 +++++++++++++++++++++++++ 4 files changed, 142 insertions(+), 142 deletions(-) delete mode 100644 lib/widgets/klistviewaction.cpp delete mode 100644 lib/widgets/klistviewaction.h create mode 100644 lib/widgets/tdelistviewaction.cpp create mode 100644 lib/widgets/tdelistviewaction.h (limited to 'lib') diff --git a/lib/widgets/klistviewaction.cpp b/lib/widgets/klistviewaction.cpp deleted file mode 100644 index 2d687027..00000000 --- a/lib/widgets/klistviewaction.cpp +++ /dev/null @@ -1,86 +0,0 @@ -/* This file is part of the KDE project - Copyright (C) 2003 Alexander Dymo - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library 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 - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ -#include "klistviewaction.h" -#include "kcomboview.h" -#include "resizablecombo.h" - -#include -#include - -#include -#include - -TDEListViewAction::~TDEListViewAction() -{ - TDEConfig *config = TDEGlobal::config(); - if (config && m_view->name()) - { - config->setGroup("TDEListViewAction"); - config->writeEntry(m_view->name(), m_view->width()); - } - delete m_view; -} - -TDEListViewAction::TDEListViewAction(KComboView *view, const TQString & text, const TDEShortcut & cut, - const TQObject * receiver, const char * slot, TDEActionCollection * parent, const char * name ): - KWidgetAction(view, text, cut, receiver, slot, parent, name), m_view(view) -{ - m_view->setDuplicatesEnabled(false); - m_view->setInsertionPolicy(KComboView::NoInsertion); - - loadComboWidth(); -} - -TDEListViewAction::TDEListViewAction( KComboView * view, const TQString & text, const TDEShortcut & cut, - const TQObject * receiver, const char * slot, TDEActionCollection * parent, const char * name, const bool /*dummy*/ ): - KWidgetAction(new ResizableCombo(view), text, cut, receiver, slot, parent, name), m_view(view) -{ - m_view->setDuplicatesEnabled(false); - m_view->setInsertionPolicy(KComboView::NoInsertion); - - loadComboWidth(); -} - -KComboView * TDEListViewAction::view( ) const -{ - return m_view; -} - -void TDEListViewAction::setToolTip( const TQString & str ) -{ - TQToolTip::remove(m_view); - TQToolTip::add(m_view, str); -} - -void TDEListViewAction::setWhatsThis( const TQString & str ) -{ - TQWhatsThis::remove(m_view); - TQWhatsThis::add(m_view, str); -} - -void TDEListViewAction::loadComboWidth( ) -{ - TDEConfig *config = TDEGlobal::config(); - if (config && m_view->name()) - { - config->setGroup("TDEListViewAction"); - m_view->setMinimumWidth(config->readNumEntry(m_view->name(), m_view->defaultWidth())); - } -} - diff --git a/lib/widgets/klistviewaction.h b/lib/widgets/klistviewaction.h deleted file mode 100644 index 703f58cf..00000000 --- a/lib/widgets/klistviewaction.h +++ /dev/null @@ -1,56 +0,0 @@ -/* This file is part of the KDE project - Copyright (C) 2003 Alexander Dymo - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License as published by the Free Software Foundation; either - version 2 of the License, or (at your option) any later version. - - This library 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 - Library General Public License for more details. - - You should have received a copy of the GNU Library General Public License - along with this library; see the file COPYING.LIB. If not, write to - the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. -*/ -#ifndef KLISTVIEWACTION_H -#define KLISTVIEWACTION_H - -#include -#include -#include - -class KComboView; - -/** -@file klistviewaction.h -Widget action with KComboView. -*/ - - -/** -Widget action with KComboView. -Can be used on toolbars. It appears as @ref ResizableCombo. -*/ -class TDEListViewAction: public KWidgetAction -{ -public: - TDEListViewAction(KComboView *view, const TQString &text, const TDEShortcut &cut, const TQObject *receiver, const char *slot, TDEActionCollection *parent, const char *name); - TDEListViewAction(KComboView *view, const TQString &text, const TDEShortcut &cut, const TQObject *receiver, const char *slot, TDEActionCollection *parent, const char *name, const bool); - - ~TDEListViewAction(); - - KComboView *view() const; - void setToolTip(const TQString & str); - void setWhatsThis(const TQString &str); - -private: - void loadComboWidth(); - - KComboView *m_view; -}; - -#endif diff --git a/lib/widgets/tdelistviewaction.cpp b/lib/widgets/tdelistviewaction.cpp new file mode 100644 index 00000000..2d687027 --- /dev/null +++ b/lib/widgets/tdelistviewaction.cpp @@ -0,0 +1,86 @@ +/* This file is part of the KDE project + Copyright (C) 2003 Alexander Dymo + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library 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 + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ +#include "klistviewaction.h" +#include "kcomboview.h" +#include "resizablecombo.h" + +#include +#include + +#include +#include + +TDEListViewAction::~TDEListViewAction() +{ + TDEConfig *config = TDEGlobal::config(); + if (config && m_view->name()) + { + config->setGroup("TDEListViewAction"); + config->writeEntry(m_view->name(), m_view->width()); + } + delete m_view; +} + +TDEListViewAction::TDEListViewAction(KComboView *view, const TQString & text, const TDEShortcut & cut, + const TQObject * receiver, const char * slot, TDEActionCollection * parent, const char * name ): + KWidgetAction(view, text, cut, receiver, slot, parent, name), m_view(view) +{ + m_view->setDuplicatesEnabled(false); + m_view->setInsertionPolicy(KComboView::NoInsertion); + + loadComboWidth(); +} + +TDEListViewAction::TDEListViewAction( KComboView * view, const TQString & text, const TDEShortcut & cut, + const TQObject * receiver, const char * slot, TDEActionCollection * parent, const char * name, const bool /*dummy*/ ): + KWidgetAction(new ResizableCombo(view), text, cut, receiver, slot, parent, name), m_view(view) +{ + m_view->setDuplicatesEnabled(false); + m_view->setInsertionPolicy(KComboView::NoInsertion); + + loadComboWidth(); +} + +KComboView * TDEListViewAction::view( ) const +{ + return m_view; +} + +void TDEListViewAction::setToolTip( const TQString & str ) +{ + TQToolTip::remove(m_view); + TQToolTip::add(m_view, str); +} + +void TDEListViewAction::setWhatsThis( const TQString & str ) +{ + TQWhatsThis::remove(m_view); + TQWhatsThis::add(m_view, str); +} + +void TDEListViewAction::loadComboWidth( ) +{ + TDEConfig *config = TDEGlobal::config(); + if (config && m_view->name()) + { + config->setGroup("TDEListViewAction"); + m_view->setMinimumWidth(config->readNumEntry(m_view->name(), m_view->defaultWidth())); + } +} + diff --git a/lib/widgets/tdelistviewaction.h b/lib/widgets/tdelistviewaction.h new file mode 100644 index 00000000..703f58cf --- /dev/null +++ b/lib/widgets/tdelistviewaction.h @@ -0,0 +1,56 @@ +/* This file is part of the KDE project + Copyright (C) 2003 Alexander Dymo + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library 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 + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ +#ifndef KLISTVIEWACTION_H +#define KLISTVIEWACTION_H + +#include +#include +#include + +class KComboView; + +/** +@file klistviewaction.h +Widget action with KComboView. +*/ + + +/** +Widget action with KComboView. +Can be used on toolbars. It appears as @ref ResizableCombo. +*/ +class TDEListViewAction: public KWidgetAction +{ +public: + TDEListViewAction(KComboView *view, const TQString &text, const TDEShortcut &cut, const TQObject *receiver, const char *slot, TDEActionCollection *parent, const char *name); + TDEListViewAction(KComboView *view, const TQString &text, const TDEShortcut &cut, const TQObject *receiver, const char *slot, TDEActionCollection *parent, const char *name, const bool); + + ~TDEListViewAction(); + + KComboView *view() const; + void setToolTip(const TQString & str); + void setWhatsThis(const TQString &str); + +private: + void loadComboWidth(); + + KComboView *m_view; +}; + +#endif -- cgit v1.2.1