void GimmickView::Initialize()
{
mImageExtent=0;
+ mReaderStarted=false;
}
//======================================================================
void GimmickView::RequestReading(tree::Node* n,
int prio, int selection_index, ImagePointerHolder *p)
{
- mReader.Start();
+ if(!mReaderStarted)
+ {
+ mReader.Start();
+ mReaderStarted=true;
+ }
ImageEventType t(n,selection_index, p);
mImageEventMap[n->GetAttribute("FullFileName")] = t;
mReader.Request(this,n->GetAttribute("FullFileName"),prio);
typedef std::deque<ImageEventType> ImageEventQueueType;
//ImageEventQueueType mImageEventQueue;
+ ///The current image extent
ImageExtent* mImageExtent;
+ ///The validation signal
ValidationSignalType mValidationSignal;
+ ///Boolean that determines if the selection is valid
bool valid;
+ ///Boolean that determines if the reader has been started
+ bool mReaderStarted;
};
// EO class GimmickView
private:
ImageReader mReader;
MultiThreadImageReader* mMultiThreadImageReader;
+
};
//=====================================================================
i!=mThreadedImageReaderList.end();
i++)
{
- (*i)->Delete();
+ if((*i)->IsAlive())
+ {
+ (*i)->Delete();
+ }
}
mThreadedImageReaderList.clear();
// Wait a little to be sure that all threads have stopped
GimmickDebugMessage(5,"Creating column "<<col<<" : "
<<a->GetName()
<<std::endl);
+
+ if(a->GetFlags()!=creaImageIO::tree::AttributeDescriptor::PRIVATE)
+ {
+
if(a->GetName()=="UNKNOWN")
{
title = "#";
level.key.push_back(a->GetKey());
// ctrl->SetColumnWidth(col, wxLIST_AUTOSIZE );
col++;
-
+ }
}
{
break;
}
- if(GetCtrl(level)->GetItemState(item, wxLIST_STATE_SELECTED)==0 && item!=0)
+ if(GetCtrl(level)->GetItemState(item, wxLIST_STATE_SELECTED)==0 /*&& item!=0*/)
{
adr = GetCtrl(level)->GetItemData(item);
nod = ((ItemData*)adr)->node;