Commit b2b687b2 authored by Jan Möbius's avatar Jan Möbius

Merge branch 'Enable_autouic' into 'master'

Enable autouic

See merge request !123
parents 549bde32 09829c8b
...@@ -80,9 +80,6 @@ acg_append_files (ui "*.ui" ${directories}) ...@@ -80,9 +80,6 @@ acg_append_files (ui "*.ui" ${directories})
# remove template cc files from source file list # remove template cc files from source file list
acg_drop_templates (sources) acg_drop_templates (sources)
# genereate uic targets
acg_qt5_autouic (uic_targets ${ui})
set(RC_SRC "") set(RC_SRC "")
if ( EXISTS ${BRANDING_DIRECTORY}/branding.qrc ) if ( EXISTS ${BRANDING_DIRECTORY}/branding.qrc )
...@@ -114,14 +111,14 @@ RECURSE_GROUPS( ${CMAKE_CURRENT_SOURCE_DIR}/../../ ) ...@@ -114,14 +111,14 @@ RECURSE_GROUPS( ${CMAKE_CURRENT_SOURCE_DIR}/../../ )
if (WIN32) if (WIN32)
# add app icon rc file to windows build # add app icon rc file to windows build
acg_add_executable (${OPENFLIPPER_PRODUCT_STRING} WIN32 ${CMAKE_CURRENT_SOURCE_DIR}/CoreApp.rc ${uic_targets} ${sources} ${headers} ${RC_SRC}) acg_add_executable (${OPENFLIPPER_PRODUCT_STRING} WIN32 ${CMAKE_CURRENT_SOURCE_DIR}/CoreApp.rc ${ui} ${sources} ${headers} ${RC_SRC})
# link to qtmain library to get WinMain function for a non terminal app # link to qtmain library to get WinMain function for a non terminal app
target_link_libraries (${OPENFLIPPER_PRODUCT_STRING} ${QT_QTMAIN_LIBRARY}) target_link_libraries (${OPENFLIPPER_PRODUCT_STRING} ${QT_QTMAIN_LIBRARY})
elseif (APPLE) elseif (APPLE)
# generate bundle on mac # generate bundle on mac
acg_add_executable (${OPENFLIPPER_PRODUCT_STRING} MACOSX_BUNDLE ${uic_targets} ${sources} ${headers} ${RC_SRC}) acg_add_executable (${OPENFLIPPER_PRODUCT_STRING} MACOSX_BUNDLE ${ui} ${sources} ${headers} ${RC_SRC})
else () else ()
acg_add_executable (${OPENFLIPPER_PRODUCT_STRING} ${uic_targets} ${sources} ${headers} ${RC_SRC}) acg_add_executable (${OPENFLIPPER_PRODUCT_STRING} ${ui} ${sources} ${headers} ${RC_SRC})
endif () endif ()
# Mark this build part as building OpenFlippers Core # Mark this build part as building OpenFlippers Core
......
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
- <b>Breaking changes</b> - <b>Breaking changes</b>
- Picking functions use size_t instead of unsigned int now (Required to get rid of a lot of warnings during compilation) - Picking functions use size_t instead of unsigned int now (Required to get rid of a lot of warnings during compilation)
- Enabled AUTOMOC in cmake for QT ( If you get redefinition errors, guard the corresponding headers with a #pragma once ; If you get gl.h before glew.h errors, move your widgets not using OpenGL into a subdir and add that to the DIRS macro in your CMakeLists.txt) - Enabled AUTOMOC in cmake for QT ( If you get redefinition errors, guard the corresponding headers with a #pragma once ; If you get gl.h before glew.h errors, move your widgets not using OpenGL into a subdir and add that to the DIRS macro in your CMakeLists.txt)
- Enabled AUTOUIC in cmake for QT ( If you get trouble finding generated ui_*.hh headers, change your include to ui_*.h to get them generated correctly)
- Removed a lot of Scenegraph includes in BaseObjectData to reduce gl qt collisions and replaced them with forward declarations. (You have to include the scenegraph headers yourself now!) - Removed a lot of Scenegraph includes in BaseObjectData to reduce gl qt collisions and replaced them with forward declarations. (You have to include the scenegraph headers yourself now!)
- Removed a lot of unnecessary large QT includes from the Interfaces (Mostly QtWidgets). You have to add your own include statements in your plugins now. - Removed a lot of unnecessary large QT includes from the Interfaces (Mostly QtWidgets). You have to add your own include statements in your plugins now.
- Removed WhatsThisGenerator include from BaseInterface. You have to include it in the plugins now if you use it. - Removed WhatsThisGenerator include from BaseInterface. You have to include it in the plugins now if you use it.
......
...@@ -142,22 +142,13 @@ endforeach () ...@@ -142,22 +142,13 @@ endforeach ()
# remove template cc files from source file list # remove template cc files from source file list
acg_drop_templates (sources) acg_drop_templates (sources)
#=======================================================
# Moc/UIC handling
#=======================================================
# genereate uic and moc targets
if (QT5_FOUND)
acg_qt5_autouic (uic_targets ${ui})
endif ()
#======================================================= #=======================================================
# Create library # Create library
#======================================================= #=======================================================
RECURSE_GROUPS( ${CMAKE_CURRENT_SOURCE_DIR}/../../ ) RECURSE_GROUPS( ${CMAKE_CURRENT_SOURCE_DIR}/../../ )
if (QT5_FOUND) if (QT5_FOUND)
acg_add_library (OpenFlipperPluginLib SHARED ${uic_targets} ${sources} ${headers} ) acg_add_library (OpenFlipperPluginLib SHARED ${ui} ${sources} ${headers} )
endif () endif ()
......
...@@ -153,38 +153,6 @@ macro (acg_qt5) ...@@ -153,38 +153,6 @@ macro (acg_qt5)
endif () endif ()
endmacro () endmacro ()
# generate uic targets for sources in list
macro (acg_qt5_autouic uic_SRCS)
set (_matching_FILES )
foreach (_current_FILE ${ARGN})
get_filename_component (_abs_FILE ${_current_FILE} ABSOLUTE)
if ( EXISTS ${_abs_FILE} )
file (READ ${_abs_FILE} _contents)
get_filename_component (_abs_PATH ${_abs_FILE} PATH)
get_filename_component (_basename ${_current_FILE} NAME_WE)
string (REGEX REPLACE "Ui$" "" _cbasename ${_basename})
set (_outfile ${CMAKE_CURRENT_BINARY_DIR}/ui_${_basename}.hh)
set (_header ${_basename}.hh)
set (_source ${_abs_PATH}/${_cbasename}.cc)
add_custom_command (OUTPUT ${_outfile}
COMMAND ${Qt5Widgets_UIC_EXECUTABLE}
ARGS -o ${_outfile} ${_abs_FILE}
MAIN_DEPENDENCY ${_abs_FILE} VERBATIM)
add_file_dependencies (${_source} ${_outfile})
set (${uic_SRCS} ${${uic_SRCS}} ${_outfile})
endif ()
endforeach ()
endmacro ()
# generate qrc targets for sources in list # generate qrc targets for sources in list
macro (acg_qt5_autoqrc qrc_SRCS) macro (acg_qt5_autoqrc qrc_SRCS)
......
...@@ -58,8 +58,9 @@ endif() ...@@ -58,8 +58,9 @@ endif()
# add our macro directory to cmake search path # add our macro directory to cmake search path
set (CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_SOURCE_DIR}/OpenFlipper/cmake) set (CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_SOURCE_DIR}/OpenFlipper/cmake)
# Enable automoc # Enable automoc and autouic
set(CMAKE_AUTOMOC ON) set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTOUIC ON)
......
...@@ -373,10 +373,7 @@ macro (_plugin_licensemanagement) ...@@ -373,10 +373,7 @@ macro (_plugin_licensemanagement)
acg_append_files (keygen_src "*.cc" "${CMAKE_SOURCE_DIR}/OpenFlipper/LicenseManager/keyGen") acg_append_files (keygen_src "*.cc" "${CMAKE_SOURCE_DIR}/OpenFlipper/LicenseManager/keyGen")
acg_append_files (keygen_ui "*.ui" "${CMAKE_SOURCE_DIR}/OpenFlipper/LicenseManager/keyGen") acg_append_files (keygen_ui "*.ui" "${CMAKE_SOURCE_DIR}/OpenFlipper/LicenseManager/keyGen")
# genereate uic targets add_executable (Plugin-${plugin}-keygen ${keygen_ui} ${keygen_hdr} ${keygen_src})
acg_qt5_autouic (keygen_uic ${keygen_ui})
add_executable (Plugin-${plugin}-keygen ${keygen_uic} ${keygen_hdr} ${keygen_src})
target_link_libraries ( target_link_libraries (
Plugin-${plugin}-keygen Plugin-${plugin}-keygen
...@@ -642,12 +639,11 @@ function (_build_openflipper_plugin plugin) ...@@ -642,12 +639,11 @@ function (_build_openflipper_plugin plugin)
add_definitions(${${_PLUGIN}_TYPE_DEFINITIONS}) add_definitions(${${_PLUGIN}_TYPE_DEFINITIONS})
# genereate uic targets # genereate qrc targets
acg_qt5_autouic (uic_targets ${ui})
acg_qt5_autoqrc (qrc_targets ${qrc}) acg_qt5_autoqrc (qrc_targets ${qrc})
add_library (Plugin-${plugin} MODULE ${uic_targets} ${sources} ${headers} ${qrc_targets} ${${_PLUGIN}_ADDSRC}) add_library (Plugin-${plugin} MODULE ${ui} ${sources} ${headers} ${qrc_targets} ${${_PLUGIN}_ADDSRC})
#group projects by parent folder name on MSVC (used for e.g. plugincollection) #group projects by parent folder name on MSVC (used for e.g. plugincollection)
get_filename_component(PARENT_DIR ${CMAKE_CURRENT_SOURCE_DIR} DIRECTORY) get_filename_component(PARENT_DIR ${CMAKE_CURRENT_SOURCE_DIR} DIRECTORY)
get_filename_component(PARENT_DIR_NAME "${PARENT_DIR}" NAME) get_filename_component(PARENT_DIR_NAME "${PARENT_DIR}" NAME)
...@@ -657,7 +653,7 @@ function (_build_openflipper_plugin plugin) ...@@ -657,7 +653,7 @@ function (_build_openflipper_plugin plugin)
acg_set (OPENFLIPPER_${_PLUGIN}_BUILD "1") acg_set (OPENFLIPPER_${_PLUGIN}_BUILD "1")
if (STATIC_PLUGIN_${_PLUGIN}) if (STATIC_PLUGIN_${_PLUGIN})
add_library (Plugin-Static-${plugin} STATIC ${uic_targets} ${sources} ${headers} ${qrc_targets} ${${_PLUGIN}_ADDSRC}) add_library (Plugin-Static-${plugin} STATIC ${ui} ${sources} ${headers} ${qrc_targets} ${${_PLUGIN}_ADDSRC})
set_target_properties(Plugin-Static-${plugin} PROPERTIES COMPILE_DEFINITIONS "QT_STATICPLUGIN") set_target_properties(Plugin-Static-${plugin} PROPERTIES COMPILE_DEFINITIONS "QT_STATICPLUGIN")
get_target_property(PLUGIN_OUTPUT_FILENAME Plugin-${plugin} LOCATION) get_target_property(PLUGIN_OUTPUT_FILENAME Plugin-${plugin} LOCATION)
get_filename_component(PLUGIN_OUTPUT_FILENAME "${PLUGIN_OUTPUT_FILENAME}" NAME) get_filename_component(PLUGIN_OUTPUT_FILENAME "${PLUGIN_OUTPUT_FILENAME}" NAME)
......
...@@ -41,7 +41,6 @@ endif () ...@@ -41,7 +41,6 @@ endif ()
acg_append_files_recursive (headers "*.hh" . ) acg_append_files_recursive (headers "*.hh" . )
acg_append_files_recursive (sources "*.cc" . ) acg_append_files_recursive (sources "*.cc" . )
acg_append_files_recursive (ui "*.ui" . ) acg_append_files_recursive (ui "*.ui" . )
acg_qt5_autouic (uic_targets ${ui})
# Match our current directory name # Match our current directory name
...@@ -62,9 +61,22 @@ include_directories ( ...@@ -62,9 +61,22 @@ include_directories (
# remove template cc files from source file list # remove template cc files from source file list
acg_drop_templates (sources) acg_drop_templates (sources)
acg_add_library ( ${TYPENAME} SHARED ${uic_targets} ${sources} ${headers}) acg_add_library ( ${TYPENAME} SHARED ${ui} ${sources} ${headers})
set_target_properties ( ${TYPENAME} PROPERTIES MACOSX_RPATH 0 ) set_target_properties ( ${TYPENAME} PROPERTIES MACOSX_RPATH 0 )
if ( NOT WIN32 )
# Allow targets depending on ACG find the autogenerated header files
target_include_directories( ${TYPENAME} PUBLIC
${CMAKE_CURRENT_BINARY_DIR}/${TYPENAME}_autogen/include )
else()
# Allow targets depending on the current type find the autogenerated header files from uic
target_include_directories( ${TYPENAME} PUBLIC
$<$<CONFIG:Debug>:${CMAKE_CURRENT_BINARY_DIR}/${TYPENAME}_autogen/include_Debug/>
$<$<CONFIG:Release>:${CMAKE_CURRENT_BINARY_DIR}/${TYPENAME}_autogen/include_Release/> )
endif()
add_dependencies( ${TYPENAME} OpenMeshCore OpenMeshTools ACG OpenFlipperPluginLib) add_dependencies( ${TYPENAME} OpenMeshCore OpenMeshTools ACG OpenFlipperPluginLib)
......
...@@ -115,13 +115,12 @@ acg_drop_templates (sources) ...@@ -115,13 +115,12 @@ acg_drop_templates (sources)
# genereate uic and moc targets # genereate uic and moc targets
if (QT5_FOUND) if (QT5_FOUND)
acg_qt5_autouic (uic_targets ${ui})
acg_qt5_autoqrc (qrc_targets ${qrc}) acg_qt5_autoqrc (qrc_targets ${qrc})
endif() endif()
if (QT5_FOUND) if (QT5_FOUND)
acg_add_library (ACG SHARED ${uic_targets} ${sources} ${headers} ${qrc_targets}) acg_add_library (ACG SHARED ${ui} ${sources} ${headers} ${qrc_targets})
endif() endif()
if ( NOT WIN32 ) if ( NOT WIN32 )
...@@ -138,6 +137,17 @@ acg_print_configure_header (ACG "ACG") ...@@ -138,6 +137,17 @@ acg_print_configure_header (ACG "ACG")
RECURSE_GROUPS( ${CMAKE_CURRENT_SOURCE_DIR} ) RECURSE_GROUPS( ${CMAKE_CURRENT_SOURCE_DIR} )
if ( NOT WIN32 )
# Allow targets depending on ACG find the autogenerated header files
target_include_directories( ACG PUBLIC
${CMAKE_CURRENT_BINARY_DIR}/ACG_autogen/include )
else()
# Allow targets depending on ACG find the autogenerated header files
target_include_directories( ACG PUBLIC
$<$<CONFIG:Debug>:${CMAKE_CURRENT_BINARY_DIR}/ACG_autogen/include_Debug/>
$<$<CONFIG:Release>:${CMAKE_CURRENT_BINARY_DIR}/ACG_autogen/include_Release/> )
endif()
target_link_libraries ( ACG ${OPENMESH_LIBRARIES} target_link_libraries ( ACG ${OPENMESH_LIBRARIES}
${QT_LIBRARIES} ${QT_LIBRARIES}
${OPENGL_LIBRARIES} ${OPENGL_LIBRARIES}
......
...@@ -63,7 +63,7 @@ ...@@ -63,7 +63,7 @@
//== INCLUDES ================================================================= //== INCLUDES =================================================================
#include "ui_QtClippingDialogUi.hh" #include "ui_QtClippingDialogUi.h"
#include "../Config/ACGDefines.hh" #include "../Config/ACGDefines.hh"
#include <QDialog> #include <QDialog>
......
...@@ -63,7 +63,7 @@ ...@@ -63,7 +63,7 @@
//== INCLUDES ================================================================= //== INCLUDES =================================================================
#include "ui_QtCoordFrameDialogUi.hh" #include "ui_QtCoordFrameDialogUi.h"
#include "../Math/VectorT.hh" #include "../Math/VectorT.hh"
#include <vector> #include <vector>
......
...@@ -39,15 +39,6 @@ ...@@ -39,15 +39,6 @@
* * * *
\*===========================================================================*/ \*===========================================================================*/
/*===========================================================================*\
* *
* $Revision$ *
* $Author$ *
* $Date$ *
* *
\*===========================================================================*/
//============================================================================= //=============================================================================
// //
...@@ -58,10 +49,13 @@ ...@@ -58,10 +49,13 @@
//== INCLUDES ================================================================= //== INCLUDES =================================================================
#include "QtMaterialDialog.hh" #include "QtMaterialDialog.hh"
#include "../Scenegraph/MaterialNode.hh" #include "../Scenegraph/MaterialNode.hh"
//== NAMESPACES ============================================================== //== NAMESPACES ==============================================================
......
...@@ -39,16 +39,6 @@ ...@@ -39,16 +39,6 @@
* * * *
\*===========================================================================*/ \*===========================================================================*/
/*===========================================================================*\
* *
* $Revision$ *
* $Author$ *
* $Date$ *
* *
\*===========================================================================*/
//============================================================================= //=============================================================================
// //
// CLASS QtMaterialDialog // CLASS QtMaterialDialog
...@@ -56,14 +46,13 @@ ...@@ -56,14 +46,13 @@
//============================================================================= //=============================================================================
#ifndef ACG_QTMATERIALDIALOG_HH #pragma once
#define ACG_QTMATERIALDIALOG_HH
//== INCLUDES ================================================================= //== INCLUDES =================================================================
#include "ui_QtMaterialDialogUi.hh" #include "ui_QtMaterialDialogUi.h"
#include "../Math/VectorT.hh" #include "../Math/VectorT.hh"
#include "../GL/gl.hh" #include "../GL/gl.hh"
...@@ -199,6 +188,4 @@ private: ...@@ -199,6 +188,4 @@ private:
} // namespace QtWidgets } // namespace QtWidgets
} // namespace ACG } // namespace ACG
//============================================================================= //=============================================================================
#endif // ACG_QTMATERIALDIALOG_HH defined
//=============================================================================
...@@ -54,7 +54,7 @@ ...@@ -54,7 +54,7 @@
// qmake users have to include // qmake users have to include
#include "ui_QtPrincipalAxisDialogBaseUi.hh" #include "ui_QtPrincipalAxisDialogBaseUi.h"
// ACGMake users have to include // ACGMake users have to include
// #include "QtPrincipalAxisDialogBaseUi.hh" // #include "QtPrincipalAxisDialogBaseUi.hh"
......
...@@ -39,16 +39,6 @@ ...@@ -39,16 +39,6 @@
* * * *
\*===========================================================================*/ \*===========================================================================*/
/*===========================================================================*\
* *
* $Revision$ *
* $Author$ *
* $Date$ *
* *
\*===========================================================================*/
//============================================================================= //=============================================================================
// //
// CLASS QtSceneGraphWidget - IMPLEMENTATION // CLASS QtSceneGraphWidget - IMPLEMENTATION
...@@ -71,6 +61,8 @@ ...@@ -71,6 +61,8 @@
#include "../Scenegraph/ShaderNode.hh" #include "../Scenegraph/ShaderNode.hh"
#include "../Scenegraph/CoordFrameNode.hh" #include "../Scenegraph/CoordFrameNode.hh"
#include "ui_QtMaterialDialogUi.h"
#include <stdint.h> #include <stdint.h>
......
...@@ -63,7 +63,7 @@ ...@@ -63,7 +63,7 @@
//== INCLUDES ================================================================= //== INCLUDES =================================================================
#include "ui_QtShaderDialogUi.hh" #include "ui_QtShaderDialogUi.h"
#include "../Config/ACGDefines.hh" #include "../Config/ACGDefines.hh"
#include <QColor> #include <QColor>
......
...@@ -63,7 +63,7 @@ ...@@ -63,7 +63,7 @@
//== INCLUDES ================================================================= //== INCLUDES =================================================================
#include "ui_QtTextureDialogUi.hh" #include "ui_QtTextureDialogUi.h"
#include "../Math/VectorT.hh" #include "../Math/VectorT.hh"
#include "../GL/gl.hh" #include "../GL/gl.hh"
......
...@@ -45,6 +45,9 @@ ...@@ -45,6 +45,9 @@
#include "PluginDialog.hh" #include "PluginDialog.hh"
#include <QMessageBox>
#include <QMenu>
const QColor PluginDialog::blockColor_ = QColor(228, 155, 18); const QColor PluginDialog::blockColor_ = QColor(228, 155, 18);
const QColor PluginDialog::unloadColor_ = QColor(172, 172, 172); const QColor PluginDialog::unloadColor_ = QColor(172, 172, 172);
const QColor PluginDialog::loadedBuiltInColor_ = QColor(208, 240, 192); const QColor PluginDialog::loadedBuiltInColor_ = QColor(208, 240, 192);
......
...@@ -41,10 +41,8 @@ ...@@ -41,10 +41,8 @@
#include "ui_pluginDialog.hh" #include "ui_pluginDialog.h"
#include <QtWidgets>
#include <OpenFlipper/Core/PluginInfo.hh> #include <OpenFlipper/Core/PluginInfo.hh>
class PluginDialog : public QDialog, public Ui::PluginDialog class PluginDialog : public QDialog, public Ui::PluginDialog
......
...@@ -47,6 +47,8 @@ ...@@ -47,6 +47,8 @@
#include <OpenFlipper/common/GlobalOptions.hh> #include <OpenFlipper/common/GlobalOptions.hh>
#include <QKeyEvent>
AboutWidget::AboutWidget(QWidget *parent ) AboutWidget::AboutWidget(QWidget *parent )
: QMainWindow(parent) : QMainWindow(parent)
{ {
......
...@@ -43,10 +43,7 @@ ...@@ -43,10 +43,7 @@
#pragma once #pragma once
#include "ui_aboutWidget.hh" #include "ui_aboutWidget.h"
#include <QtWidgets>
class AboutWidget : public QMainWindow, public Ui::AboutWidget class AboutWidget : public QMainWindow, public Ui::AboutWidget
......
...@@ -39,19 +39,11 @@ ...@@ -39,19 +39,11 @@
* * * *
\*===========================================================================*/ \*===========================================================================*/
#pragma once
#ifndef ADDEMPTYWIDGET_HH
#define ADDEMPTYWIDGET_HH
#include <OpenFlipper/common/Types.hh> #include <OpenFlipper/common/Types.hh>
#include "ui_addEmpty.hh" #include "ui_addEmpty.h"
#include <QtWidgets>
class addEmptyWidget : public QDialog, public Ui::addEmpty class addEmptyWidget : public QDialog, public Ui::addEmpty
{ {
...@@ -69,4 +61,3 @@ class addEmptyWidget : public QDialog, public Ui::addEmpty ...@@ -69,4 +61,3 @@ class addEmptyWidget : public QDialog, public Ui::addEmpty
void slotAddEmpty(); void slotAddEmpty();
}; };
#endif
...@@ -41,20 +41,10 @@ ...@@ -41,20 +41,10 @@
/*
* helpWidget.hh
*
* Created on: Apr 7, 2009
* Author: kremer
*/
#ifndef HELPWIDGET_HH_ #ifndef HELPWIDGET_HH_
#define HELPWIDGET_HH_ #define HELPWIDGET_HH_
#include "ui_helpWidget.hh" #include "ui_helpWidget.h"
#include <QtWidgets>
#include <QtHelp> #include <QtHelp>
#include <QTextDocument> #include <QTextDocument>
......
...@@ -47,6 +47,7 @@ ...@@ -47,6 +47,7 @@
#include "optionsWidget.hh" #include "optionsWidget.hh"
#include <iostream> #include <iostream>
#include <OpenFlipper/common/GlobalOptions.hh> #include <OpenFlipper/common/GlobalOptions.hh>
#include <QMessageBox>
void OptionsWidget::startDownload( QString _url ) { void OptionsWidget::startDownload( QString _url ) {
QUrl url(_url); QUrl url(_url);
......
...@@ -44,6 +44,7 @@ ...@@ -44,6 +44,7 @@
#include <OpenFlipper/BasePlugin/BaseInterface.hh> #include <OpenFlipper/BasePlugin/BaseInterface.hh>
#include "optionsWidget.hh" #include "optionsWidget.hh"
#include <QMessageBox>
/// get the pluginInfo object corresponding to the given pluginName /// get the pluginInfo object corresponding to the given pluginName
int OptionsWidget::getPluginInfo(QString pluginName){ int OptionsWidget::getPluginInfo(QString pluginName){
......
...@@ -50,6 +50,9 @@ ...@@ -50,6 +50,9 @@
#include <ACG/GL/ShaderCache.hh> #include <ACG/GL/ShaderCache.hh>
#include "optionsWidget.hh" #include "optionsWidget.hh"
#include <QColorDialog>
#include <QOpenGLContext>
#include <QMessageBox>
OptionsWidget::OptionsWidget(std::vector<PluginInfo>& _plugins, std::vector<KeyBinding>& _core, InverseKeyMap& _invKeys, QWidget *parent) OptionsWidget::OptionsWidget(std::vector<PluginInfo>& _plugins, std::vector<KeyBinding>& _core, InverseKeyMap& _invKeys, QWidget *parent)
: QWidget(parent), : QWidget(parent),
......
...@@ -50,9 +50,7 @@ ...@@ -50,9 +50,7 @@
#include <OpenFlipper/Core/PluginInfo.hh> #include <OpenFlipper/Core/PluginInfo.hh>
#include <ACG/Scenegraph/DrawModes.hh> #include <ACG/Scenegraph/DrawModes.hh>
#include "ui_optionsWidget.hh" #include "ui_optionsWidget.h"