File indexing completed on 2024-05-12 04:03:59
0001 /*************************************************************************** 0002 cmapcmdnotes.h 0003 ------------------- 0004 begin : Sun Mar 9 2003 0005 copyright : (C) 2003 by Kmud Developer Team 0006 email : kmud-devel@kmud.de 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 CMAPCMDNOTES_H 0019 #define CMAPCMDNOTES_H 0020 0021 #include <qstring.h> 0022 0023 #include "../../cmapcommand.h" 0024 0025 class CMapManager; 0026 class CMapElement; 0027 class CMapPluginStandard; 0028 0029 /**This is used to add and remove the notes properties from a element 0030 *@author Kmud Developer Team 0031 */ 0032 0033 class CMapCMDNotes : public CMapCommand 0034 { 0035 //Q_OBJECT 0036 public: 0037 CMapCMDNotes(CMapPluginStandard *plugin,CMapElement *element,QString note); 0038 ~CMapCMDNotes() override; 0039 0040 void redo() override; 0041 void undo() override; 0042 0043 private: 0044 /** The element being used */ 0045 CMapElement *m_element; 0046 /** Pointer to the pluign */ 0047 CMapPluginStandard *m_plugin; 0048 /** The new note of the element */ 0049 QString m_newNote; 0050 /** The old note of the element */ 0051 QString m_oldNote; 0052 }; 0053 0054 #endif