Partially implemented template editor
[biaweb_qt.git] / site_configuration_dialog.ui
index 11ee0d3..49dc7dd 100644 (file)
@@ -2,6 +2,9 @@
 <ui version="4.0">
  <class>SiteConfigDialog</class>
  <widget class="QDialog" name="SiteConfigDialog">
+  <property name="windowModality">
+   <enum>Qt::ApplicationModal</enum>
+  </property>
   <property name="geometry">
    <rect>
     <x>0</x>
   <property name="windowTitle">
    <string>Site Configuration</string>
   </property>
+  <property name="modal">
+   <bool>true</bool>
+  </property>
   <layout class="QGridLayout" name="gridLayout">
    <item row="0" column="0">
     <widget class="QLabel" name="label">
+     <property name="font">
+      <font>
+       <weight>75</weight>
+       <bold>true</bold>
+      </font>
+     </property>
      <property name="text">
       <string>Name of the site</string>
      </property>
     </widget>
    </item>
    <item row="0" column="1" colspan="7">
-    <widget class="QLineEdit" name="site_title"/>
-   </item>
-   <item row="1" column="0">
-    <widget class="QLabel" name="label_2">
+    <widget class="QLineEdit" name="site_title">
+     <property name="whatsThis">
+      <string>&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0//EN&quot; &quot;http://www.w3.org/TR/REC-html40/strict.dtd&quot;&gt;
+&lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;style type=&quot;text/css&quot;&gt;
+p, li { white-space: pre-wrap; }
+&lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:'Sans'; font-size:10pt; font-weight:400; font-style:normal;&quot;&gt;
+&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;Title of the site displayed in the header &lt;/p&gt;
+&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;of the generated website. &lt;span style=&quot; font-style:italic;&quot;&gt;Required field&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
+     </property>
      <property name="text">
-      <string>Site URL</string>
+      <string>My Site</string>
      </property>
     </widget>
    </item>
-   <item row="1" column="2" colspan="6">
-    <widget class="QLineEdit" name="site_url">
+   <item row="1" column="0">
+    <widget class="QLabel" name="label_2">
+     <property name="font">
+      <font>
+       <weight>75</weight>
+       <bold>true</bold>
+      </font>
+     </property>
      <property name="text">
-      <string/>
+      <string>Site URL</string>
      </property>
     </widget>
    </item>
    <item row="2" column="0">
     <widget class="QLabel" name="label_3">
+     <property name="font">
+      <font>
+       <weight>75</weight>
+       <bold>true</bold>
+      </font>
+     </property>
      <property name="text">
       <string>Keywords</string>
      </property>
     </widget>
    </item>
    <item row="2" column="1" colspan="7">
-    <widget class="QLineEdit" name="keywords"/>
+    <widget class="QLineEdit" name="keywords">
+     <property name="whatsThis">
+      <string>Site keywords. This influences only the main
+site page. Individual articles will have their own
+keywords.</string>
+     </property>
+     <property name="text">
+      <string>some keywords here</string>
+     </property>
+    </widget>
    </item>
    <item row="3" column="0">
     <widget class="QLabel" name="label_4">
+     <property name="font">
+      <font>
+       <weight>75</weight>
+       <bold>true</bold>
+      </font>
+     </property>
      <property name="text">
       <string>Description</string>
      </property>
    </item>
    <item row="3" column="1" colspan="7">
     <widget class="QPlainTextEdit" name="description">
+     <property name="whatsThis">
+      <string>&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0//EN&quot; &quot;http://www.w3.org/TR/REC-html40/strict.dtd&quot;&gt;
+&lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;style type=&quot;text/css&quot;&gt;
+p, li { white-space: pre-wrap; }
+&lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:'Sans'; font-size:10pt; font-weight:400; font-style:normal;&quot;&gt;
+&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;Description. This is displayed below the site title&lt;/p&gt;
+&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;in the generated HTML page. &lt;span style=&quot; font-style:italic;&quot;&gt;Required field&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
+     </property>
      <property name="verticalScrollBarPolicy">
       <enum>Qt::ScrollBarAlwaysOn</enum>
      </property>
      <property name="tabChangesFocus">
       <bool>true</bool>
      </property>
