[PC-BSD Commits] r2492 - pcbsd/trunk/XGUISource

svn at pcbsd.org svn at pcbsd.org
Wed Jul 30 08:57:18 PDT 2008


Author: kris
Date: 2008-07-30 08:57:18 -0700 (Wed, 30 Jul 2008)
New Revision: 2492

Added:
   pcbsd/trunk/XGUISource/krdc.png
   pcbsd/trunk/XGUISource/video-display.png
Modified:
   pcbsd/trunk/XGUISource/XGUI.qrc
   pcbsd/trunk/XGUISource/xgui.cpp
   pcbsd/trunk/XGUISource/xgui.h
   pcbsd/trunk/XGUISource/xgui.ui
Log:

Updated the XGUI tool to display a bit more information about the monitor / 
video card we detected. Also added an "advanced" option for Dual-Head setup,
the backend for it will be added soon.



Modified: pcbsd/trunk/XGUISource/XGUI.qrc
===================================================================
--- pcbsd/trunk/XGUISource/XGUI.qrc	2008-07-30 14:27:13 UTC (rev 2491)
+++ pcbsd/trunk/XGUISource/XGUI.qrc	2008-07-30 15:57:18 UTC (rev 2492)
@@ -1,5 +1,12 @@
 <RCC>
   <qresource>
     <file>monitor.png</file>
+    <file>colors.png</file>
+    <file>randr.png</file>
+    <file>smserver.png</file>
+    <file>kcontrol.png</file>
+    <file>font_bitmap.png</file>
+    <file>krdc.png</file>
+    <file>video-display.png</file>
   </qresource>
 </RCC>


Property changes on: pcbsd/trunk/XGUISource/krdc.png
___________________________________________________________________
Added: svn:mime-type
   + application/octet-stream


Property changes on: pcbsd/trunk/XGUISource/video-display.png
___________________________________________________________________
Added: svn:mime-type
   + application/octet-stream

Modified: pcbsd/trunk/XGUISource/xgui.cpp
===================================================================
--- pcbsd/trunk/XGUISource/xgui.cpp	2008-07-30 14:27:13 UTC (rev 2491)
+++ pcbsd/trunk/XGUISource/xgui.cpp	2008-07-30 15:57:18 UTC (rev 2492)
@@ -20,6 +20,8 @@
     gridLayout->setMargin(0);
     gridLayout->setSpacing(0);
     
+    // Load the Device Information
+    loadDeviceInformation();
    
     // Load the screen resolutions
     loadResolutions();
@@ -38,7 +40,36 @@
 
 }
 
+void XGUI::loadDeviceInformation()
+{
+    QString tmp;
 
+    // Get the card name and display it
+    QFile file( "/tmp/.cardboard" );
+    if ( file.open( IO_ReadOnly ) ) {
+        QTextStream stream( &file );
+             labelVideoCard->setText(stream.readLine()); // line of text excluding '\n'
+        file.close();
+    }
+
+   // Get the Monitor Name and display it 
+   QFile file2( "/tmp/.monmodel" );
+   if ( file2.open( IO_ReadOnly ) ) {
+        QTextStream stream2( &file2 );
+             tmp = stream2.readLine(); // line of text excluding '\n'
+             if ( tmp == "Monitor Model" )
+             {
+		labelMonitor->setText(tr("Unknown Monitor"));
+             } else {
+		labelMonitor->setText(tmp);
+             }
+        file2.close();
+   }
+
+
+}
+
+
 // Function which checks if we are using an unprobed monitor, warns the user
 // and then enables the advanced tab
 void XGUI::checkUnprobedMonitor()
@@ -211,6 +242,10 @@
 		stream << "HORIZSYNC=\"OFF\"; export HORIZSYNC\n" ;
 	    	stream << "VERTREFRESH=\"OFF\"; export VERTREFRESH\n" ;
 	    }
+            if ( checkDualHead->isChecked() )
+            {
+                stream << "DUALHEAD=\"YES\" ; export DUALHEAD\n";
+            }
 	    file.close();
     	}
 

Modified: pcbsd/trunk/XGUISource/xgui.h
===================================================================
--- pcbsd/trunk/XGUISource/xgui.h	2008-07-30 14:27:13 UTC (rev 2491)
+++ pcbsd/trunk/XGUISource/xgui.h	2008-07-30 15:57:18 UTC (rev 2492)
@@ -26,6 +26,7 @@
     void monitorChangedSlot();
 
 private:
