Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

TxqVCRButtons.h

Go to the documentation of this file.
00001 //--------------------------------------------------------------------
00002 //
00003 // File:    TxqVCRButtons.h
00004 //
00005 // Purpose: Class to define the VCR buttons used in a modeling object.
00006 //
00007 // Version: $Id: TxqVCRButtons.h,v 1.10 2001/10/12 18:51:23 kgl Exp $
00008 //
00009 // Copyright (c) 2000 by Tech-X Corporation.  All rights reserved.
00010 //
00011 // Author:  Kelly G. Luetkemeyer
00012 //
00013 //--------------------------------------------------------------------
00014 
00015 #ifndef TXQ_VCR_BUTTONS_H
00016 #define TXQ_VCR_BUTTONS_H 
00017 
00018 // Qt includes
00019 #include "qwidget.h"
00020 #include "qpushbutton.h"
00021 #include "qlayout.h"
00022 
00034 class TxqVCRButtons : public QWidget
00035 {
00036   Q_OBJECT
00037 
00038 public:
00039 
00049   TxqVCRButtons(QWidget* parent=0, const char *nm=0);
00050 
00054   void createButtons();
00055 
00060   void addButton(QPushButton *btn);
00061 
00065   void buttonSlots();
00066 
00070   void setRunning();
00071  
00075   void setStepped();
00076  
00080   void setInitialState();
00081 
00086   void setPreInitialState();
00087 
00091   QPushButton *runButton;
00095   QPushButton *stopButton;
00099   QPushButton *stepButton;
00103   QPushButton *restartButton;
00104 
00108   virtual ~TxqVCRButtons();
00109 
00115   virtual void addWidgets();
00116 
00117 
00118 public slots:
00119 
00123   virtual void polish();
00124 
00125 
00129   void run();
00130 
00134   void stop();
00135 
00139   void step();
00140 
00144   void restart();
00145 
00146 protected:
00147 
00148 private:
00149 
00153   QBoxLayout *buttons;
00154 
00155 };
00156 
00157 #endif
Copyright Tech-X Corporation, all rights reserved.