+     <property name="plainText">
+      <string>Your site's description here. This appears in the site header.</string>
+     </property>
     </widget>
    </item>
    <item row="4" column="0" colspan="2">
    </item>
    <item row="5" column="0">
     <widget class="QLabel" name="label_5">
+     <property name="font">
+      <font>
+       <weight>75</weight>
+       <bold>true</bold>
+      </font>
+     </property>
      <property name="text">
       <string>Export destination</string>
      </property>
     </widget>
    </item>
    <item row="5" column="1" colspan="6">
-    <widget class="QLineEdit" name="destination"/>
+    <widget class="QLineEdit" name="destination">
+     <property name="whatsThis">
+      <string>&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0//EN&quot; &quot;http://www.w3.org/TR/REC-html40/strict.dtd&quot;&gt;
+&lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;style type=&quot;text/css&quot;&gt;
+p, li { white-space: pre-wrap; }
+&lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:'Sans'; font-size:10pt; font-weight:400; font-style:normal;&quot;&gt;
+&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;Desination to generate the HTML output when &lt;/p&gt;
+&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;exported. &lt;span style=&quot; font-style:italic;&quot;&gt;Required field&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
+     </property>
+    </widget>
    </item>
    <item row="5" column="7">
     <widget class="QPushButton" name="destination_browse_button">
    </item>
    <item row="4" column="2">
     <widget class="QSpinBox" name="num_rss_items">
+     <property name="whatsThis">
+      <string>Number of items to display in RSS feed for the site.
+The RSS feed is updated every time you create a 
+new article and export it to HTML.</string>
+     </property>
      <property name="minimum">
       <number>1</number>
      </property>
     </widget>
    </item>
    <item row="4" column="4" colspan="4">
-    <widget class="QLineEdit" name="copyright"/>
+    <widget class="QLineEdit" name="copyright">
+     <property name="whatsThis">
+      <string>Copyright text displayed on the footer of all
+the generated pages of the website.</string>
+     </property>
+     <property name="text">
+      <string>Copyright (C) year, your name here</string>
+     </property>
+    </widget>
    </item>
    <item row="4" column="3">
     <widget class="QLabel" name="label_7">
      </property>
     </widget>
    </item>
+   <item row="1" column="2" colspan="6">
+    <widget class="QLineEdit" name="site_url">
+     <property name="whatsThis">
+      <string>&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0//EN&quot; &quot;http://www.w3.org/TR/REC-html40/strict.dtd&quot;&gt;
+&lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;style type=&quot;text/css&quot;&gt;
+p, li { white-space: pre-wrap; }
+&lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:'Sans'; font-size:10pt; font-weight:400; font-style:normal;&quot;&gt;
+&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;URL of the site without the HTTP part. This is the &lt;/p&gt;
+&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;base href URL when exported and all site links are&lt;/p&gt;
+&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;relative to this. &lt;span style=&quot; font-style:italic;&quot;&gt;Required field&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
+     </property>
+     <property name="text">
+      <string>example.com</string>
+     </property>
+    </widget>
+   </item>
   </layout>
  </widget>
  <tabstops>
    <slot>accept()</slot>
    <hints>
     <hint type="sourcelabel">
-     <x>248</x>
-     <y>254</y>
+     <x>257</x>
+     <y>357</y>
     </hint>
     <hint type="destinationlabel">
      <x>157</x>
    <slot>reject()</slot>
    <hints>
     <hint type="sourcelabel">
-     <x>316</x>
-     <y>260</y>
+     <x>325</x>
+     <y>357</y>
     </hint>
     <hint type="destinationlabel">
      <x>286</x>
     </hint>
    </hints>
   </connection>
+  <connection>
+   <sender>destination_browse_button</sender>
+   <signal>clicked()</signal>
+   <receiver>SiteConfigDialog</receiver>
+   <slot>on_browse()</slot>
+   <hints>
+    <hint type="sourcelabel">
+     <x>529</x>
+     <y>321</y>
+    </hint>
+    <hint type="destinationlabel">
+     <x>558</x>
+     <y>310</y>
+    </hint>
+   </hints>
+  </connection>
  </connections>
+ <slots>
+  <slot>on_browse()</slot>
+ </slots>
 </ui>