Hello community,

here is the log from the commit of package kpat for openSUSE:Factory checked in 
at 2015-01-08 23:17:38
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/kpat (Old)
 and      /work/SRC/openSUSE:Factory/.kpat.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "kpat"

Changes:
--------
--- /work/SRC/openSUSE:Factory/kpat/kpat.changes        2014-11-19 
20:26:55.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.kpat.new/kpat.changes   2015-01-08 
23:18:11.000000000 +0100
@@ -1,0 +2,7 @@
+Wed Dec 17 20:38:55 UTC 2014 - [email protected]
+
+- Update to KDE Applications 14.12.0
+   * KDE Applications 14.12.0
+   * See https://www.kde.org/announcements/announce-applications-14.12.0.php
+
+-------------------------------------------------------------------

Old:
----
  kpat-4.14.3.tar.xz

New:
----
  kpat-14.12.0.tar.xz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ kpat.spec ++++++
--- /var/tmp/diff_new_pack.N9GhPZ/_old  2015-01-08 23:18:12.000000000 +0100
+++ /var/tmp/diff_new_pack.N9GhPZ/_new  2015-01-08 23:18:12.000000000 +0100
@@ -21,7 +21,7 @@
 License:        GPL-2.0+
 Group:          Amusements/Games/Board/Card
 Url:            http://www.kde.org
-Version:        4.14.3
+Version:        14.12.0
 Release:        0
 Source0:        kpat-%{version}.tar.xz
 BuildRequires:  libkdegames-devel

++++++ kpat-4.14.3.tar.xz -> kpat-14.12.0.tar.xz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kpat-4.14.3/doc/index.docbook 
new/kpat-14.12.0/doc/index.docbook
--- old/kpat-4.14.3/doc/index.docbook   2014-04-02 06:54:48.000000000 +0200
+++ new/kpat-14.12.0/doc/index.docbook  2014-12-09 07:16:50.000000000 +0100
@@ -723,6 +723,14 @@
                                </menuchoice></term>
                                <listitem><para><action>List options specific 
to the current game type.</action> This menu is available in only certain games 
(Klondike and Spider).</para></listitem>
                        </varlistentry>
+                       <varlistentry id="settings-menu-stack-options">
+                               <term><menuchoice>
+                                       <guimenu>Settings</guimenu>
+                                       <guisubmenu>Stack Options</guisubmenu>
+                                       <guimenuitem>Face Down (harder)/Face Up 
(easier)</guimenuitem>
+                               </menuchoice></term>
+                               <listitem><para><action>Allows you to choose if 
the card faces should be shown.</action> This menu is available in Spider 
only.</para></listitem>
+                       </varlistentry>
                        <varlistentry id="settings-menu-deck">
                                <term><menuchoice>
                                        
<shortcut><keycap>F10</keycap></shortcut>
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kpat-4.14.3/kpat.desktop 
new/kpat-14.12.0/kpat.desktop
--- old/kpat-4.14.3/kpat.desktop        2014-04-02 06:54:48.000000000 +0200
+++ new/kpat-14.12.0/kpat.desktop       2014-12-09 07:16:50.000000000 +0100
@@ -50,7 +50,7 @@
 Name[x-test]=xxKPatiencexx
 Name[zh_CN]=KPatience
 Name[zh_TW]=KPatience 單人紙牌遊戲
-Exec=kpat -caption %c
+Exec=kpat -caption %c %u
 Type=Application
 Icon=kpat
 X-DocPath=kpat/index.html
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kpat-4.14.3/kpat.kcfg new/kpat-14.12.0/kpat.kcfg
--- old/kpat-4.14.3/kpat.kcfg   2014-04-02 06:54:48.000000000 +0200
+++ new/kpat-14.12.0/kpat.kcfg  2014-12-09 07:16:50.000000000 +0100
@@ -26,5 +26,8 @@
         <entry name="SpiderSuitCount" key="SpiderSuits" type="Int">
             <default>2</default>
         </entry>
