![]() |
OpenMS GUI
TOPPView, TOPPAS, INIFileEditor and the OpenMS_GUI library
|
OpenMS-TOPP-GUI is built against an installed OpenMS (or the OpenMS SDK) of the same version and Qt 6:
The repository's README.md lists all options.
Link the target OpenMS::OpenMS_GUI of the CMake package OpenMSGUI (or ask for find_package(OpenMS COMPONENTS GUI), which finds it when the GUI layer is installed into the OpenMS prefix). The examples:
Tutorial_GUI_ListEditor.cpp: OpenMS::ListEditor Tutorial_GUI_ParamEditor.cpp: OpenMS::ParamEditor, editing an INI file Tutorial_GUI_Plot1D.cpp: OpenMS::Plot1DWidget, showing a spectrum They are built by the target Tutorials_build (with -DENABLE_TUTORIALS=ON).
Suppose you want to create a GUI class for the class called MyClass. To add a new GUI test:
MyClass_test.cpp in src/tests/class_tests/openms_gui/source. src/tests/class_tests/openms_gui/CMakeLists.txt in the GUI section. Without a display, run the tests with QT_QPA_PLATFORM=offscreen.