diff options
author | Timothy Pearson <[email protected]> | 2013-02-01 15:02:43 -0600 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2013-02-01 15:02:43 -0600 |
commit | aea627236e4de24599c3e30617cf264c3c1b7d40 (patch) | |
tree | 467e13ca5a7eb0ab292259289ecc3572f53c5eae /kexi/core/kexisharedactionhost.h | |
parent | 786304c6211f35ddc4cdd54b7aa7985fef4a2e70 (diff) | |
download | koffice-aea627236e4de24599c3e30617cf264c3c1b7d40.tar.gz koffice-aea627236e4de24599c3e30617cf264c3c1b7d40.zip |
Rename a number of classes to enhance compatibility with KDE4
Diffstat (limited to 'kexi/core/kexisharedactionhost.h')
-rw-r--r-- | kexi/core/kexisharedactionhost.h | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/kexi/core/kexisharedactionhost.h b/kexi/core/kexisharedactionhost.h index c7fcb181..5b2046d6 100644 --- a/kexi/core/kexisharedactionhost.h +++ b/kexi/core/kexisharedactionhost.h @@ -28,9 +28,9 @@ #include <kstdaction.h> #include <kaction.h> -class KShortcut; +class TDEShortcut; class KGuiItem; -class KMainWindow; +class TDEMainWindow; class KexiActionProxy; class KexiSharedActionHostPrivate; @@ -40,7 +40,7 @@ namespace KexiPart { //! Acts as application-wide host that offers shared actions. /*! - You can inherit this class together with KMainWindow (or any KMainWindow). + You can inherit this class together with TDEMainWindow (or any TDEMainWindow). Call setAsDefaultHost() to make the host default for all shared actions that have not explicitly specified host. @@ -54,7 +54,7 @@ class KEXICORE_EXPORT KexiSharedActionHost public: /*! Constructs host for main window \a mainWin. */ - KexiSharedActionHost(KMainWindow* mainWin); + KexiSharedActionHost(TDEMainWindow* mainWin); virtual ~KexiSharedActionHost(); @@ -86,10 +86,10 @@ class KEXICORE_EXPORT KexiSharedActionHost static KexiSharedActionHost& defaultHost(); /*! \return shared actions list. */ - KActionPtrList sharedActions() const; + TDEActionPtrList sharedActions() const; /*! PROTOTYPE, DO NOT USE YET */ - void setActionVolatile( KAction *a, bool set ); + void setActionVolatile( TDEAction *a, bool set ); protected: @@ -100,7 +100,7 @@ class KEXICORE_EXPORT KexiSharedActionHost Otherwise the action is disabled. If \a o is not KexiDialogBase or its child, - actions are only invalidated if these come from mainwindow's KActionCollection + actions are only invalidated if these come from mainwindow's TDEActionCollection (thus part-actions are untouched when the focus is e.g. in the Property Editor. Call this method when it is known that some actions need invalidation @@ -118,28 +118,28 @@ class KEXICORE_EXPORT KexiSharedActionHost void updateActionAvailable(const char *action_name, bool avail, TQObject *obj); /*! \return main window for which this host is defined. */ - KMainWindow* mainWindow() const; + TDEMainWindow* mainWindow() const; /*! Creates shared action using \a text, \a pix_name pixmap, shortcut \a cut, optional \a name. You can pass your own action collection as \a col. If \a col action collection is null, main window's action will be used. - Pass desired KAction subclass with \a subclassName (e.g. "KToggleAction") to have - that subclass allocated instead just KAction (what is the default). + Pass desired TDEAction subclass with \a subclassName (e.g. "TDEToggleAction") to have + that subclass allocated instead just TDEAction (what is the default). Created action's data is owned by the main window. */ - KAction* createSharedAction(const TQString &text, const TQString &pix_name, - const KShortcut &cut, const char *name, KActionCollection* col = 0, + TDEAction* createSharedAction(const TQString &text, const TQString &pix_name, + const TDEShortcut &cut, const char *name, TDEActionCollection* col = 0, const char *subclassName = 0); /*! Like above - creates shared action, but from standard action identified by \a id. Action's data is owned by the main window. */ - KAction* createSharedAction( KStdAction::StdAction id, const char *name, - KActionCollection* col = 0); + TDEAction* createSharedAction( KStdAction::StdAction id, const char *name, + TDEActionCollection* col = 0); /*! Creates shared action with name \a name and shortcut \a cut by copying all properties of \a guiItem. If \a col action collection is null, main window's action will be used. */ - KAction* createSharedAction(const KGuiItem& guiItem, const KShortcut &cut, const char *name, - KActionCollection* col = 0); + TDEAction* createSharedAction(const KGuiItem& guiItem, const TDEShortcut &cut, const char *name, + TDEActionCollection* col = 0); /*! \return action proxy for object \a o, or NULL if this object has no plugged shared actions. */ @@ -151,7 +151,7 @@ class KEXICORE_EXPORT KexiSharedActionHost private: /*! Helper function for createSharedAction(). */ - KAction* createSharedActionInternal( KAction *action ); + TDEAction* createSharedActionInternal( TDEAction *action ); KexiSharedActionHostPrivate *d; |