+        <entry name="SpiderStackFaceup" key="SpiderStackFaceup" type="Int">
+            <default>0</default>
+        </entry>
     </group>
 </kcfg>
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kpat-4.14.3/mimetypes/XmlMessages.sh 
new/kpat-14.12.0/mimetypes/XmlMessages.sh
--- old/kpat-4.14.3/mimetypes/XmlMessages.sh    1970-01-01 01:00:00.000000000 
+0100
+++ new/kpat-14.12.0/mimetypes/XmlMessages.sh   2014-12-09 07:16:50.000000000 
+0100
@@ -0,0 +1,23 @@
+function get_files
+{
+    echo kpatience.xml
+}
+
+function po_for_file
+{
+    case "$1" in
+       kpatience.xml)
+           echo kpat_mimetypes.po
+       ;;
+    esac
+}
+
+function tags_for_file
+{
+    case "$1" in
+       kpatience.xml)
+           echo comment
+       ;;
+    esac
+}
+
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kpat-4.14.3/mimetypes/kpatience.xml 
new/kpat-14.12.0/mimetypes/kpatience.xml
--- old/kpat-4.14.3/mimetypes/kpatience.xml     2014-04-02 06:54:48.000000000 
+0200
+++ new/kpat-14.12.0/mimetypes/kpatience.xml    2014-12-09 07:16:50.000000000 
+0100
@@ -2,6 +2,26 @@
 <mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info";>
   <mime-type type="application/vnd.kde.kpatience.savedstate">
     <comment>KPatience legacy save file</comment>
+    <comment xml:lang="ca">Fitxer antic de desat del KPatience</comment>
+    <comment xml:lang="cs">Uložený soubor staré verze KPatience</comment>
+    <comment xml:lang="da">KPatience gammel gemmefil</comment>
+    <comment xml:lang="de">Veraltete KPatience-Speicherdatei</comment>
+    <comment xml:lang="en_GB">KPatience legacy save file</comment>
+    <comment xml:lang="es">Restos del archivo de salvaguardado de 
KPatience</comment>
+    <comment xml:lang="fi">Vanha KPatience-tallennustiedosto</comment>
+    <comment xml:lang="it">File di salvataggio obsoleto per KPatience</comment>
+    <comment xml:lang="nl">KPatience ouderwets opslagbestand</comment>
+    <comment xml:lang="pl">Przestrzały plik zapisu KPatience</comment>
+    <comment xml:lang="pt">Ficheiro de gravação antigo do KPatience</comment>
+    <comment xml:lang="pt_BR">Arquivo antigo do KPatience</comment>
+    <comment xml:lang="sk">Starý súbor uloženia KPatience</comment>
+    <comment xml:lang="sl">Zastarela shranjena igra KPatience</comment>
+    <comment xml:lang="sr">К‑пасијансов застарели фајл позиције</comment>
+    <comment xml:lang="sr@ijekavian">К‑пасијансов застарели фајл 
позиције</comment>
+    <comment xml:lang="sr@ijekavianlatin">K‑pasijansov zastareli fajl 
pozicije</comment>
+    <comment xml:lang="sr@latin">K‑pasijansov zastareli fajl pozicije</comment>
+    <comment xml:lang="uk">файл збереженої гри KPatience у застарілому 
форматі</comment>
+    <comment xml:lang="zh_TW">KPatience 傳統儲存檔案</comment>
     <sub-class-of type="application/xml"/>
     <magic priority="80">
       <match type="string" value="&lt;!DOCTYPE kpat" offset="0:50"/>
@@ -10,6 +30,26 @@
   </mime-type>
   <mime-type type="application/vnd.kde.kpatience.savedgame">
     <comment>KPatience save file</comment>
