Commit a75b2d56 authored by Frédéric Larue's avatar Frédéric Larue

Callback added to UIProject when a project is renamed.

parent df02249a
......@@ -40,7 +40,7 @@ public:
virtual ~UIProject();
inline const QString& Name() const { return m_Name; }
inline void SetName( const QString &name ) { m_Name = name; }
inline void SetName( const QString &name ) { m_Name = name; OnRenaming(name); }
void Rename( GenericUIData* data, const QString& newFileName );
bool Add( GenericUIData* data );
......@@ -52,6 +52,7 @@ public:
GenericUIData* GetByContent( const void* content );
inline const UIDataMap& GetAll() const { return m_ItemByNames; }
virtual void OnRenaming( const QString& newProjectName ) {}
virtual void OnAddingData( GenericUIData *data ) {}
virtual void OnRemovingData( GenericUIData *data ) {}
virtual void OnRenamingData( GenericUIData* data,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment