initial import
[vym] / attributewidget.h
diff --git a/attributewidget.h b/attributewidget.h
new file mode 100644 (file)
index 0000000..baa48c5
--- /dev/null
@@ -0,0 +1,28 @@
+#ifndef ATTRIBUTEWIDGET_H
+#define ATTRIBUTEWIDGET_H
+
+#include "ui_attributewidget.h"
+
+#include "attribute.h"
+
+#include <QWidget>
+
+class AttributeWidget: public QWidget
+{
+       Q_OBJECT
+public:
+       AttributeWidget (QWidget *parent=0);
+       void setTable (AttributeTable *at=0);
+       void setKey (const QString &k);
+       void setValues (const QStringList &vl);
+
+public slots:
+       virtual void keyTextChanged(const QString &t);
+       virtual void valueTextChanged(const QString &t);
+
+private:
+       Ui::AttributeWidget ui;
+       AttributeTable *table;
+       QString key;
+};
+#endif