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

void DCOptions::SaveUserMenuCommands (  )  [private]

Definition at line 1826 of file dcoptions.cpp.

References DC_UserMenuCommand::m_nContext, DC_UserMenuCommand::m_sCommand, and DC_UserMenuCommand::m_sName.

Referenced by GetValues().

{
      CList<DC_UserMenuCommand> commands;
      DC_UserMenuCommand * umc;
      
      commands.Clear();
      
      QListViewItemIterator it( listView_MENU_COMMANDS );
      
      for ( ; it.current(); ++it )
      {
            umc = new DC_UserMenuCommand();
            umc->m_sName    = it.current()->text(0).ascii();
            umc->m_nContext = it.current()->text(1).toInt();
            umc->m_sCommand = it.current()->text(2).ascii();
            commands.Add(umc);
      }
      
      g_pConfig->SetUserMenuCommands( &commands );
}


Generated by  Doxygen 1.6.0   Back to index