Definition at line 102 of file ImageSet.h. References mExtraLines, mFirstVisY, Impala::Visualization::ImagesWindow::mImages, mImSelected, mLines, mNrVisibleX, mNrVisibleY, Redraw(), SetFirstVisY(), and UpdateScrollBarRange(). Referenced by Impala::Visualization::RotorBrowser::RotorBrowserGUI::BookmarkEvent(), and RemoveImageById(). 00103 { 00104 if (index >= mImages.size()) 00105 return; 00106 mImages.erase(mImages.begin() + index); 00107 00108 // redraw and scroll if necessary 00109 if (mImages.size() <= (mLines-1)*mNrVisibleX) 00110 { 00111 mLines--; 00112 UpdateScrollBarRange(); 00113 } 00114 if ((mImages.size()-1)/mNrVisibleX+1 < mFirstVisY+(mNrVisibleY-mExtraLines) 00115 && mFirstVisY > 0) 00116 { 00117 SetFirstVisY(mFirstVisY - 1); 00118 } 00119 else 00120 { 00121 Redraw(); 00122 } 00123 if (index < mImSelected) 00124 mImSelected = -1; 00125 00126 // todo consider selection 00127 /* 00128 // select and notify listener 00129 if (index >= mImages.size()) 00130 index = mImages.size() - 1; 00131 if (index >= 0) 00132 { 00133 SetViewSelected(index - (mFirstVisY * mNrVisibleX)); 00134 if(mImagesListener) 00135 mImagesListener->ImageSelectionEvent(this, index, mImagesListenerData); 00136 } 00137 */ 00138 }
Here is the call graph for this function:
|