diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:56:07 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:56:07 +0000 |
commit | d6f8bbb45b267065a6907e71ff9c98bb6d161241 (patch) | |
tree | d109539636691d7b03036ca1c0ed29dbae6577cf /lib/interfaces/kdevcore.h | |
parent | 3331a47a9cad24795c7440ee8107143ce444ef34 (diff) | |
download | tdevelop-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 'lib/interfaces/kdevcore.h')
-rw-r--r-- | lib/interfaces/kdevcore.h | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/lib/interfaces/kdevcore.h b/lib/interfaces/kdevcore.h index a196392f..456e5e39 100644 --- a/lib/interfaces/kdevcore.h +++ b/lib/interfaces/kdevcore.h @@ -33,9 +33,9 @@ The interface to the application core and context menu classes. */ -#include <qstringlist.h> -#include <qdict.h> -#include <qobject.h> +#include <tqstringlist.h> +#include <tqdict.h> +#include <tqobject.h> #include <kurl.h> @@ -70,23 +70,23 @@ add "commit" and "update" menu items to the context menu of a file. -# Fill a context menu: @code core()->fillContextMenu(&menu, &context); @endcode -# Show the popup menu: @code menu.exec(event->globalPos()); @endcode . -In this example @em event is an object of QContextMenuEvent class which you have access -to if you reimplement QWidget::contextMenuEvent method. +In this example @em event is an object of TQContextMenuEvent class which you have access +to if you reimplement TQWidget::contextMenuEvent method. <b>How to fill context menu from a plugin:</b> --# Create a @code contextMenu(QPopupMenu *, const Context *) @endcode slot in your plugin class. --# Connect KDevCore::contextMenu(QPopupMenu *, const Context *) signal to that slot in +-# Create a @code contextMenu(TQPopupMenu *, const Context *) @endcode slot in your plugin class. +-# Connect KDevCore::contextMenu(TQPopupMenu *, const Context *) signal to that slot in the constructor of your plugin:\n @code -connect(core(), SIGNAL(contextMenu(QPopupMenu *, const Context *)), - this, SLOT(contextMenu(QPopupMenu *, const Context *))); +connect(core(), TQT_SIGNAL(contextMenu(TQPopupMenu *, const Context *)), + this, TQT_SLOT(contextMenu(TQPopupMenu *, const Context *))); @endcode -# Fill the menu in the slot you created, for example:\n @code if (context->hasType(Context::EditorContext)) { const EditorContext *econtext = static_cast<const EditorContext*>(context); - int id = popup->insertItem(i18n("My Menu Item 1"), this, SLOT(myMenuAction1())); + int id = popup->insertItem(i18n("My Menu Item 1"), this, TQT_SLOT(myMenuAction1())); popup->setWhatsThis(id, i18n("What's this for my menu item 1")); } else if context->hasType(MyContext)) @@ -138,7 +138,7 @@ public: @param linestr The content of the line where the cursor is. @param wordstr The current word under the cursor.*/ EditorContext(const KURL &url, int line, int col, - const QString &linestr, const QString &wordstr); + const TQString &linestr, const TQString &wordstr); /**Destructor.*/ virtual ~EditorContext(); @@ -154,13 +154,13 @@ public: /**@return The column number for the cursor position.*/ int col() const; - /**@return A QString with the content of the line which this context was + /**@return A TQString with the content of the line which this context was invoked for.*/ - QString currentLine() const; + TQString currentLine() const; - /**@return A QString containing the word near to the cursor when this + /**@return A TQString containing the word near to the cursor when this context object was created.*/ - QString currentWord() const; + TQString currentWord() const; private: class Private; @@ -181,7 +181,7 @@ public: /**Builds a DocumentationContext. @param url The URL that the context will be for. @param selection Selected text.*/ - DocumentationContext(const QString &url, const QString &selection ); + DocumentationContext(const TQString &url, const TQString &selection ); /**Copy constructor.*/ DocumentationContext(const DocumentationContext &); @@ -193,10 +193,10 @@ public: virtual int type() const; /**@return The url of the document this context was invoked for.*/ - QString url() const; + TQString url() const; /**@return The selected text in the document.*/ - QString selection() const; + TQString selection() const; private: class Private; @@ -302,9 +302,9 @@ class KDevCore: public QObject Q_OBJECT public: /**Constructor - @param parent The QObject that's the parent of this class. + @param parent The TQObject that's the parent of this class. @param name The name of the class.*/ - KDevCore(QObject *parent=0, const char *name=0); + KDevCore(TQObject *parent=0, const char *name=0); /**Destructor.*/ virtual ~KDevCore(); @@ -319,7 +319,7 @@ public: @sa Context for a detailed explanation of context menu initializations and usage. @param popup The popup menu to fill. @param context The pointer to a Context object of this popup menu.*/ - virtual void fillContextMenu(QPopupMenu *popup, const Context *context) = 0; + virtual void fillContextMenu(TQPopupMenu *popup, const Context *context) = 0; /**Closes the current project and open the new one. You cannot use the @ref KDevPlugin::project() * method right after opening a new project, as it will return a null pointer. @@ -327,7 +327,7 @@ public: *to do the job needed after the project is opened or connect a slot to the *@ref projectOpened signal. * @param projectFileName The file name of the project to open.*/ - virtual void openProject(const QString& projectFileName) = 0; + virtual void openProject(const TQString& projectFileName) = 0; /**Marks the component as running (or not running). As long as at least one component is running, the stop button is enabled. When it is pressed, @@ -365,7 +365,7 @@ signals: @sa Context for a detailed explanation of context menu initializations and usage. @param popupMenu The popup menu to fill. @param context The Context of this popup menu.*/ - void contextMenu(QPopupMenu *popupMenu, const Context *context); + void contextMenu(TQPopupMenu *popupMenu, const Context *context); /**Expects that a configuration page for use in the KDevelop settings dialog is created by the component. |