+    void loadDeviceInformation();
     void loadResolutions();
     void loadDrivers();
     void loadDepth();

Modified: pcbsd/trunk/XGUISource/xgui.ui
===================================================================
--- pcbsd/trunk/XGUISource/xgui.ui	2008-07-30 14:27:13 UTC (rev 2491)
+++ pcbsd/trunk/XGUISource/xgui.ui	2008-07-30 15:57:18 UTC (rev 2492)
@@ -45,62 +45,578 @@
      <height>461</height>
     </rect>
    </property>
-   <layout class="QGridLayout" >
-    <item row="1" column="0" colspan="5" >
-     <widget class="Line" name="line1" >
+   <layout class="QGridLayout" name="gridLayout_2" >
+    <item rowspan="3" row="0" column="0" >
+     <widget class="QLabel" name="pixmapLabel1" >
+      <property name="sizePolicy" >
+       <sizepolicy vsizetype="Preferred" hsizetype="Preferred" >
+        <horstretch>0</horstretch>
+        <verstretch>0</verstretch>
+       </sizepolicy>
+      </property>
       <property name="frameShape" >
-       <enum>QFrame::HLine</enum>
+       <enum>QFrame::NoFrame</enum>
       </property>
       <property name="frameShadow" >
+       <enum>QFrame::Plain</enum>
+      </property>
+      <property name="pixmap" >
+       <pixmap resource="XGUI.qrc" >:/monitor.png</pixmap>
+      </property>
+      <property name="scaledContents" >
+       <bool>true</bool>
+      </property>
+      <property name="alignment" >
+       <set>Qt::AlignTop</set>
+      </property>
+      <property name="wordWrap" >
+       <bool>false</bool>
+      </property>
+     </widget>
+    </item>
+    <item rowspan="3" row="0" column="1" >
+     <widget class="Line" name="line2" >
+      <property name="frameShape" >
+       <enum>QFrame::VLine</enum>
+      </property>
+      <property name="frameShadow" >
        <enum>QFrame::Sunken</enum>
       </property>
      </widget>
     </item>
-    <item row="2" column="0" colspan="4" >
-     <spacer name="spacer5_2" >
+    <item rowspan="3" row="0" column="2" >
+     <spacer name="spacer5_2_2_3_2_2" >
       <property name="orientation" >
+       <enum>Qt::Horizontal</enum>
+      </property>
+      <property name="sizeType" >
+       <enum>QSizePolicy::Fixed</enum>
+      </property>
+      <property name="sizeHint" stdset="0" >
+       <size>
+        <width>6</width>
+        <height>360</height>
+       </size>
+      </property>
+     </spacer>
+    </item>
+    <item row="0" column="3" >
+     <spacer name="spacer11" >
+      <property name="orientation" >
        <enum>Qt::Vertical</enum>
       </property>
       <property name="sizeType" >
-       <enum>QSizePolicy::MinimumExpanding</enum>
+       <enum>QSizePolicy::Fixed</enum>
       </property>
       <property name="sizeHint" stdset="0" >
        <size>
-        <width>530</width>
-        <height>6</height>
+        <width>330</width>
+        <height>16</height>
        </size>
       </property>
      </spacer>
     </item>
-    <item row="0" column="0" >
-     <widget class="QLabel" name="pixmapLabel1" >
+    <item rowspan="3" row="0" column="4" >
+     <spacer name="spacer5_2_2_3_2" >
+      <property name="orientation" >
+       <enum>Qt::Horizontal</enum>
+      </property>
+      <property name="sizeType" >
+       <enum>QSizePolicy::Fixed</enum>
+      </property>
+      <property name="sizeHint" stdset="0" >
+       <size>
+        <width>6</width>
+        <height>360</height>
+       </size>
+      </property>
+     </spacer>
+    </item>
+    <item row="1" column="3" >
+     <widget class="QTabWidget" name="tabWidget2" >
       <property name="sizePolicy" >
-       <sizepolicy vsizetype="Preferred" hsizetype="Preferred" >
+       <sizepolicy vsizetype="Minimum" hsizetype="Preferred" >
         <horstretch>0</horstretch>
         <verstretch>0</verstretch>
        </sizepolicy>
       </property>
-      <property name="frameShape" >
-       <enum>QFrame::NoFrame</enum>
+      <property name="currentIndex" >
+       <number>1</number>
       </property>
