# HG changeset patch
# User insilmaril
# Date 1194610040 0
# Node ID 7ba1c04d96d5a83f3593f03ae612ad3f47eac291
# Parent  9f739222ee8cbc57c194a29c4b5e9a01e1e1a16c
1.11.3 Better windows support

diff -r 9f739222ee8c -r 7ba1c04d96d5 attributedialog.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/attributedialog.cpp	Fri Nov 09 12:07:20 2007 +0000
@@ -0,0 +1,19 @@
+#include "attributedialog.h"
+
+
+AttributeDialog::AttributeDialog (QWidget *parent):QDialog (parent)
+{
+	ui.setupUi (this);
+}
+
+
+void AttributeDialog::closeEvent( QCloseEvent* ce )
+{
+    ce->accept();	// can be reopened with show()
+	hide();
+	emit (windowClosed() );
+    return;
+}
+
+
+
diff -r 9f739222ee8c -r 7ba1c04d96d5 attributedialog.h
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/attributedialog.h	Fri Nov 09 12:07:20 2007 +0000
@@ -0,0 +1,22 @@
+#ifndef ATTRIBUTEDIALOG_H
+#define ATTRIBUTEDIALOG_H
+
+#include "ui_attributedialog.h"
+
+#include <QDialog>
+#include <QCloseEvent>
+
+class AttributeDialog:public QDialog
+{
+	Q_OBJECT 
+public:
+	AttributeDialog (QWidget *parent=0 );
+signals:
+	void windowClosed();
+protected:
+	void closeEvent(QCloseEvent*);
+private:
+	Ui::AttributeDialog ui;
+};
+
+#endif
diff -r 9f739222ee8c -r 7ba1c04d96d5 attributedialog.ui
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/attributedialog.ui	Fri Nov 09 12:07:20 2007 +0000
@@ -0,0 +1,89 @@
+<ui version="4.0" >
+ <class>AttributeDialog</class>
+ <widget class="QDialog" name="AttributeDialog" >
+  <property name="geometry" >
+   <rect>
+    <x>0</x>
+    <y>0</y>
+    <width>468</width>
+    <height>78</height>
+   </rect>
+  </property>
+  <property name="sizePolicy" >
+   <sizepolicy vsizetype="Preferred" hsizetype="Minimum" >
+    <horstretch>0</horstretch>
+    <verstretch>0</verstretch>
+   </sizepolicy>
+  </property>
+  <property name="windowTitle" >
+   <string>Attributes</string>
+  </property>
+  <layout class="QVBoxLayout" >
+   <item>
+    <widget class="QLineEdit" name="lineEdit" />
+   </item>
+   <item>
+    <layout class="QHBoxLayout" >
+     <item>
+      <spacer>
+       <property name="orientation" >
+        <enum>Qt::Horizontal</enum>
+       </property>
+       <property name="sizeHint" >
+        <size>
+         <width>40</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>
+       </property>
+      </widget>
+     </item>
+    </layout>
+   </item>
+  </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>
+</ui>
diff -r 9f739222ee8c -r 7ba1c04d96d5 attributewidget.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/attributewidget.cpp	Fri Nov 09 12:07:20 2007 +0000
@@ -0,0 +1,6 @@
+#include "attributewidget.h"
+
+AttributeWidget::AttributeWidget (QWidget *parent):QWidget (parent)
+{
+	ui.setupUi (this);
+}
diff -r 9f739222ee8c -r 7ba1c04d96d5 attributewidget.h
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/attributewidget.h	Fri Nov 09 12:07:20 2007 +0000
@@ -0,0 +1,17 @@
+#ifndef ATTRIBUTEWIDGET_H
+#define ATTRIBUTEWIDGET_H
+
+#include "ui_attributewidget.h"
+
+#include <QWidget>
+
+class AttributeWidget: public QWidget
+{
+	Q_OBJECT
+public:
+	AttributeWidget (QWidget *parent=0);
+private:
+	Ui::AttributeWidget ui;
+
+};
+#endif
diff -r 9f739222ee8c -r 7ba1c04d96d5 attributewidget.ui
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/attributewidget.ui	Fri Nov 09 12:07:20 2007 +0000
@@ -0,0 +1,56 @@
+<ui version="4.0" >
+ <class>AttributeWidget</class>
+ <widget class="QWidget" name="AttributeWidget" >
+  <property name="geometry" >
+   <rect>
+    <x>0</x>
+    <y>0</y>
+    <width>400</width>
+    <height>115</height>
+   </rect>
+  </property>
+  <property name="windowTitle" >
+   <string>Form</string>
+  </property>
+  <layout class="QHBoxLayout" >
+   <property name="spacing" >
+    <number>0</number>
+   </property>
+   <item>
+    <widget class="QComboBox" name="keyComboBox" >
+     <property name="sizePolicy" >
+      <sizepolicy vsizetype="Fixed" hsizetype="Expanding" >
+       <horstretch>0</horstretch>
+       <verstretch>0</verstretch>
+      </sizepolicy>
+     </property>
+    </widget>
+   </item>
+   <item>
+    <widget class="QComboBox" name="valueComboBox" >
+     <property name="sizePolicy" >
+      <sizepolicy vsizetype="Fixed" hsizetype="Expanding" >
+       <horstretch>0</horstretch>
+       <verstretch>0</verstretch>
+      </sizepolicy>
+     </property>
+    </widget>
+   </item>
+   <item>
+    <widget class="QPushButton" name="deleteButton" >
+     <property name="sizePolicy" >
+      <sizepolicy vsizetype="Fixed" hsizetype="Minimum" >
+       <horstretch>0</horstretch>
+       <verstretch>0</verstretch>
+      </sizepolicy>
+     </property>
+     <property name="text" >
+      <string/>
+     </property>
+    </widget>
+   </item>
+  </layout>
+ </widget>
+ <resources/>
+ <connections/>
+</ui>