summaryrefslogtreecommitdiffstats
path: root/kexi/core/kexiuseractionmethod.cpp
blob: a2ec291454b65cef8314af6bca7e4b0558b01f11 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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;
	}
}