From d888cfa39e8b38abe17f3d425d19cb8235136a79 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Fri, 1 Feb 2013 17:25:43 -0600 Subject: Fix FTBFS --- .../tdetexteditor/blockselectiondcopinterface.cpp | 33 --------- .../tdetexteditor/blockselectiondcopinterface.h | 60 ---------------- .../tdetexteditor/blockselectioninterface.cpp | 74 ------------------- interfaces/tdetexteditor/blockselectioninterface.h | 82 ---------------------- .../bloctdeselectiondcopinterface.cpp | 33 +++++++++ .../tdetexteditor/bloctdeselectiondcopinterface.h | 60 ++++++++++++++++ .../tdetexteditor/bloctdeselectioninterface.cpp | 74 +++++++++++++++++++ .../tdetexteditor/bloctdeselectioninterface.h | 82 ++++++++++++++++++++++ 8 files changed, 249 insertions(+), 249 deletions(-) delete mode 100644 interfaces/tdetexteditor/blockselectiondcopinterface.cpp delete mode 100644 interfaces/tdetexteditor/blockselectiondcopinterface.h delete mode 100644 interfaces/tdetexteditor/blockselectioninterface.cpp delete mode 100644 interfaces/tdetexteditor/blockselectioninterface.h create mode 100644 interfaces/tdetexteditor/bloctdeselectiondcopinterface.cpp create mode 100644 interfaces/tdetexteditor/bloctdeselectiondcopinterface.h create mode 100644 interfaces/tdetexteditor/bloctdeselectioninterface.cpp create mode 100644 interfaces/tdetexteditor/bloctdeselectioninterface.h (limited to 'interfaces') diff --git a/interfaces/tdetexteditor/blockselectiondcopinterface.cpp b/interfaces/tdetexteditor/blockselectiondcopinterface.cpp deleted file mode 100644 index 34b7294b2..000000000 --- a/interfaces/tdetexteditor/blockselectiondcopinterface.cpp +++ /dev/null @@ -1,33 +0,0 @@ -#include "blockselectiondcopinterface.h" -#include "blockselectioninterface.h" - -#include -using namespace KTextEditor; - -BlockSelectionDCOPInterface::BlockSelectionDCOPInterface( BlockSelectionInterface *Parent, const char *name) - : DCOPObject(name) -{ - m_parent = Parent; -} - -BlockSelectionDCOPInterface::~BlockSelectionDCOPInterface() -{ - -} - -uint BlockSelectionDCOPInterface::blockSelectionInterfaceNumber () -{ - return m_parent->blockSelectionInterfaceNumber(); -} -bool BlockSelectionDCOPInterface::blockSelectionMode () -{ - return m_parent->blockSelectionMode (); -} -bool BlockSelectionDCOPInterface::setBlockSelectionMode (bool on) -{ - return m_parent->setBlockSelectionMode (on); -} -bool BlockSelectionDCOPInterface::toggleBlockSelectionMode () -{ - return m_parent->toggleBlockSelectionMode (); -} diff --git a/interfaces/tdetexteditor/blockselectiondcopinterface.h b/interfaces/tdetexteditor/blockselectiondcopinterface.h deleted file mode 100644 index 4b74fd2a0..000000000 --- a/interfaces/tdetexteditor/blockselectiondcopinterface.h +++ /dev/null @@ -1,60 +0,0 @@ -#ifndef BlockSelection_DCOP_INTERFACE_H -#define BlockSelection_DCOP_INTERFACE_H - -#include -#include -#include -#include - -namespace KTextEditor -{ - class BlockSelectionInterface; - /** - This is the main interface to the BlockSelectionInterface of KTextEditor. - This will provide a consistant dcop interface to all KDE applications that use it. - @short DCOP interface to BlockSelectionInterface. - @author Ian Reinhart Geiser - */ - class KTEXTEDITOR_EXPORT BlockSelectionDCOPInterface : virtual public DCOPObject - { - K_DCOP - - public: - /** - Construct a new interface object for the text editor. - @param Parent the parent BlockSelectionInterface object - that will provide us with the functions for the interface. - @param name the QObject's name - */ - BlockSelectionDCOPInterface( BlockSelectionInterface *Parent, const char *name ); - /** - Destructor - Cleans up the object. - */ - virtual ~BlockSelectionDCOPInterface(); - k_dcop: - uint blockSelectionInterfaceNumber (); - - /** - * Returns the status of the selection mode - true indicates block selection mode is on. - * If this is true, selections applied via the SelectionInterface are handled as - * blockselections and the paste functions of the ClipboardInterface works on - * rectangular blocks of text rather than normal. (copy too, but thats clear I hope ;) - */ - bool blockSelectionMode (); - - /** - * set blockselection mode to state "on" - */ - bool setBlockSelectionMode (bool on) ; - - /** - * toggle blockseletion mode - */ - bool toggleBlockSelectionMode (); - - private: - BlockSelectionInterface *m_parent; - }; -} -#endif diff --git a/interfaces/tdetexteditor/blockselectioninterface.cpp b/interfaces/tdetexteditor/blockselectioninterface.cpp deleted file mode 100644 index 6d562a43e..000000000 --- a/interfaces/tdetexteditor/blockselectioninterface.cpp +++ /dev/null @@ -1,74 +0,0 @@ -/* This file is part of the KDE libraries - Copyright (C) 2001 Christoph Cullmann - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License version 2 as published by the Free Software Foundation. - - 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. -*/ - -// $Id$ - -#include "blockselectioninterface.h" -#include "blockselectiondcopinterface.h" -#include "document.h" - -namespace KTextEditor -{ - -class PrivateBlockSelectionInterface -{ - public: - PrivateBlockSelectionInterface() {interface = 0;} - ~PrivateBlockSelectionInterface() {} - BlockSelectionDCOPInterface *interface; -}; - -} - -using namespace KTextEditor; - -unsigned int BlockSelectionInterface::globalBlockSelectionInterfaceNumber = 0; - -BlockSelectionInterface::BlockSelectionInterface() -{ - globalBlockSelectionInterfaceNumber++; - myBlockSelectionInterfaceNumber = globalBlockSelectionInterfaceNumber++; - TQString name = "BlockSelectionInterface#" + TQString::number(myBlockSelectionInterfaceNumber); - - d = new PrivateBlockSelectionInterface(); - d->interface = new BlockSelectionDCOPInterface(this, name.latin1()); -} - -BlockSelectionInterface::~BlockSelectionInterface() -{ - delete d->interface; - delete d; -} - -unsigned int BlockSelectionInterface::blockSelectionInterfaceNumber () const -{ - return myBlockSelectionInterfaceNumber; -} - -void BlockSelectionInterface::setBlockSelectionInterfaceDCOPSuffix (const TQCString &suffix) -{ - d->interface->setObjId ("BlockSelectionInterface#"+suffix); -} - -BlockSelectionInterface *KTextEditor::blockSelectionInterface (Document *doc) -{ - if (!doc) - return 0; - - return dynamic_cast(doc); -} diff --git a/interfaces/tdetexteditor/blockselectioninterface.h b/interfaces/tdetexteditor/blockselectioninterface.h deleted file mode 100644 index b2cd785eb..000000000 --- a/interfaces/tdetexteditor/blockselectioninterface.h +++ /dev/null @@ -1,82 +0,0 @@ -/* This file is part of the KDE libraries - Copyright (C) 2001 Christoph Cullmann - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Library General Public - License version 2 as published by the Free Software Foundation. - - 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 __tdetexteditor_blockselectioninterface_h__ -#define __tdetexteditor_blockselectioninterface_h__ - -#include - -class TQCString; - -namespace KTextEditor -{ - -/** - * An interface for the Document class which allows the selection - * method to be changed between selecting rectangular blocks of text and normal mode - * (all text between the start cursor and the current cursor). - */ -class KTEXTEDITOR_EXPORT BlockSelectionInterface -{ - friend class PrivateBlockSelectionInterface; - - public: - BlockSelectionInterface (); - virtual ~BlockSelectionInterface (); - - unsigned int blockSelectionInterfaceNumber () const; - - protected: - void setBlockSelectionInterfaceDCOPSuffix (const TQCString &suffix); - - /** - * slots !!! - */ - public: - /** - * Returns the status of the selection mode - true indicates block selection mode is on. - * If this is true, selections applied via the SelectionInterface are handled as - * blockselections and the paste functions of the ClipboardInterface works on - * rectangular blocks of text rather than normal. (copy too, but thats clear I hope ;) - */ - virtual bool blockSelectionMode () = 0; - - /** - * Set block selection mode to state "on" - */ - virtual bool setBlockSelectionMode (bool on) = 0; - - /** - * toggle block seletion mode - */ - virtual bool toggleBlockSelectionMode () = 0; - - private: - class PrivateBlockSelectionInterface *d; - static unsigned int globalBlockSelectionInterfaceNumber; - unsigned int myBlockSelectionInterfaceNumber; -}; - -/** - * Access the block selection interface of document @param doc - */ -KTEXTEDITOR_EXPORT BlockSelectionInterface *blockSelectionInterface (class Document *doc); - -} - -#endif diff --git a/interfaces/tdetexteditor/bloctdeselectiondcopinterface.cpp b/interfaces/tdetexteditor/bloctdeselectiondcopinterface.cpp new file mode 100644 index 000000000..34b7294b2 --- /dev/null +++ b/interfaces/tdetexteditor/bloctdeselectiondcopinterface.cpp @@ -0,0 +1,33 @@ +#include "blockselectiondcopinterface.h" +#include "blockselectioninterface.h" + +#include +using namespace KTextEditor; + +BlockSelectionDCOPInterface::BlockSelectionDCOPInterface( BlockSelectionInterface *Parent, const char *name) + : DCOPObject(name) +{ + m_parent = Parent; +} + +BlockSelectionDCOPInterface::~BlockSelectionDCOPInterface() +{ + +} + +uint BlockSelectionDCOPInterface::blockSelectionInterfaceNumber () +{ + return m_parent->blockSelectionInterfaceNumber(); +} +bool BlockSelectionDCOPInterface::blockSelectionMode () +{ + return m_parent->blockSelectionMode (); +} +bool BlockSelectionDCOPInterface::setBlockSelectionMode (bool on) +{ + return m_parent->setBlockSelectionMode (on); +} +bool BlockSelectionDCOPInterface::toggleBlockSelectionMode () +{ + return m_parent->toggleBlockSelectionMode (); +} diff --git a/interfaces/tdetexteditor/bloctdeselectiondcopinterface.h b/interfaces/tdetexteditor/bloctdeselectiondcopinterface.h new file mode 100644 index 000000000..4b74fd2a0 --- /dev/null +++ b/interfaces/tdetexteditor/bloctdeselectiondcopinterface.h @@ -0,0 +1,60 @@ +#ifndef BlockSelection_DCOP_INTERFACE_H +#define BlockSelection_DCOP_INTERFACE_H + +#include +#include +#include +#include + +namespace KTextEditor +{ + class BlockSelectionInterface; + /** + This is the main interface to the BlockSelectionInterface of KTextEditor. + This will provide a consistant dcop interface to all KDE applications that use it. + @short DCOP interface to BlockSelectionInterface. + @author Ian Reinhart Geiser + */ + class KTEXTEDITOR_EXPORT BlockSelectionDCOPInterface : virtual public DCOPObject + { + K_DCOP + + public: + /** + Construct a new interface object for the text editor. + @param Parent the parent BlockSelectionInterface object + that will provide us with the functions for the interface. + @param name the QObject's name + */ + BlockSelectionDCOPInterface( BlockSelectionInterface *Parent, const char *name ); + /** + Destructor + Cleans up the object. + */ + virtual ~BlockSelectionDCOPInterface(); + k_dcop: + uint blockSelectionInterfaceNumber (); + + /** + * Returns the status of the selection mode - true indicates block selection mode is on. + * If this is true, selections applied via the SelectionInterface are handled as + * blockselections and the paste functions of the ClipboardInterface works on + * rectangular blocks of text rather than normal. (copy too, but thats clear I hope ;) + */ + bool blockSelectionMode (); + + /** + * set blockselection mode to state "on" + */ + bool setBlockSelectionMode (bool on) ; + + /** + * toggle blockseletion mode + */ + bool toggleBlockSelectionMode (); + + private: + BlockSelectionInterface *m_parent; + }; +} +#endif diff --git a/interfaces/tdetexteditor/bloctdeselectioninterface.cpp b/interfaces/tdetexteditor/bloctdeselectioninterface.cpp new file mode 100644 index 000000000..6d562a43e --- /dev/null +++ b/interfaces/tdetexteditor/bloctdeselectioninterface.cpp @@ -0,0 +1,74 @@ +/* This file is part of the KDE libraries + Copyright (C) 2001 Christoph Cullmann + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License version 2 as published by the Free Software Foundation. + + 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. +*/ + +// $Id$ + +#include "blockselectioninterface.h" +#include "blockselectiondcopinterface.h" +#include "document.h" + +namespace KTextEditor +{ + +class PrivateBlockSelectionInterface +{ + public: + PrivateBlockSelectionInterface() {interface = 0;} + ~PrivateBlockSelectionInterface() {} + BlockSelectionDCOPInterface *interface; +}; + +} + +using namespace KTextEditor; + +unsigned int BlockSelectionInterface::globalBlockSelectionInterfaceNumber = 0; + +BlockSelectionInterface::BlockSelectionInterface() +{ + globalBlockSelectionInterfaceNumber++; + myBlockSelectionInterfaceNumber = globalBlockSelectionInterfaceNumber++; + TQString name = "BlockSelectionInterface#" + TQString::number(myBlockSelectionInterfaceNumber); + + d = new PrivateBlockSelectionInterface(); + d->interface = new BlockSelectionDCOPInterface(this, name.latin1()); +} + +BlockSelectionInterface::~BlockSelectionInterface() +{ + delete d->interface; + delete d; +} + +unsigned int BlockSelectionInterface::blockSelectionInterfaceNumber () const +{ + return myBlockSelectionInterfaceNumber; +} + +void BlockSelectionInterface::setBlockSelectionInterfaceDCOPSuffix (const TQCString &suffix) +{ + d->interface->setObjId ("BlockSelectionInterface#"+suffix); +} + +BlockSelectionInterface *KTextEditor::blockSelectionInterface (Document *doc) +{ + if (!doc) + return 0; + + return dynamic_cast(doc); +} diff --git a/interfaces/tdetexteditor/bloctdeselectioninterface.h b/interfaces/tdetexteditor/bloctdeselectioninterface.h new file mode 100644 index 000000000..b2cd785eb --- /dev/null +++ b/interfaces/tdetexteditor/bloctdeselectioninterface.h @@ -0,0 +1,82 @@ +/* This file is part of the KDE libraries + Copyright (C) 2001 Christoph Cullmann + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License version 2 as published by the Free Software Foundation. + + 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 __tdetexteditor_blockselectioninterface_h__ +#define __tdetexteditor_blockselectioninterface_h__ + +#include + +class TQCString; + +namespace KTextEditor +{ + +/** + * An interface for the Document class which allows the selection + * method to be changed between selecting rectangular blocks of text and normal mode + * (all text between the start cursor and the current cursor). + */ +class KTEXTEDITOR_EXPORT BlockSelectionInterface +{ + friend class PrivateBlockSelectionInterface; + + public: + BlockSelectionInterface (); + virtual ~BlockSelectionInterface (); + + unsigned int blockSelectionInterfaceNumber () const; + + protected: + void setBlockSelectionInterfaceDCOPSuffix (const TQCString &suffix); + + /** + * slots !!! + */ + public: + /** + * Returns the status of the selection mode - true indicates block selection mode is on. + * If this is true, selections applied via the SelectionInterface are handled as + * blockselections and the paste functions of the ClipboardInterface works on + * rectangular blocks of text rather than normal. (copy too, but thats clear I hope ;) + */ + virtual bool blockSelectionMode () = 0; + + /** + * Set block selection mode to state "on" + */ + virtual bool setBlockSelectionMode (bool on) = 0; + + /** + * toggle block seletion mode + */ + virtual bool toggleBlockSelectionMode () = 0; + + private: + class PrivateBlockSelectionInterface *d; + static unsigned int globalBlockSelectionInterfaceNumber; + unsigned int myBlockSelectionInterfaceNumber; +}; + +/** + * Access the block selection interface of document @param doc + */ +KTEXTEDITOR_EXPORT BlockSelectionInterface *blockSelectionInterface (class Document *doc); + +} + +#endif -- cgit v1.2.3