comparison framework/Document.h @ 159:06fc6fc21739

* more activity updates
author Chris Cannam
date Tue, 24 Feb 2009 16:44:43 +0000
parents b9faa1418d29
children 64b09e5bda21
comparison
equal deleted inserted replaced
158:72495c4cd315 159:06fc6fc21739
290 AddLayerCommand(Document *d, View *view, Layer *layer); 290 AddLayerCommand(Document *d, View *view, Layer *layer);
291 virtual ~AddLayerCommand(); 291 virtual ~AddLayerCommand();
292 292
293 virtual void execute(); 293 virtual void execute();
294 virtual void unexecute(); 294 virtual void unexecute();
295 virtual QString getName() const { return m_name; } 295 virtual QString getName() const;
296 296
297 protected: 297 protected:
298 Document *m_d; 298 Document *m_d;
299 View *m_view; // I don't own this 299 View *m_view; // I don't own this
300 Layer *m_layer; // Document owns this, but I determine its lifespan 300 Layer *m_layer; // Document owns this, but I determine its lifespan
308 RemoveLayerCommand(Document *d, View *view, Layer *layer); 308 RemoveLayerCommand(Document *d, View *view, Layer *layer);
309 virtual ~RemoveLayerCommand(); 309 virtual ~RemoveLayerCommand();
310 310
311 virtual void execute(); 311 virtual void execute();
312 virtual void unexecute(); 312 virtual void unexecute();
313 virtual QString getName() const { return m_name; } 313 virtual QString getName() const;
314 314
315 protected: 315 protected:
316 Document *m_d; 316 Document *m_d;
317 View *m_view; // I don't own this 317 View *m_view; // I don't own this
318 Layer *m_layer; // Document owns this, but I determine its lifespan 318 Layer *m_layer; // Document owns this, but I determine its lifespan