From 2b64a84d39eeed5681d0ee5068c7d11a01527750 Mon Sep 17 00:00:00 2001 From: alwin Date: Mon, 28 Feb 2005 09:40:30 +0000 Subject: other keymapping tool - not working this moment, I have to check it out - the reason is that the config file is somewhat easier to understand than from zkbapplet and has a nice config tool. Please don't put it into any repositories this moment. --- (limited to 'noncore/applets/keyhelper/keyhelperapplet/anylnk/MenuLnk.h') diff --git a/noncore/applets/keyhelper/keyhelperapplet/anylnk/MenuLnk.h b/noncore/applets/keyhelper/keyhelperapplet/anylnk/MenuLnk.h new file mode 100644 index 0000000..19f75d6 --- a/dev/null +++ b/noncore/applets/keyhelper/keyhelperapplet/anylnk/MenuLnk.h @@ -0,0 +1,41 @@ +#ifndef _MENULNK_H_ +#define _MENULNK_H_ + +#include + +#include "AnyLnk.h" +#include "ConfigEx.h" + +class MenuLnk : public AnyLnk +{ +public: + MenuLnk(){} + MenuLnk(const QStringList& params) + : AnyLnk(params){} + virtual ~MenuLnk() { + } + + virtual bool isValid() { + ConfigEx& cfg = ConfigEx::getInstance("keyhelper"); + QString group = cfg.getGroup(); + cfg.setGroup(name()); + bool valid = (cfg.getKeys().isEmpty() == false); + cfg.setGroup(group); + return(valid); + } + virtual void execute() { + } + virtual QString name() { + QString group; + group = m_params[1]; + group[0] = group[0].upper(); + return(group); + } + virtual const QPixmap& pixmap() { + return(m_pixmap); + } +protected: +}; + +#endif /* _MENULNK_H_ */ + -- cgit v0.9.0.2