diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-01-03 04:12:51 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-01-03 04:12:51 +0000 |
commit | 560378aaca1784ba19806a0414a32b20c744de39 (patch) | |
tree | ce0dfd7c3febf2a1adc7603d1019a8be2083c415 /interfaces/ktexteditor | |
parent | d4d5af1cdbd3cc65d095e0afc5b1f4260091cf5d (diff) | |
download | tdelibs-560378aaca1784ba19806a0414a32b20c744de39.tar.gz tdelibs-560378aaca1784ba19806a0414a32b20c744de39.zip |
Automated conversion for enhanced compatibility with TQt for Qt4 3.4.0 TP1
NOTE: This will not compile with Qt4 (yet), however it does compile with Qt3
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1211081 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'interfaces/ktexteditor')
26 files changed, 102 insertions, 102 deletions
diff --git a/interfaces/ktexteditor/.kateconfig b/interfaces/ktexteditor/.kateconfig index 5b0885abe..46471127e 100644 --- a/interfaces/ktexteditor/.kateconfig +++ b/interfaces/ktexteditor/.kateconfig @@ -1 +1 @@ -kate: space-indent on; indent-width 2; replace-tabs on; +kate: space-indent on; indent-width 2; tqreplace-tabs on; diff --git a/interfaces/ktexteditor/blockselectiondcopinterface.h b/interfaces/ktexteditor/blockselectiondcopinterface.h index 4b74fd2a0..66045239b 100644 --- a/interfaces/ktexteditor/blockselectiondcopinterface.h +++ b/interfaces/ktexteditor/blockselectiondcopinterface.h @@ -24,7 +24,7 @@ namespace KTextEditor 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 + @param name the TQObject's name */ BlockSelectionDCOPInterface( BlockSelectionInterface *Parent, const char *name ); /** diff --git a/interfaces/ktexteditor/clipboarddcopinterface.h b/interfaces/ktexteditor/clipboarddcopinterface.h index 8104e9d4d..9a75f9b97 100644 --- a/interfaces/ktexteditor/clipboarddcopinterface.h +++ b/interfaces/ktexteditor/clipboarddcopinterface.h @@ -24,7 +24,7 @@ namespace KTextEditor Construct a new interface object for the text editor. @param Parent the parent ClipboardInterface object that will provide us with the functions for the interface. - @param name the QObject's name + @param name the TQObject's name */ ClipboardDCOPInterface( ClipboardInterface *Parent, const char *name ); /** diff --git a/interfaces/ktexteditor/documentdcopinfo.h b/interfaces/ktexteditor/documentdcopinfo.h index ea25284fe..aedaee6a5 100644 --- a/interfaces/ktexteditor/documentdcopinfo.h +++ b/interfaces/ktexteditor/documentdcopinfo.h @@ -25,7 +25,7 @@ namespace KTextEditor Construct a new interface object for the text editor. @param Parent the parent DocumentInfoInterface object that will provide us with the functions for the interface. - @param name the QObject's name + @param name the TQObject's name */ DocumentInfoDCOPInterface( DocumentInfoInterface *Parent, const char *name ); /** diff --git a/interfaces/ktexteditor/editdcopinterface.h b/interfaces/ktexteditor/editdcopinterface.h index f169fb15b..5b4a6ebb7 100644 --- a/interfaces/ktexteditor/editdcopinterface.h +++ b/interfaces/ktexteditor/editdcopinterface.h @@ -24,7 +24,7 @@ namespace KTextEditor Construct a new interface object for the text editor. @param Parent the parent EditInterface object that will provide us with the functions for the interface. - @param name the QObject's name + @param name the TQObject's name */ EditDCOPInterface( EditInterface *Parent, const char *name ); /** diff --git a/interfaces/ktexteditor/editinterfaceext.h b/interfaces/ktexteditor/editinterfaceext.h index 650bb9ec2..e5f2d9101 100644 --- a/interfaces/ktexteditor/editinterfaceext.h +++ b/interfaces/ktexteditor/editinterfaceext.h @@ -44,7 +44,7 @@ class KTEXTEDITOR_EXPORT EditInterfaceExt /** * Begin an editing sequence. Edit commands during this sequence will be * bunched together such that they represent a single undo command in the - * editor, and so that repaint events do not occur inbetween. + * editor, and so that tqrepaint events do not occur inbetween. * * Your application should not return control to the event loop while it * has an unterminated (no matching editEnd() call) editing sequence diff --git a/interfaces/ktexteditor/editor.h b/interfaces/ktexteditor/editor.h index 11f9a8c15..79c731584 100644 --- a/interfaces/ktexteditor/editor.h +++ b/interfaces/ktexteditor/editor.h @@ -32,7 +32,7 @@ namespace KTextEditor * Usage: Load it, merge it's gui + be happy * Extensibility: Use the Document / View classes if you want * advanced features, interfaces, etc. This class is just a good text editor - * widget replacement for applications which just need an embedded text edtor + * widget tqreplacement for applications which just need an embedded text edtor * and are not interested in using advanced interfaces. */ @@ -57,7 +57,7 @@ class KTEXTEDITOR_EXPORT Editor : public KParts::ReadWritePart unsigned int myEditorNumber; }; -KTEXTEDITOR_EXPORT Editor *createEditor ( const char* libname, TQWidget *parentWidget = 0, const char *widgetName = 0, TQObject *parent = 0, const char *name = 0 ); +KTEXTEDITOR_EXPORT Editor *createEditor ( const char* libname, TQWidget *tqparentWidget = 0, const char *widgetName = 0, TQObject *parent = 0, const char *name = 0 ); } diff --git a/interfaces/ktexteditor/editorchooser.cpp b/interfaces/ktexteditor/editorchooser.cpp index 96cf3649e..0d48f6b75 100644 --- a/interfaces/ktexteditor/editorchooser.cpp +++ b/interfaces/ktexteditor/editorchooser.cpp @@ -55,7 +55,7 @@ EditorChooser::EditorChooser(TQWidget *parent,const char *name) : for (KTrader::OfferList::Iterator it = offers.begin(); it != offers.end(); ++it) { - if ((*it)->desktopEntryName().contains(editor)) + if ((*it)->desktopEntryName().tqcontains(editor)) { d->chooser->editorCombo->insertItem(i18n("System Default (%1)").arg((*it)->name())); break; @@ -82,7 +82,7 @@ void EditorChooser::readAppSetting(const TQString& postfix){ if (editor.isEmpty()) d->chooser->editorCombo->setCurrentItem(0); else { - int idx=d->elements.findIndex(editor); + int idx=d->elements.tqfindIndex(editor); idx=idx+1; d->chooser->editorCombo->setCurrentItem(idx); } @@ -130,7 +130,7 @@ KTextEditor::Document *EditorChooser::createDocument(TQObject *parent,const char return 0; } -KTextEditor::Editor *EditorChooser::createEditor(TQWidget *parentWidget,TQObject *parent,const char* widgetName, +KTextEditor::Editor *EditorChooser::createEditor(TQWidget *tqparentWidget,TQObject *parent,const char* widgetName, const char* name,const TQString& postfix,bool fallBackToKatePart){ KTextEditor::Editor *tmpEd=0; @@ -151,11 +151,11 @@ KTextEditor::Editor *EditorChooser::createEditor(TQWidget *parentWidget,TQObject KService::Ptr serv=KService::serviceByDesktopName(editor); if (serv) { - tmpEd=KTextEditor::createEditor(serv->library().latin1(),parentWidget,widgetName,parent,name); + tmpEd=KTextEditor::createEditor(serv->library().latin1(),tqparentWidget,widgetName,parent,name); if (tmpEd) return tmpEd; } if (fallBackToKatePart) - return KTextEditor::createEditor("libkatepart",parentWidget,widgetName,parent,name); + return KTextEditor::createEditor("libkatepart",tqparentWidget,widgetName,parent,name); return 0; } diff --git a/interfaces/ktexteditor/editorchooser.h b/interfaces/ktexteditor/editorchooser.h index 20fba94e1..bf09907d4 100644 --- a/interfaces/ktexteditor/editorchooser.h +++ b/interfaces/ktexteditor/editorchooser.h @@ -28,7 +28,7 @@ class KTEXTEDITOR_EXPORT EditorChooser: public QWidget void writeAppSetting(const TQString& postfix=TQString::null); static KTextEditor::Document *createDocument(TQObject* parent=0,const char *name=0,const TQString& postfix=TQString::null, bool fallBackToKatePart=true); - static KTextEditor::Editor *createEditor(TQWidget *parentWidget,TQObject *parent,const char* widgetName=0,const char* name=0,const TQString& postfix=TQString::null,bool fallBackToKatePart=true); + static KTextEditor::Editor *createEditor(TQWidget *tqparentWidget,TQObject *parent,const char* widgetName=0,const char* name=0,const TQString& postfix=TQString::null,bool fallBackToKatePart=true); private: class PrivateEditorChooser *d; }; diff --git a/interfaces/ktexteditor/editorchooser_ui.ui b/interfaces/ktexteditor/editorchooser_ui.ui index fa1d99184..ff6b7eba3 100644 --- a/interfaces/ktexteditor/editorchooser_ui.ui +++ b/interfaces/ktexteditor/editorchooser_ui.ui @@ -4,7 +4,7 @@ <property name="name"> <cstring>EditorChooser</cstring> </property> - <property name="geometry"> + <property name="tqgeometry"> <rect> <x>0</x> <y>0</y> @@ -21,7 +21,7 @@ </property> <widget class="QLayoutWidget"> <property name="name"> - <cstring>layout4</cstring> + <cstring>tqlayout4</cstring> </property> <vbox> <property name="name"> @@ -31,7 +31,7 @@ <property name="name"> <cstring>TextLabel1</cstring> </property> - <property name="minimumSize"> + <property name="tqminimumSize"> <size> <width>460</width> <height>0</height> @@ -40,7 +40,7 @@ <property name="text"> <string>Please choose the default text editing component that you wish to use in this application. If you choose <B>System Default</B>, the application will honor your changes in the Control Center. All other choices will override that setting.</string> </property> - <property name="alignment"> + <property name="tqalignment"> <set>WordBreak|AlignVCenter|AlignLeft</set> </property> </widget> @@ -59,6 +59,6 @@ <includes> <include location="global" impldecl="in implementation">kdialog.h</include> </includes> -<layoutdefaults spacing="6" margin="11"/> -<layoutfunctions spacing="KDialog::spacingHint" margin="KDialog::marginHint"/> +<tqlayoutdefaults spacing="6" margin="11"/> +<tqlayoutfunctions spacing="KDialog::spacingHint" margin="KDialog::marginHint"/> </UI> diff --git a/interfaces/ktexteditor/encodingdcopinterface.h b/interfaces/ktexteditor/encodingdcopinterface.h index 38de4e0aa..e13a6dff4 100644 --- a/interfaces/ktexteditor/encodingdcopinterface.h +++ b/interfaces/ktexteditor/encodingdcopinterface.h @@ -24,7 +24,7 @@ namespace KTextEditor Construct a new interface object for the text editor. @param Parent the parent EncodingInterface object that will provide us with the functions for the interface. - @param name the QObject's name + @param name the TQObject's name */ EncodingDCOPInterface( EncodingInterface *Parent, const char *name ); /** diff --git a/interfaces/ktexteditor/ktexteditor.cpp b/interfaces/ktexteditor/ktexteditor.cpp index 0b50fdaeb..ef199c819 100644 --- a/interfaces/ktexteditor/ktexteditor.cpp +++ b/interfaces/ktexteditor/ktexteditor.cpp @@ -206,9 +206,9 @@ unsigned int Editor::editorNumber () const return myEditorNumber; } -Editor *KTextEditor::createEditor ( const char* libname, TQWidget *parentWidget, const char *widgetName, TQObject *parent, const char *name ) +Editor *KTextEditor::createEditor ( const char* libname, TQWidget *tqparentWidget, const char *widgetName, TQObject *parent, const char *name ) { - return KParts::ComponentFactory::createPartInstanceFromLibrary<Editor>( libname, parentWidget, widgetName, parent, name ); + return KParts::ComponentFactory::createPartInstanceFromLibrary<Editor>( libname, tqparentWidget, widgetName, parent, name ); } Document *KTextEditor::createDocument ( const char* libname, TQObject *parent, const char *name ) diff --git a/interfaces/ktexteditor/markinterface.h b/interfaces/ktexteditor/markinterface.h index d3b3dbe7f..7c8b0212f 100644 --- a/interfaces/ktexteditor/markinterface.h +++ b/interfaces/ktexteditor/markinterface.h @@ -63,7 +63,7 @@ class KTEXTEDITOR_EXPORT MarkInterface /** * Adds a mark of type @p markType to @p line. - * Has no effect if the line allready contains a mark of that type. + * Has no effect if the line allready tqcontains a mark of that type. */ virtual void setMark (uint line, uint markType) = 0; /** diff --git a/interfaces/ktexteditor/plugin.h b/interfaces/ktexteditor/plugin.h index dc7978f92..71266d3e2 100644 --- a/interfaces/ktexteditor/plugin.h +++ b/interfaces/ktexteditor/plugin.h @@ -33,7 +33,7 @@ class View; * Basic KTextEditor plugin class. * This plugin will be bound to a Document. */ -class KTEXTEDITOR_EXPORT Plugin : public QObject +class KTEXTEDITOR_EXPORT Plugin : public TQObject { friend class PrivatePlugin; diff --git a/interfaces/ktexteditor/printdcopinterface.h b/interfaces/ktexteditor/printdcopinterface.h index e41e6da5d..f3d176fbd 100644 --- a/interfaces/ktexteditor/printdcopinterface.h +++ b/interfaces/ktexteditor/printdcopinterface.h @@ -24,7 +24,7 @@ namespace KTextEditor Construct a new interface object for the text editor. @param Parent the parent PrintInterface object that will provide us with the functions for the interface. - @param name the QObject's name + @param name the TQObject's name */ PrintDCOPInterface( PrintInterface *Parent, const char *name ); /** diff --git a/interfaces/ktexteditor/searchdcopinterface.cpp b/interfaces/ktexteditor/searchdcopinterface.cpp index ce29e4927..81834cef2 100644 --- a/interfaces/ktexteditor/searchdcopinterface.cpp +++ b/interfaces/ktexteditor/searchdcopinterface.cpp @@ -20,16 +20,16 @@ SearchDCOPInterface::~SearchDCOPInterface() } -bool SearchDCOPInterface::findFirstString( TQString text, bool caseSensitive) +bool SearchDCOPInterface::tqfindFirstString( TQString text, bool caseSensitive) { return m_parent->searchText(0, 0, text, &m_currentrow, &m_currentcol, &m_currentmatchlen, caseSensitive); } -bool SearchDCOPInterface::findNextString( TQString text, bool caseSensitive) +bool SearchDCOPInterface::tqfindNextString( TQString text, bool caseSensitive) { return m_parent->searchText(m_currentrow, m_currentcol+1, text, &m_currentrow, &m_currentcol, &m_currentmatchlen, caseSensitive); } -bool SearchDCOPInterface::findPreviousString( TQString text, bool caseSensitive) +bool SearchDCOPInterface::tqfindPreviousString( TQString text, bool caseSensitive) { if( m_currentcol == 0) m_currentrow--; @@ -38,28 +38,28 @@ bool SearchDCOPInterface::findPreviousString( TQString text, bool caseSensitive) return m_parent->searchText(m_currentrow, m_currentcol, text, &m_currentrow, &m_currentcol, &m_currentmatchlen, caseSensitive, true); } -bool SearchDCOPInterface::findLastString( TQString text, bool caseSensitive) +bool SearchDCOPInterface::tqfindLastString( TQString text, bool caseSensitive) { return m_parent->searchText(0,0, text, &m_currentrow, &m_currentcol, &m_currentmatchlen, caseSensitive, true); } -bool SearchDCOPInterface::findStringAt( uint row, uint col, TQString text, bool caseSensitive) +bool SearchDCOPInterface::tqfindStringAt( uint row, uint col, TQString text, bool caseSensitive) { return m_parent->searchText(row,col, text, &m_currentrow, &m_currentcol, &m_currentmatchlen, caseSensitive); } -bool SearchDCOPInterface::findFirstRegExp( TQString regexp) +bool SearchDCOPInterface::tqfindFirstRegExp( TQString regexp) { return m_parent->searchText( 0,0, TQRegExp(regexp), &m_currentrow, &m_currentcol, &m_currentmatchlen); } -bool SearchDCOPInterface::findNextRegExp( TQString regexp) +bool SearchDCOPInterface::tqfindNextRegExp( TQString regexp) { return m_parent->searchText( m_currentrow, m_currentcol+1, TQRegExp(regexp), &m_currentrow, &m_currentcol, &m_currentmatchlen); } -bool SearchDCOPInterface::findPreviousRegExp( TQString regexp) +bool SearchDCOPInterface::tqfindPreviousRegExp( TQString regexp) { if( m_currentcol == 0) m_currentrow--; @@ -69,12 +69,12 @@ bool SearchDCOPInterface::findPreviousRegExp( TQString regexp) } -bool SearchDCOPInterface::findLastRegExp(TQString regexp) +bool SearchDCOPInterface::tqfindLastRegExp(TQString regexp) { return m_parent->searchText( 0,0, TQRegExp(regexp), &m_currentrow, &m_currentcol, &m_currentmatchlen, true); } -bool SearchDCOPInterface::findRegExpAt( uint row, uint col, TQString regexp) +bool SearchDCOPInterface::tqfindRegExpAt( uint row, uint col, TQString regexp) { return m_parent->searchText( row, col, TQRegExp(regexp), &m_currentrow, &m_currentcol, &m_currentmatchlen, false); } diff --git a/interfaces/ktexteditor/searchdcopinterface.h b/interfaces/ktexteditor/searchdcopinterface.h index d4f558a26..298cf8962 100644 --- a/interfaces/ktexteditor/searchdcopinterface.h +++ b/interfaces/ktexteditor/searchdcopinterface.h @@ -24,7 +24,7 @@ namespace KTextEditor Construct a new interface object for the text editor. @param Parent the parent SearchInterface object that will provide us with the functions for the interface. - @param name the QObject's name + @param name the TQObject's name */ SearchDCOPInterface( SearchInterface *Parent, const char *name ); /** @@ -33,17 +33,17 @@ namespace KTextEditor **/ virtual ~SearchDCOPInterface(); k_dcop: - bool findFirstString(TQString text, bool caseSensitive); - bool findNextString(TQString text, bool caseSensitive); - bool findPreviousString( TQString text, bool caseSensitive); - bool findLastString(TQString text, bool caseSensitive); - bool findStringAt( uint row, uint col, TQString text, bool caseSensitive); + bool tqfindFirstString(TQString text, bool caseSensitive); + bool tqfindNextString(TQString text, bool caseSensitive); + bool tqfindPreviousString( TQString text, bool caseSensitive); + bool tqfindLastString(TQString text, bool caseSensitive); + bool tqfindStringAt( uint row, uint col, TQString text, bool caseSensitive); - bool findFirstRegExp( TQString regexp); - bool findNextRegExp( TQString regexp); - bool findPreviousRegExp( TQString regexp); - bool findLastRegExp( TQString regexp); - bool findRegExpAt( uint row, uint col, TQString regexp); + bool tqfindFirstRegExp( TQString regexp); + bool tqfindNextRegExp( TQString regexp); + bool tqfindPreviousRegExp( TQString regexp); + bool tqfindLastRegExp( TQString regexp); + bool tqfindRegExpAt( uint row, uint col, TQString regexp); uint currentMatchLine(); uint currentMatchCol(); diff --git a/interfaces/ktexteditor/selectiondcopinterface.h b/interfaces/ktexteditor/selectiondcopinterface.h index aa2973540..70e6e2f0b 100644 --- a/interfaces/ktexteditor/selectiondcopinterface.h +++ b/interfaces/ktexteditor/selectiondcopinterface.h @@ -24,7 +24,7 @@ namespace KTextEditor Construct a new interface object for the text editor. @param Parent the parent SelectionInterface object that will provide us with the functions for the interface. - @param name the QObject's name + @param name the TQObject's name */ SelectionDCOPInterface( SelectionInterface *Parent, const char *name ); /** diff --git a/interfaces/ktexteditor/templateinterface.cpp b/interfaces/ktexteditor/templateinterface.cpp index 4f9f83706..f84ab691b 100644 --- a/interfaces/ktexteditor/templateinterface.cpp +++ b/interfaces/ktexteditor/templateinterface.cpp @@ -74,7 +74,7 @@ bool TemplateInterface::expandMacros( TQMap<TQString, TQString> &map, TQWidget * { KABC::StdAddressBook *addrBook = 0; KABC::Addressee userAddress; - TQDateTime datetime = TQDateTime::currentDateTime(); + TQDateTime datetime = TQDateTime::tqcurrentDateTime(); TQDate date = datetime.date(); TQTime time = datetime.time(); @@ -173,7 +173,7 @@ bool TemplateInterface::insertTemplateText ( uint line, uint column, const TQStr } } TQString placeholder = rx.cap( 1 ); - if ( ! enhancedInitValues.contains( placeholder ) ) + if ( ! enhancedInitValues.tqcontains( placeholder ) ) enhancedInitValues[ placeholder ] = ""; pos += rx.matchedLength(); diff --git a/interfaces/ktexteditor/templateinterface.h b/interfaces/ktexteditor/templateinterface.h index ec864a5e4..f31daeb3b 100644 --- a/interfaces/ktexteditor/templateinterface.h +++ b/interfaces/ktexteditor/templateinterface.h @@ -43,7 +43,7 @@ class KTEXTEDITOR_EXPORT TemplateInterface //should be named AbstractTemplateInt virtual ~TemplateInterface(); /** - * Parses @p templateString for macros in the form [$%]{NAME} and finds + * Parses @p templateString for macros in the form [$%]{NAME} and tqfinds * the value corresponding to NAME if any. The NAME string may contain * any non-whitespace character execpt '}' * @param initialValues a map with the keys for the macros to expand. @@ -101,7 +101,7 @@ class KTEXTEDITOR_EXPORT TemplateInterface //should be named AbstractTemplateInt * differing from the macro name is found. * * If the editor supports some kind of smart indentation, the inserted code - * should be layouted by the indenter. + * should be tqlayouted by the indenter. */ bool insertTemplateText ( uint line, uint column, const TQString &templateString, const TQMap<TQString,TQString> &initialValues, TQWidget *parentWindow=0); diff --git a/interfaces/ktexteditor/undodcopinterface.h b/interfaces/ktexteditor/undodcopinterface.h index b1a217036..5e324da03 100644 --- a/interfaces/ktexteditor/undodcopinterface.h +++ b/interfaces/ktexteditor/undodcopinterface.h @@ -24,7 +24,7 @@ namespace KTextEditor Construct a new interface object for the text editor. @param Parent the parent UndoInterface object that will provide us with the functions for the interface. - @param name the QObject's name + @param name the TQObject's name */ UndoDCOPInterface( UndoInterface *Parent, const char *name ); /** diff --git a/interfaces/ktexteditor/viewcursordcopinterface.h b/interfaces/ktexteditor/viewcursordcopinterface.h index 4bae0b520..e0c956da0 100644 --- a/interfaces/ktexteditor/viewcursordcopinterface.h +++ b/interfaces/ktexteditor/viewcursordcopinterface.h @@ -24,7 +24,7 @@ namespace KTextEditor Construct a new interface object for the text editor. @param Parent the parent ViewCursorInterface object that will provide us with the functions for the interface. - @param name the QObject's name + @param name the TQObject's name */ ViewCursorDCOPInterface( ViewCursorInterface *Parent, const char *name ); /** diff --git a/interfaces/ktexteditor/viewstatusmsgdcopinterface.cpp b/interfaces/ktexteditor/viewstatusmsgdcopinterface.cpp index d38b9b938..b629cfc40 100644 --- a/interfaces/ktexteditor/viewstatusmsgdcopinterface.cpp +++ b/interfaces/ktexteditor/viewstatusmsgdcopinterface.cpp @@ -6,24 +6,24 @@ #include <dcopclient.h> using namespace KTextEditor; -ViewStatusMsgDCOPInterface::ViewStatusMsgDCOPInterface( ViewStatusMsgInterface *Parent, const char *name) +ViewtqStatusMsgDCOPInterface::ViewtqStatusMsgDCOPInterface( ViewtqStatusMsgInterface *Parent, const char *name) : DCOPObject(name) { m_parent = Parent; } -ViewStatusMsgDCOPInterface::~ViewStatusMsgDCOPInterface() +ViewtqStatusMsgDCOPInterface::~ViewtqStatusMsgDCOPInterface() { } -uint ViewStatusMsgDCOPInterface::viewStatusMsgInterfaceNumber () +uint ViewtqStatusMsgDCOPInterface::viewtqStatusMsgInterfaceNumber () { - return m_parent->viewStatusMsgInterfaceNumber (); + return m_parent->viewtqStatusMsgInterfaceNumber (); } -void ViewStatusMsgDCOPInterface::viewStatusMsg (TQString msg) +void ViewtqStatusMsgDCOPInterface::viewtqStatusMsg (TQString msg) { - m_parent->viewStatusMsg(msg); + m_parent->viewtqStatusMsg(msg); } diff --git a/interfaces/ktexteditor/viewstatusmsgdcopinterface.h b/interfaces/ktexteditor/viewstatusmsgdcopinterface.h index b4c5cf72e..3bdba906a 100644 --- a/interfaces/ktexteditor/viewstatusmsgdcopinterface.h +++ b/interfaces/ktexteditor/viewstatusmsgdcopinterface.h @@ -1,5 +1,5 @@ -#ifndef ViewStatusMsg_DCOP_INTERFACE_H -#define ViewStatusMsg_DCOP_INTERFACE_H +#ifndef ViewtqStatusMsg_DCOP_INTERFACE_H +#define ViewtqStatusMsg_DCOP_INTERFACE_H #include <dcopobject.h> #include <dcopref.h> @@ -8,36 +8,36 @@ //#include "editdcopinterface.moc" namespace KTextEditor { - class ViewStatusMsgInterface; + class ViewtqStatusMsgInterface; /** - This is the main interface to the ViewStatusMsgInterface of KTextEdit. + This is the main interface to the ViewtqStatusMsgInterface of KTextEdit. This will provide a consistant dcop interface to all KDE applications that use it. - @short DCOP interface to ViewStatusMsgInterface. + @short DCOP interface to ViewtqStatusMsgInterface. @author Ian Reinhart Geiser <[email protected]> */ - class KTEXTEDITOR_EXPORT ViewStatusMsgDCOPInterface : virtual public DCOPObject + class KTEXTEDITOR_EXPORT ViewtqStatusMsgDCOPInterface : virtual public DCOPObject { K_DCOP public: /** Construct a new interface object for the text editor. - @param Parent the parent ViewStatusMsgInterface object + @param Parent the parent ViewtqStatusMsgInterface object that will provide us with the functions for the interface. - @param name the QObject's name + @param name the TQObject's name */ - ViewStatusMsgDCOPInterface( ViewStatusMsgInterface *Parent, const char *name ); + ViewtqStatusMsgDCOPInterface( ViewtqStatusMsgInterface *Parent, const char *name ); /** Destructor Cleans up the object. */ - virtual ~ViewStatusMsgDCOPInterface(); + virtual ~ViewtqStatusMsgDCOPInterface(); k_dcop: - uint viewStatusMsgInterfaceNumber (); - void viewStatusMsg (class TQString msg) ; + uint viewtqStatusMsgInterfaceNumber (); + void viewtqStatusMsg (class TQString msg) ; private: - ViewStatusMsgInterface *m_parent; + ViewtqStatusMsgInterface *m_parent; }; } #endif diff --git a/interfaces/ktexteditor/viewstatusmsginterface.cpp b/interfaces/ktexteditor/viewstatusmsginterface.cpp index ff0815c89..371cb15e3 100644 --- a/interfaces/ktexteditor/viewstatusmsginterface.cpp +++ b/interfaces/ktexteditor/viewstatusmsginterface.cpp @@ -27,50 +27,50 @@ namespace KTextEditor { -class PrivateViewStatusMsgInterface +class PrivateViewtqStatusMsgInterface { public: - PrivateViewStatusMsgInterface() {interface=0;} - ~PrivateViewStatusMsgInterface() {} - ViewStatusMsgDCOPInterface *interface; + PrivateViewtqStatusMsgInterface() {interface=0;} + ~PrivateViewtqStatusMsgInterface() {} + ViewtqStatusMsgDCOPInterface *interface; }; } using namespace KTextEditor; -unsigned int ViewStatusMsgInterface::globalViewStatusMsgInterfaceNumber = 0; +unsigned int ViewtqStatusMsgInterface::globalViewtqStatusMsgInterfaceNumber = 0; -ViewStatusMsgInterface::ViewStatusMsgInterface() +ViewtqStatusMsgInterface::ViewtqStatusMsgInterface() { - globalViewStatusMsgInterfaceNumber++; - myViewStatusMsgInterfaceNumber = globalViewStatusMsgInterfaceNumber++; + globalViewtqStatusMsgInterfaceNumber++; + myViewtqStatusMsgInterfaceNumber = globalViewtqStatusMsgInterfaceNumber++; - d = new PrivateViewStatusMsgInterface(); - ::TQString name = "ViewStatusMsgInterface#" + ::TQString::number(myViewStatusMsgInterfaceNumber); - d->interface = new ViewStatusMsgDCOPInterface(this, name.latin1()); + d = new PrivateViewtqStatusMsgInterface(); + ::TQString name = "ViewtqStatusMsgInterface#" + ::TQString::number(myViewtqStatusMsgInterfaceNumber); + d->interface = new ViewtqStatusMsgDCOPInterface(this, name.latin1()); } -ViewStatusMsgInterface::~ViewStatusMsgInterface() +ViewtqStatusMsgInterface::~ViewtqStatusMsgInterface() { delete d->interface; delete d; } -unsigned int ViewStatusMsgInterface::viewStatusMsgInterfaceNumber () const +unsigned int ViewtqStatusMsgInterface::viewtqStatusMsgInterfaceNumber () const { - return myViewStatusMsgInterfaceNumber; + return myViewtqStatusMsgInterfaceNumber; } -void ViewStatusMsgInterface::setViewStatusMsgInterfaceDCOPSuffix (const TQCString &suffix) +void ViewtqStatusMsgInterface::setViewtqStatusMsgInterfaceDCOPSuffix (const TQCString &suffix) { - d->interface->setObjId ("ViewStatusMsgInterface#"+suffix); + d->interface->setObjId ("ViewtqStatusMsgInterface#"+suffix); } -ViewStatusMsgInterface *KTextEditor::viewStatusMsgInterface (View *view) +ViewtqStatusMsgInterface *KTextEditor::viewtqStatusMsgInterface (View *view) { if (!view) return 0; - return static_cast<ViewStatusMsgInterface*>(view->qt_cast("KTextEditor::ViewStatusMsgInterface")); + return static_cast<ViewtqStatusMsgInterface*>(view->qt_cast("KTextEditor::ViewtqStatusMsgInterface")); } diff --git a/interfaces/ktexteditor/viewstatusmsginterface.h b/interfaces/ktexteditor/viewstatusmsginterface.h index d692f3b7b..7286a9528 100644 --- a/interfaces/ktexteditor/viewstatusmsginterface.h +++ b/interfaces/ktexteditor/viewstatusmsginterface.h @@ -30,33 +30,33 @@ namespace KTextEditor /** * This is an interface for retrieving status bar messages from the Document class. */ -class KTEXTEDITOR_EXPORT ViewStatusMsgInterface +class KTEXTEDITOR_EXPORT ViewtqStatusMsgInterface { - friend class PrivateViewStatusMsgInterface; + friend class PrivateViewtqStatusMsgInterface; public: - ViewStatusMsgInterface(); - virtual ~ViewStatusMsgInterface(); + ViewtqStatusMsgInterface(); + virtual ~ViewtqStatusMsgInterface(); - unsigned int viewStatusMsgInterfaceNumber () const; + unsigned int viewtqStatusMsgInterfaceNumber () const; protected: - void setViewStatusMsgInterfaceDCOPSuffix (const TQCString &suffix); + void setViewtqStatusMsgInterfaceDCOPSuffix (const TQCString &suffix); // // signals !!! // public: - virtual void viewStatusMsg (const class TQString &msg) = 0; + virtual void viewtqStatusMsg (const class TQString &msg) = 0; private: - class PrivateViewStatusMsgInterface *d; - static unsigned int globalViewStatusMsgInterfaceNumber; - unsigned int myViewStatusMsgInterfaceNumber; + class PrivateViewtqStatusMsgInterface *d; + static unsigned int globalViewtqStatusMsgInterfaceNumber; + unsigned int myViewtqStatusMsgInterfaceNumber; }; -KTEXTEDITOR_EXPORT ViewStatusMsgInterface *viewStatusMsgInterface (class View *view); +KTEXTEDITOR_EXPORT ViewtqStatusMsgInterface *viewtqStatusMsgInterface (class View *view); } |