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

menuitem.h

/***************************************************************************
                         -- menuitem.h --
                         -------------------
    begin                : 2001-09-01
    copyright            : (C) 2001 - 2002
    authors              : Jason Kasper (vanRijn)
                         : Ben Jansens (xOr)
    URL                  : http://bbconf.sourceforge.net
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 ***************************************************************************/
 // E_O_H_VR
#ifndef __MENUITEM_H__
#define __MENUITEM_H__

#include <qstring.h>

class menuitem {
public:
      enum types {
            nop = 0,
            exec,
            style,
            config,
            include,
            submenu,
            stylesdir,
            stylesmenu,
            restart,
            reconfig,
            workspaces,
            exit,
            blank,
            begin,
            end
      };
      menuitem();
      menuitem(QString*,QString*,types);
      virtual ~menuitem();
      void set(QString*,QString*,types);
      types type() const { return m_type; }
      static QString typeToText(const types);
      QString description() const { return *m_description; }
      QString data() const { return *m_data; }

private:    
      types m_type;
      QString *m_description;
      QString *m_data;  
};

#endif // __MENUITEM_H__

Generated by  Doxygen 1.6.0   Back to index