# Level 1 prerequisites:
SET_AND_CHECK(GEOM_ROOT_DIR_EXP "@PACKAGE_GEOM_ROOT_DIR@")
-# For all prerequisites, load the corresponding targets if the package was used
+# For all prerequisites, load the corresponding targets if the package was used
# in CONFIG mode. This ensures dependent projects link correctly
# without having to set LD_LIBRARY_PATH:
-SET(_PREREQ @_PREREQ_LIST@)
-SET(_PREREQ_CONFIG_DIR @_PREREQ_DIR_LIST@)
-SET(_PREREQ_COMPONENTS "@_PREREQ_COMPO_LIST@")
-LIST(LENGTH _PREREQ_CONFIG_DIR _list_len)
-IF(NOT _list_len EQUAL 0)
+SET(_PREREQ_@PROJECT_NAME@ @_PREREQ_LIST@)
+SET(_PREREQ_@PROJECT_NAME@_CONFIG_DIR @_PREREQ_DIR_LIST@)
+SET(_PREREQ_@PROJECT_NAME@_COMPONENTS "@_PREREQ_COMPO_LIST@")
+LIST(LENGTH _PREREQ_@PROJECT_NAME@_CONFIG_DIR _list_len_@PROJECT_NAME@)
+IF(NOT _list_len_@PROJECT_NAME@ EQUAL 0)
# Another CMake stupidity - FOREACH(... RANGE r) generates r+1 numbers ...
- MATH(EXPR _range "${_list_len}-1")
- FOREACH(_p RANGE ${_range})
- LIST(GET _PREREQ ${_p} _pkg )
- LIST(GET _PREREQ_CONFIG_DIR ${_p} _pkg_dir)
- LIST(GET _PREREQ_COMPONENTS ${_p} _pkg_compo)
- MESSAGE(STATUS "===> Reloading targets from ${_pkg} ...")
- IF(NOT _pkg_compo)
- FIND_PACKAGE(${_pkg} REQUIRED NO_MODULE
- PATHS "${_pkg_dir}"
- NO_DEFAULT_PATH)
- ELSE()
- STRING(REPLACE "," ";" _compo_lst "${_pkg_compo}")
- MESSAGE(STATUS "===> (components: ${_pkg_compo})")
- FIND_PACKAGE(${_pkg} REQUIRED NO_MODULE
- COMPONENTS ${_compo_lst}
- PATHS "${_pkg_dir}"
- NO_DEFAULT_PATH)
+ MATH(EXPR _range_@PROJECT_NAME@ "${_list_len_@PROJECT_NAME@}-1")
+ FOREACH(_p_@PROJECT_NAME@ RANGE ${_range_@PROJECT_NAME@})
+ LIST(GET _PREREQ_@PROJECT_NAME@ ${_p_@PROJECT_NAME@} _pkg_@PROJECT_NAME@ )
+ LIST(GET _PREREQ_@PROJECT_NAME@_CONFIG_DIR ${_p_@PROJECT_NAME@} _pkg_dir_@PROJECT_NAME@)
+ LIST(GET _PREREQ_@PROJECT_NAME@_COMPONENTS ${_p_@PROJECT_NAME@} _pkg_compo_@PROJECT_NAME@)
+ IF(NOT OMIT_DETECT_PACKAGE_${_pkg_@PROJECT_NAME@})
+ MESSAGE(STATUS "===> Reloading targets from ${_pkg_@PROJECT_NAME@} ...")
+ IF(NOT _pkg_compo_@PROJECT_NAME@)
+ FIND_PACKAGE(${_pkg_@PROJECT_NAME@} REQUIRED NO_MODULE
+ PATHS "${_pkg_dir_@PROJECT_NAME@}"
+ NO_DEFAULT_PATH)
+ ELSE()
+ STRING(REPLACE "," ";" _compo_lst_@PROJECT_NAME@ "${_pkg_compo_@PROJECT_NAME@}")
+ MESSAGE(STATUS "===> (components: ${_pkg_compo_@PROJECT_NAME@})")
+ FIND_PACKAGE(${_pkg_@PROJECT_NAME@} REQUIRED NO_MODULE
+ COMPONENTS ${_compo_lst_@PROJECT_NAME@}
+ PATHS "${_pkg_dir_@PROJECT_NAME@}"
+ NO_DEFAULT_PATH)
+ ENDIF()
ENDIF()
ENDFOREACH()
ENDIF()
# The theme to use for HTML and HTML Help pages. Major themes that come with
# Sphinx are currently 'default' and 'sphinxdoc'.
-html_theme = 'default'
+html_theme = '@SPHINX_THEME@'
# The style sheet to use for HTML and HTML Help pages. A file of that name
# must exist either in Sphinx' static/ path, or in one of the custom paths
#include <cassert>
-
+#include <QDir>
#include <QInputDialog>
#include <QIcon>
#include <QStackedWidget>
+#include <QMenu>
+#include <QSplitter>
#include <QtxTreeView.h>
#include <SUIT_MessageBox.h>
#include "HEXABLOCKGUI_OCCSelector.h"
#include "hexa_base.hxx"
+class QDir;
// #include CORBA_CLIENT_HEADER(HEXABLOCK_Gen) // Abu Juin 2013
{
setText(m_DocElt->getName());
if ( m_DocElt->isAssociated() )
- setData(Qt::darkGreen, Qt::ForegroundRole);
+ setData(QColor(Qt::darkGreen), Qt::ForegroundRole);
}
setData( treeRole, HEXA_TREE_ROLE );
setData( entry, HEXA_DOC_ENTRY_ROLE);
#include "Hex.hxx"
#include <iostream>
-#include <QtGui>
#include <QFlags>
+#include <QKeyEvent>
+#include <QStyledItemDelegate>
#include <SalomeApp_Application.h>
#include <SalomeApp_Study.h>
{
if (anItemIndex.isValid())
{
- theModel->setData(anItemIndex, fgColor, Qt::ForegroundRole);
- theModel->setData(anItemIndex, bgColor, Qt::BackgroundRole);
+ theModel->setData(anItemIndex, QColor(fgColor), Qt::ForegroundRole);
+ theModel->setData(anItemIndex, QColor(bgColor), Qt::BackgroundRole);
currentHighlightedItems << anItemIndex;
}
}
{
if (anItemIndex.isValid())
{
- theModel->setData(anItemIndex, Qt::darkGreen, Qt::ForegroundRole);
- theModel->setData(anItemIndex, Qt::white, Qt::BackgroundRole);
+ theModel->setData(anItemIndex, QColor(Qt::darkGreen), Qt::ForegroundRole);
+ theModel->setData(anItemIndex, QColor(Qt::white), Qt::BackgroundRole);
}
}
currentHighlightedItems.clear();
{
if (anItemIndex.isValid())
{
- theModel->setData(anItemIndex, fgColor, Qt::ForegroundRole);
- theModel->setData(anItemIndex, bgColor, Qt::BackgroundRole);
+ theModel->setData(anItemIndex, QColor(fgColor), Qt::ForegroundRole);
+ theModel->setData(anItemIndex, QColor(bgColor), Qt::BackgroundRole);
currentHighlightedItems << anItemIndex;
}
}
{
if (anItemIndex.isValid())
{
- theModel->setData(anItemIndex, Qt::darkGreen, Qt::ForegroundRole);
- theModel->setData(anItemIndex, Qt::white, Qt::BackgroundRole);
+ theModel->setData(anItemIndex, QColor(Qt::darkGreen), Qt::ForegroundRole);
+ theModel->setData(anItemIndex, QColor(Qt::white), Qt::BackgroundRole);
}
}
currentHighlightedItems.clear();
return _resource->booleanValue(RESOURCE_HEXABLOCK, name, def);
}
-QFont HEXABLOCKGUI_Resource::fontValue(const QString& name, const QFont def) const {
+QFont HEXABLOCKGUI_Resource::fontValue(const QString& name, const QFont& def) const {
return _resource->fontValue(RESOURCE_HEXABLOCK, name, def);
}
-QColor HEXABLOCKGUI_Resource::colorValue(const QString& name, const QColor def) const {
+QColor HEXABLOCKGUI_Resource::colorValue(const QString& name, const QColor& def) const {
return _resource->colorValue(RESOURCE_HEXABLOCK, name, def);
}
return colorValue(name, col);
}
-QString HEXABLOCKGUI_Resource::stringValue(const QString& name, const QString def) const {
+QString HEXABLOCKGUI_Resource::stringValue(const QString& name, const QString& def) const {
return _resource->stringValue(RESOURCE_HEXABLOCK, name, def);
}
_resource->setValue(RESOURCE_HEXABLOCK, name, val);
}
-void HEXABLOCKGUI_Resource::setValue( const QString& name, const QFont val ) {
+void HEXABLOCKGUI_Resource::setValue( const QString& name, const QFont& val ) {
_resource->setValue(RESOURCE_HEXABLOCK, name, val);
}
-void HEXABLOCKGUI_Resource::setValue( const QString& name, const QColor val ) {
+void HEXABLOCKGUI_Resource::setValue( const QString& name, const QColor& val ) {
_resource->setValue(RESOURCE_HEXABLOCK, name, val);
}
-void HEXABLOCKGUI_Resource::setValue( const QString& name, const QString val ) {
+void HEXABLOCKGUI_Resource::setValue( const QString& name, const QString& val ) {
_resource->setValue(RESOURCE_HEXABLOCK, name, val);
}
#ifndef _HEXABLOCKGUI_RESOURCE_HXX_
#define _HEXABLOCKGUI_RESOURCE_HXX_
-#include "HEXABLOCKGUI_Export.hxx"
+#include <QColor>
+#include <QFont>
+#include <QString>
-#include <QtGui>
+#include "HEXABLOCKGUI_Export.hxx"
class HEXABLOCKGUI;
class SUIT_ResourceMgr;
-
-
class HEXABLOCK_EXPORT HEXABLOCKGUI_Resource
{
public:
virtual void preferencesChanged();
protected:
- int integerValue( const QString& name, const int def = 0 ) const;
- double doubleValue ( const QString& name, const double def = 0 ) const;
- bool booleanValue( const QString& name, const bool def = false ) const;
- QFont fontValue ( const QString& name, const QFont def = QFont() ) const;
- QColor colorValue ( const QString& name, const QColor def = QColor() ) const;
- QColor colorValue ( const QString& name, const Qt::GlobalColor c ) const;
- QColor colorValue ( const QString& name, const int h, const int s, const int v) const;
- QString stringValue ( const QString& name, const QString def = QString() ) const;
-
- void setValue( const QString& name, const int val );
- void setValue( const QString& name, const double val );
- void setValue( const QString& name, const bool val );
- void setValue( const QString& name, const QFont val );
- void setValue( const QString& name, const QColor val );
- void setValue( const QString& name, const QString val );
+ int integerValue( const QString& name, const int def = 0 ) const;
+ double doubleValue ( const QString& name, const double def = 0 ) const;
+ bool booleanValue( const QString& name, const bool def = false ) const;
+ QFont fontValue ( const QString& name, const QFont& def = QFont() ) const;
+ QColor colorValue ( const QString& name, const QColor& def = QColor() ) const;
+ QColor colorValue ( const QString& name, const Qt::GlobalColor c ) const;
+ QColor colorValue ( const QString& name, const int h, const int s, const int v ) const;
+ QString stringValue ( const QString& name, const QString& def = QString() ) const;
+
+ void setValue( const QString& name, const int val );
+ void setValue( const QString& name, const double val );
+ void setValue( const QString& name, const bool val );
+ void setValue( const QString& name, const QFont& val );
+ void setValue( const QString& name, const QColor& val );
+ void setValue( const QString& name, const QString& val );
protected:
SUIT_ResourceMgr* _resource;
-
};
#include "HEXABLOCKGUI_VtkDocumentGraphicView.hxx"
#include "HEXABLOCKGUI.hxx"
+#include <QScrollBar>
+
#ifndef M_PI
#define M_PI 3.1415927
#endif
#include <QRadioButton>
#include <QMenu>
#include <QTimer>
+#include <QVector3D>
#include <gp_Pnt.hxx>
#include <TopoDS_Shape.hxx>
}
}
else if (id == GEOM_POINT_SURF) {
- GroupOnSurface->TextLabel2->setShown(isParam);
- GroupOnSurface->TextLabel3->setShown(isParam);
- GroupOnSurface->SpinBox_DX->setShown(isParam);
- GroupOnSurface->SpinBox_DY->setShown(isParam);
+ GroupOnSurface->TextLabel2->setVisible(isParam);
+ GroupOnSurface->TextLabel3->setVisible(isParam);
+ GroupOnSurface->SpinBox_DX->setVisible(isParam);
+ GroupOnSurface->SpinBox_DY->setVisible(isParam);
}
- GroupXYZ->setShown(!isParam && !isLength);
+ GroupXYZ->setVisible(!isParam && !isLength);
}
//=================================================================================
02110-1301, USA.
*/
-#include <QtCore/QObject>
+#include <QObject>
#include "klinkitemselectionmodel.hxx"
// #include "klinkitemselectionmodel_p.hxx"
#include "HEXABLOCKGUI_Export.hxx"\r
-#include <QtCore/QObject>
-#include <QtGui/QItemSelectionModel>
-#include <QtGui/QAbstractProxyModel>
+#include <QObject>
+#include <QItemSelectionModel>
+#include <QAbstractProxyModel>
#include <iostream>
#include "kmodelindexproxymapper.hxx"
-#include <QtCore/QAbstractItemModel>
-#include <QtCore/QWeakPointer>
-#include <QtGui/QAbstractProxyModel>
-#include <QtGui/QItemSelectionModel>
+#include <QAbstractItemModel>
+#include <QWeakPointer>
+#include <QAbstractProxyModel>
+#include <QItemSelectionModel>
// #include "kdebug.h"