comparison document/Document.cpp @ 117:8089a394829a

* Add display of selection extents in status bar when dragging a selection * Some build fixes after that i18n update
author Chris Cannam
date Wed, 07 Mar 2007 18:00:49 +0000
parents 99d65ba33c88
children b4110b17bca8
comparison
equal deleted inserted replaced
116:99d65ba33c88 117:8089a394829a
24 #include "base/Command.h" 24 #include "base/Command.h"
25 #include "view/View.h" 25 #include "view/View.h"
26 #include "base/PlayParameterRepository.h" 26 #include "base/PlayParameterRepository.h"
27 #include "base/PlayParameters.h" 27 #include "base/PlayParameters.h"
28 #include "transform/TransformFactory.h" 28 #include "transform/TransformFactory.h"
29 #include <QApplication>
29 #include <iostream> 30 #include <iostream>
30 31
31 //!!! still need to handle command history, documentRestored/documentModified 32 //!!! still need to handle command history, documentRestored/documentModified
32 33
33 Document::Document() : 34 Document::Document() :
641 View *view, 642 View *view,
642 Layer *layer) : 643 Layer *layer) :
643 m_d(d), 644 m_d(d),
644 m_view(view), 645 m_view(view),
645 m_layer(layer), 646 m_layer(layer),
646 m_name(qApp->translate("Add %1 Layer").arg(layer->objectName())), 647 m_name(qApp->translate("AddLayerCommand", "Add %1 Layer").arg(layer->objectName())),
647 m_added(false) 648 m_added(false)
648 { 649 {
649 } 650 }
650 651
651 Document::AddLayerCommand::~AddLayerCommand() 652 Document::AddLayerCommand::~AddLayerCommand()
689 View *view, 690 View *view,
690 Layer *layer) : 691 Layer *layer) :
691 m_d(d), 692 m_d(d),
692 m_view(view), 693 m_view(view),
693 m_layer(layer), 694 m_layer(layer),
694 m_name(qApp->translate("Delete %1 Layer").arg(layer->objectName())), 695 m_name(qApp->translate("RemoveLayerCommand", "Delete %1 Layer").arg(layer->objectName())),
695 m_added(true) 696 m_added(true)
696 { 697 {
697 } 698 }
698 699
699 Document::RemoveLayerCommand::~RemoveLayerCommand() 700 Document::RemoveLayerCommand::~RemoveLayerCommand()