summaryrefslogtreecommitdiffstats
path: root/parts/documentation/interfaces/kdevdocumentationplugin.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:56:07 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:56:07 +0000
commitd6f8bbb45b267065a6907e71ff9c98bb6d161241 (patch)
treed109539636691d7b03036ca1c0ed29dbae6577cf /parts/documentation/interfaces/kdevdocumentationplugin.h
parent3331a47a9cad24795c7440ee8107143ce444ef34 (diff)
downloadtdevelop-d6f8bbb45b267065a6907e71ff9c98bb6d161241.tar.gz
tdevelop-d6f8bbb45b267065a6907e71ff9c98bb6d161241.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1157658 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'parts/documentation/interfaces/kdevdocumentationplugin.h')
-rw-r--r--parts/documentation/interfaces/kdevdocumentationplugin.h106
1 files changed, 53 insertions, 53 deletions
diff --git a/parts/documentation/interfaces/kdevdocumentationplugin.h b/parts/documentation/interfaces/kdevdocumentationplugin.h
index 5d905085..658a4e7a 100644
--- a/parts/documentation/interfaces/kdevdocumentationplugin.h
+++ b/parts/documentation/interfaces/kdevdocumentationplugin.h
@@ -19,9 +19,9 @@
#ifndef KDEV_DOC_PLUGIN_H
#define KDEV_DOC_PLUGIN_H
-#include <qmap.h>
-#include <qvaluelist.h>
-#include <qpair.h>
+#include <tqmap.h>
+#include <tqvaluelist.h>
+#include <tqpair.h>
#include <klistbox.h>
#include <klistview.h>
@@ -43,10 +43,10 @@ public:
Document /**<Document.*/
};
- DocumentationItem(Type type, KListView *parent, const QString &name);
- DocumentationItem(Type type, KListView *parent, KListViewItem *after, const QString &name);
- DocumentationItem(Type type, KListViewItem *parent, const QString &name);
- DocumentationItem(Type type, KListViewItem *parent, KListViewItem *after, const QString &name);
+ DocumentationItem(Type type, KListView *parent, const TQString &name);
+ DocumentationItem(Type type, KListView *parent, KListViewItem *after, const TQString &name);
+ DocumentationItem(Type type, KListViewItem *parent, const TQString &name);
+ DocumentationItem(Type type, KListViewItem *parent, KListViewItem *after, const TQString &name);
virtual void setURL(const KURL &url) { m_url = url; }
virtual KURL url() const { return m_url; }
@@ -72,8 +72,8 @@ class DocumentationPlugin;
class DocumentationCatalogItem: public DocumentationItem
{
public:
- DocumentationCatalogItem(DocumentationPlugin* plugin, KListView *parent, const QString &name);
- DocumentationCatalogItem(DocumentationPlugin* plugin, DocumentationItem *parent, const QString &name);
+ DocumentationCatalogItem(DocumentationPlugin* plugin, KListView *parent, const TQString &name);
+ DocumentationCatalogItem(DocumentationPlugin* plugin, DocumentationItem *parent, const TQString &name);
virtual ~DocumentationCatalogItem();
DocumentationPlugin* plugin() const { return m_plugin; }
@@ -84,7 +84,7 @@ public:
virtual bool isProjectDocumentationItem() const { return m_isProjectDocumentationItem; }
virtual void setProjectDocumentationItem(bool b) { m_isProjectDocumentationItem = b; }
- virtual QString cacheVersion() const { return ""; } /// should return a short string that identifies the version of the catalog
+ virtual TQString cacheVersion() const { return ""; } /// should return a short string that identifies the version of the catalog
protected:
virtual void activate();
@@ -104,28 +104,28 @@ class IndexItemProto
{
public:
IndexItemProto(DocumentationPlugin *plugin, DocumentationCatalogItem *catalog, IndexBox *listbox,
- const QString &text, const QString &description);
+ const TQString &text, const TQString &description);
~IndexItemProto();
void addURL(const KURL &url) { m_url = url; }
KURL url() const { return m_url; }
- QString text() const { return m_text; }
- QString description() const { return m_description; }
+ TQString text() const { return m_text; }
+ TQString description() const { return m_description; }
private:
KURL m_url;
IndexBox *m_listbox;
- QString m_text;
- QString m_description;
+ TQString m_text;
+ TQString m_description;
};
/**Documentation index item.*/
-class IndexItem: public QListBoxText {
+class IndexItem: public TQListBoxText {
public:
- typedef QPair<QString, KURL> URL;
- typedef QValueList<URL> List;
+ typedef QPair<TQString, KURL> URL;
+ typedef TQValueList<URL> List;
- IndexItem(IndexBox *listbox, const QString &text);
+ IndexItem(IndexBox *listbox, const TQString &text);
List urls() const;
@@ -136,17 +136,17 @@ private:
/**Documentation index view.*/
class IndexBox: public KListBox{
public:
- IndexBox(QWidget *parent = 0, const char *name = 0);
+ IndexBox(TQWidget *parent = 0, const char *name = 0);
virtual void addIndexItem(IndexItemProto *item);
virtual void removeIndexItem(IndexItemProto *item);
virtual void fill();
virtual void refill();
virtual void setDirty(bool dirty);
-// virtual void refill(QValueList<IndexItemProto*> &items);
+// virtual void refill(TQValueList<IndexItemProto*> &items);
private:
- QMap<QString, QValueList<IndexItemProto*> > items;
+ TQMap<TQString, TQValueList<IndexItemProto*> > items;
friend class IndexItem;
bool m_dirty;
@@ -161,19 +161,19 @@ class DocumentationPlugin;
class ConfigurationItem: public QCheckListItem
{
public:
- ConfigurationItem(QListView *parent, DocumentationPlugin * plugin, const QString &title, const QString &url,
+ ConfigurationItem(TQListView *parent, DocumentationPlugin * plugin, const TQString &title, const TQString &url,
bool indexPossible, bool fullTextSearchPossible);
- virtual QString title() const { return m_title; }
- virtual void setTitle(const QString title) { setText(3, m_title = title); }
- virtual QString url() const { return m_url; }
- virtual void setURL(const QString url) { setText(4, m_url = url); }
+ virtual TQString title() const { return m_title; }
+ virtual void setTitle(const TQString title) { setText(3, m_title = title); }
+ virtual TQString url() const { return m_url; }
+ virtual void setURL(const TQString url) { setText(4, m_url = url); }
virtual bool isChanged() const { return m_title == m_origTitle; }
- virtual QString origTitle() const {return m_origTitle; }
+ virtual TQString origTitle() const {return m_origTitle; }
- virtual void paintCell(QPainter *p, const QColorGroup &cg, int column, int width, int align);
- virtual int width(const QFontMetrics &fm, const QListView *lv, int c) const;
+ virtual void paintCell(TQPainter *p, const TQColorGroup &cg, int column, int width, int align);
+ virtual int width(const TQFontMetrics &fm, const TQListView *lv, int c) const;
bool contents() const { return m_contents; }
void setContents(bool contents) { m_contents = contents; }
@@ -188,9 +188,9 @@ public:
DocumentationPlugin * docPlugin() { return m_docPlugin; }
private:
- QString m_title;
- QString m_url;
- QString m_origTitle;
+ TQString m_title;
+ TQString m_url;
+ TQString m_origTitle;
bool m_contents;
bool m_index;
@@ -233,14 +233,14 @@ public:
setCapabilities(Index | FullTextSearch);
@endcode
*/
- DocumentationPlugin(KConfig *pluginConfig, QObject *parent =0, const char *name =0);
+ DocumentationPlugin(KConfig *pluginConfig, TQObject *parent =0, const char *name =0);
virtual ~DocumentationPlugin();
/**Returns the i18n name of the plugin.*/
- virtual QString pluginName() const = 0;
+ virtual TQString pluginName() const = 0;
/**Creates documentation catalog with given title and url.*/
- virtual DocumentationCatalogItem *createCatalog(KListView *contents, const QString &title, const QString &url) = 0;
+ virtual DocumentationCatalogItem *createCatalog(KListView *contents, const TQString &title, const TQString &url) = 0;
/**Initialize a list of catalogs.
@param contents the listview to fill with catalogs
@@ -252,7 +252,7 @@ public:
@param index the listbox with index to update
@param restrictions the list of catalogs names to remove
*/
- virtual void reinit(KListView *contents, IndexBox *index, QStringList restrictions);
+ virtual void reinit(KListView *contents, IndexBox *index, TQStringList restrictions);
/**Initializes plugin configuration. Documentation plugins should be able to
initialize the default configuration on startup without any user interaction.
Call this in the constructor of your plugin.*/
@@ -263,9 +263,9 @@ public:
/**Indicates if a catalog with specified name is enabled. Documentation plugin
should check this and do not load catalogs disabled in configuration.
All catalogs are enabled by default.*/
- virtual bool catalogEnabled(const QString &name) const;
+ virtual bool catalogEnabled(const TQString &name) const;
/**Enables or disables documentation catalog.*/
- virtual void setCatalogEnabled(const QString &name, bool e);
+ virtual void setCatalogEnabled(const TQString &name, bool e);
/**Indicates if an index of given catalog should be rebuilt. This method
is used by index caching algorythm to make a descision to rebuild index
@@ -292,7 +292,7 @@ public:
clicks the documentation item. If it is too much overhead to determine the
documentation catalog url in @ref createCatalog method then you can set it here.*/
virtual void setCatalogURL(DocumentationCatalogItem *item) = 0;
- virtual QStringList fullTextSearchLocations() = 0;
+ virtual TQStringList fullTextSearchLocations() = 0;
/**Loads catalog configuration and fills configurationView with ConfigurationItem objects.*/
virtual void loadCatalogConfiguration(KListView *configurationView);
@@ -302,17 +302,17 @@ public:
virtual void saveCatalogConfiguration(KListView *configurationView);
/**Adds new catalog to a configuration.*/
virtual void addCatalogConfiguration(KListView *configurationView,
- const QString &title, const QString &url);
+ const TQString &title, const TQString &url);
/**Edits catalog configuration.*/
virtual void editCatalogConfiguration(ConfigurationItem *configurationItem,
- const QString &title, const QString &url);
+ const TQString &title, const TQString &url);
/**Removes catalog from configuration. configurationItem should not be removed here.*/
virtual void deleteCatalogConfiguration(const ConfigurationItem *const configurationItem);
/**Returns a mode and a filter for catalog locator dialogs.*/
- virtual QPair<KFile::Mode, QString> catalogLocatorProps() = 0;
+ virtual QPair<KFile::Mode, TQString> catalogLocatorProps() = 0;
/**Returns a title of catalog defined by an url parameter.*/
- virtual QString catalogTitle(const QString &url) = 0;
+ virtual TQString catalogTitle(const TQString &url) = 0;
/**Reloads documentation catalogs and indices.*/
virtual void reload();
@@ -347,11 +347,11 @@ public slots:
protected:
/**A list of loaded documentation catalogs.*/
- QValueList<DocumentationCatalogItem*> catalogs;
+ TQValueList<DocumentationCatalogItem*> catalogs;
/**A map of names of loaded documentation catalogs.*/
- QMap<QString, DocumentationCatalogItem*> namedCatalogs;
+ TQMap<TQString, DocumentationCatalogItem*> namedCatalogs;
/**A map of indices of loaded documentation catalogs.*/
- QMap<DocumentationCatalogItem*, QValueList<IndexItemProto*> > indexes;
+ TQMap<DocumentationCatalogItem*, TQValueList<IndexItemProto*> > indexes;
/**Sets capabilities of documentation plugin.*/
void setCapabilities(int caps) { m_capabilities = caps; }
@@ -362,7 +362,7 @@ protected:
/**Stores items deleted from configuration. @ref saveCatalogConfiguration
uses this to remove entries from configuration file.*/
- QStringList deletedConfigurationItems;
+ TQStringList deletedConfigurationItems;
/**Configuration object used by a plugin.*/
KConfig *config;
@@ -387,19 +387,19 @@ friend class DocumentationCatalogItem;
Represents functionality to display project documentation catalog and index in documentation browser.
*/
-class ProjectDocumentationPlugin: public QObject {
+class ProjectDocumentationPlugin: public TQObject {
Q_OBJECT
public:
ProjectDocumentationPlugin(DocumentationPlugin *docPlugin, DocumentationPlugin::ProjectDocType type);
virtual ~ProjectDocumentationPlugin();
/**Initializes project documentation plugin - creates documentation catalog.*/
- virtual void init(KListView *contents, IndexBox *index, const QString &url);
+ virtual void init(KListView *contents, IndexBox *index, const TQString &url);
/**Deinitializes project documentation plugin - removes documentation catalog.*/
virtual void deinit();
- QString pluginName() const;
- QString catalogURL() const;
+ TQString pluginName() const;
+ TQString catalogURL() const;
public slots:
/**Performs reinitialization if project documentation has changed (after building api documentation).*/
@@ -415,7 +415,7 @@ private:
class KDirWatch *m_watch;
class KListView *m_contents;
class IndexBox *m_index;
- QString m_url;
+ TQString m_url;
};
#endif