author | insilmaril |
Mon Feb 11 12:44:00 2008 +0000 (2008-02-11) | |
changeset 669 | a418fad921a8 |
parent 623 | 7ba1c04d96d5 |
permissions | -rw-r--r-- |
insilmaril@623 | 1 |
#ifndef ATTRIBUTEWIDGET_H |
insilmaril@623 | 2 |
#define ATTRIBUTEWIDGET_H |
insilmaril@623 | 3 |
|
insilmaril@623 | 4 |
#include "ui_attributewidget.h" |
insilmaril@623 | 5 |
|
insilmaril@627 | 6 |
#include "attribute.h" |
insilmaril@627 | 7 |
|
insilmaril@623 | 8 |
#include <QWidget> |
insilmaril@623 | 9 |
|
insilmaril@623 | 10 |
class AttributeWidget: public QWidget |
insilmaril@623 | 11 |
{ |
insilmaril@623 | 12 |
Q_OBJECT |
insilmaril@623 | 13 |
public: |
insilmaril@623 | 14 |
AttributeWidget (QWidget *parent=0); |
insilmaril@627 | 15 |
void setTable (AttributeTable *at=0); |
insilmaril@627 | 16 |
void setKey (const QString &k); |
insilmaril@627 | 17 |
void setValues (const QStringList &vl); |
insilmaril@627 | 18 |
|
insilmaril@627 | 19 |
public slots: |
insilmaril@627 | 20 |
virtual void keyTextChanged(const QString &t); |
insilmaril@627 | 21 |
virtual void valueTextChanged(const QString &t); |
insilmaril@627 | 22 |
|
insilmaril@623 | 23 |
private: |
insilmaril@623 | 24 |
Ui::AttributeWidget ui; |
insilmaril@627 | 25 |
AttributeTable *table; |
insilmaril@627 | 26 |
QString key; |
insilmaril@623 | 27 |
}; |
insilmaril@623 | 28 |
#endif |