diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-02-01 15:02:43 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-02-01 15:02:43 -0600 |
commit | aea627236e4de24599c3e30617cf264c3c1b7d40 (patch) | |
tree | 467e13ca5a7eb0ab292259289ecc3572f53c5eae /kexi/core/kexipart.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/kexipart.h')
-rw-r--r-- | kexi/core/kexipart.h | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/kexi/core/kexipart.h b/kexi/core/kexipart.h index 752140d1..1d800854 100644 --- a/kexi/core/kexipart.h +++ b/kexi/core/kexipart.h @@ -28,13 +28,13 @@ #include "kexi.h" #include "keximainwindow.h" -class KActionCollection; +class TDEActionCollection; class KexiDialogBase; class KexiDialogTempData; class KexiViewBase; class KexiMainWindowImpl; -class KAction; -class KShortcut; +class TDEAction; +class TDEShortcut; class KTabWidget; namespace KexiPart @@ -184,7 +184,7 @@ class KEXICORE_EXPORT Part : public TQObject #endif /*! \return action collection for mode \a viewMode. */ - KActionCollection* actionCollectionForMode(int viewMode) const; + TDEActionCollection* actionCollectionForMode(int viewMode) const; const Kexi::ObjectStatus& lastOperationStatus() const { return m_status; } @@ -222,14 +222,14 @@ class KEXICORE_EXPORT Part : public TQObject void createGUIClients(KexiMainWindow *win); #if 0 - /*! For reimplementation. Create here all part actions (KAction or similar). + /*! For reimplementation. Create here all part actions (TDEAction or similar). "Part action" is an action that is bound to given part, not for dialogs created with this part, eg. "Open external project" action for Form part. Default implementation does nothing. */ - virtual void initPartActions( KActionCollection * ) {}; + virtual void initPartActions( TDEActionCollection * ) {}; - /*! For reimplementation. You should here create all instance actions (KAction or similar) + /*! For reimplementation. You should here create all instance actions (TDEAction or similar) for \a mode (this method called for every value given by Kexi::ViewMode enum, and in special cases, in the future - for user-defined part-specific modes). Actions should be bound to action collection \a col. @@ -241,7 +241,7 @@ class KEXICORE_EXPORT Part : public TQObject all supported views. Default implementation does nothing. */ - virtual void initInstanceActions( int mode, KActionCollection *col ) {}; + virtual void initInstanceActions( int mode, TDEActionCollection *col ) {}; #endif virtual void initPartActions(); @@ -255,29 +255,29 @@ class KEXICORE_EXPORT Part : public TQObject /*! Creates shared action for action collection declared for 'instance actions' of this part. See KexiSharedActionHost::createSharedAction() for details. - Pass desired KAction subclass with \a subclassName (e.g. "KToggleAction") to have - that subclass allocated instead just KAction (what is the default). */ - KAction* createSharedAction(int mode, const TQString &text, - const TQString &pix_name, const KShortcut &cut, const char *name, + Pass desired TDEAction subclass with \a subclassName (e.g. "TDEToggleAction") to have + that subclass allocated instead just TDEAction (what is the default). */ + TDEAction* createSharedAction(int mode, const TQString &text, + const TQString &pix_name, const TDEShortcut &cut, const char *name, const char *subclassName = 0); /*! Convenience version of above method - creates shared toggle action. */ - KAction* createSharedToggleAction(int mode, const TQString &text, - const TQString &pix_name, const KShortcut &cut, const char *name); + TDEAction* createSharedToggleAction(int mode, const TQString &text, + const TQString &pix_name, const TDEShortcut &cut, const char *name); /*! Creates shared action for action collection declared for 'part actions' of this part. See KexiSharedActionHost::createSharedAction() for details. - Pass desired KAction subclass with \a subclassName (e.g. "KToggleAction") to have - that subclass allocated instead just KAction (what is the default). */ - KAction* createSharedPartAction(const TQString &text, - const TQString &pix_name, const KShortcut &cut, const char *name, + Pass desired TDEAction subclass with \a subclassName (e.g. "TDEToggleAction") to have + that subclass allocated instead just TDEAction (what is the default). */ + TDEAction* createSharedPartAction(const TQString &text, + const TQString &pix_name, const TDEShortcut &cut, const char *name, const char *subclassName = 0); /*! Convenience version of above method - creates shared toggle action for 'part actions' of this part. */ - KAction* createSharedPartToggleAction(const TQString &text, - const TQString &pix_name, const KShortcut &cut, const char *name); + TDEAction* createSharedPartToggleAction(const TQString &text, + const TQString &pix_name, const TDEShortcut &cut, const char *name); void setActionAvailable(const char *action_name, bool avail); |