diff options
author | Timothy Pearson <[email protected]> | 2012-04-11 23:59:58 -0500 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2012-04-11 23:59:58 -0500 |
commit | 2d09c7060975b70361af847ceb3f84f3b1f4d08d (patch) | |
tree | 0e0b13ea97c640c3d5338a78a0c28d2e3151f7de /kcontrol/hwmanager/devicepropsdlg.h | |
parent | a664aa0ef020fabead47a3a73e30c77562472b0d (diff) | |
download | tdebase-2d09c7060975b70361af847ceb3f84f3b1f4d08d.tar.gz tdebase-2d09c7060975b70361af847ceb3f84f3b1f4d08d.zip |
Add device information tabs for prior commit to kcontrol module
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 <[email protected]> + */ + +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 |