Mercurial > hg > orthanc-stone
diff 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 |
line wrap: on
line diff
--- a/Applications/IStoneApplication.h Mon Oct 08 17:10:08 2018 +0200 +++ b/Applications/IStoneApplication.h Thu Oct 11 13:16:54 2018 +0200 @@ -28,8 +28,13 @@ #include "Commands/ICommand.h" #include "Commands/BaseCommandBuilder.h" + namespace OrthancStone { +#if ORTHANC_ENABLE_QT==1 + class QStoneMainWindow; +#endif + // a StoneApplication is an application that can actually be executed // in multiple environments. i.e: it can run natively integrated in a QtApplication // or it can be executed as part of a WebPage when compiled into WebAssembly. @@ -50,6 +55,9 @@ #if ORTHANC_ENABLE_WASM==1 virtual void InitializeWasm() {} // specific initialization when the app is running in WebAssembly. This is called after the other Initialize() #endif +#if ORTHANC_ENABLE_QT==1 + virtual QStoneMainWindow* CreateQtMainWindow() = 0; +#endif virtual std::string GetTitle() const = 0; virtual IWidget* GetCentralWidget() = 0;