-      <property name="frameShadow" >
-       <enum>QFrame::Plain</enum>
+      <widget class="QWidget" name="tab" >
+       <property name="geometry" >
+        <rect>
+         <x>0</x>
+         <y>0</y>
+         <width>322</width>
+         <height>324</height>
+        </rect>
+       </property>
+       <attribute name="title" >
+        <string>General</string>
+       </attribute>
+       <layout class="QGridLayout" name="gridLayout_3" >
+        <item row="0" column="0" >
+         <layout class="QHBoxLayout" name="horizontalLayout_3" >
+          <item>
+           <widget class="QLabel" name="label" >
+            <property name="text" >
+             <string>Video Card:</string>
+            </property>
+           </widget>
+          </item>
+          <item>
+           <widget class="QLabel" name="labelVideoCard" >
+            <property name="text" >
+             <string/>
+            </property>
+           </widget>
+          </item>
+          <item>
+           <widget class="QLabel" name="pixmapLabel1_5" >
+            <property name="minimumSize" >
+             <size>
+              <width>32</width>
+              <height>32</height>
+             </size>
+            </property>
+            <property name="maximumSize" >
+             <size>
+              <width>32</width>
+              <height>32</height>
+             </size>
+            </property>
+            <property name="pixmap" >
+             <pixmap resource="XGUI.qrc" >:/kcontrol.png</pixmap>
+            </property>
+            <property name="scaledContents" >
+             <bool>true</bool>
+            </property>
+            <property name="wordWrap" >
+             <bool>false</bool>
+            </property>
+           </widget>
+          </item>
+         </layout>
+        </item>
+        <item row="1" column="0" >
+         <layout class="QHBoxLayout" name="horizontalLayout_2" >
+          <item>
+           <widget class="QLabel" name="label_2" >
+            <property name="text" >
+             <string>Monitor:</string>
+            </property>
+           </widget>
+          </item>
+          <item>
+           <widget class="QLabel" name="labelMonitor" >
+            <property name="text" >
+             <string/>
+            </property>
+           </widget>
+          </item>
+          <item>
+           <widget class="QLabel" name="pixmapLabel1_4" >
+            <property name="minimumSize" >
+             <size>
+              <width>32</width>
+              <height>32</height>
+             </size>
+            </property>
+            <property name="maximumSize" >
+             <size>
+              <width>32</width>
+              <height>32</height>
+             </size>
+            </property>
+            <property name="pixmap" >
+             <pixmap resource="XGUI.qrc" >:/video-display.png</pixmap>
+            </property>
+            <property name="scaledContents" >
+             <bool>true</bool>
+            </property>
+            <property name="wordWrap" >
+             <bool>false</bool>
+            </property>
+           </widget>
+          </item>
+         </layout>
+        </item>
+        <item row="2" column="0" >
+         <layout class="QHBoxLayout" >
+          <item>
+           <widget class="QLabel" name="textLabel1" >
+            <property name="text" >
+             <string>Screen Resolution:</string>
+            </property>
+            <property name="wordWrap" >
+             <bool>false</bool>
+            </property>
+           </widget>
+          </item>
+          <item>
+           <widget class="QComboBox" name="comboResolution" >
+            <item>
+             <property name="text" >
+              <string>1024x768</string>
+             </property>
+            </item>
+           </widget>
+          </item>
+          <item>
+           <widget class="QLabel" name="pixmapLabel1_2" >
+            <property name="minimumSize" >
+             <size>
+              <width>32</width>
+              <height>32</height>
+             </size>
+            </property>
+            <property name="maximumSize" >
+             <size>
+              <width>32</width>
+              <height>32</height>
+             </size>
+            </property>
+            <property name="pixmap" >
+             <pixmap resource="XGUI.qrc" >:/randr.png</pixmap>
+            </property>
+            <property name="scaledContents" >
+             <bool>true</bool>
+            </property>
+            <property name="wordWrap" >
+             <bool>false</bool>
+            </property>
+           </widget>
+          </item>
+         </layout>
+        </item>
+        <item row="3" column="0" >
+         <layout class="QHBoxLayout" >
+          <item>
+           <widget class="QLabel" name="textLabel1_2" >
+            <property name="text" >
+             <string>Color Depth:</string>
+            </property>
+            <property name="wordWrap" >
+             <bool>false</bool>
+            </property>
+           </widget>
+          </item>
+          <item>
+           <widget class="QComboBox" name="comboDepth" >
+            <item>
+             <property name="text" >
+              <string>24bits</string>
+             </property>
+            </item>
+           </widget>
+          </item>
+          <item>
+           <widget class="QLabel" name="pixmapLabel1_2_3" >
+            <property name="minimumSize" >
+             <size>
+              <width>32</width>
+              <height>32</height>
+             </size>
+            </property>
+            <property name="maximumSize" >
+             <size>
+              <width>32</width>
+              <height>32</height>
+             </size>
+            </property>
+            <property name="pixmap" >
+             <pixmap resource="XGUI.qrc" >:/colors.png</pixmap>
+            </property>
+            <property name="scaledContents" >
+             <bool>true</bool>
+            </property>
+            <property name="wordWrap" >
+             <bool>false</bool>
+            </property>
+           </widget>
+          </item>
+         </layout>
+        </item>
+        <item row="4" column="0" >
+         <layout class="QHBoxLayout" >
+          <item>
+           <widget class="QLabel" name="textLabel1_3" >
+            <property name="text" >
+             <string>Video Driver</string>
+            </property>
+            <property name="wordWrap" >
+             <bool>false</bool>
+            </property>
+           </widget>
+          </item>
+          <item>
+           <widget class="QComboBox" name="comboDriver" />
+          </item>
+          <item>
+           <widget class="QLabel" name="pixmapLabel1_2_5" >
+            <property name="minimumSize" >
+             <size>
+              <width>32</width>
+              <height>32</height>
+             </size>
+            </property>
+            <property name="maximumSize" >
+             <size>
+              <width>32</width>
+              <height>32</height>
+             </size>
+            </property>
+            <property name="pixmap" >
+             <pixmap resource="XGUI.qrc" >:/kcontrol.png</pixmap>
+            </property>
+            <property name="scaledContents" >
+             <bool>true</bool>
+            </property>
+            <property name="wordWrap" >
+             <bool>false</bool>
+            </property>
+           </widget>
+          </item>
+         </layout>
+        </item>
+        <item row="5" column="0" >
+         <spacer name="spacer2" >
+          <property name="orientation" >
+           <enum>Qt::Vertical</enum>
+          </property>
+          <property name="sizeType" >
+           <enum>QSizePolicy::Minimum</enum>
+          </property>
+          <property name="sizeHint" stdset="0" >
+           <size>
+            <width>20</width>
+            <height>16</height>
+           </size>
+          </property>
+         </spacer>
+        </item>
+       </layout>
+      </widget>
+      <widget class="QWidget" name="TabPage" >
+       <property name="geometry" >
+        <rect>
+         <x>0</x>
+         <y>0</y>
+         <width>322</width>
+         <height>324</height>
+        </rect>
+       </property>
+       <attribute name="title" >
+        <string>Advanced</string>
+       </attribute>
+       <layout class="QGridLayout" name="gridLayout" >
+        <item row="0" column="0" >
+         <widget class="QCheckBox" name="checkMonitorSync" >
+          <property name="text" >
+           <string>Monitor Settings</string>
+          </property>
+         </widget>
+        </item>
+        <item row="1" column="0" >
+         <widget class="Q3GroupBox" name="groupMonitor" >
+          <property name="title" >
+           <string/>
+          </property>
+          <layout class="QGridLayout" >
+           <item row="0" column="0" >
+            <layout class="QHBoxLayout" >
+             <item>
+              <widget class="QLabel" name="textLabel1_4" >
+               <property name="sizePolicy" >
+                <sizepolicy vsizetype="Preferred" hsizetype="Expanding" >
+                 <horstretch>0</horstretch>
+                 <verstretch>0</verstretch>
+                </sizepolicy>
+               </property>
+               <property name="text" >
+                <string>Horizontal Sync:</string>
+               </property>
+               <property name="wordWrap" >
+                <bool>false</bool>
+               </property>
+              </widget>
+             </item>
+             <item>
+              <widget class="QLineEdit" name="lineHorz" >
+               <property name="text" >
+                <string>28.0-78.0</string>
+               </property>
+               <property name="alignment" >
+                <set>Qt::AlignHCenter</set>
+               </property>
+              </widget>
+             </item>
+             <item>
+              <widget class="QLabel" name="pixmapLabel1_2_6" >
+               <property name="minimumSize" >
+                <size>
+                 <width>32</width>
+                 <height>32</height>
+                </size>
+               </property>
+               <property name="maximumSize" >
+                <size>
+                 <width>32</width>
+                 <height>32</height>
+                </size>
+               </property>
+               <property name="pixmap" >
+                <pixmap resource="XGUI.qrc" >:/smserver.png</pixmap>
+               </property>
+               <property name="scaledContents" >
+                <bool>true</bool>
+               </property>
+               <property name="wordWrap" >
+                <bool>false</bool>
+               </property>
+              </widget>
+             </item>
+            </layout>
+           </item>
+           <item row="1" column="0" >
+            <layout class="QHBoxLayout" >
+             <item>
+              <widget class="QLabel" name="textLabel1_4_2" >
+               <property name="sizePolicy" >
+                <sizepolicy vsizetype="Preferred" hsizetype="Expanding" >
+                 <horstretch>0</horstretch>
+                 <verstretch>0</verstretch>
+                </sizepolicy>
+               </property>
+               <property name="text" >
+                <string>Vertical Refresh:</string>
+               </property>
+               <property name="wordWrap" >
+                <bool>false</bool>
+               </property>
+              </widget>
+             </item>
+             <item>
+              <widget class="QLineEdit" name="lineVertRefresh" >
+               <property name="text" >
+                <string>50.0-76.0</string>
+               </property>
+               <property name="alignment" >
+                <set>Qt::AlignHCenter</set>
+               </property>
+              </widget>
+             </item>
+             <item>
+              <widget class="QLabel" name="pixmapLabel1_2_6_2" >
+               <property name="minimumSize" >
+                <size>
+                 <width>32</width>
+                 <height>32</height>
+                </size>
+               </property>
+               <property name="maximumSize" >
+                <size>
+                 <width>32</width>
+                 <height>32</height>
+                </size>
+               </property>
+               <property name="pixmap" >
+                <pixmap resource="XGUI.qrc" >:/smserver.png</pixmap>
+               </property>
+               <property name="scaledContents" >
+                <bool>true</bool>
+               </property>
+               <property name="wordWrap" >
+                <bool>false</bool>
+               </property>
+              </widget>
+             </item>
+            </layout>
+           </item>
+          </layout>
+         </widget>
+        </item>
+        <item row="2" column="0" >
+         <widget class="QCheckBox" name="checkDualHead" >
+          <property name="text" >
+           <string>Enable Dual-Head support</string>
+          </property>
+         </widget>
+        </item>
+        <item row="3" column="0" >
+         <widget class="QLabel" name="label_3" >
+          <property name="text" >
+           <string>Warning: Dual-Head support is designed for systems with one video card and two monitors. Other setups may be achived by editing /etc/X11/xorg.conf</string>
+          </property>
+          <property name="wordWrap" >
+           <bool>true</bool>
+          </property>
+         </widget>
+        </item>
+        <item row="4" column="0" >
+         <spacer name="spacer9" >
+          <property name="orientation" >
+           <enum>Qt::Vertical</enum>
+          </property>
+          <property name="sizeType" >
+           <enum>QSizePolicy::Expanding</enum>
+          </property>
+          <property name="sizeHint" stdset="0" >
+           <size>
+            <width>20</width>
+            <height>100</height>
+           </size>
+          </property>
+         </spacer>
+        </item>
+       </layout>
+      </widget>
+     </widget>
+    </item>
+    <item row="2" column="3" >
+     <spacer name="spacer12" >
+      <property name="orientation" >
+       <enum>Qt::Vertical</enum>
       </property>
