home *** CD-ROM | disk | FTP | other *** search
/ Freelog 17 / Freelog017.iso / BeOS / ababelone / Sources / MenuDynamique.h < prev    next >
C/C++ Source or Header  |  2000-11-21  |  2KB  |  49 lines

  1. /*
  2.     Copyright (C) 2000 by Herv├⌐ PHILIPPE <rv@bemail.org>
  3.  
  4.     This library is free software; you can redistribute it and/or
  5.     modify it under the terms of the GNU Library General Public
  6.     License as published by the Free Software Foundation; either
  7.     version 2 of the License, or (at your option) any later version.
  8.  
  9.     This library is distributed in the hope that it will be useful,
  10.     but WITHOUT ANY WARRANTY; without even the implied warranty of
  11.     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  12.     Library General Public License for more details.
  13.  
  14.     You should have received a copy of the GNU Library General Public
  15.     License along with this library; if not, write to the Free
  16.     Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  17. */
  18.  
  19. #ifndef _MENUDYNAMIQUE_H_
  20. #define _MENUDYNAMIQUE_H_
  21.  
  22. #include <stdio.h>
  23. #include <SupportDefs.h>        // Pour uint8 et uint32
  24. #include <MenuItem.h>
  25. #include <Roster.h>                // Pour app_info
  26. #include <Application.h>        // Pour be_app
  27. #include <Path.h>
  28. #include <Directory.h>
  29.  
  30. class MenuDynamique
  31. {
  32. // FONCTIONS
  33.     public:
  34.                 MenuDynamique(BMenu* sous_menu, const char* chaine_repertoire, uint32 numero_premier_message);
  35.         virtual    ~MenuDynamique();
  36.         BEntry    SelectionnerFichier(uint8 numero_du_fichier = 0);
  37.         bool    Active(uint32 numero_message);
  38.         uint8    NumeroFichier();
  39.  
  40. // VARIABLES ET CONSTANTES
  41.     private:
  42.         uint8            m_NumeroFichier;
  43.         BMenu*            m_Menu;
  44.         BDirectory        m_Repertoire;
  45.         BEntry            m_EntreeFichier;
  46.         const uint32    m_ConstanteMessage;
  47. };
  48.  
  49. #endif