cwd_commandslist.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_COMMANDSLIST_H
00021 #define CWD_COMMANDSLIST_H
00022 
00023 #include "CommandsList.h"
00024 #include <qtimer.h>
00025 
00026 class CWD_CommandsList: public DCommandsList {
00027 Q_OBJECT
00028 public:
00029     CWD_CommandsList(QWidget *parent = 0, const char *name = 0,const char *SensorName=NULL);
00030     ~CWD_CommandsList();
00031     int ResetData();
00032     int GetNewData();
00033     //--
00034     int IDFirst,IDLast;enum {EFirst=1,ELast=0}; enum{EAll=0,EAnalysers=1,EConverters=2,EReceivers=3};
00035     int iFirst,iLast;
00036     int AccSensorID;
00037     QTimer *timer;
00038     QListViewItem *itemSelected;
00039     //--
00040     QString SensorNameMask;
00041     //--
00042     QPopupMenu *Menu1;
00043     int ColumnsVisibiliy[10];int NColumns;
00044     void SetColumnsVisibiliy(int c,int set);//-1=change
00045     void ResizeColumns();
00046     int ColumnTextWidth(int c);
00047     //---
00048     void resizeEvent ( QResizeEvent * sz); 
00049     //---
00050 public slots:
00051     virtual void onUpdateList();
00052     virtual void noGetNewCommands();
00053     virtual void onSetTimeFrom(int i);
00054     virtual void onSetTimeTo(int i);
00055     virtual void setAutoUpdate(int i);
00056     virtual void onRBList(QListViewItem *,const QPoint &pt,int );
00057     virtual void onDeleteItem();
00058 protected slots:
00059     void FSetVisibilityC0();
00060     void FSetVisibilityC1();
00061     void FSetVisibilityC2();
00062     void FSetVisibilityC3();
00063     void FSetVisibilityC4();
00064     void FSetVisibilityC5();
00065 };
00066 
00067 #endif

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