Mercurial > hg > svgui
diff widgets/PropertyStack.cpp @ 397:2c59b0cd176b
* Update translations, and add change counter to name of bundle command
author | Chris Cannam |
---|---|
date | Thu, 12 Jun 2008 10:47:11 +0000 |
parents | 0bcb449d15f4 |
children | 2e8194a30f40 |
line wrap: on
line diff
--- a/widgets/PropertyStack.cpp Thu Jun 12 09:03:00 2008 +0000 +++ b/widgets/PropertyStack.cpp Thu Jun 12 10:47:11 2008 +0000 @@ -203,8 +203,8 @@ class ShowLayerCommand : public QObject, public Command { public: - ShowLayerCommand(View *view, Layer *layer, bool show) : - m_view(view), m_layer(layer), m_show(show) { } + ShowLayerCommand(View *view, Layer *layer, bool show, QString name) : + m_view(view), m_layer(layer), m_show(show), m_name(name) { } void execute() { m_layer->showLayer(m_view, m_show); } @@ -212,12 +212,13 @@ m_layer->showLayer(m_view, !m_show); } QString getName() const { - return tr("Change Layer Visibility"); + return m_name; } protected: View *m_view; Layer *m_layer; bool m_show; + QString m_name; }; void @@ -230,7 +231,8 @@ Layer *layer = dynamic_cast<Layer *>(m_boxes[i]->getContainer()); if (layer) { CommandHistory::getInstance()->addCommand - (new ShowLayerCommand(m_client, layer, show)); + (new ShowLayerCommand(m_client, layer, show, + tr("Change Layer Visibility"))); return; } }