Logo Search packages:      
Sourcecode: fgrun version File versions  Download package

void Wizard::scenery_dir_down_cb (  ) [private]

Move a directory entry down the list.

Definition at line 1172 of file wizard_funcs.cxx.

{
    int ts = ts_dir->value();
    int n = scenery_dir_list_->value();
    scenery_dir_list_->insert( n+2, scenery_dir_list_->text(n) );
    scenery_dir_list_->remove( n );

    scenery_dir_list_->deselect();
    scenery_dir_list_->select( n+1 );

    if (ts == n)
      ts = n+1;
    else if (ts == n+1)
      ts = n;
    ts_dir->value( ts );

    scenery_dir_up_->activate();
    if (n+1 == scenery_dir_list_->size())
      scenery_dir_down_->deactivate();
}

Generated by  Doxygen 1.6.0   Back to index