Mercurial > hg > orthanc-stone
annotate Applications/Samples/SampleMainNative.cpp @ 1279:7ec8fea061b9 broker
integration mainline->broker
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 04 Feb 2020 15:20:08 +0100 |
parents | 0ca50d275b9a 2d8ab34c8c91 |
children |
rev | line source |
---|---|
0 | 1 /** |
2 * Stone of Orthanc | |
3 * Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics | |
4 * Department, University Hospital of Liege, Belgium | |
1270
2d8ab34c8c91
upgrade to year 2020
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
573
diff
changeset
|
5 * Copyright (C) 2017-2020 Osimis S.A., Belgium |
0 | 6 * |
7 * This program is free software: you can redistribute it and/or | |
47 | 8 * modify it under the terms of the GNU Affero General Public License |
9 * as published by the Free Software Foundation, either version 3 of | |
10 * the License, or (at your option) any later version. | |
0 | 11 * |
12 * This program is distributed in the hope that it will be useful, but | |
13 * WITHOUT ANY WARRANTY; without even the implied warranty of | |
47 | 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
15 * Affero General Public License for more details. | |
16 * | |
17 * You should have received a copy of the GNU Affero General Public License | |
0 | 18 * along with this program. If not, see <http://www.gnu.org/licenses/>. |
19 **/ | |
20 | |
242 | 21 |
237
b4642964c355
SimpleViewer demo running both with SDL and Wasm
am@osimis.io
parents:
235
diff
changeset
|
22 #include "SampleList.h" |
276
5de5699ad570
first display in QCairoWidget; no mouse interaction yet
am@osimis.io
parents:
275
diff
changeset
|
23 #if ORTHANC_ENABLE_SDL==1 |
294 | 24 #include "../Sdl/SdlStoneApplicationRunner.h" |
276
5de5699ad570
first display in QCairoWidget; no mouse interaction yet
am@osimis.io
parents:
275
diff
changeset
|
25 #endif |
5de5699ad570
first display in QCairoWidget; no mouse interaction yet
am@osimis.io
parents:
275
diff
changeset
|
26 #if ORTHANC_ENABLE_QT==1 |
285
3c190e2bb3af
refactoring: ApplicationRunner + app hierarchy
am@osimis.io
parents:
276
diff
changeset
|
27 #include "Qt/SampleQtApplicationRunner.h" |
276
5de5699ad570
first display in QCairoWidget; no mouse interaction yet
am@osimis.io
parents:
275
diff
changeset
|
28 #endif |
0 | 29 |
30 int main(int argc, char* argv[]) | |
31 { | |
1068
04a95ee91327
recovery of OrthancStoneSingleFrame
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1066
diff
changeset
|
32 boost::shared_ptr<SampleApplication> sampleStoneApplication(new SampleApplication); |
0 | 33 |
276
5de5699ad570
first display in QCairoWidget; no mouse interaction yet
am@osimis.io
parents:
275
diff
changeset
|
34 #if ORTHANC_ENABLE_SDL==1 |
1066
b537002f83a9
removing broker from deprecated classes
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
573
diff
changeset
|
35 OrthancStone::SdlStoneApplicationRunner sdlApplicationRunner(sampleStoneApplication); |
293 | 36 return sdlApplicationRunner.Execute(argc, argv); |
276
5de5699ad570
first display in QCairoWidget; no mouse interaction yet
am@osimis.io
parents:
275
diff
changeset
|
37 #endif |
1068
04a95ee91327
recovery of OrthancStoneSingleFrame
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
1066
diff
changeset
|
38 |
276
5de5699ad570
first display in QCairoWidget; no mouse interaction yet
am@osimis.io
parents:
275
diff
changeset
|
39 #if ORTHANC_ENABLE_QT==1 |
1066
b537002f83a9
removing broker from deprecated classes
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
573
diff
changeset
|
40 OrthancStone::Samples::SampleQtApplicationRunner qtAppRunner(sampleStoneApplication); |
285
3c190e2bb3af
refactoring: ApplicationRunner + app hierarchy
am@osimis.io
parents:
276
diff
changeset
|
41 return qtAppRunner.Execute(argc, argv); |
276
5de5699ad570
first display in QCairoWidget; no mouse interaction yet
am@osimis.io
parents:
275
diff
changeset
|
42 #endif |
0 | 43 } |
573 | 44 |