comparison Applications/IStoneApplication.h @ 319:daa04d15192c am-2

new SimpleViewer sample that has been split in multiple files to be able to scale it
author am@osimis.io
date Thu, 11 Oct 2018 13:16:54 +0200
parents be2660b6e40a
children b70e9be013e4
comparison
equal deleted inserted replaced
318:3a4ca166fafa 319:daa04d15192c
26 #include "../Framework/Viewport/WidgetViewport.h" 26 #include "../Framework/Viewport/WidgetViewport.h"
27 #include "json/json.h" 27 #include "json/json.h"
28 #include "Commands/ICommand.h" 28 #include "Commands/ICommand.h"
29 #include "Commands/BaseCommandBuilder.h" 29 #include "Commands/BaseCommandBuilder.h"
30 30
31
31 namespace OrthancStone 32 namespace OrthancStone
32 { 33 {
34 #if ORTHANC_ENABLE_QT==1
35 class QStoneMainWindow;
36 #endif
37
33 // a StoneApplication is an application that can actually be executed 38 // a StoneApplication is an application that can actually be executed
34 // in multiple environments. i.e: it can run natively integrated in a QtApplication 39 // in multiple environments. i.e: it can run natively integrated in a QtApplication
35 // or it can be executed as part of a WebPage when compiled into WebAssembly. 40 // or it can be executed as part of a WebPage when compiled into WebAssembly.
36 class IStoneApplication : public boost::noncopyable 41 class IStoneApplication : public boost::noncopyable
37 { 42 {
48 IStatusBar& statusBar, 53 IStatusBar& statusBar,
49 const boost::program_options::variables_map& parameters) = 0; 54 const boost::program_options::variables_map& parameters) = 0;
50 #if ORTHANC_ENABLE_WASM==1 55 #if ORTHANC_ENABLE_WASM==1
51 virtual void InitializeWasm() {} // specific initialization when the app is running in WebAssembly. This is called after the other Initialize() 56 virtual void InitializeWasm() {} // specific initialization when the app is running in WebAssembly. This is called after the other Initialize()
52 #endif 57 #endif
58 #if ORTHANC_ENABLE_QT==1
59 virtual QStoneMainWindow* CreateQtMainWindow() = 0;
60 #endif
53 61
54 virtual std::string GetTitle() const = 0; 62 virtual std::string GetTitle() const = 0;
55 virtual IWidget* GetCentralWidget() = 0; 63 virtual IWidget* GetCentralWidget() = 0;
56 64
57 virtual void Finalize() = 0; 65 virtual void Finalize() = 0;