annotate Applications/Samples/Qt/SampleMainWindowWithButtons.h @ 611:e3f21a265be5

Added version directive to GLSL shader code + glew init function in sample code AND commented-out glew init function in StoneInitialize
author Benjamin Golinvaux <bgo@osimis.io>
date Tue, 30 Apr 2019 16:07:48 +0200
parents b70e9be013e4
children 2d8ab34c8c91
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
326
612238b3f3e8 all 4 samples now working in Qt, SDL and wasm
am@osimis.io
parents:
diff changeset
1 /**
612238b3f3e8 all 4 samples now working in Qt, SDL and wasm
am@osimis.io
parents:
diff changeset
2 * Stone of Orthanc
612238b3f3e8 all 4 samples now working in Qt, SDL and wasm
am@osimis.io
parents:
diff changeset
3 * Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics
612238b3f3e8 all 4 samples now working in Qt, SDL and wasm
am@osimis.io
parents:
diff changeset
4 * Department, University Hospital of Liege, Belgium
439
b70e9be013e4 preparing for 2019
Sebastien Jodogne <s.jodogne@gmail.com>
parents: 326
diff changeset
5 * Copyright (C) 2017-2019 Osimis S.A., Belgium
326
612238b3f3e8 all 4 samples now working in Qt, SDL and wasm
am@osimis.io
parents:
diff changeset
6 *
612238b3f3e8 all 4 samples now working in Qt, SDL and wasm
am@osimis.io
parents:
diff changeset
7 * This program is free software: you can redistribute it and/or
612238b3f3e8 all 4 samples now working in Qt, SDL and wasm
am@osimis.io
parents:
diff changeset
8 * modify it under the terms of the GNU Affero General Public License
612238b3f3e8 all 4 samples now working in Qt, SDL and wasm
am@osimis.io
parents:
diff changeset
9 * as published by the Free Software Foundation, either version 3 of
612238b3f3e8 all 4 samples now working in Qt, SDL and wasm
am@osimis.io
parents:
diff changeset
10 * the License, or (at your option) any later version.
612238b3f3e8 all 4 samples now working in Qt, SDL and wasm
am@osimis.io
parents:
diff changeset
11 *
612238b3f3e8 all 4 samples now working in Qt, SDL and wasm
am@osimis.io
parents:
diff changeset
12 * This program is distributed in the hope that it will be useful, but
612238b3f3e8 all 4 samples now working in Qt, SDL and wasm
am@osimis.io
parents:
diff changeset
13 * WITHOUT ANY WARRANTY; without even the implied warranty of
612238b3f3e8 all 4 samples now working in Qt, SDL and wasm
am@osimis.io
parents:
diff changeset
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
612238b3f3e8 all 4 samples now working in Qt, SDL and wasm
am@osimis.io
parents:
diff changeset
15 * Affero General Public License for more details.
612238b3f3e8 all 4 samples now working in Qt, SDL and wasm
am@osimis.io
parents:
diff changeset
16 *
612238b3f3e8 all 4 samples now working in Qt, SDL and wasm
am@osimis.io
parents:
diff changeset
17 * You should have received a copy of the GNU Affero General Public License
612238b3f3e8 all 4 samples now working in Qt, SDL and wasm
am@osimis.io
parents:
diff changeset
18 * along with this program. If not, see <http://www.gnu.org/licenses/>.
612238b3f3e8 all 4 samples now working in Qt, SDL and wasm
am@osimis.io
parents:
diff changeset
19 **/
612238b3f3e8 all 4 samples now working in Qt, SDL and wasm
am@osimis.io
parents:
diff changeset
20 #pragma once
612238b3f3e8 all 4 samples now working in Qt, SDL and wasm
am@osimis.io
parents:
diff changeset
21
612238b3f3e8 all 4 samples now working in Qt, SDL and wasm
am@osimis.io
parents:
diff changeset
22 #include "../../Qt/QCairoWidget.h"
612238b3f3e8 all 4 samples now working in Qt, SDL and wasm
am@osimis.io
parents:
diff changeset
23 #include "../../Qt/QStoneMainWindow.h"
612238b3f3e8 all 4 samples now working in Qt, SDL and wasm
am@osimis.io
parents:
diff changeset
24
612238b3f3e8 all 4 samples now working in Qt, SDL and wasm
am@osimis.io
parents:
diff changeset
25 namespace Ui
612238b3f3e8 all 4 samples now working in Qt, SDL and wasm
am@osimis.io
parents:
diff changeset
26 {
612238b3f3e8 all 4 samples now working in Qt, SDL and wasm
am@osimis.io
parents:
diff changeset
27 class SampleMainWindowWithButtons;
612238b3f3e8 all 4 samples now working in Qt, SDL and wasm
am@osimis.io
parents:
diff changeset
28 }
612238b3f3e8 all 4 samples now working in Qt, SDL and wasm
am@osimis.io
parents:
diff changeset
29
612238b3f3e8 all 4 samples now working in Qt, SDL and wasm
am@osimis.io
parents:
diff changeset
30 namespace OrthancStone
612238b3f3e8 all 4 samples now working in Qt, SDL and wasm
am@osimis.io
parents:
diff changeset
31 {
612238b3f3e8 all 4 samples now working in Qt, SDL and wasm
am@osimis.io
parents:
diff changeset
32 namespace Samples
612238b3f3e8 all 4 samples now working in Qt, SDL and wasm
am@osimis.io
parents:
diff changeset
33 {
612238b3f3e8 all 4 samples now working in Qt, SDL and wasm
am@osimis.io
parents:
diff changeset
34
612238b3f3e8 all 4 samples now working in Qt, SDL and wasm
am@osimis.io
parents:
diff changeset
35 class SampleSingleCanvasWithButtonsApplicationBase;
612238b3f3e8 all 4 samples now working in Qt, SDL and wasm
am@osimis.io
parents:
diff changeset
36
612238b3f3e8 all 4 samples now working in Qt, SDL and wasm
am@osimis.io
parents:
diff changeset
37 class SampleMainWindowWithButtons : public QStoneMainWindow
612238b3f3e8 all 4 samples now working in Qt, SDL and wasm
am@osimis.io
parents:
diff changeset
38 {
612238b3f3e8 all 4 samples now working in Qt, SDL and wasm
am@osimis.io
parents:
diff changeset
39 Q_OBJECT
612238b3f3e8 all 4 samples now working in Qt, SDL and wasm
am@osimis.io
parents:
diff changeset
40
612238b3f3e8 all 4 samples now working in Qt, SDL and wasm
am@osimis.io
parents:
diff changeset
41 private:
612238b3f3e8 all 4 samples now working in Qt, SDL and wasm
am@osimis.io
parents:
diff changeset
42 Ui::SampleMainWindowWithButtons* ui_;
612238b3f3e8 all 4 samples now working in Qt, SDL and wasm
am@osimis.io
parents:
diff changeset
43 SampleSingleCanvasWithButtonsApplicationBase& stoneSampleApplication_;
612238b3f3e8 all 4 samples now working in Qt, SDL and wasm
am@osimis.io
parents:
diff changeset
44
612238b3f3e8 all 4 samples now working in Qt, SDL and wasm
am@osimis.io
parents:
diff changeset
45 public:
612238b3f3e8 all 4 samples now working in Qt, SDL and wasm
am@osimis.io
parents:
diff changeset
46 explicit SampleMainWindowWithButtons(OrthancStone::NativeStoneApplicationContext& context, SampleSingleCanvasWithButtonsApplicationBase& stoneSampleApplication, QWidget *parent = 0);
612238b3f3e8 all 4 samples now working in Qt, SDL and wasm
am@osimis.io
parents:
diff changeset
47 ~SampleMainWindowWithButtons();
612238b3f3e8 all 4 samples now working in Qt, SDL and wasm
am@osimis.io
parents:
diff changeset
48
612238b3f3e8 all 4 samples now working in Qt, SDL and wasm
am@osimis.io
parents:
diff changeset
49 private slots:
612238b3f3e8 all 4 samples now working in Qt, SDL and wasm
am@osimis.io
parents:
diff changeset
50 void tool1Clicked();
612238b3f3e8 all 4 samples now working in Qt, SDL and wasm
am@osimis.io
parents:
diff changeset
51 void tool2Clicked();
612238b3f3e8 all 4 samples now working in Qt, SDL and wasm
am@osimis.io
parents:
diff changeset
52 void pushButton1Clicked();
612238b3f3e8 all 4 samples now working in Qt, SDL and wasm
am@osimis.io
parents:
diff changeset
53 void pushButton2Clicked();
612238b3f3e8 all 4 samples now working in Qt, SDL and wasm
am@osimis.io
parents:
diff changeset
54 };
612238b3f3e8 all 4 samples now working in Qt, SDL and wasm
am@osimis.io
parents:
diff changeset
55 }
612238b3f3e8 all 4 samples now working in Qt, SDL and wasm
am@osimis.io
parents:
diff changeset
56 }