diff options
author | Timothy Pearson <[email protected]> | 2013-07-24 09:39:37 -0500 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2013-07-24 09:39:37 -0500 |
commit | 191c434271e705161fbd01ed83b6d043a275bffc (patch) | |
tree | 0919a0a91d56167a9d36bca3881c513006b68a9b /src/lmsensorpanel.h | |
download | ksensors-191c434271e705161fbd01ed83b6d043a275bffc.tar.gz ksensors-191c434271e705161fbd01ed83b6d043a275bffc.zip |
Initial import of ksensors 0.7.3 sources
Diffstat (limited to 'src/lmsensorpanel.h')
-rw-r--r-- | src/lmsensorpanel.h | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/src/lmsensorpanel.h b/src/lmsensorpanel.h new file mode 100644 index 0000000..8d0bad4 --- /dev/null +++ b/src/lmsensorpanel.h @@ -0,0 +1,66 @@ +/*************************************************************************** + lmsensorpanel.h - description + ------------------- + begin : Sat Aug 11 2001 + copyright : (C) 2001 by Miguel Novas + email : [email protected] + ***************************************************************************/ + +/*************************************************************************** + * * + * 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 LMSENSORPANEL_H +#define LMSENSORPANEL_H + +#include <qstring.h> + +#include "panel.h" +#include "sensor.h" +#include "qdialarc.h" +#include "qlcdstring.h" + + +/** + *@author + */ + +class LMSensorPanel : public Panel { + Q_OBJECT +public: + + LMSensorPanel(Sensor *newSensor, QWidget *parent=0, const char *name=0); + ~LMSensorPanel(); + +public slots: + + void setValue(double value); + void updateConfig(); + +protected: + + void resizeEvent ( QResizeEvent * ); + + void createTitleWidget(); + void createGraphicWidget(); + void createValueWidget(); + + void timerEvent( QTimerEvent * ); + void paletteChange(const QPalette &oldPalette); + +private: + + Sensor *sensor; + QDialArc *arc; + QLCDString *lcdDes; + QLCDString *lcdVal; + QString valMask; + bool alarm; +}; + +#endif |