summaryrefslogtreecommitdiffstats
path: root/quanta/src/quanta.h
diff options
context:
space:
mode:
Diffstat (limited to 'quanta/src/quanta.h')
-rw-r--r--quanta/src/quanta.h162
1 files changed, 81 insertions, 81 deletions
diff --git a/quanta/src/quanta.h b/quanta/src/quanta.h
index 5cee4c1f..a29ba1f4 100644
--- a/quanta/src/quanta.h
+++ b/quanta/src/quanta.h
@@ -31,11 +31,11 @@
#define IDS_DEFAULT "Ready."
// include files for Qt
-#include <qmap.h>
-#include <qdict.h>
-#include <qvaluelist.h>
-#include <qstrlist.h>
-#include <qptrlist.h>
+#include <tqmap.h>
+#include <tqdict.h>
+#include <tqvaluelist.h>
+#include <tqstrlist.h>
+#include <tqptrlist.h>
// include files for KDE
#include <kdeversion.h>
@@ -122,7 +122,7 @@ public:
~QuantaApp();
QuantaDoc *doc() const {return m_doc; }
- QPopupMenu *tagsMenu() const {return m_tagsMenu;}
+ TQPopupMenu *tagsMenu() const {return m_tagsMenu;}
KConfig *config() const {return m_config;}
//TODO: check if we really need these "get" methods (and get rid o get)
@@ -133,39 +133,39 @@ public:
DebuggerManager *debugger() const {return m_debugger;}
KParts::PartManager *partManager() {return m_partManager;}
- QWidget* createContainer(QWidget *parent, int index, const QDomElement &element, int &id );
- void removeContainer(QWidget *container, QWidget *parent, QDomElement &element, int id );
+ TQWidget* createContainer(TQWidget *parent, int index, const TQDomElement &element, int &id );
+ void removeContainer(TQWidget *container, TQWidget *parent, TQDomElement &element, int id );
/** Returns the project's base URL if it exists, the HOME dir if there is no project and no opened document (or the current opened document was not saved yet), and the base URL of the opened document, if it is saved somewhere.
maps to the same function in Project*/
KURL projectBaseURL() const;
/** Returns the project (if there is one loaded) or global default encoding. */
- QString defaultEncoding();
+ TQString defaultEncoding();
/** Returns the interface number for the currently active editor. */
int currentEditorIfNum() const;
/** Return the URL of the currently active document */
- QString currentURL() const;
+ TQString currentURL() const;
/** Return the URL of the currently project */
- QString projectURL() const;
+ TQString projectURL() const;
/** Return the list of opened URLs and their editor interface numbers*/
- QStringList openedURLs() const;
- QString saveCurrentFile();
+ TQStringList openedURLs() const;
+ TQString saveCurrentFile();
/**
* Sets the DTEP for the current document.
* @param dtepName the name (nickname or full name) of the DTEP
* @param convert if true, converts the !DOCTYPE line to the new DTEP
*/
- void setDtep(const QString& dtepName, bool convert);
- QStringList tagAreas(const QString& name, bool includeCoordinates, bool skipFoundContent) const;
- QString documentFolderForURL(const QString &url);
- QString urlWithPreviewPrefix(const QString &url);
- void addFileToProject(const QString &url);
- void addFolderToProject(const QString &url);
- void uploadURL(const QString &url, const QString& profile, bool markOnly); /** Capture DCOP signals from KXsldbgPart or similar plugin */
- void newCursorPosition(const QString &file, int lineNumber, int columnNumber);
- void newDebuggerPosition(const QString &file, int lineNumber);
- void openFile(const QString &file, int lineNumber, int columnNumber);
+ void setDtep(const TQString& dtepName, bool convert);
+ TQStringList tagAreas(const TQString& name, bool includeCoordinates, bool skipFoundContent) const;
+ TQString documentFolderForURL(const TQString &url);
+ TQString urlWithPreviewPrefix(const TQString &url);
+ void addFileToProject(const TQString &url);
+ void addFolderToProject(const TQString &url);
+ void uploadURL(const TQString &url, const TQString& profile, bool markOnly); /** Capture DCOP signals from KXsldbgPart or similar plugin */
+ void newCursorPosition(const TQString &file, int lineNumber, int columnNumber);
+ void newDebuggerPosition(const TQString &file, int lineNumber);
+ void openFile(const TQString &file, int lineNumber, int columnNumber);
/** reparse current document and initialize node. */
void reparse(bool force);
@@ -176,8 +176,8 @@ public:
//return the old Cursor position
void oldCursorPos(uint &line, uint &col) {line = oldCursorLine; col = oldCursorCol;}
- QStringList selectors(const QString& tag);
- QStringList idSelectors();
+ TQStringList selectors(const TQString& tag);
+ TQStringList idSelectors();
WHTMLPart *documentationPart() {return m_htmlPartDoc;}
/** Show the toolbar which is in url. If it was not loaded yet, it loads the
toolbar from the file */
@@ -195,7 +195,7 @@ public:
* @param attr The string containing the attrs of the new Node to create.
* @return Returns a new Node created according to the contents of the TagDialog.
*/
- Node *showTagDialogAndReturnNode(const QString &tag, const QString &attr = QString::null);
+ Node *showTagDialogAndReturnNode(const TQString &tag, const TQString &attr = TQString::null);
/** Returns the baseURL of the document. */
KURL baseURL();
@@ -203,7 +203,7 @@ public:
/** Called when a document was closed. Resets some variables. */
void slotFileClosed(Document *w);
- void setTabToolTip(QWidget *w, const QString& toolTipStr);
+ void setTabToolTip(TQWidget *w, const TQString& toolTipStr);
void createPreviewPart();
void createDocPart();
@@ -214,18 +214,18 @@ public:
* If the user presses a key right away the character is inserted inside the tags for the queued actions.
* If the user changes the place of the cursor, the actions waiting for being inserted are removed.
*/
- QStringList const& tagActionPool() const {return m_tagActionPool;}
- void insertTagActionPoolItem(QString const& action_item);
- void removeTagActionPoolItem(QString const& action_item);
+ TQStringList const& tagActionPool() const {return m_tagActionPool;}
+ void insertTagActionPoolItem(TQString const& action_item);
+ void removeTagActionPoolItem(TQString const& action_item);
void removeAllTagActionPoolItems() {m_tagActionPool.clear();}
/** Updates the structure and attribute treeview. */
void updateTreeViews();
- void setTitle(const QString&);
+ void setTitle(const TQString&);
- QPtrList<TagAction> const& tagActions() const {return m_tagActions;}
+ TQPtrList<TagAction> const& tagActions() const {return m_tagActions;}
/** Clicked word or selected text for context sensitive menu in editor */
- QString popupWord;
+ TQString popupWord;
signals: // Signals
/** signal used to hide the splash screen */
@@ -234,20 +234,20 @@ signals: // Signals
void reloadAllTrees();
/** Emitted when some kind of event that can have associated actions has happened. */
- void eventHappened(const QString&, const QString&, const QString& );
+ void eventHappened(const TQString&, const TQString&, const TQString& );
- void toolbarRemoved(const QString&);
+ void toolbarRemoved(const TQString&);
- void showMessage(const QString&, bool);
+ void showMessage(const TQString&, bool);
void clearMessages();
public slots:
void slotFileNew();
void slotFileOpen();
void slotFileOpen(const KURL &url);
- void slotFileOpen(const KURL &url, const QString &encoding);
- void slotFileOpen(const KURL &url, const QString &encoding, bool readOnly);
- void slotFileOpen(const KURL::List &urls, const QString& encoding);
+ void slotFileOpen(const KURL &url, const TQString &encoding);
+ void slotFileOpen(const KURL &url, const TQString &encoding, bool readOnly);
+ void slotFileOpen(const KURL::List &urls, const TQString& encoding);
void slotFileSave();
bool slotFileSaveAs(QuantaView *viewToSave = 0L);
void slotFileSaveAsLocalTemplate();
@@ -269,7 +269,7 @@ public slots:
void slotEditFindInFiles();
/// open url in documentation window
- void openDoc(const QString& url);
+ void openDoc(const TQString& url);
void slotContextHelp();
@@ -281,11 +281,11 @@ public slots:
WARNING: Don't use in place where nothing should happen until the function
exits (like in startup code, DTD reading, etc.) as it calls processEvents() and
unexpected things may happen. */
- void slotStatusMsg(const QString &text);
+ void slotStatusMsg(const TQString &text);
void slotNewStatus();
void slotNewLineColumn();
-// void slotUpdateStatus(QWidget*);FIXME:
+// void slotUpdateStatus(TQWidget*);FIXME:
/** repaint preview */
void slotRepaintPreview();
@@ -317,11 +317,11 @@ public slots:
void slotOptionsConfigureToolbars();
void slotNewToolbarConfig();
/** Configure toolbars, show defaultToolbar by default */
- void slotConfigureToolbars(const QString& defaultToolbar = QString::null);
+ void slotConfigureToolbars(const TQString& defaultToolbar = TQString::null);
void slotOptionsConfigureActions();
void setCursorPosition(int row, int col );
- void gotoFileAndLine(const QString& filename, int line, int column);
+ void gotoFileAndLine(const TQString& filename, int line, int column);
void selectArea(int line1, int col1, int line2, int col2);
@@ -338,7 +338,7 @@ public slots:
/** Saves a toolbar as project specific. */
void slotSaveProjectToolbar();
/** Loads the toolbars for dtd named dtdName and unload the ones belonging to oldDtdName. */
- void slotLoadToolbarForDTD(const QString& dtdName);
+ void slotLoadToolbarForDTD(const TQString& dtdName);
/** Load an user toolbar from the disk. */
void slotLoadToolbarFile(const KURL& url);
/** Load an user toolbar from the disk. */
@@ -346,22 +346,22 @@ public slots:
/** Load a global toolbar from the disk. */
void slotLoadGlobalToolbar();
/** Remove the toolbar named "name". */
- bool slotRemoveToolbar(const QString& name);
+ bool slotRemoveToolbar(const TQString& name);
/** Rename the toolbar named "name". */
- void slotRenameToolbar(const QString& name);
+ void slotRenameToolbar(const TQString& name);
/** Rename the toolbar. */
void slotRenameToolbar();
/** Delete an action */
void slotDeleteAction(KAction *action);
/** Remove the action from toolbar*/
- void slotRemoveAction(const QString&, const QString& actionName);
+ void slotRemoveAction(const TQString&, const TQString& actionName);
/** Edit the action */
- void slotEditAction(const QString&);
+ void slotEditAction(const TQString&);
/** Creates a new, empty action */
void slotNewAction();
/** Creates a script action for a_scriptURL using the a_interpreter as the script
interpreter application */
- void slotAssignActionToScript(const KURL&a_scriptURL, const QString& a_interpreter);
+ void slotAssignActionToScript(const KURL&a_scriptURL, const TQString& a_interpreter);
/** Change the DTD/DTEP of the current document. */
void slotChangeDTD();
@@ -374,7 +374,7 @@ public slots:
/** Show or hide the groups for dtepName in the structure tree.
The special value of "clear" for dtepName means show groups
for all DTEPs found in the document.*/
- void slotShowGroupsForDTEP(const QString& dtepName, bool show);
+ void slotShowGroupsForDTEP(const TQString& dtepName, bool show);
/** Build the project specific toolbar menu. */
void slotBuildPrjToolbarsMenu();
@@ -410,10 +410,10 @@ public slots:
void slotDeleteFile(QuantaView *view=0L);
/** Called when the CVS command working on files was executed successfully. */
- void slotCVSCommandExecuted(const QString &command, const QStringList &files);
+ void slotCVSCommandExecuted(const TQString &command, const TQStringList &files);
/** Called when the preview or documentation part is deleted. */
- void slotHTMLPartDeleted(QObject *object);
+ void slotHTMLPartDeleted(TQObject *object);
void slotRefreshActiveWindow();
@@ -430,7 +430,7 @@ public slots:
void slotGetUserToolbarFiles(KURL::List *list);
// Get saved position of dock
- KDockWidget::DockPosition prevDockPosition(QWidget* dock, KDockWidget::DockPosition def);
+ KDockWidget::DockPosition prevDockPosition(TQWidget* dock, KDockWidget::DockPosition def);
protected slots:
void slotDockWidgetHasUndocked(KDockWidget *widget);
@@ -458,11 +458,11 @@ protected slots:
/** Downloads a template from the main server */
void slotDownloadTemplate();
/** Uploads a template to the main server */
- void slotUploadTemplate(const QString &fileName);
+ void slotUploadTemplate(const TQString &fileName);
/** Downloads a script from the main server */
void slotDownloadScript();
/** Uploads a script to the main server */
- void slotUploadScript(const QString &fileName);
+ void slotUploadScript(const TQString &fileName);
/** Downloads a documentation from the main server */
void slotDownloadDoc();
/** Shows tip of the day */
@@ -518,42 +518,42 @@ protected slots:
void slotShowSourceEditor();
void slotShowVPLAndSourceEditor();
void slotShowVPLOnly();
- void slotTabDragged(QWidget *widget);
+ void slotTabDragged(TQWidget *widget);
void slotTabMoved(int from, int to);
void slotTabAboutToMove(int from, int to);
void slotAnnotate();
protected:
/** Create a DTEP tarball which can be uploaded or sent in email. Returns
- * the name of the created file or QString::null if creation has failed.
+ * the name of the created file or TQString::null if creation has failed.
*/
- QString createDTEPTarball();
+ TQString createDTEPTarball();
/** Create a toolbar tarball which can be uploaded or sent in email. Returns
- * the name of the created file or QString::null if creation has failed.
+ * the name of the created file or TQString::null if creation has failed.
*/
- QString createToolbarTarball();
+ TQString createToolbarTarball();
/** Ask for save all the modified user toolbars. */
bool removeToolbars();
/** Returns true if all toolbars are hidden, false otherwise. */
bool allToolbarsHidden() const;
/** No descriptions */
- virtual void focusInEvent(QFocusEvent*);
+ virtual void focusInEvent(TQFocusEvent*);
void saveOptions();
virtual bool queryClose();
void saveAsTemplate (bool projectTemplate, bool selectionOnly = false);
/** Saves a toolbar as local or project specific. */
- bool saveToolbar(bool localToolbar = true, const QString& toolbarToSave = QString::null, const KURL& destURL = KURL());
+ bool saveToolbar(bool localToolbar = true, const TQString& toolbarToSave = TQString::null, const KURL& destURL = KURL());
/** Saves the toolbar and the actions. Returns the name of the actions file*/
- KURL saveToolbarToFile(const QString& toolbarName,const KURL& destFile);
+ KURL saveToolbarToFile(const TQString& toolbarName,const KURL& destFile);
/** Makes the tabwidget look and behave like we want. If closeButtonsOnly is true,
only the close button behavior is changed. */
void initTabWidget(bool closeButtonsOnly = false);
- void dropEvent(QDropEvent *ev);
- void dragEnterEvent ( QDragEnterEvent * );
+ void dropEvent(TQDropEvent *ev);
+ void dragEnterEvent ( TQDragEnterEvent * );
void resetDockLayout();
@@ -578,7 +578,7 @@ private:
QuantaPluginInterface *m_pluginInterface;
- QPopupMenu *m_tagsMenu;
+ TQPopupMenu *m_tagsMenu;
// config
KConfig *m_config;
@@ -591,7 +591,7 @@ private:
QuantaDoc *m_doc;
/** parsered tree of document */
- QTimer *statusbarTimer;
+ TQTimer *statusbarTimer;
// ACTIONS
KRecentFilesAction *projectToolbarFiles;
@@ -603,9 +603,9 @@ private:
KAction *editTagAction, *selectTagAreaAction;
- QDomDocument* m_actions;
+ TQDomDocument* m_actions;
- QPtrList<KTextEditor::Mark> markList;
+ TQPtrList<KTextEditor::Mark> markList;
int currentPageIndex;
uint userToolbarsCount;
@@ -620,37 +620,37 @@ private:
bool m_noFramesPreview;
bool m_parserEnabled; ///< enables/disables reparsing. If false, even a forced reparse is ignored (used when opening multiple files)
- QString m_scriptOutput;
+ TQString m_scriptOutput;
- QStringList m_tagActionPool;
- QPtrList<TagAction> m_tagActions;
+ TQStringList m_tagActionPool;
+ TQPtrList<TagAction> m_tagActions;
protected: // Protected attributes
/** Timer to refresh the structure tree. */
- QTimer *refreshTimer;
+ TQTimer *refreshTimer;
/** Timer to detect idle periods. Every time the cursor moves the timer is
restarted.*/
- QTimer *idleTimer;
+ TQTimer *idleTimer;
/** The toolbars for this DTD are currently shown to the user. */
- QString currentToolbarDTD;
+ TQString currentToolbarDTD;
KDockWidget *m_oldTreeViewWidget;
/** The ids of the widgets visible before doing the preview/documentation browsing */
- QValueList<int> previousWidgetList;
+ TQValueList<int> previousWidgetList;
/* Store the old shortcuts from the local quantaui.rc */
- QMap<QString, QString> oldShortcuts;
+ TQMap<TQString, TQString> oldShortcuts;
KURL urlUnderCursor;
- QTimer *autosaveTimer;
+ TQTimer *autosaveTimer;
DCOPSettings *dcopSettings;
DCOPQuanta *dcopQuanta;
KParts::PartManager *m_partManager; ///< the pointer to the part manager
- QGuardedPtr<KTextEditor::View> m_oldKTextEditor; ///< remembers the last activated GUI
+ TQGuardedPtr<KTextEditor::View> m_oldKTextEditor; ///< remembers the last activated GUI
QNewDTEPStuff *m_newDTEPStuff;
QNewToolbarStuff *m_newToolbarStuff;
QNewTemplateStuff *m_newTemplateStuff;
QNewScriptStuff *m_newScriptStuff;
QNewDocStuff *m_newDocStuff;
- QDict<ToolbarEntry> m_toolbarList;
+ TQDict<ToolbarEntry> m_toolbarList;
public: //TODO: check if it's worth to make a read method for them
KRecentFilesAction *fileRecent;