~ubuntu-branches/ubuntu/trusty/ginkgocadx/trusty

« back to all changes in this revision

Viewing changes to src/cadxcore/api/controllers/ihistorycontroller.cpp

  • Committer: Package Import Robot
  • Author(s): Dmitry Smirnov
  • Date: 2013-07-21 11:58:53 UTC
  • mfrom: (7.2.1 sid)
  • Revision ID: package-import@ubuntu.com-20130721115853-44e7n1xujqglu78e
Tags: 3.4.0.928.29+dfsg-1
* New upstream release [July 2013]
  + new B-D: "libjsoncpp-dev".
  + new patch "unbundle-libjsoncpp.patch" to avoid building bundled
    "libjsoncpp-dev".
  + new patch "fix-wx.patch" to avoid FTBFS due to missing
    "-lwx_gtk2u_html-2.8".
* Removed unnecessary versioned Build-Depends.
* Removed obsolete lintian override.
* Reference get-orig-source implementation for orig.tar clean-up and
  DFSG-repackaging.
* Upload to unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
        pk(-1),
14
14
        pat_sex('?'),
15
15
        num_series(-1),
16
 
        num_instances(-1)
 
16
        num_instances(-1),
 
17
        location(TL_LocalDatabase)
17
18
{
18
19
}
19
20
 
20
21
GNC::GCS::IHistoryController::SeriesModel::SeriesModel() :
21
22
        pk(-1),
22
23
        study_fk(-1),
23
 
        num_instances(-1)
 
24
        num_instances(-1),
 
25
        location(TL_LocalDatabase)
24
26
{
25
27
        pk = -1;
26
28
}
33
35
        height(0),
34
36
        width(0),
35
37
        number_of_frames(0),
36
 
        instance_number(0)
 
38
        instance_number(0),
 
39
        location(TL_LocalDatabase)
37
40
{
38
41
        image_position[0] = 0.0;
39
42
        image_position[1] = 0.0;
43
46
GNC::GCS::IHistoryController::FileModel::~FileModel() { 
44
47
}
45
48
 
 
49
 
 
50
GNC::GCS::IHistoryController::LightFileModel::LightFileModel() :
 
51
        pk(-1),
 
52
        series_fk(-1),
 
53
        location(TL_LocalDatabase)
 
54
{
 
55
}
 
56
 
 
57
GNC::GCS::IHistoryController::LightFileModel::~LightFileModel() {       
 
58
}
 
59
 
46
60
GNC::GCS::IHistoryController::TAddError::TAddError(TError error, const std::string& path)
47
61
{
48
62
        this->error = error;
60
74
        GNC::GCS::HistoryController::FreeInstance();
61
75
}
62
76
 
 
77
char GNC::GCS::IHistoryController::LocationToChar(GNC::GCS::IHistoryController::TLocation location)
 
78
{
 
79
        switch (location) {
 
80
                case TL_LocalLinked:
 
81
                        return 'L';
 
82
                case TL_WadoLinked:
 
83
                        return 'W';
 
84
                case TL_LocalDatabase:
 
85
                default:
 
86
                        return 'B';
 
87
        }
 
88
}
 
89
 
 
90
GNC::GCS::IHistoryController::TLocation GNC::GCS::IHistoryController::CharToLocation(char loc)
 
91
{
 
92
        switch (loc) {
 
93
                case 'L':
 
94
                        return TL_LocalLinked;
 
95
                case 'W':
 
96
                        return TL_WadoLinked;
 
97
                case 'B':
 
98
                default:
 
99
                        return TL_LocalDatabase;
 
100
        }
 
101
}
 
102