-      <property name="pixmap" >
-       <pixmap resource="XGUI.qrc" >:/monitor.png</pixmap>
+      <property name="sizeType" >
+       <enum>QSizePolicy::Fixed</enum>
       </property>
-      <property name="scaledContents" >
-       <bool>true</bool>
+      <property name="sizeHint" stdset="0" >
+       <size>
+        <width>327</width>
+        <height>17</height>
+       </size>
       </property>
-      <property name="alignment" >
-       <set>Qt::AlignTop</set>
+     </spacer>
+    </item>
+    <item row="3" column="0" colspan="4" >
+     <widget class="Line" name="line1" >
+      <property name="frameShape" >
+       <enum>QFrame::HLine</enum>
       </property>
-      <property name="wordWrap" >
-       <bool>false</bool>
+      <property name="frameShadow" >
+       <enum>QFrame::Sunken</enum>
       </property>
      </widget>
     </item>
-    <item row="3" column="0" colspan="5" >
+    <item row="4" column="0" colspan="4" >
+     <spacer name="spacer5_2" >
+      <property name="orientation" >
+       <enum>Qt::Vertical</enum>
+      </property>
+      <property name="sizeType" >
+       <enum>QSizePolicy::MinimumExpanding</enum>
+      </property>
+      <property name="sizeHint" stdset="0" >
+       <size>
+        <width>530</width>
+        <height>6</height>
+       </size>
+      </property>
+     </spacer>
+    </item>
+    <item row="5" column="0" colspan="4" >
      <layout class="QHBoxLayout" >
       <property name="margin" >
        <number>0</number>