+    <comment xml:lang="ca">Fitxer de desat del KPatience</comment>
+    <comment xml:lang="cs">Uložený soubor KPatience</comment>
+    <comment xml:lang="da">KPatience gemmefil</comment>
+    <comment xml:lang="de">KPatience-Speicherdatei</comment>
+    <comment xml:lang="en_GB">KPatience save file</comment>
+    <comment xml:lang="es">Archvo de salvaguardado de KPatience</comment>
+    <comment xml:lang="fi">KPatience-tallennustiedosto</comment>
+    <comment xml:lang="it">File di salvataggio per KPatience</comment>
+    <comment xml:lang="nl">KPatience opslagbestand</comment>
+    <comment xml:lang="pl">Plik zapisu KPatience</comment>
+    <comment xml:lang="pt">Ficheiro de gravação do KPatience</comment>
+    <comment xml:lang="pt_BR">Arquivo do KPatience</comment>
+    <comment xml:lang="sk">Súbor uloženia KPatience</comment>
+    <comment xml:lang="sl">Shranjena igra KPatience</comment>
+    <comment xml:lang="sr">К‑пасијансов фајл позиције</comment>
+    <comment xml:lang="sr@ijekavian">К‑пасијансов фајл позиције</comment>
+    <comment xml:lang="sr@ijekavianlatin">K‑pasijansov fajl pozicije</comment>
+    <comment xml:lang="sr@latin">K‑pasijansov fajl pozicije</comment>
+    <comment xml:lang="uk">файл збереженої гри KPatience</comment>
+    <comment xml:lang="zh_TW">KPatience 儲存檔案</comment>
     <sub-class-of type="application/xml"/>
     <glob pattern="*.kpat" weight="75"/>
   </mime-type>
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kpat-4.14.3/spider.cpp new/kpat-14.12.0/spider.cpp
--- old/kpat-4.14.3/spider.cpp  2014-04-02 06:54:48.000000000 +0200
+++ new/kpat-14.12.0/spider.cpp 2014-12-09 07:16:50.000000000 +0100
@@ -81,6 +81,8 @@
 
     m_suits = Settings::spiderSuitCount();
 
+    m_stackFaceup = Settings::spiderStackFaceup();
+
     createDeck();
 
     // Dealing the cards out into 5 piles so the user can see how many
@@ -143,12 +145,19 @@
     else
         options->setCurrentItem( 2 );
     connect( options, SIGNAL(triggered(int)), SLOT(gameTypeChanged()) );
+
+    m_stackFaceupOption = new KSelectAction(i18n("S&tack Options"), this );
+    m_stackFaceupOption->addAction( i18n("Face &Down (harder)") );
+    m_stackFaceupOption->addAction( i18n("Face &Up (easier)") );
+    m_stackFaceupOption->setCurrentItem( m_stackFaceup );
+
+    connect( m_stackFaceupOption, SIGNAL(triggered(int)), 
SLOT(gameTypeChanged()) );
 }
 
 
 QList<QAction*> Spider::configActions() const
 {
-    return QList<QAction*>() << options;
+    return QList<QAction*>() << options << m_stackFaceupOption;
 }
 
 
@@ -164,6 +173,12 @@
             setSuits( 2 );
         else
             setSuits( 4 );
+
+        if ( m_stackFaceup != m_stackFaceupOption->currentItem() ) {
+            m_stackFaceup = m_stackFaceupOption->currentItem();
+            Settings::setSpiderStackFaceup( m_stackFaceup );
+        }
+
         startNew( gameNumber() );
     }
     else
@@ -176,6 +191,8 @@
             options->setCurrentItem( 1 );
         else
             options->setCurrentItem( 2 );
+
+        m_stackFaceupOption->setCurrentItem( m_stackFaceup );
     }
 }
 
@@ -309,7 +326,7 @@
     // deal face down cards (5 to first 4 piles, 4 to last 6)
     for ( int i = 0; i < 44; ++i )
     {
-        addCardForDeal( stack[column], cardList.takeLast(), false, randomPos() 
);
+        addCardForDeal( stack[column], cardList.takeLast(), m_stackFaceup == 
1, randomPos() );
         column = (column + 1) % 10;
     }
     // deal face up cards, one to each pile
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/kpat-4.14.3/spider.h new/kpat-14.12.0/spider.h
--- old/kpat-4.14.3/spider.h    2014-04-02 06:54:48.000000000 +0200
+++ new/kpat-14.12.0/spider.h   2014-12-09 07:16:50.000000000 +0100
@@ -87,6 +87,9 @@
 
     KSelectAction *options;
 
+    KSelectAction *m_stackFaceupOption;
+    int m_stackFaceup;
+
     friend class SpiderSolver;
 };
 

-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to