diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-01-20 01:29:50 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-01-20 01:29:50 +0000 |
commit | 8362bf63dea22bbf6736609b0f49c152f975eb63 (patch) | |
tree | 0eea3928e39e50fae91d4e68b21b1e6cbae25604 /kexi/core/kexiuseractionmethod.cpp | |
download | koffice-8362bf63dea22bbf6736609b0f49c152f975eb63.tar.gz koffice-8362bf63dea22bbf6736609b0f49c152f975eb63.zip |
Added old abandoned KDE3 version of koffice
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1077364 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kexi/core/kexiuseractionmethod.cpp')
-rw-r--r-- | kexi/core/kexiuseractionmethod.cpp | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/kexi/core/kexiuseractionmethod.cpp b/kexi/core/kexiuseractionmethod.cpp new file mode 100644 index 00000000..a2ec2914 --- /dev/null +++ b/kexi/core/kexiuseractionmethod.cpp @@ -0,0 +1,32 @@ +#include <klocale.h> + +#include "kexiuseraction.h" +#include "kexiuseractionmethod.h" + +KexiUserActionMethod::KexiUserActionMethod(int method, ArgTypes types, ArgNames names) +{ + m_method = method; + m_types = types; + m_names = names; +} + +QString +KexiUserActionMethod::methodName(int method) +{ + switch(method) + { + case KexiUserAction::OpenObject: + return i18n("Open Object"); + case KexiUserAction::CloseObject: + return i18n("Close Object"); + case KexiUserAction::DeleteObject: + return i18n("Delete Object"); + case KexiUserAction::ExecuteScript: + return i18n("Execute Script"); + case KexiUserAction::ExitKexi: + return i18n("Exit Main Application"); + default: + return QString::null; + } +} + |