You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
53 lines
1.0 KiB
53 lines
1.0 KiB
15 years ago
|
//
|
||
|
//
|
||
|
// C++ Interface: $MODULE$
|
||
|
//
|
||
|
// Description:
|
||
|
//
|
||
|
//
|
||
|
// Author: Gav Wood <gav@kde.org>, (C) 2003
|
||
|
//
|
||
|
// Copyright: See COPYING file that comes with this distribution
|
||
|
//
|
||
|
//
|
||
|
#ifndef IRACTIONS_H
|
||
|
#define IRACTIONS_H
|
||
|
|
||
14 years ago
|
#include <tqvaluelist.h>
|
||
|
#include <tqpair.h>
|
||
|
#include <tqstring.h>
|
||
|
#include <tqmap.h>
|
||
15 years ago
|
|
||
|
#include "iraction.h"
|
||
|
#include "mode.h"
|
||
|
|
||
|
/**
|
||
|
@author Gav Wood
|
||
|
*/
|
||
|
|
||
11 years ago
|
class TDEConfig;
|
||
15 years ago
|
|
||
14 years ago
|
typedef TQValueListIterator<IRAction> IRAIt;
|
||
|
typedef TQValueList<IRAIt> IRAItList;
|
||
15 years ago
|
|
||
14 years ago
|
class IRActions: protected TQValueList<IRAction>
|
||
15 years ago
|
{
|
||
|
private:
|
||
11 years ago
|
void purgeAllBindings(TDEConfig &theConfig);
|
||
15 years ago
|
|
||
|
public:
|
||
|
IRAIt addAction(const IRAction &theAction);
|
||
14 years ago
|
IRAItList findByButton(const TQString &remote, const TQString &button);
|
||
15 years ago
|
IRAItList findByMode(const Mode &mode);
|
||
14 years ago
|
IRAItList findByModeButton(const Mode &mode, const TQString &button);
|
||
15 years ago
|
|
||
14 years ago
|
void erase(const IRAIt &action) { TQValueList<IRAction>::erase(action); }
|
||
|
void renameMode(const Mode &mode, const TQString &to);
|
||
15 years ago
|
|
||
11 years ago
|
void loadFromConfig(TDEConfig &theConfig);
|
||
|
void saveToConfig(TDEConfig &theConfig);
|
||
15 years ago
|
};
|
||
|
|
||
|
|
||
|
#endif
|