1.1 --- a/attributewidget.cpp Fri Nov 09 12:07:20 2007 +0000
1.2 +++ b/attributewidget.cpp Thu Dec 06 18:30:29 2007 +0000
1.3 @@ -3,4 +3,37 @@
1.4 AttributeWidget::AttributeWidget (QWidget *parent):QWidget (parent)
1.5 {
1.6 ui.setupUi (this);
1.7 + //ui.keyComboBox->setEditable (true);
1.8 + ui.valueComboBox->setEditable (true);
1.9 }
1.10 +
1.11 +void AttributeWidget::setTable(AttributeTable *at)
1.12 +{
1.13 + table=at;
1.14 +}
1.15 +
1.16 +void AttributeWidget::setKey (const QString &k)
1.17 +{
1.18 + key=k;
1.19 + ui.keyComboBox->insertItem (ui.keyComboBox->count(), key);
1.20 +}
1.21 +
1.22 +void AttributeWidget::setValues(const QStringList &vl)
1.23 +{
1.24 + ui.valueComboBox->clear();
1.25 + ui.valueComboBox->insertStringList(vl);
1.26 +}
1.27 +
1.28 +/*
1.29 +void AttributeWidget::setValue (const QString &v)
1.30 +{
1.31 +}
1.32 +*/
1.33 +
1.34 +void AttributeWidget::keyTextChanged(const QString &t)
1.35 +{
1.36 +}
1.37 +
1.38 +void AttributeWidget::valueTextChanged(const QString &t)
1.39 +{
1.40 +}