Exemple #1
0
void RDirNode::drawNames(FXFont& dirfont) {

    if(!gGourceSettings.hide_dirnames && isVisible()) {
        drawDirName(dirfont);
    }

    if(!gGourceSettings.hide_filenames) {

        if(!(gGourceSettings.hide_filenames || gGourceSettings.hide_files) && in_frustum) {
            for(std::list<RFile*>::const_iterator it = files.begin(); it!=files.end(); it++) {
                RFile* f = *it;
                if(!f->isSelected()) f->drawName();
            }
        }

    }

    for(std::list<RDirNode*>::const_iterator it = children.begin(); it != children.end(); it++) {
        RDirNode* node = (*it);
        node->drawNames(dirfont);
    }
}
Exemple #2
0
void RDirNode::drawNames(FXFont& dirfont, Frustum& frustum) {

    glPushMatrix();
    glTranslatef(pos.x, pos.y, 0.0);

    if(isVisible()) {
        drawDirName(dirfont);
    }

    if(frustum.boundsInFrustum(quadItemBounds)) {
        for(std::list<RFile*>::iterator it = files.begin(); it!=files.end(); it++) {
            RFile* f = *it;
            f->drawName();
        }
    }

    glPopMatrix();


    for(std::list<RDirNode*>::iterator it = children.begin(); it != children.end(); it++) {
        RDirNode* node = (*it);
        node->drawNames(dirfont,frustum);
    }
}