# HG changeset patch
# User insilmaril
# Date 1116401991 0
# Node ID 1d092be4fe339c5d3337fe01600e7fda8685b71e
# Parent  f79a53ee8cf65eb21a252308b77eec313c2797c6
fixed some bugs in xlinks, more remove/insert functions

diff -r f79a53ee8cf6 -r 1d092be4fe33 editxlinkdialog.ui
--- a/editxlinkdialog.ui	Wed May 18 07:39:51 2005 +0000
+++ b/editxlinkdialog.ui	Wed May 18 07:39:51 2005 +0000
@@ -8,7 +8,7 @@
         <rect>
             <x>0</x>
             <y>0</y>
-            <width>607</width>
+            <width>393</width>
             <height>206</height>
         </rect>
     </property>
@@ -29,63 +29,54 @@
         </property>
         <widget class="QLayoutWidget">
             <property name="name">
-                <cstring>layout5</cstring>
+                <cstring>layout7</cstring>
             </property>
             <grid>
                 <property name="name">
                     <cstring>unnamed</cstring>
                 </property>
-                <spacer row="0" column="2" rowspan="1" colspan="2">
+                <widget class="QSpinBox" row="0" column="1">
                     <property name="name">
-                        <cstring>spacer2</cstring>
+                        <cstring>widthBox</cstring>
                     </property>
-                    <property name="orientation">
-                        <enum>Horizontal</enum>
+                    <property name="sizePolicy">
+                        <sizepolicy>
+                            <hsizetype>0</hsizetype>
+                            <vsizetype>0</vsizetype>
+                            <horstretch>0</horstretch>
+                            <verstretch>0</verstretch>
+                        </sizepolicy>
                     </property>
-                    <property name="sizeType">
-                        <enum>Expanding</enum>
+                    <property name="maxValue">
+                        <number>15</number>
                     </property>
-                    <property name="sizeHint">
-                        <size>
-                            <width>462</width>
-                            <height>20</height>
-                        </size>
+                    <property name="minValue">
+                        <number>1</number>
                     </property>
-                </spacer>
+                </widget>
                 <widget class="QLabel" row="0" column="0">
                     <property name="name">
                         <cstring>textLabel1</cstring>
                     </property>
                     <property name="text">
-                        <string>Line width:</string>
+                        <string>XLink width:</string>
                     </property>
                     <property name="alignment">
                         <set>AlignVCenter|AlignRight</set>
                     </property>
                 </widget>
-                <spacer row="1" column="2" rowspan="1" colspan="2">
+                <widget class="QPushButton" row="1" column="4">
                     <property name="name">
-                        <cstring>spacer3</cstring>
+                        <cstring>setColorHeadingButton</cstring>
                     </property>
-                    <property name="orientation">
-                        <enum>Horizontal</enum>
-                    </property>
-                    <property name="sizeType">
-                        <enum>Expanding</enum>
-                    </property>
-                    <property name="sizeHint">
+                    <property name="maximumSize">
                         <size>
-                            <width>463</width>
-                            <height>21</height>
+                            <width>32767</width>
+                            <height>20</height>
                         </size>
                     </property>
-                </spacer>
-                <widget class="QCheckBox" row="2" column="1" rowspan="1" colspan="2">
-                    <property name="name">
-                        <cstring>useSettings</cstring>
-                    </property>
                     <property name="text">
-                        <string>(use settings as default for new xlinks)</string>
+                        <string>Set color of heading</string>
                     </property>
                 </widget>
                 <widget class="QPushButton" row="1" column="1">
@@ -105,23 +96,12 @@
                         <string></string>
                     </property>
                 </widget>
-                <widget class="QSpinBox" row="0" column="1">
+                <widget class="QCheckBox" row="2" column="1" rowspan="1" colspan="2">
                     <property name="name">
-                        <cstring>widthBox</cstring>
+                        <cstring>useSettings</cstring>
                     </property>
-                    <property name="sizePolicy">
-                        <sizepolicy>
-                            <hsizetype>0</hsizetype>
-                            <vsizetype>0</vsizetype>
-                            <horstretch>0</horstretch>
-                            <verstretch>0</verstretch>
-                        </sizepolicy>
-                    </property>
-                    <property name="maxValue">
-                        <number>15</number>
-                    </property>
-                    <property name="minValue">
-                        <number>1</number>
+                    <property name="text">
+                        <string></string>
                     </property>
                 </widget>
                 <widget class="QLabel" row="1" column="0">