@@ -159,432 +675,6 @@
       </item>
      </layout>
     </item>
-    <item row="0" column="1" >
-     <widget class="Line" name="line2" >
-      <property name="frameShape" >
-       <enum>QFrame::VLine</enum>
-      </property>
-      <property name="frameShadow" >
-       <enum>QFrame::Sunken</enum>
-      </property>
-     </widget>
-    </item>
-    <item row="0" column="3" >
-     <layout class="QVBoxLayout" >
-      <item>
-       <spacer name="spacer11" >
-        <property name="orientation" >
-         <enum>Qt::Vertical</enum>
-        </property>
-        <property name="sizeType" >
-         <enum>QSizePolicy::Fixed</enum>
-        </property>
-        <property name="sizeHint" stdset="0" >
-         <size>
-          <width>330</width>
-          <height>16</height>
-         </size>
-        </property>
-       </spacer>
-      </item>
-      <item>
-       <widget class="QTabWidget" name="tabWidget2" >
-        <property name="sizePolicy" >
-         <sizepolicy vsizetype="Minimum" hsizetype="Preferred" >
-          <horstretch>0</horstretch>
-          <verstretch>0</verstretch>
-         </sizepolicy>
-        </property>
-        <property name="currentIndex" >
-         <number>0</number>
-        </property>
-        <widget class="QWidget" name="tab" >
-         <property name="geometry" >
-          <rect>
-           <x>0</x>
-           <y>0</y>
-           <width>318</width>
-           <height>279</height>
-          </rect>
-         </property>
-         <attribute name="title" >
-          <string>General</string>
-         </attribute>
-         <layout class="QGridLayout" >
-          <item row="1" column="0" >
-           <spacer name="spacer2" >
-            <property name="orientation" >
-             <enum>Qt::Vertical</enum>
-            </property>
-            <property name="sizeType" >
-             <enum>QSizePolicy::Minimum</enum>
-            </property>
-            <property name="sizeHint" stdset="0" >
-             <size>
-              <width>20</width>
-              <height>16</height>
-             </size>
-            </property>
-           </spacer>
-          </item>
-          <item row="0" column="0" >
-           <widget class="Q3GroupBox" name="groupBox1" >
-            <property name="title" >
-             <string>Settings</string>
-            </property>
-            <layout class="QGridLayout" >
-             <item row="0" column="0" >
-              <layout class="QHBoxLayout" >
-               <item>
-                <widget class="QLabel" name="textLabel1" >
-                 <property name="text" >
-                  <string>Screen Resolution:</string>
-                 </property>
-                 <property name="wordWrap" >
-                  <bool>false</bool>
-                 </property>
-                </widget>
-               </item>
-               <item>
-                <widget class="QComboBox" name="comboResolution" >
-                 <item>
-                  <property name="text" >
-                   <string>1024x768</string>
-                  </property>
-                 </item>
-                </widget>
-               </item>
-               <item>
-                <widget class="QLabel" name="pixmapLabel1_2" >
-                 <property name="minimumSize" >
-                  <size>
-                   <width>32</width>
-                   <height>32</height>
-                  </size>
-                 </property>
-                 <property name="maximumSize" >
-                  <size>
-                   <width>32</width>
-                   <height>32</height>
-                  </size>
-                 </property>
-                 <property name="pixmap" >
-                  <pixmap>image1</pixmap>
-                 </property>
-                 <property name="scaledContents" >
-                  <bool>true</bool>
-                 </property>
-                 <property name="wordWrap" >
-                  <bool>false</bool>
-                 </property>
-                </widget>
-               </item>
-              </layout>
-             </item>
-             <item row="2" column="0" >
-              <layout class="QHBoxLayout" >
-               <item>
-                <widget class="QLabel" name="textLabel1_2" >
-                 <property name="text" >
-                  <string>Color Depth:</string>
-                 </property>
-                 <property name="wordWrap" >
-                  <bool>false</bool>
-                 </property>
-                </widget>
-               </item>
-               <item>
-                <widget class="QComboBox" name="comboDepth" >
-                 <item>
-                  <property name="text" >
-                   <string>24bits</string>
-                  </property>
-                 </item>
-                </widget>
-               </item>
-               <item>
-                <widget class="QLabel" name="pixmapLabel1_2_3" >
-                 <property name="minimumSize" >
-                  <size>
-                   <width>32</width>
-                   <height>32</height>
-                  </size>
-                 </property>
-                 <property name="maximumSize" >
-                  <size>
-                   <width>32</width>
-                   <height>32</height>
-                  </size>
-                 </property>
-                 <property name="pixmap" >
-                  <pixmap>image2</pixmap>
-                 </property>
-                 <property name="scaledContents" >
-                  <bool>true</bool>
-                 </property>
-                 <property name="wordWrap" >
-                  <bool>false</bool>
-                 </property>
-                </widget>
-               </item>
-              </layout>
-             </item>
-             <item row="4" column="0" >
-              <layout class="QHBoxLayout" >
-               <item>
-                <widget class="QLabel" name="textLabel1_3" >
-                 <property name="text" >
-                  <string>Video Driver</string>
-                 </property>
-                 <property name="wordWrap" >
-                  <bool>false</bool>
-                 </property>
-                </widget>
-               </item>
-               <item>
-                <widget class="QComboBox" name="comboDriver" />
-               </item>
-               <item>
-                <widget class="QLabel" name="pixmapLabel1_2_5" >
-                 <property name="minimumSize" >
-                  <size>
-                   <width>32</width>
-                   <height>32</height>
-                  </size>
-                 </property>
-                 <property name="maximumSize" >
-                  <size>
-                   <width>32</width>
-                   <height>32</height>
-                  </size>
-                 </property>
-                 <property name="pixmap" >
-                  <pixmap>image3</pixmap>
-                 </property>
-                 <property name="scaledContents" >
-                  <bool>true</bool>
-                 </property>
-                 <property name="wordWrap" >
-                  <bool>false</bool>
-                 </property>
-                </widget>
-               </item>
-              </layout>
-             </item>
-            </layout>
-           </widget>
-          </item>
-         </layout>
-        </widget>
-        <widget class="QWidget" name="TabPage" >
-         <property name="geometry" >
-          <rect>
-           <x>0</x>
-           <y>0</y>
-           <width>318</width>
-           <height>279</height>
-          </rect>
-         </property>
-         <attribute name="title" >
-          <string>Advanced</string>
-         </attribute>
-         <layout class="QGridLayout" >
-          <item row="2" column="0" >
-           <spacer name="spacer9" >
-            <property name="orientation" >
-             <enum>Qt::Vertical</enum>
-            </property>
-            <property name="sizeType" >
-             <enum>QSizePolicy::Expanding</enum>
-            </property>
-            <property name="sizeHint" stdset="0" >
-             <size>
-              <width>20</width>
-              <height>100</height>
-             </size>
-            </property>
-           </spacer>
-          </item>
-          <item row="0" column="0" >
-           <widget class="QCheckBox" name="checkMonitorSync" >
-            <property name="text" >
-             <string>Monitor Settings</string>
-            </property>
-           </widget>
-          </item>
-          <item row="1" column="0" >
-           <widget class="Q3GroupBox" name="groupMonitor" >
-            <property name="title" >
-             <string/>
-            </property>
-            <layout class="QGridLayout" >
-             <item row="0" column="0" >
-              <layout class="QHBoxLayout" >
-               <item>
-                <widget class="QLabel" name="textLabel1_4" >
-                 <property name="sizePolicy" >
-                  <sizepolicy vsizetype="Preferred" hsizetype="Expanding" >
-                   <horstretch>0</horstretch>
-                   <verstretch>0</verstretch>
-                  </sizepolicy>
-                 </property>
-                 <property name="text" >
-                  <string>Horizontal Sync:</string>
-                 </property>
-                 <property name="wordWrap" >
-                  <bool>false</bool>
-                 </property>
-                </widget>
-               </item>
-               <item>
-                <widget class="QLineEdit" name="lineHorz" >
-                 <property name="text" >
-                  <string>28.0-78.0</string>
-                 </property>
-                 <property name="alignment" >
-                  <set>Qt::AlignHCenter</set>
-                 </property>
-                </widget>
-               </item>
-               <item>
-                <widget class="QLabel" name="pixmapLabel1_2_6" >
-                 <property name="minimumSize" >
-                  <size>
-                   <width>32</width>
-                   <height>32</height>
-                  </size>
-                 </property>
-                 <property name="maximumSize" >
-                  <size>
-                   <width>32</width>
-                   <height>32</height>
-                  </size>
-                 </property>
-                 <property name="pixmap" >
-                  <pixmap>image4</pixmap>
-                 </property>
-                 <property name="scaledContents" >
-                  <bool>true</bool>
-                 </property>
-                 <property name="wordWrap" >
-                  <bool>false</bool>
-                 </property>
-                </widget>
-               </item>
-              </layout>
-             </item>
-             <item row="1" column="0" >
-              <layout class="QHBoxLayout" >
-               <item>
-                <widget class="QLabel" name="textLabel1_4_2" >
-                 <property name="sizePolicy" >
-                  <sizepolicy vsizetype="Preferred" hsizetype="Expanding" >
-                   <horstretch>0</horstretch>
-                   <verstretch>0</verstretch>
-                  </sizepolicy>
-                 </property>
-                 <property name="text" >
-                  <string>Vertical Refresh:</string>
-                 </property>
-                 <property name="wordWrap" >
-                  <bool>false</bool>
-                 </property>
-                </widget>
-               </item>
-               <item>
-                <widget class="QLineEdit" name="lineVertRefresh" >
-                 <property name="text" >
-                  <string>50.0-76.0</string>
-                 </property>
-                 <property name="alignment" >
-                  <set>Qt::AlignHCenter</set>
-                 </property>
-                </widget>
-               </item>
-               <item>
-                <widget class="QLabel" name="pixmapLabel1_2_6_2" >
-                 <property name="minimumSize" >
-                  <size>
-                   <width>32</width>
-                   <height>32</height>
-                  </size>
-                 </property>
-                 <property name="maximumSize" >
-                  <size>
-                   <width>32</width>
-                   <height>32</height>
-                  </size>
-                 </property>
-                 <property name="pixmap" >
-                  <pixmap>image4</pixmap>
-                 </property>
-                 <property name="scaledContents" >
-                  <bool>true</bool>
-                 </property>
-                 <property name="wordWrap" >
-                  <bool>false</bool>
-                 </property>
-                </widget>
-               </item>
-              </layout>
-             </item>
-            </layout>
-           </widget>
-          </item>
-         </layout>
-        </widget>
-       </widget>
-      </item>
-      <item>
-       <spacer name="spacer12" >
-        <property name="orientation" >
-         <enum>Qt::Vertical</enum>
-        </property>
-        <property name="sizeType" >
-         <enum>QSizePolicy::Fixed</enum>
-        </property>
-        <property name="sizeHint" stdset="0" >
-         <size>
-          <width>320</width>
-          <height>16</height>
-         </size>
-        </property>
-       </spacer>
-      </item>
-     </layout>
-    </item>
-    <item row="0" column="2" >
-     <spacer name="spacer5_2_2_3_2_2" >
-      <property name="orientation" >
-       <enum>Qt::Horizontal</enum>
-      </property>
-      <property name="sizeType" >
-       <enum>QSizePolicy::Fixed</enum>
-      </property>
-      <property name="sizeHint" stdset="0" >
-       <size>
-        <width>6</width>
-        <height>360</height>
-       </size>
-      </property>
-     </spacer>
-    </item>
-    <item row="0" column="4" >
-     <spacer name="spacer5_2_2_3_2" >
-      <property name="orientation" >
-       <enum>Qt::Horizontal</enum>
-      </property>
-      <property name="sizeType" >
-       <enum>QSizePolicy::Fixed</enum>
-      </property>
-      <property name="sizeHint" stdset="0" >
-       <size>
-        <width>6</width>
-        <height>360</height>
-       </size>
-      </property>
-     </spacer>
-    </item>
    </layout>
   </widget>
  </widget>



More information about the Commits mailing list