# 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 @@
     <x>0</x>
     <y>0</y>
     <width>468</width>
-    <height>78</height>
+    <height>75</height>
    </rect>
   </property>
   <property name="sizePolicy" >
@@ -20,30 +20,34 @@
   </property>
   <layout class="QVBoxLayout" >
    <item>
-    <widget class="QLineEdit" name="lineEdit" />
+    <widget class="QLineEdit" name="dummyLineEdit" />
    </item>
    <item>
     <layout class="QHBoxLayout" >
      <item>
+      <widget class="QPushButton" name="addButton" >
+       <property name="text" >
+        <string>Add key</string>
+       </property>
+      </widget>
+     </item>
+     <item>
       <spacer>
        <property name="orientation" >
         <enum>Qt::Horizontal</enum>
        </property>
        <property name="sizeHint" >
         <size>
-         <width>40</width>
+         <width>111</width>
          <height>20</height>
         </size>
        </property>
       </spacer>
      </item>
      <item>
-      <widget class="QDialogButtonBox" name="buttonBox" >
-       <property name="orientation" >
-        <enum>Qt::Horizontal</enum>
-       </property>
-       <property name="standardButtons" >
-        <set>QDialogButtonBox::Cancel|QDialogButtonBox::NoButton|QDialogButtonBox::Ok</set>
+      <widget class="QPushButton" name="closeButton" >
+       <property name="text" >
+        <string>Close</string>
        </property>
       </widget>
      </item>
@@ -52,38 +56,5 @@
   </layout>
  </widget>
  <resources/>
- <connections>
-  <connection>
-   <sender>buttonBox</sender>
-   <signal>accepted()</signal>
-   <receiver>AttributeDialog</receiver>
-   <slot>accept()</slot>
-   <hints>
-    <hint type="sourcelabel" >
-     <x>248</x>
-     <y>254</y>
-    </hint>
-    <hint type="destinationlabel" >
-     <x>157</x>
-     <y>274</y>
-    </hint>
-   </hints>
-  </connection>
-  <connection>
-   <sender>buttonBox</sender>
-   <signal>rejected()</signal>
-   <receiver>AttributeDialog</receiver>
-   <slot>reject()</slot>
-   <hints>
-    <hint type="sourcelabel" >
-     <x>316</x>
-     <y>260</y>
-    </hint>
-    <hint type="destinationlabel" >
-     <x>286</x>
-     <y>274</y>
-    </hint>
-   </hints>
-  </connection>
- </connections>
+ <connections/>
 </ui>
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 <QWidget>
 
 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