RobotHeadForm.h
00001
00002
00003
00004
00005
00006
00007
00008 #ifndef ROBOTHEADFORM_H
00009 #define ROBOTHEADFORM_H
00010
00011 #include <qvariant.h>
00012 #include <qpixmap.h>
00013 #include <qmainwindow.h>
00014 #include <qthread.h>
00015 #include "Component/ModelManager.H"
00016 #include "Devices/BeoHead.H"
00017 #include "Image/Image.H"
00018
00019 class QVBoxLayout;
00020 class QHBoxLayout;
00021 class QGridLayout;
00022 class QSpacerItem;
00023 class QAction;
00024 class QActionGroup;
00025 class QToolBar;
00026 class QPopupMenu;
00027 class QTabWidget;
00028 class QWidget;
00029 class QGroupBox;
00030 class QLabel;
00031 class QLineEdit;
00032 class QSlider;
00033 class QPushButton;
00034
00035 class RobotHeadForm : public QMainWindow
00036 {
00037 Q_OBJECT
00038
00039 public:
00040 RobotHeadForm( QWidget* parent = 0, const char* name = 0, WFlags fl = WType_TopLevel );
00041 ~RobotHeadForm();
00042
00043 QTabWidget* tabWidget2;
00044 QWidget* tab;
00045 QGroupBox* groupBox1;
00046 QLabel* textLabel1;
00047 QLineEdit* leftEyePanDisp;
00048 QSlider* leftEyeTiltSlide;
00049 QLineEdit* leftEyeTiltDisp;
00050 QLabel* textLabel2;
00051 QSlider* leftEyePanSlide;
00052 QGroupBox* groupBox1_2;
00053 QLabel* textLabel1_2;
00054 QLineEdit* rightEyePanDisp;
00055 QSlider* rightEyeTiltSlide;
00056 QLineEdit* rightEyeTiltDisp;
00057 QLabel* textLabel2_2;
00058 QSlider* rightEyePanSlide;
00059 QGroupBox* groupBox1_3;
00060 QLabel* textLabel1_3;
00061 QLineEdit* headPanDisp;
00062 QSlider* headPanSlide;
00063 QLabel* textLabel2_3;
00064 QSlider* headTiltSlide;
00065 QLineEdit* headTiltDisp;
00066 QLineEdit* headYawDisp;
00067 QSlider* headYawSlide;
00068 QLabel* textLabel2_3_2;
00069 QPushButton* restPosButton;
00070 QPushButton* relaxNeckButton;
00071 QWidget* tab_2;
00072 QMenuBar *MenuBar;
00073 QPopupMenu *fileMenu;
00074 QPopupMenu *editMenu;
00075 QPopupMenu *helpMenu;
00076 QAction* fileNewAction;
00077 QAction* fileOpenAction;
00078 QAction* fileSaveAction;
00079 QAction* fileSaveAsAction;
00080 QAction* filePrintAction;
00081 QAction* fileExitAction;
00082 QAction* editUndoAction;
00083 QAction* editRedoAction;
00084 QAction* editCutAction;
00085 QAction* editCopyAction;
00086 QAction* editPasteAction;
00087 QAction* editFindAction;
00088 QAction* helpContentsAction;
00089 QAction* helpIndexAction;
00090 QAction* helpAboutAction;
00091
00092 virtual void init( ModelManager & mgr, nub::soft_ref<BeoHead> beoHead );
00093
00094 public slots:
00095 virtual void fileNew();
00096 virtual void fileOpen();
00097 virtual void fileSave();
00098 virtual void fileSaveAs();
00099 virtual void filePrint();
00100 virtual void fileExit();
00101 virtual void editUndo();
00102 virtual void editRedo();
00103 virtual void editCut();
00104 virtual void editPaste();
00105 virtual void editFind();
00106 virtual void helpIndex();
00107 virtual void helpContents();
00108 virtual void helpAbout();
00109 virtual void grab();
00110 virtual void moveLeftEyePan( int pos );
00111 virtual void moveLeftEyeTilt( int pos );
00112 virtual void moveRightEyePan( int pos );
00113 virtual void moveRightEyeTilt( int pos );
00114 virtual void moveHeadPan( int pos );
00115 virtual void moveHeadTilt( int pos );
00116 virtual void moveHeadYaw( int pos );
00117 virtual void relaxNeck();
00118 virtual void restPos();
00119
00120 protected:
00121 ModelManager *itsMgr;
00122 nub::soft_ref<BeoHead> itsBeoHead;
00123
00124 QVBoxLayout* RobotHeadFormLayout;
00125 QVBoxLayout* tabLayout;
00126 QHBoxLayout* layout7;
00127 QGridLayout* groupBox1Layout;
00128 QGridLayout* groupBox1_2Layout;
00129 QGridLayout* groupBox1_3Layout;
00130 QHBoxLayout* layout3;
00131 QSpacerItem* spacer1;
00132
00133 protected slots:
00134 virtual void languageChange();
00135
00136 private:
00137 QPixmap image0;
00138 QPixmap image1;
00139 QPixmap image2;
00140 QPixmap image3;
00141 QPixmap image4;
00142 QPixmap image5;
00143 QPixmap image6;
00144 QPixmap image7;
00145 QPixmap image8;
00146 QPixmap image9;
00147
00148 };
00149
00150 #endif // ROBOTHEADFORM_H