modules( aModuleNames, false ); // obtain a complete list of module names for the current configuration
//! If there's the one and only module --> activate it automatically
//! TODO: Possible improvement - default module can be taken from preferences
- return aModuleNames.count() > 1 ? "" : ( aModuleNames.count() ? aModuleNames.first() : "" );
+ return aModuleNames.count() > 1 ? QString( "" ) : ( aModuleNames.count() ? aModuleNames.first() : QString( "" ) );
}
/*!On new window slot.*/
QCustomEvent* ce = ( QCustomEvent* )e;
QString* d = ( QString* )ce->data();
if( SUIT_MessageBox::warn2(0, tr("WRN_WARNING"),
- d ? *d : "",
+ d ? *d : QString( "" ),
tr("BUT_OK"), tr("BUT_CANCEL"), 0, 1, 0 )==0 )
onPreferences();
if( d )
{
public:
IMapIterator() : myMap( 0 ), myIndex( 0 ) { init(); }
- IMapIterator( const IMap<Key,Value>* m ) : myMap( const_cast< IMap<Key,Value>* >( m ) ), myIndex( 0 ) { init(); }
+ IMapIterator( const QtxResourceMgr::IMap<Key,Value>* m ) : myMap( const_cast< QtxResourceMgr::IMap<Key,Value>* >( m ) ), myIndex( 0 ) { init(); }
IMapIterator( const IMapIterator& i ) : myMap( i.myMap ), myIndex( i.myIndex ) { init(); }
bool operator==( const IMapIterator& i ) { return !operator!=( i ); }
IMapIterator operator--( int ) { IMapIterator i = *this; myIndex--; init(); return i; }
private:
- IMapIterator( const IMap<Key,Value>* m, const int index ) : myMap( const_cast< IMap<Key,Value>* >( m ) ), myIndex( index ) { init(); }
+ IMapIterator( const QtxResourceMgr::IMap<Key,Value>* m, const int index ) : myMap( const_cast< QtxResourceMgr::IMap<Key,Value>* >( m ) ), myIndex( index ) { init(); }
void init() { if ( !myMap || myIndex >= myMap->count() ) myIndex = -1; }
private:
- IMap<Key,Value>* myMap;
+ QtxResourceMgr::IMap<Key,Value>* myMap;
int myIndex;
- friend class IMap<Key, Value>;
- friend class IMapConstIterator<Key, Value>;
+ friend class QtxResourceMgr::IMap<Key, Value>;
+ friend class QtxResourceMgr::IMapConstIterator<Key, Value>;
};
/*!
{
public:
IMapConstIterator() : myMap( 0 ), myIndex( 0 ) { init(); }
- IMapConstIterator( const IMap<Key,Value>* m ) : myMap( const_cast< IMap<Key,Value>* >( m ) ), myIndex( 0 ) { init(); }
+ IMapConstIterator( const QtxResourceMgr::IMap<Key,Value>* m ) : myMap( const_cast< QtxResourceMgr::IMap<Key,Value>* >( m ) ), myIndex( 0 ) { init(); }
IMapConstIterator( const IMapConstIterator& i ) : myMap( i.myMap ), myIndex( i.myIndex ) { init(); }
- IMapConstIterator( const IMapIterator<Key, Value>& i ) : myMap( i.myMap ), myIndex( i.myIndex ) { init(); }
+ IMapConstIterator( const QtxResourceMgr::IMapIterator<Key, Value>& i ) : myMap( i.myMap ), myIndex( i.myIndex ) { init(); }
bool operator==( const IMapConstIterator& i ) { return !operator!=( i ); }
bool operator!=( const IMapConstIterator& i ) { return !myMap || myMap != i.myMap || myIndex != i.myIndex; }
IMapConstIterator operator--( int ) { IMapConstIterator i = *this; myIndex--; init(); return i; }
private:
- IMapConstIterator( const IMap<Key,Value>* m, const int index ): myMap( const_cast< IMap<Key,Value>* >( m ) ), myIndex( index ) { init(); }
+ IMapConstIterator( const QtxResourceMgr::IMap<Key,Value>* m, const int index ): myMap( const_cast< QtxResourceMgr::IMap<Key,Value>* >( m ) ), myIndex( index ) { init(); }
void init() { if ( !myMap || myIndex >= myMap->count() ) myIndex = -1; }
private:
- IMap<Key,Value>* myMap;
+ QtxResourceMgr::IMap<Key,Value>* myMap;
int myIndex;
- friend class IMap<Key,Value>;
+ friend class QtxResourceMgr::IMap<Key,Value>;
};
/*!
template <class Key, class Value> class QtxResourceMgr::IMap
{
public:
- typedef IMapIterator<Key,Value> Iterator;
- typedef IMapConstIterator<Key,Value> ConstIterator;
+ typedef QtxResourceMgr::IMapIterator<Key,Value> Iterator;
+ typedef QtxResourceMgr::IMapConstIterator<Key,Value> ConstIterator;
public:
IMap() {}
Key dummyKey;
Value dummyValue;
- friend class IMapIterator<Key,Value>;
- friend class IMapConstIterator<Key,Value>;
+ friend class QtxResourceMgr::IMapIterator<Key,Value>;
+ friend class QtxResourceMgr::IMapConstIterator<Key,Value>;
};
#endif
aDX[1] >= theSelection[1] && aDX[1] <= theSelection[3])
{
//cout<<"aPntId "<<aPntId<<"; aDX = {"<<aDX[0]<<", "<<aDX[1]<<", "<<aDX[2]<<"}\n";
+ static int aMaxRadius = 5;
+ int aDX0 = 0;
+ int aDX1 = 0;
+ int aRet = 0;
+ int aRadius = 1;
+
if (isThrough) goto ADD_VISIBLE; // RKV
- int aDX0 = int(aDX[0]);
- int aDX1 = int(aDX[1]);
+ aDX0 = int(aDX[0]);
+ aDX1 = int(aDX[1]);
- int aRet = Check(aZPtr,theSelection,theTolerance,aDX[2],aDX0,aDX1);
+ aRet = Check(aZPtr,theSelection,theTolerance,aDX[2],aDX0,aDX1);
if(aRet > 0)
goto ADD_VISIBLE;
if(aRet < 0)
goto ADD_INVISIBLE;
- static int aMaxRadius = 5;
- for(int aRadius = 1; aRadius < aMaxRadius; aRadius++){
+ for(aRadius = 1; aRadius < aMaxRadius; aRadius++){
int aStartDX[2] = {aDX0 - aRadius, aDX1 - aRadius};
for(int i = 0; i <= aRadius; i++){
int aRet = Check(aZPtr,theSelection,theTolerance,aDX[2],aStartDX[0]++,aStartDX[1]);