]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/qt-console/restore/brestore.ui
bat: Try to implement drag&drop for file selection
[bacula/bacula] / bacula / src / qt-console / restore / brestore.ui
index c67b0202ab6463833dafd5d576134676847eff59..d2ff1e0bdc0617bca561ff421e9a5d30902e19e6 100644 (file)
          <number>9</number>
         </property>
         <item>
-         <widget class="QTableWidget" name="FileList">
+         <widget class="bRestoreTable" name="FileList">
           <property name="sizePolicy">
            <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
             <horstretch>5</horstretch>
             <verstretch>5</verstretch>
            </sizepolicy>
           </property>
+          <property name="dragEnabled">
+           <bool>true</bool>
+          </property>
+          <property name="alternatingRowColors">
+           <bool>true</bool>
+          </property>
+          <property name="selectionBehavior">
+           <enum>QAbstractItemView::SelectRows</enum>
+          </property>
+          <property name="showGrid">
+           <bool>false</bool>
+          </property>
+          <property name="sortingEnabled">
+           <bool>false</bool>
+          </property>
+          <attribute name="verticalHeaderVisible">
+           <bool>false</bool>
+          </attribute>
+          <column>
+           <property name="text">
+            <string>Data</string>
+           </property>
+          </column>
           <column>
            <property name="text">
             <string>Type</string>
          <number>9</number>
         </property>
         <item>
-         <widget class="QTableWidget" name="FileRevisions">
+         <widget class="bRestoreTable" name="FileRevisions">
           <property name="sizePolicy">
            <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
             <horstretch>0</horstretch>
             <verstretch>0</verstretch>
            </sizepolicy>
           </property>
+          <property name="dragEnabled">
+           <bool>true</bool>
+          </property>
+          <property name="alternatingRowColors">
+           <bool>true</bool>
+          </property>
+          <property name="selectionMode">
+           <enum>QAbstractItemView::SingleSelection</enum>
+          </property>
+          <property name="selectionBehavior">
+           <enum>QAbstractItemView::SelectRows</enum>
+          </property>
+          <property name="showGrid">
+           <bool>false</bool>
+          </property>
+          <column>
+           <property name="text">
+            <string>Data</string>
+           </property>
+          </column>
           <column>
            <property name="text">
             <string>InChanger</string>
@@ -201,10 +244,21 @@ p, li { white-space: pre-wrap; }
         </layout>
        </item>
        <item>
-        <widget class="QTableWidget" name="RestoreList">
+        <widget class="bRestoreTable" name="RestoreList">
          <property name="acceptDrops">
           <bool>true</bool>
          </property>
+         <property name="dragDropMode">
+          <enum>QAbstractItemView::DropOnly</enum>
+         </property>
+         <attribute name="verticalHeaderVisible">
+          <bool>false</bool>
+         </attribute>
+         <column>
+          <property name="text">
+           <string>Data</string>
+          </property>
+         </column>
          <column>
           <property name="text">
            <string>Type</string>
@@ -217,22 +271,27 @@ p, li { white-space: pre-wrap; }
          </column>
          <column>
           <property name="text">
-           <string>JobId</string>
+           <string>Size</string>
           </property>
          </column>
          <column>
           <property name="text">
-           <string>FileIndex</string>
+           <string>Date</string>
           </property>
          </column>
          <column>
           <property name="text">
-           <string>Nb Files</string>
+           <string>JobId</string>
           </property>
          </column>
          <column>
           <property name="text">
-           <string>Size</string>
+           <string>FileIndex</string>
+          </property>
+         </column>
+         <column>
+          <property name="text">
+           <string>Nb Files</string>
           </property>
          </column>
         </widget>
@@ -294,6 +353,23 @@ p, li { white-space: pre-wrap; }
        </property>
       </spacer>
      </item>
+     <item>
+      <widget class="QCheckBox" name="MergeChk">
+       <property name="text">
+        <string>Merge Jobs</string>
+       </property>
+       <property name="checked">
+        <bool>true</bool>
+       </property>
+      </widget>
+     </item>
+     <item>
+      <widget class="QCheckBox" name="VersionsChk">
+       <property name="text">
+        <string>View all Versions</string>
+       </property>
+      </widget>
+     </item>
      <item>
       <widget class="QPushButton" name="LocationBp">
        <property name="text">
@@ -308,6 +384,13 @@ p, li { white-space: pre-wrap; }
    </item>
   </layout>
  </widget>
+ <customwidgets>
+  <customwidget>
+   <class>bRestoreTable</class>
+   <extends>QTableWidget</extends>
+   <header>restore.h</header>
+  </customwidget>
+ </customwidgets>
  <resources/>
  <connections/>
 </ui>