diff -r 7ba1c04d96d5 -r c7b1178aec77 attributewidget.cpp --- a/attributewidget.cpp Fri Nov 09 12:07:20 2007 +0000 +++ b/attributewidget.cpp Mon May 05 13:46:42 2008 +0000 @@ -3,4 +3,37 @@ AttributeWidget::AttributeWidget (QWidget *parent):QWidget (parent) { ui.setupUi (this); + //ui.keyComboBox->setEditable (true); + ui.valueComboBox->setEditable (true); } + +void AttributeWidget::setTable(AttributeTable *at) +{ + table=at; +} + +void AttributeWidget::setKey (const QString &k) +{ + key=k; + ui.keyComboBox->insertItem (ui.keyComboBox->count(), key); +} + +void AttributeWidget::setValues(const QStringList &vl) +{ + ui.valueComboBox->clear(); + ui.valueComboBox->insertStringList(vl); +} + +/* +void AttributeWidget::setValue (const QString &v) +{ +} +*/ + +void AttributeWidget::keyTextChanged(const QString &t) +{ +} + +void AttributeWidget::valueTextChanged(const QString &t) +{ +}