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

List:       kde-commits
Subject:    kdenetwork/kopete/kopete/config/appearance
From:       Richard Smith <kde () metafoo ! co ! uk>
Date:       2004-06-13 0:04:05
Message-ID: 20040613000405.8F9D1126CD () office ! kde ! org
[Download RAW message or body]

CVS commit by lilachaze: 

Added configuration option to disable contact list animation/fading. Does
not affect anything yet though.


  M +15 -0     appearanceconfig.cpp   1.33
  M +39 -4     appearanceconfig_contactlist.ui   1.4


--- kdenetwork/kopete/kopete/config/appearance/appearanceconfig.cpp  #1.32:1.33
@@ -15,4 +15,8 @@
 */
 
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
 #include "appearanceconfig.h"
 #include "appearanceconfig_emoticons.h"
@@ -154,4 +158,11 @@ AppearanceConfig::AppearanceConfig(QWidg
         connect(mPrfsContactList->mDisplayMode, SIGNAL(clicked(int)),
                 this, SLOT(emitChanged()));
+        connect(mPrfsContactList->mAnimateChanges, SIGNAL(toggled(bool)),
+                this, SLOT(emitChanged()));
+        connect(mPrfsContactList->mFadeVisibility, SIGNAL(toggled(bool)),
+                this, SLOT(emitChanged()));
+
+        // don't enable the checkbox if XRender is not available
+        mPrfsContactList->mFadeVisibility->setEnabled( HAVE_XRENDER );
 
         mAppearanceTabCtl->addTab(mPrfsContactList, i18n("Contact List"));
@@ -229,4 +240,6 @@ void AppearanceConfig::save()
         p->setContactListIndentContacts(mPrfsContactList->mIndentContacts->isChecked());
                
         p->setContactListDisplayMode(KopetePrefs::ContactDisplayMode(mPrfsContactList->mDisplayMode->selectedId()));
 +        p->setContactListAnimation(mPrfsContactList->mAnimateChanges->isChecked());
+        p->setContactListFading(mPrfsContactList->mFadeVisibility->isChecked());
 
         // "Colors & Fonts" TAB \
===================================================== @@ -290,4 +303,6 @@ void \
                AppearanceConfig::load()
         mPrfsContactList->mIndentContacts->setChecked( \
                p->contactListIndentContacts() );
         mPrfsContactList->mDisplayMode->setButton( p->contactListDisplayMode() );
+        mPrfsContactList->mAnimateChanges->setChecked( p->contactListAnimation() );
+        mPrfsContactList->mFadeVisibility->setChecked( p->contactListFading() && \
HAVE_XRENDER );  
         // "Colors & Fonts" TAB \
=====================================================

--- kdenetwork/kopete/kopete/config/appearance/appearanceconfig_contactlist.ui  \
#1.3:1.4 @@ -9,6 +9,6 @@
             <x>0</x>
             <y>0</y>
-            <width>254</width>
-            <height>350</height>
+            <width>480</width>
+            <height>475</height>
         </rect>
     </property>
@@ -143,4 +143,39 @@
             </vbox>
         </widget>
+        <widget class="QGroupBox">
+            <property name="name">
+                <cstring>groupBox2</cstring>
+            </property>
+            <property name="title">
+                <string>Contact List &amp;Animations</string>
+            </property>
+            <vbox>
+                <property name="name">
+                    <cstring>unnamed</cstring>
+                </property>
+                <widget class="QCheckBox">
+                    <property name="name">
+                        <cstring>mAnimateChanges</cstring>
+                    </property>
+                    <property name="text">
+                        <string>Animate c&amp;hanges to contact list items</string>
+                    </property>
+                    <property name="accel">
+                        <string>Alt+H</string>
+                    </property>
+                </widget>
+                <widget class="QCheckBox">
+                    <property name="name">
+                        <cstring>mFadeVisibility</cstring>
+                    </property>
+                    <property name="text">
+                        <string>&amp;Fade in / out contacts as they appear / \
disappear</string> +                    </property>
+                    <property name="accel">
+                        <string>Alt+F</string>
+                    </property>
+                </widget>
+            </vbox>
+        </widget>
         <widget class="QLayoutWidget">
             <property name="name">
@@ -193,6 +228,6 @@
             <property name="sizeHint">
                 <size>
-                    <width>16</width>
-                    <height>16</height>
+                    <width>20</width>
+                    <height>80</height>
                 </size>
             </property>


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

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