# HG changeset patch
# User insilmaril
# Date 1196771576 0
# Node ID 513107d1ed59061329348b9a694cba899557444d
# Parent 96c8e6860e0c277c2a65427eeffc69f30bce05c9
Fixed HideExport bug, changed pre- and postscript in XHTML export dialog
diff -r 96c8e6860e0c -r 513107d1ed59 attributedialog.ui
--- a/attributedialog.ui Tue Dec 04 12:32:56 2007 +0000
+++ b/attributedialog.ui Tue Dec 04 12:32:56 2007 +0000
@@ -6,7 +6,7 @@
0
0
468
- 78
+ 75
@@ -20,30 +20,34 @@
-
-
+
-
-
+
+
+ Add key
+
+
+
+ -
Qt::Horizontal
- 40
+ 111
20
-
-
-
- Qt::Horizontal
-
-
- QDialogButtonBox::Cancel|QDialogButtonBox::NoButton|QDialogButtonBox::Ok
+
+
+ Close
@@ -52,38 +56,5 @@
-
-
- buttonBox
- accepted()
- AttributeDialog
- accept()
-
-
- 248
- 254
-
-
- 157
- 274
-
-
-
-
- buttonBox
- rejected()
- AttributeDialog
- reject()
-
-
- 316
- 260
-
-
- 286
- 274
-
-
-
-
+
diff -r 96c8e6860e0c -r 513107d1ed59 attributewidget.cpp
--- a/attributewidget.cpp Tue Dec 04 12:32:56 2007 +0000
+++ b/attributewidget.cpp Tue Dec 04 12:32:56 2007 +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)
+{
+}
diff -r 96c8e6860e0c -r 513107d1ed59 attributewidget.h
--- a/attributewidget.h Tue Dec 04 12:32:56 2007 +0000
+++ b/attributewidget.h Tue Dec 04 12:32:56 2007 +0000
@@ -3,6 +3,8 @@
#include "ui_attributewidget.h"
+#include "attribute.h"
+
#include
class AttributeWidget: public QWidget
@@ -10,8 +12,17 @@
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