TEMPLATE = lib
-DESTDIR = ../../lib
+
+DESTDIR = ../../$(CONFIG_ID)/lib
MOC_DIR = ../../moc
-OBJECTS_DIR = ../../obj/$$TARGET
+OBJECTS_DIR = ../../$(CONFIG_ID)/obj/$$TARGET
INCLUDEPATH = ../../include
win32:LIBS += ../../lib/suit.lib ../../lib/qtx.lib
-unix:LIBS += -L../../lib -lSUIT -lQtx
+unix:LIBS += -L../../$(CONFIG_ID)/lib -lSUIT -lQtx
CONFIG -= debug release debug_and_release
CONFIG += qt thread debug dll shared
TEMPLATE = lib
-DESTDIR = ../../lib
+
+DESTDIR = ../../$(CONFIG_ID)/lib
MOC_DIR = ../../moc
-OBJECTS_DIR = ../../obj/$$TARGET
+OBJECTS_DIR = ../../$(CONFIG_ID)/obj/$$TARGET
INCLUDEPATH += ../../include $$(PYTHONINC)
-unix:LIBS += -L../../lib -L$$(PYTHONLIB) -lpython2.3 -lSUIT -lPyInterp
+unix:LIBS += -L../../$(CONFIG_ID)/lib -L$$(PYTHONLIB) -lpython2.3 -lSUIT -lPyInterp
win32:LIBS += /LIBPATH:$$(PYTHONLIB) ../../lib/pyinterp.lib ../../lib/suit.lib
CONFIG -= debug release debug_and_release
TEMPLATE = lib
-DESTDIR = ../../lib
+
+DESTDIR = ../../$(CONFIG_ID)/lib
MOC_DIR = ../../moc
-OBJECTS_DIR = ../../obj/$$TARGET
+OBJECTS_DIR = ../../$(CONFIG_ID)/obj/$$TARGET
INCLUDEPATH += ../../include $$(PYTHONINC)
unix:LIBS += -L$$(PYTHONLIB) -lpython2.3
TEMPLATE = lib
-DESTDIR = ../../lib
+
+DESTDIR = ../../$(CONFIG_ID)/lib
MOC_DIR = ../../moc
-OBJECTS_DIR = ../../obj/$$TARGET
+OBJECTS_DIR = ../../$(CONFIG_ID)/obj/$$TARGET
QT += xml
CONFIG -= debug release debug_and_release
\param parent parent preference item
*/
QtxPreferenceItem::QtxPreferenceItem( QtxPreferenceItem* parent )
-: myParent( 0 )
+: myParent( 0 ),
+myEval( true )
{
myId = generateId();
sendItemChanges();
}
+bool QtxPreferenceItem::isEvaluateValues() const
+{
+ return myEval;
+}
+
+void QtxPreferenceItem::setEvaluateValues( const bool on )
+{
+ myEval = on;
+}
+
/*!
\fn void QtxPreferenceItem::store();
\brief Save preference item (for example, to the resource file).
*/
QString QtxPreferenceItem::getString( const QString& val ) const
{
+ QString res = val;
QtxResourceMgr* resMgr = resourceMgr();
- return resMgr ? resMgr->stringValue( mySection, myParameter, val ) : val;
+ if ( resMgr )
+ resMgr->value( mySection, myParameter, res, isEvaluateValues() );
+ return res;
}
/*!
\return property value or null QVariant if option is not set
\sa setOptionValue()
*/
-QVariant QtxPreferenceItem::optionValue( const QString& /*name*/ ) const
+QVariant QtxPreferenceItem::optionValue( const QString& name ) const
{
- return QVariant();
+ QVariant val;
+ if ( name == "eval" || name == "evaluation" || name == "subst" || name == "substitution" )
+ val = isEvaluateValues();
+ return val;
}
/*!
\param val new property value
\sa optionValue()
*/
-void QtxPreferenceItem::setOptionValue( const QString& /*name*/, const QVariant& /*val*/ )
+void QtxPreferenceItem::setOptionValue( const QString& name, const QVariant& val )
{
+ if ( name == "eval" || name == "evaluation" || name == "subst" || name == "substitution" )
+ {
+ if ( val.canConvert( QVariant::Bool ) )
+ setEvaluateValues( val.toBool() );
+ }
}
/*!
QVariant option( const QString& ) const;
void setOption( const QString&, const QVariant& );
+ bool isEvaluateValues() const;
+ void setEvaluateValues( const bool );
+
virtual void store() = 0;
virtual void retrieve() = 0;
QtxPreferenceItem* myParent;
ItemList myChildren;
+ bool myEval;
QIcon myIcon;
QString myTitle;
QString mySection;
TEMPLATE = lib
-DESTDIR = ../../lib
+
+DESTDIR = ../../$(CONFIG_ID)/lib
MOC_DIR = ../../moc
-OBJECTS_DIR = ../../obj/$$TARGET
+OBJECTS_DIR = ../../$(CONFIG_ID)/obj/$$TARGET
INCLUDEPATH = ../../include
-LIBS += -L../../lib -lSUIT -lQtx
+LIBS += -L../../$(CONFIG_ID)/lib -lSUIT -lQtx
CONFIG -= debug release debug_and_release
CONFIG += qt thread debug dll shared
TEMPLATE = lib
-DESTDIR = ../../lib
+
+DESTDIR = ../../$(CONFIG_ID)/lib
MOC_DIR = ../../moc
-OBJECTS_DIR = ../../obj/$$TARGET
+OBJECTS_DIR = ../../$(CONFIG_ID)/obj/$$TARGET
INCLUDEPATH = ../../include
-LIBS += -L../../lib -lQtx
+LIBS += -L../../$(CONFIG_ID)/lib -lQtx
CONFIG -= debug release debug_and_release
CONFIG += qt thread debug dll shared
TEMPLATE = app
-DESTDIR = ../../bin
+
+DESTDIR = ../../$(CONFIG_ID)/bin
MOC_DIR = ../../moc
-OBJECTS_DIR = ../../obj/$$TARGET
+OBJECTS_DIR = ../../$(CONFIG_ID)/obj/$$TARGET
INCLUDEPATH = ../../include
-LIBS += -L../../lib -lSUIT -lQtx
+LIBS += -L../../$(CONFIG_ID)/lib -lSUIT -lQtx
CONFIG -= debug release debug_and_release
CONFIG += qt thread debug dll shared