From 324dce0b392ba0a3fb5d41ff23f9e5c4d8de5e20 Mon Sep 17 00:00:00 2001 From: asl Date: Thu, 15 Dec 2005 09:39:51 +0000 Subject: [PATCH] for compilation under Linux --- src/QDS/Makefile.in | 51 +++++++++++++++++++++++++++++++++++++++++++ src/QDS/QDS_Datum.cxx | 4 ++-- src/QDS/QDS_Datum.h | 2 +- 3 files changed, 54 insertions(+), 3 deletions(-) create mode 100755 src/QDS/Makefile.in diff --git a/src/QDS/Makefile.in b/src/QDS/Makefile.in new file mode 100755 index 000000000..97b4ae3f7 --- /dev/null +++ b/src/QDS/Makefile.in @@ -0,0 +1,51 @@ +# File : Makefile.in +# Author : Alexander SOLOVYOV (OCN) +# Module : QDS +# $Header: /home/server/cvs/GUI/GUI_SRC/src/QDS/Makefile.in + +top_srcdir=@top_srcdir@ +top_builddir=../.. +srcdir=@srcdir@ +VPATH=.:@srcdir@ + +@COMMENCE@ + +# header files +EXPORT_HEADERS= QDS.h \ + QDS_CheckBox.h \ + QDS_ComboBox.h \ + QDS_Datum.h \ + QDS_LineEdit.h \ + QDS_SpinBox.h \ + QDS_SpinBoxDbl.h \ + QDS_TextEdit.h \ + QDS_Validator.h + +# Libraries targets +LIB = libQDS.la + +LIB_SRC= QDS.cxx \ + QDS_CheckBox.cxx \ + QDS_ComboBox.cxx \ + QDS_Datum.cxx \ + QDS_LineEdit.cxx \ + QDS_SpinBox.cxx \ + QDS_SpinBoxDbl.cxx \ + QDS_TextEdit.cxx \ + QDS_Validator.cxx + +LIB_MOC = QDS_CheckBox.h \ + QDS_ComboBox.h \ + QDS_Datum.h \ + QDS_LineEdit.h \ + QDS_SpinBox.h \ + QDS_SpinBoxDbl.h \ + QDS_TextEdit.h + +CPPFLAGS+=$(QT_INCLUDES) $(OCC_INCLUDES) + +LDFLAGS+=$(QT_MT_LIBS) $(CAS_KERNEL) -lDDS -lqtx + +@CONCLUDE@ + + diff --git a/src/QDS/QDS_Datum.cxx b/src/QDS/QDS_Datum.cxx index 62d4e7e49..0d2369e18 100644 --- a/src/QDS/QDS_Datum.cxx +++ b/src/QDS/QDS_Datum.cxx @@ -755,7 +755,7 @@ Handle(DDS_DicItem) QDS_Datum::dicItem() const /*! Set the dictionary item in to the datum. */ -void QDS_Datum::setDicItem( Handle(DDS_DicItem)& item ) +void QDS_Datum::setDicItem( const Handle(DDS_DicItem)& item ) { myDicItem = item; } @@ -982,7 +982,7 @@ QString QDS_Datum::format( const int num, const QString& id, const bool convert aType = anItem->GetType(); aFormat = toQString( anItem->GetFormat( false ) ); if ( convert ) - aNum = anItem->FromSI( aNum ); + aNum = ( int )anItem->FromSI( aNum ); } } diff --git a/src/QDS/QDS_Datum.h b/src/QDS/QDS_Datum.h index 5158c2dfb..be0247441 100644 --- a/src/QDS/QDS_Datum.h +++ b/src/QDS/QDS_Datum.h @@ -107,7 +107,7 @@ protected: QWidget* controlWidget() const; Handle(DDS_DicItem) dicItem() const; - void setDicItem( Handle(DDS_DicItem)& ); + void setDicItem( const Handle(DDS_DicItem)& ); int flags() const; -- 2.39.2