text: #pragma once
  
  #include "commandbase.h"
  #include <memory>
  #include "../items/wirenet.h"
  
  namespace QSchematic
  {
  
      class Label;
  
      class QSCHEMATIC_EXPORT CommandWirenetRename :
          public UndoCommand
      {
      public:
          CommandWirenetRename(const std::shared_ptr<WireNet>& net, const QString& newText, QUndoCommand* parent = nullptr);
  
          virtual int id() const override;
          virtual bool mergeWith(const QUndoCommand* command) override;
          virtual void undo() override;
          virtual void redo() override;
  
      private:
          std::shared_ptr<WireNet> _net;
          QString _oldText;
          QString _newText;
      };
  
  }
  