/** Round-robin table. Represents one round-robin group of players.
 */
RatingsTable::RatingsTable( Group* group, QWidget* parent )
: GroupTable( group, parent ) 
{
  setupCells();
  updateMatchCells();
  updateTotalRatings();

  resizeColumnsToContents();
}
/** Round-robin table. Represents one round-robin group of players.
 */
RatingsTable::RatingsTable( Group* group, QWidget* parent )
: GroupTable( group, parent ) 
{
  setupCells();
  updateMatchCells();
  updateTotalRatings();

  resizeColumnsToContents();

  setSelectionMode( QAbstractItemView::SingleSelection );
  setSelectionBehavior( QAbstractItemView::SelectRows );
}
Beispiel #3
0
void LightWaveParser::loadModel(string fname) {
   in.open(fname.c_str(), ios::in | ios::binary);
   if (!in.good()) {
      fprintf(stderr, "Lightwave Parser: Error opening %s\n", fname.c_str());
      return ;
   }

   string chunkID = readChunkID(in, 4);
   int size = readIntBE(in);
   int count = 0;

   readChunkID(in, 4); // read LWO2
   count += 4;

   while(count < size) {
      chunkID = readChunkID(in, 4);
      count += 4;
fprintf(stderr, "ID = %s\n", chunkID.c_str());
      if(chunkID == "TAGS") {
         count += parseTags();
      }
      else if(chunkID == "PNTS") {
         count += parsePoints();
      }
      else if(chunkID == "POLS") {
         count += parsePolygons();
      }
      else if(chunkID == "PTAG") {
         parsePTag();
      }
      else if(chunkID == "SURF") {
         parseSurface();
      }
      else {
         count += skipChunk();
      }
   }

   in.close();

   calculateNormals();
   setupCells();
}
Beispiel #4
0
void PHN_ButtonGrid::setSpacing(int spacingW, int spacingH) {
  this->spacW = spacingW;
  this->spacH = spacingH;
  setupCells();
}
Beispiel #5
0
void PHN_ButtonGrid::setSpacing(int spacing) {
  this->spacW = spacing;
  this->spacH = spacing;
  setupCells();
}
Beispiel #6
0
void PHN_ButtonGrid::setDimension(int columns, int rows) {
  this->rows = rows;
  this->cols = columns;
  setupCells();
}