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

ledbar.h

/***************************************************************************
                          ledbar.h  -  QSSTV
                             -------------------
    begin                : Thu May 24 2001
    copyright            : (C) 2001 by Johan Maes
    email                : on1mh@pandora.be
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   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.                                   *
 *                                                                         *
 ***************************************************************************/

#ifndef LEDBAR_H
#define LEDBAR_H

#include <qwidget.h>


class QLabel;

/**red-yellow-green
  *@author Johan Maes
  */

00030 class ledBar : public QWidget
{
public: 
      ledBar(QWidget *parent=0,const char *name=0, WFlags f=0);
      ~ledBar();
      void setRedLed(bool b);
      void setYellowLed(bool b);
      void setGreenLed(bool b);
      void toggleRedLed();
      void toggleYellowLed();
      void toggleGreenLed();
  /** if set only one of the LED's will be on */
00042   void setExclusive(bool b)
      {
            exclusive=b;
      }
private:
      QLabel *r;
      QLabel *y;
      QLabel *g;
  bool redLedOn;
  bool yellowLedOn;
  bool greenLedOn;
  bool exclusive;
private: // Private methods
  /** No descriptions */
};

#endif

Generated by  Doxygen 1.6.0   Back to index