File indexing completed on 2024-04-21 04:02:44
0001 /*************************************************************************** 0002 cshortcut.h - macro key/shortcut 0003 ------------------- 0004 begin : St máj 28 2003 0005 copyright : (C) 2003-2008 by Tomas Mecir 0006 email : kmuddy@kmuddy.com 0007 ***************************************************************************/ 0008 0009 /*************************************************************************** 0010 * * 0011 * This program is free software; you can redistribute it and/or modify * 0012 * it under the terms of the GNU General Public License as published by * 0013 * the Free Software Foundation; either version 2 of the License, or * 0014 * (at your option) any later version. * 0015 * * 0016 ***************************************************************************/ 0017 0018 #ifndef CSHORTCUT_H 0019 #define CSHORTCUT_H 0020 0021 #include "clistobject.h" 0022 0023 /** 0024 Represents one macro key/shortcut. 0025 *@author Tomas Mecir 0026 */ 0027 0028 class cShortcut : public cListObject { 0029 public: 0030 ~cShortcut () override; 0031 0032 void attribChanged (const QString &name) override; 0033 0034 void updateVisibleName() override; 0035 0036 #define SHORTCUT_MATCH 1 0037 0038 cList::TraverseAction traverse (int traversalType) override; 0039 0040 static QString keyToString (int _key, int _state); 0041 private: 0042 friend class cShortcutList; 0043 cShortcut (cList *list); 0044 0045 struct Private; 0046 Private *d; 0047 }; 0048 0049 #endif