summaryrefslogtreecommitdiffstats
path: root/kdelirc/kcmlirc/editaction.h
blob: b3d393991960d0ff4158efa2b0fe202050cac082 (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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
//
//
// C++ Interface: $MODULE$
//
// Description:
//
//
// Author: Gav Wood <gav@kde.org>, (C) 2003
//
// Copyright: See COPYING file that comes with this distribution
//
//
#ifndef EDITACTION_H
#define EDITACTION_H

#include <tqstring.h>

#include "iractions.h"
#include "editactionbase.h"
#include "arguments.h"

/**
@author Gav Wood
*/

class EditAction : public EditActionBase
{
	Q_OBJECT
  TQ_OBJECT
	IRAIt theAction;
	TQMap<TQString, TQString> applicationMap, functionMap;
	TQMap<TQString, TQString> nameProgramMap;
	TQMap<TQString, bool> uniqueProgramMap;
	Arguments arguments;
	TQString program;
	bool isUnique;

public:
	void writeBack();
	void readFrom();

	virtual void slotParameterChanged();
	virtual void updateArgument(int index);
	virtual void updateArguments();
	virtual void updateApplications();
	virtual void updateFunctions();
	virtual void updateOptions();
	virtual void updateDCOPApplications();
	virtual void updateDCOPObjects();
	virtual void updateDCOPFunctions();

	EditAction(IRAIt action, TQWidget *tqparent = 0, const char *name = 0);
	~EditAction();
};

#endif