umbrello/umbrello
cmd_handle_rename.h
Go to the documentation of this file.00001 /*************************************************************************** 00002 * This program is free software; you can redistribute it and/or modify * 00003 * it under the terms of the GNU General Public License as published by * 00004 * the Free Software Foundation; either version 2 of the License, or * 00005 * (at your option) any later version. * 00006 * * 00007 * copyright (C) 2002-2009 * 00008 * Umbrello UML Modeller Authors <uml-devel@uml.sf.net> * 00009 ***************************************************************************/ 00010 00011 #ifndef CMD_HANDLE_RENAME_H 00012 #define CMD_HANDLE_RENAME_H 00013 00014 #include <QtGui/QUndoCommand> 00015 00016 class FloatingTextWidget; 00017 00018 namespace Uml 00019 { 00020 class CmdHandleRename : public QUndoCommand 00021 { 00022 public: 00023 CmdHandleRename(FloatingTextWidget* ftw, QString& txt); 00024 ~CmdHandleRename(); 00025 00026 void redo(); 00027 void undo(); 00028 00029 private: 00030 FloatingTextWidget* m_ftw; 00031 QString m_newstring; 00032 QString m_oldstring; 00033 }; 00034 } 00035 00036 #endif
KDE 4.5 API Reference