cwd_sensorslist.h

00001 /***************************************************************************
00002  *   Copyright (C) 2007 by valter   *
00003  *   staroverovv@yandx.ru   *
00004  *                                                                         *
00005  *   This program is free software; you can redistribute it and/or modify  *
00006  *   it under the terms of the GNU General Public License as published by  *
00007  *   the Free Software Foundation; either version 2 of the License, or     *
00008  *   (at your option) any later version.                                   *
00009  *                                                                         *
00010  *   This program is distributed in the hope that it will be useful,       *
00011  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
00012  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
00013  *   GNU General Public License for more details.                          *
00014  *                                                                         *
00015  *   You should have received a copy of the GNU General Public License     *
00016  *   along with this program; if not, write to the                         *
00017  *   Free Software Foundation, Inc.,                                       *
00018  *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
00019  ***************************************************************************/
00020 #ifndef CWD_SENSORSLIST_H
00021 #define CWD_SENSORSLIST_H
00022 
00023 #include <qlistbox.h>
00024 #include "SensorsList.h"
00025 #include "str.h"
00026 
00027 class CWD_SensorsList: public Form1 {
00028 Q_OBJECT
00029 class QListBoxItem;
00030 public:
00031     CWD_SensorsList(QWidget *parent = 0, const char *name = 0);
00032     ~CWD_SensorsList();
00033     int NSensors; CSensor *Sensor;
00034     void ResetData();
00035     QListViewItem *itemSelected;
00036     QPopupMenu *Menu0,*Menu1;
00037     int ColumnsVisibiliy[10];int NColumns;
00038     void SetColumnsVisibiliy(int c,int set);//-1=change
00039     void ResizeColumns();
00040     int ColumnTextWidth(int c);
00041     //---
00042     void resizeEvent ( QResizeEvent * sz); 
00043     //---
00044     virtual void Form1_destroyed(QObject*);
00045     virtual void reject();
00046 public slots:
00047     virtual void onClose();
00048     virtual void FUpdateData();
00049     virtual void onRBList(QListViewItem *,const QPoint &pt,int );
00050     virtual void resize ( int w, int h );
00051 protected slots:
00052     void CallEventsDialog();
00053     void CallCommandsDialog();
00054     void FStart();
00055     void FStop();
00056     void FKill();
00057     void FRestart();
00058     void FSetVisibilityC0();
00059     void FSetVisibilityC1();
00060     void FSetVisibilityC2();
00061 
00062 };
00063 //    virtual void onRBList(QListBoxItem* ,const QPoint&,int );
00064 
00065 #endif

Generated on Thu Nov 15 16:34:53 2007 for wgr.kdevelop by  doxygen 1.4.7