~ubuntu-branches/ubuntu/quantal/mysql-workbench/quantal

« back to all changes in this revision

Viewing changes to backend/wbpublic/objimpl/model/model_Layer.cpp

  • Committer: Package Import Robot
  • Author(s): Dmitry Smirnov
  • Date: 2012-03-01 21:57:30 UTC
  • Revision ID: package-import@ubuntu.com-20120301215730-o7y8av8y38n162ro
Tags: upstream-5.2.38+dfsg
ImportĀ upstreamĀ versionĀ 5.2.38+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#include "stdafx.h"
 
2
 
 
3
#include <grts/structs.model.h>
 
4
 
 
5
#include <grtpp_util.h>
 
6
 
 
7
#include "wbcanvas/model_layer_impl.h"
 
8
 
 
9
//================================================================================
 
10
// model_Layer
 
11
 
 
12
 
 
13
void model_Layer::init()
 
14
{
 
15
  _data= new ImplData(this);
 
16
  model_Object::set_data(_data);
 
17
}
 
18
 
 
19
void model_Layer::set_data(ImplData *data)
 
20
{
 
21
  throw std::logic_error("unexpected");
 
22
 
 
23
  _data= data;
 
24
}
 
25
 
 
26
model_Layer::~model_Layer()
 
27
{
 
28
  delete _data;
 
29
}
 
30
 
 
31
 
 
32
void model_Layer::lowerFigure(const model_FigureRef &figure)
 
33
{
 
34
  get_data()->lower_figure(figure);
 
35
}
 
36
 
 
37
 
 
38
void model_Layer::raiseFigure(const model_FigureRef &figure)
 
39
{
 
40
  get_data()->raise_figure(figure);
 
41
}
 
42
 
 
43
 
 
44
 
 
45
 
 
46