diff options
author | Darrell Anderson <humanreadable@yahoo.com> | 2012-04-12 15:58:48 -0500 |
---|---|---|
committer | Darrell Anderson <humanreadable@yahoo.com> | 2012-04-12 15:58:48 -0500 |
commit | 20088876e262f10d8928e48cdbcfabe36d272c29 (patch) | |
tree | 8b77b38942b3319235b6dfa35e2e639eccb5510e /kcontrol/hwmanager/devicepropsdlg.h | |
parent | 1bd6166b75f2068305cb9959188fc216b04b83c1 (diff) | |
parent | 2d09c7060975b70361af847ceb3f84f3b1f4d08d (diff) | |
download | tdebase-20088876e262f10d8928e48cdbcfabe36d272c29.tar.gz tdebase-20088876e262f10d8928e48cdbcfabe36d272c29.zip |
Merge branch 'master' of http://scm.trinitydesktop.org/scm/git/tdebase
Diffstat (limited to 'kcontrol/hwmanager/devicepropsdlg.h')
-rw-r--r-- | kcontrol/hwmanager/devicepropsdlg.h | 43 |
1 files changed, 42 insertions, 1 deletions
diff --git a/kcontrol/hwmanager/devicepropsdlg.h b/kcontrol/hwmanager/devicepropsdlg.h index 870e57240..0e8a46b2c 100644 --- a/kcontrol/hwmanager/devicepropsdlg.h +++ b/kcontrol/hwmanager/devicepropsdlg.h @@ -27,6 +27,44 @@ /** * + * Simple sensor name and value display widget + * + * @version 0.1 + * @author Timothy Pearson <kb9vqf@pearsoncomputing.net> + */ + +class TDEUI_EXPORT SensorDisplayWidget : public TQWidget +{ + Q_OBJECT +public: + /** + * Create a simple sensor name and value display widget + * @param parent Parent widget for the display widget + */ + SensorDisplayWidget(TQWidget* parent); + virtual ~SensorDisplayWidget(); + + /** + * Set sensor name + * @param name A TQString with the name of the sensor + */ + void setSensorName(TQString name); + + /** + * Set sensor value + * @param value A TQString with the value of the sensor + */ + void setSensorValue(TQString value); + +private: + TQLabel* m_nameLabel; + TQLabel* m_valueLabel; +}; + +typedef TQPtrList<SensorDisplayWidget> SensorDisplayWidgetList; + +/** + * * Dialog to view and edit hardware device properties * * @version 0.1 @@ -39,7 +77,7 @@ class TDEUI_EXPORT DevicePropertiesDialog : public KDialogBase public: /** * Create a dialog that allows a user to view and edit hardware device properties - * @param parent Parent widget for the line edit dialog + * @param parent Parent widget */ DevicePropertiesDialog(TDEGenericDevice* device, TQWidget *parent); virtual ~DevicePropertiesDialog(); @@ -58,6 +96,9 @@ private: class DevicePropertiesDialogPrivate; DevicePropertiesDialogPrivate* d; + + TQGridLayout* m_sensorDataGrid; + SensorDisplayWidgetList m_sensorDataGridWidgets; }; #endif |