@@ -129,26 +109,15 @@
                         <cstring>textLabel2</cstring>
                     </property>
                     <property name="text">
-                        <string>Line color:</string>
+                        <string>XLink color:</string>
                     </property>
                     <property name="alignment">
                         <set>AlignVCenter|AlignRight</set>
                     </property>
                 </widget>
-                <widget class="QLabel" row="2" column="0">
+                <spacer row="1" column="2" rowspan="1" colspan="2">
                     <property name="name">
-                        <cstring>textLabel1_2</cstring>
-                    </property>
-                    <property name="text">
-                        <string>Default:</string>
-                    </property>
-                    <property name="alignment">
-                        <set>AlignVCenter|AlignRight</set>
-                    </property>
-                </widget>
-                <spacer row="2" column="3">
-                    <property name="name">
-                        <cstring>spacer5</cstring>
+                        <cstring>spacer6</cstring>
                     </property>
                     <property name="orientation">
                         <enum>Horizontal</enum>
@@ -158,8 +127,53 @@
                     </property>
                     <property name="sizeHint">
                         <size>
-                            <width>110</width>
-                            <height>21</height>
+                            <width>285</width>
+                            <height>20</height>
+                        </size>
+                    </property>
+                </spacer>
+                <spacer row="0" column="2" rowspan="1" colspan="2">
+                    <property name="name">
+                        <cstring>spacer2</cstring>
+                    </property>
+                    <property name="orientation">
+                        <enum>Horizontal</enum>
+                    </property>
+                    <property name="sizeType">
+                        <enum>Expanding</enum>
+                    </property>
+                    <property name="sizeHint">
+                        <size>
+                            <width>280</width>
+                            <height>20</height>
+                        </size>
+                    </property>
+                </spacer>
+                <widget class="QLabel" row="2" column="0">
+                    <property name="name">
+                        <cstring>textLabel1_2</cstring>
+                    </property>
+                    <property name="text">
+                        <string>Use as default:</string>
+                    </property>
+                    <property name="alignment">
+                        <set>AlignVCenter|AlignRight</set>
+                    </property>
+                </widget>
+                <spacer row="2" column="3" rowspan="1" colspan="2">
+                    <property name="name">
+                        <cstring>spacer9</cstring>
+                    </property>
+                    <property name="orientation">
+                        <enum>Horizontal</enum>
+                    </property>
+                    <property name="sizeType">
+                        <enum>Expanding</enum>
+                    </property>
+                    <property name="sizeHint">
+                        <size>
+                            <width>241</width>
+                            <height>20</height>
                         </size>
                     </property>
                 </spacer>
@@ -178,7 +192,7 @@
             <property name="sizeHint">
                 <size>
                     <width>20</width>
-                    <height>40</height>
+                    <height>16</height>
                 </size>
             </property>
         </spacer>
@@ -252,21 +266,33 @@
         <receiver>EditXLinkDialog</receiver>
         <slot>widthChanged(int)</slot>
     </connection>
+    <connection>
+        <sender>setColorHeadingButton</sender>
+        <signal>clicked()</signal>
+        <receiver>EditXLinkDialog</receiver>
+        <slot>setColorHeadingButtonPressed()</slot>
+    </connection>
 </connections>
 <includes>
     <include location="global" impldecl="in implementation">qcolordialog.h</include>
+    <include location="local" impldecl="in implementation">linkablemapobj.h</include>
     <include location="local" impldecl="in declaration">xlinkobj.h</include>
+    <include location="local" impldecl="in declaration">mapcenterobj.h</include>
+    <include location="local" impldecl="in declaration">linkablemapobj.h</include>
     <include location="local" impldecl="in implementation">editxlinkdialog.ui.h</include>
 </includes>
 <variables>
+    <variable access="private">LinkableMapObj *selection;</variable>
+    <variable access="private">XLinkObj *xlo;</variable>
     <variable access="private">bool delink;</variable>
-    <variable access="private">XLinkObj *xlo;</variable>
 </variables>
 <slots>
     <slot access="protected">deleteButtonPressed()</slot>
     <slot access="protected">widthChanged( int w )</slot>
     <slot>setXLink( XLinkObj * xo )</slot>
+    <slot>setSelection( LinkableMapObj * s )</slot>
     <slot access="protected">colorButtonPressed()</slot>
+    <slot access="protected">setColorHeadingButtonPressed()</slot>
 </slots>
 <functions>
     <function access="private" specifier="non virtual">init()</function>