[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdebase/kcontrol/xinerama
From:       Xavier IZARD <xizard () free ! fr>
Date:       2004-05-10 23:34:40
Message-ID: 20040510233440.86B4C2298 () office ! kde ! org
[Download RAW message or body]

CVS commit by xizard: 

GUI: added option xinerama fullscreen support, this allow:
 - fullscreen on one of the screens when the option is checked
 - fullscreen on the whole desktop when the option is unchecked


  M +5 -0      kcmxinerama.cpp   1.15
  M +30 -3     xineramawidget.ui   1.8


--- kdebase/kcontrol/xinerama/kcmxinerama.cpp  #1.14:1.15
@@ -116,4 +116,5 @@ void KCMXinerama::configChanged() {
 #define KWIN_XINERAMA_PLACEMENT    "XineramaPlacementEnabled"
 #define KWIN_XINERAMA_MAXIMIZE     "XineramaMaximizeEnabled"
+#define KWIN_XINERAMA_FULLSCREEN   "XineramaFullscreenEnabled"
 
 void KCMXinerama::load() {
@@ -125,4 +126,5 @@ void KCMXinerama::load() {
                 xw->_enablePlacement->setChecked(config->readBoolEntry(KWIN_XINERAMA_PLACEMENT, \
                true));
                 xw->_enableMaximize->setChecked(config->readBoolEntry(KWIN_XINERAMA_MAXIMIZE, \
true)); +                \
xw->_enableFullscreen->setChecked(config->readBoolEntry(KWIN_XINERAMA_FULLSCREEN, \
                true));
                 item = config->readNumEntry("Unmanaged", \
QApplication::desktop()->primaryScreen());  if ((item < 0 || item >= _displays) && \
(item != -3)) @@ -154,4 +156,6 @@ void KCMXinerama::save() {
                 config->writeEntry(KWIN_XINERAMA_MAXIMIZE,
                                         xw->_enableMaximize->isChecked());
+                config->writeEntry(KWIN_XINERAMA_FULLSCREEN,
+                                        xw->_enableFullscreen->isChecked());
                 int item = xw->_unmanagedDisplay->currentItem();
                 config->writeEntry("Unmanaged", item == _displays ? -3 : item);
@@ -178,4 +182,5 @@ void KCMXinerama::defaults() {
                 xw->_enablePlacement->setChecked(true);
                 xw->_enableMaximize->setChecked(true);
+                xw->_enableFullscreen->setChecked(true);
                 xw->_unmanagedDisplay->setCurrentItem(
                                 QApplication::desktop()->primaryScreen());

--- kdebase/kcontrol/xinerama/xineramawidget.ui  #1.7:1.8
@@ -1,3 +1,3 @@
-<!DOCTYPE UI><UI version="3.1" stdsetdef="1">
+<!DOCTYPE UI><UI version="3.2" stdsetdef="1">
 <class>XineramaWidget</class>
 <widget class="QWidget">
@@ -10,7 +10,10 @@
             <y>0</y>
             <width>658</width>
-            <height>395</height>
+            <height>389</height>
         </rect>
     </property>
+    <property name="caption">
+        <string>XineramaWidget</string>
+    </property>
     <grid>
         <property name="name">
@@ -123,4 +126,15 @@
                     </property>
                 </widget>
+                <widget class="QCheckBox">
+                    <property name="name">
+                        <cstring>_enableFullscreen</cstring>
+                    </property>
+                    <property name="enabled">
+                        <bool>false</bool>
+                    </property>
+                    <property name="text">
+                        <string>Enable multiple monitor window fullscreen \
support</string> +                    </property>
+                </widget>
             </vbox>
         </widget>
@@ -285,7 +299,20 @@
         <slot>emitConfigChanged()</slot>
     </connection>
+    <connection>
+        <sender>_enableFullscreen</sender>
+        <signal>clicked()</signal>
+        <receiver>XineramaWidget</receiver>
+        <slot>emitConfigChanged()</slot>
+    </connection>
+    <connection>
+        <sender>_enableXinerama</sender>
+        <signal>toggled(bool)</signal>
+        <receiver>_enableFullscreen</receiver>
+        <slot>setEnabled(bool)</slot>
+    </connection>
 </connections>
 <includes>
-    <include location="local" impldecl="in \
implementation">xineramawidget.ui.h</include><include location="local" impldecl="in \
implementation">kdialog.h</include> +    <include location="local" impldecl="in \
implementation">kdialog.h</include> +    <include location="local" impldecl="in \
implementation">xineramawidget.ui.h</include>  </includes>
 <signals>


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic