Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions ApplicationLibCode/Application/RiaGuiApplication.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
#include "RiaFileLogger.h"
#include "RiaFilePathTools.h"
#include "RiaFontCache.h"
#include "RiaHtmlServer.h"
#include "RiaImportEclipseCaseTools.h"
#include "RiaLogging.h"
#include "RiaOpenTelemetryManager.h"
Expand Down Expand Up @@ -180,6 +181,7 @@ RiaGuiApplication::RiaGuiApplication( int& argc, char** argv )
, RiaApplication()
, m_mainWindow( nullptr )
, m_mainPlotWindow( nullptr )
, m_htmlServer( nullptr )
{
setWindowIcon( QIcon( ":/AppLogo48x48.png" ) );

Expand Down Expand Up @@ -522,6 +524,9 @@ void RiaGuiApplication::initialize()
RiaLogging::appendLoggerInstance( std::move( fileLogger ) );
}
m_socketServer = new RiaSocketServer( this );

m_htmlServer = new RiaHtmlServer( this );
m_htmlServer->start();
}

//--------------------------------------------------------------------------------------------------
Expand Down
3 changes: 3 additions & 0 deletions ApplicationLibCode/Application/RiaGuiApplication.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ class Drawable;

class RIProcess;

class RiaHtmlServer;
class RiaPreferences;
class RiaProjectModifier;
class RiaSocketServer;
Expand Down Expand Up @@ -169,4 +170,6 @@ private slots:
std::unique_ptr<RiuRecentFileActionProvider> m_recentFileActionProvider;

std::unique_ptr<RiuMdiMaximizeWindowGuard> m_maximizeWindowGuard;

RiaHtmlServer* m_htmlServer;
};
4 changes: 4 additions & 0 deletions ApplicationLibCode/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ find_package(
PrintSupport
Svg
Sql
HttpServer
)
set(QT_LIBRARIES
Qt6::Core
Expand All @@ -45,6 +46,7 @@ set(QT_LIBRARIES
Qt6::PrintSupport
Qt6::Svg
Qt6::Sql
Qt6::HttpServer
)
qt_standard_project_setup()

Expand Down Expand Up @@ -152,6 +154,7 @@ list(
CommandFileInterface/CMakeLists_files.cmake
CommandFileInterface/Core/CMakeLists_files.cmake
SocketInterface/CMakeLists_files.cmake
HttpServer/CMakeLists_files.cmake
)

# Include source file lists from *.cmake files
Expand Down Expand Up @@ -410,6 +413,7 @@ target_include_directories(
${CMAKE_CURRENT_SOURCE_DIR}/ReservoirDataModel/SimulationFile
${CMAKE_CURRENT_SOURCE_DIR}/ResultStatisticsCache
${CMAKE_CURRENT_SOURCE_DIR}/SocketInterface
${CMAKE_CURRENT_SOURCE_DIR}/HttpServer
${CMAKE_CURRENT_SOURCE_DIR}/UserInterface
${CMAKE_CURRENT_SOURCE_DIR}/UserInterface/AnalysisPlots
${CMAKE_CURRENT_SOURCE_DIR}/GeoMech/GeoMechDataModel
Expand Down
6 changes: 6 additions & 0 deletions ApplicationLibCode/HttpServer/CMakeLists_files.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
set(SOURCE_GROUP_HEADER_FILES ${CMAKE_CURRENT_LIST_DIR}/RiaHtmlServer.h)

set(SOURCE_GROUP_SOURCE_FILES ${CMAKE_CURRENT_LIST_DIR}/RiaHtmlServer.cpp)

list(APPEND CODE_HEADER_FILES ${SOURCE_GROUP_HEADER_FILES})
list(APPEND CODE_SOURCE_FILES ${SOURCE_GROUP_SOURCE_FILES})
Loading
Loading