summaryrefslogtreecommitdiffstats
path: root/part/kxmleditorpart.h
diff options
context:
space:
mode:
Diffstat (limited to 'part/kxmleditorpart.h')
-rw-r--r--part/kxmleditorpart.h70
1 files changed, 35 insertions, 35 deletions
diff --git a/part/kxmleditorpart.h b/part/kxmleditorpart.h
index 319c577..7087bf0 100644
--- a/part/kxmleditorpart.h
+++ b/part/kxmleditorpart.h
@@ -21,26 +21,26 @@
#include <kparts/part.h>
#include <kparts/browserextension.h>
-#include <qdom.h>
-#include <qptrlist.h>
+#include <tqdom.h>
+#include <tqptrlist.h>
#include "kxe_treeview.h"
#define FILE_DIALOG_FILTER "*.xml|XML files\n*.xsl|XSL files\n*.xslt|XSLT files\n*.svg|SVG files\n*.xul|XUL files\n*.rc|Resource UI files\n*.ui|User Interface UI files\n*|All files"
-class QTabWidget;
+class TQTabWidget;
class KXE_ViewElement;
class KXESearchDialog;
-class QTextEdit;
+class TQTextEdit;
class KAction;
class KToolBarPopupAction;
class KXmlEditorComboAction;
-class QDomNode;
-class QKeyEvent;
+class TQDomNode;
+class TQKeyEvent;
class KXMLEditorPartIfaceReadOnly; // DCOP interface
class KCommandHistory;
class KPrinter;
-class QSplitter;
+class TQSplitter;
class KXEDocument;
@@ -54,7 +54,7 @@ public:
Creates the actions, the view (widgets) and changes to "begin state".
*/
- KXMLEditorPart( bool fReadWrite, KXEDocument* pDocument, QWidget * pParent, const char * pszName );
+ KXMLEditorPart( bool fReadWrite, KXEDocument* pDocument, TQWidget * pParent, const char * pszName );
/** @short Destructor */
virtual ~KXMLEditorPart();
@@ -63,16 +63,16 @@ public:
virtual void setReadWrite( bool fReadWrite = true );
/** @short Returns the selected XML object's path or an empty string, if no object is selected. */
- QString getSelectedPath() const { return m_pViewTree->getSelectedPath(); }
+ TQString getSelectedPath() const { return m_pViewTree->getSelectedPath(); }
/** @short Copy XML node into clipboard */
- QTextDrag * copyNode(QDomNode *);
+ TQTextDrag * copyNode(TQDomNode *);
/** @short Paste XML node from clipboard into document */
- bool pasteNode(QDomNode *, QMimeSource *);
+ bool pasteNode(TQDomNode *, TQMimeSource *);
/** @short Drag&Drop move */
- bool dropMoveNode(QDomElement &, QDomNode &);
+ bool dropMoveNode(TQDomElement &, TQDomNode &);
/** @short Prints the document on specified printer.
@param pPrinter printer which will be used for printing. */
@@ -94,22 +94,22 @@ public slots:
virtual void setModified( bool fModified );
/** @short Updates tree view after creating new element */
- void updateNodeCreated(const QDomNode & node);
+ void updateNodeCreated(const TQDomNode & node);
/** @short Updates tree view after deleting new element */
- void updateNodeDeleted(const QDomNode & node);
+ void updateNodeDeleted(const TQDomNode & node);
/** @short Updates tree view after change element properties */
- void updateNodeChanged( const QDomElement & domElement );
+ void updateNodeChanged( const TQDomElement & domElement );
/** @short Updates tree view after change char. data properties */
- void updateNodeChanged( const QDomCharacterData & node ) ;
+ void updateNodeChanged( const TQDomCharacterData & node ) ;
/** @short Updates tree view after change proc. instr. properties */
- void updateNodeChanged( const QDomProcessingInstruction &domProcInstr );
+ void updateNodeChanged( const TQDomProcessingInstruction &domProcInstr );
/** @short Updates tree view after move node */
- void updateNodeMoved( const QDomNode & node );
+ void updateNodeMoved( const TQDomNode & node );
/**
* @short Reimplemented from @ref KParts::KReadWritePart::setModified.
@@ -221,18 +221,18 @@ public slots:
/** @short Shows configuration dialog (@ref OptionsDialog) */
void slotConfigure();
- void slotPathSelected( const QString & szPath );
+ void slotPathSelected( const TQString & szPath );
void slotPathSelected();
void slotPathClear();
/** @short Called when a tree view items text was changed via inplace-renaming. */
- void slotItemRenamedInplace( QListViewItem * pItem );
+ void slotItemRenamedInplace( TQListViewItem * pItem );
/** @short Called whan an attributes name was changed via inplace editing. */
- void slotAttributeNameChangedInplace( const QDomAttr &, const QString );
+ void slotAttributeNameChangedInplace( const TQDomAttr &, const TQString );
/** @short Called whan an attributes value was changed via inplace editing. */
- void slotAttributeValueChangedInplace( const QDomAttr &, const QString );
+ void slotAttributeValueChangedInplace( const TQDomAttr &, const TQString );
/** @short Called when File->Print or icon from the toolbar is selected. */
void slotActPrint();
@@ -246,7 +246,7 @@ public slots:
/** @short Slot for removing XML nodes. */
void slotActDelete();
- void slotTreeViewKeyPressed(QKeyEvent *e);
+ void slotTreeViewKeyPressed(TQKeyEvent *e);
/** @short Slot that performs redo function. */
void slotActRedo();
@@ -270,7 +270,7 @@ protected:
@param ypos y coordinate of upper border of the header
@sa printPage() @sa printFooter()
*/
- void printHeader(QPainter* painter, int pageNumber, int ypos, int width);
+ void printHeader(TQPainter* painter, int pageNumber, int ypos, int width);
/** @short Draws footer for printouts (page number).
@param painter a painter to use for drawing
@@ -278,7 +278,7 @@ protected:
@param ypos y coordinate of upper border of the footer
@sa printHeader() @sa printFooter()
*/
- void printFooter(QPainter* painter,int pageNumber, int ypos, int width);
+ void printFooter(TQPainter* painter,int pageNumber, int ypos, int width);
/** @short Draws page for printing purposes.
@@ -290,13 +290,13 @@ protected:
@param width,height size of the medium (e.g. paper)
@sa printPage() @sa printHeader()
*/
- bool printPage(QPainter* painter,int pageNumber, int top, int width, int height);
+ bool printPage(TQPainter* painter,int pageNumber, int top, int width, int height);
/** @short Used in printing function printPage(). */
unsigned int m_printLineNumber;
/** @short Used in printing function printPage(). */
- QStringList m_printLines;
+ TQStringList m_printLines;
// the actions
KAction * m_pActEditFind;
@@ -329,16 +329,16 @@ protected:
void slotSelectionCleared(bool);
/** @short Enables/disables actions depending on the given XML element and changes views */
- void slotSelectionChanged( const QDomElement & );
+ void slotSelectionChanged( const TQDomElement & );
/** @short Enables/disables actions and changes views */
- void slotSelectionChanged( const QDomCharacterData & );
+ void slotSelectionChanged( const TQDomCharacterData & );
/** @short Enables/disables actions and changes views */
- void slotSelectionChanged( const QDomProcessingInstruction & );
+ void slotSelectionChanged( const TQDomProcessingInstruction & );
/** @short Shows the requested context menu at the given position. */
- void slotContextMenuRequested( const QString & szMenuName, const QPoint & pos );
+ void slotContextMenuRequested( const TQString & szMenuName, const TQPoint & pos );
/** @short Invoked everytime document has new content */
void slotDocOpened();
@@ -348,16 +348,16 @@ protected:
KXE_TreeView * m_pViewTree;
/** the tab widget, contains: m_pViewElement, m_pViewContents */
- QTabWidget * m_pTabWidget;
+ TQTabWidget * m_pTabWidget;
/** widget to display XML element */
KXE_ViewElement * m_pViewElement;
/** edit widget for contents */
- QTextEdit * m_pViewContents;
+ TQTextEdit * m_pViewContents;
/** widget to display a proc.instr. */
- QTextEdit * m_pViewProcInstr;
+ TQTextEdit * m_pViewProcInstr;
/** the search dialog, used for find action */
KXESearchDialog * m_pDlgSearch;
@@ -411,7 +411,7 @@ protected:
KPrinter *m_pPrinter;
/** spitter - main widget in the part */
- QSplitter *pSplitter;
+ TQSplitter *pSplitter;
/** Pointer to underlying KXEDocument object */
KXEDocument* m_pDocument;