#include <cassert>
-
+#include <QDir>
#include <QInputDialog>
#include <QIcon>
#include <QStackedWidget>
#include "HEXABLOCKGUI_OCCSelector.h"
#include "hexa_base.hxx"
+class QDir;
// #include CORBA_CLIENT_HEADER(HEXABLOCK_Gen) // Abu Juin 2013
#include "Hex.hxx"
#include <iostream>
-#include <QtGui>
#include <QFlags>
+#include <QKeyEvent>
#include <QStyledItemDelegate>
#include <SalomeApp_Application.h>
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 <QRadioButton>
#include <QMenu>
#include <QTimer>
+#include <QVector3D>
#include <gp_Pnt.hxx>
#include <TopoDS_Shape.hxx>
02110-1301, USA.
*/
-#include <QtCore/QObject>
+#include <QObject>
#include "klinkitemselectionmodel.hxx"
// #include "klinkitemselectionmodel_p.hxx"
#include "HEXABLOCKGUI_Export.hxx"
-#include <QtCore/QObject>
-#if QT_VERSION < QT_VERSION_CHECK(5, 0, 0)
-#include <QtGui/QItemSelectionModel>
-#include <QtGui/QAbstractProxyModel>
-#else
-#include <QtCore/QItemSelectionModel>
-#include <QtCore/QAbstractProxyModel>
-#endif
+#include <QObject>
+#include <QItemSelectionModel>
+#include <QAbstractProxyModel>
#include <iostream>
#include "kmodelindexproxymapper.hxx"
-#include <QtCore/QAbstractItemModel>
-#include <QtCore/QWeakPointer>
-#if QT_VERSION < QT_VERSION_CHECK(5, 0, 0)
-#include <QtGui/QAbstractProxyModel>
-#include <QtGui/QItemSelectionModel>
-#else
-#include <QtCore/QAbstractProxyModel>
-#include <QtCore/QItemSelectionModel>
-#endif
+#include <QAbstractItemModel>
+#include <QWeakPointer>
+#include <QAbstractProxyModel>
+#include <QItemSelectionModel>
// #include "kdebug.h"