Definition at line 132 of file StringColumns.h. References isSelectedBit, and mColumns. Referenced by MouseFunc(). 00133 { 00134 int start = (first<=last) ? first : last; 00135 int end = (first<=last) ? last : first; 00136 if (col<0 || col>mColumns.size()-1) 00137 return; 00138 StrOptions& options = mColumns[col].strOptions; 00139 if (start<0 || end<0 || start>options.size()-1 || end>options.size()-1) 00140 return; 00141 for (int i=0; i<options.size(); i++) 00142 { 00143 if (i>=start && i<=end) 00144 options[i] |= isSelectedBit; 00145 else 00146 options[i] &= ~isSelectedBit; 00147 } 00148 }
|