change complete folders
This commit is contained in:
+25
@@ -0,0 +1,25 @@
|
||||
#!/usr/bin/python
|
||||
# -*- coding: utf-8 -*-
|
||||
#
|
||||
# Licensed under the GNU General Public License, version 3.
|
||||
# See the file http://www.gnu.org/licenses/gpl.txt
|
||||
|
||||
from pisi.actionsapi import pisitools
|
||||
from pisi.actionsapi import cmaketools
|
||||
|
||||
def setup():
|
||||
cmaketools.configure("-DCMAKE_BUILD_TYPE=Release \
|
||||
-DECM_MKSPECS_INSTALL_DIR=/usr/lib/qt5/mkspecs/modules \
|
||||
-DLIB_INSTALL_DIR=lib \
|
||||
-DSYSCONF_INSTALL_DIR=/etc \
|
||||
-DLIBEXEC_INSTALL_DIR=lib \
|
||||
-DKDE_INSTALL_USE_QT_SYS_PATHS=ON \
|
||||
-DBUILD_TESTING=OFF")
|
||||
|
||||
def build():
|
||||
cmaketools.make()
|
||||
|
||||
def install():
|
||||
cmaketools.install()
|
||||
|
||||
pisitools.dodoc("README.md", "COPYING", "COPYING.LIB", "TODO.xmlgui")
|
||||
@@ -0,0 +1,55 @@
|
||||
From: Stefan Becker <chemobejk@gmail.com>
|
||||
Date: Sat, 09 May 2015 14:17:25 +0000
|
||||
Subject: Add session management for KMainWindow
|
||||
X-Git-Url: http://quickgit.kde.org/?p=kxmlgui.git&a=commitdiff&h=fa86f6e4afd4a4f32d297f271d3daececc6c0ba4
|
||||
---
|
||||
Add session management for KMainWindow
|
||||
|
||||
- replace the KConfig object in KConfigGui with a new one using the
|
||||
session id and key from the QSessionManager object
|
||||
- make sure that the data is stored after the application has update it
|
||||
- if the KConfig object is represented by a local file then add a
|
||||
discard command to the session manager object
|
||||
|
||||
BUG: 346768
|
||||
REVIEW: 123706
|
||||
---
|
||||
|
||||
|
||||
--- a/src/kmainwindow.cpp
|
||||
+++ b/src/kmainwindow.cpp
|
||||
@@ -127,8 +127,10 @@
|
||||
{
|
||||
}
|
||||
|
||||
-bool KMWSessionManager::saveState(QSessionManager &)
|
||||
-{
|
||||
+bool KMWSessionManager::saveState(QSessionManager &sm)
|
||||
+{
|
||||
+ KConfigGui::setSessionConfig(sm.sessionId(), sm.sessionKey());
|
||||
+
|
||||
KConfig *config = KConfigGui::sessionConfig();
|
||||
if (KMainWindow::memberList().count()) {
|
||||
// According to Jochen Wilhelmy <digisnap@cs.tu-berlin.de>, this
|
||||
@@ -144,6 +146,19 @@
|
||||
|
||||
KConfigGroup group(config, "Number");
|
||||
group.writeEntry("NumberOfWindows", n);
|
||||
+
|
||||
+ // store new status to disk
|
||||
+ config->sync();
|
||||
+
|
||||
+ // generate discard command for new file
|
||||
+ QString localFilePath = QStandardPaths::writableLocation(QStandardPaths::GenericConfigLocation) + QLatin1Char('/') + config->name();
|
||||
+ if (QFile::exists(localFilePath)) {
|
||||
+ QStringList discard;
|
||||
+ discard << QLatin1String("rm");
|
||||
+ discard << localFilePath;
|
||||
+ sm.setDiscardCommand(discard);
|
||||
+ }
|
||||
+
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
|
||||
+75
@@ -0,0 +1,75 @@
|
||||
<?xml version="1.0" ?>
|
||||
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>kde5-kxmlgui</Name>
|
||||
<Homepage>http://www.kde.org</Homepage>
|
||||
<Packager>
|
||||
<Name>Pisi Linux Admins</Name>
|
||||
<Email>admins@pisilinux.org</Email>
|
||||
</Packager>
|
||||
<License>LGPLv2</License>
|
||||
<IsA>library</IsA>
|
||||
<Summary>Framework for managing menu and toolbar actions</Summary>
|
||||
<Description>Kxmlgui provides a framework for managing menu and toolbar actions in an abstract way.</Description>
|
||||
<Archive sha1sum="85079d3cc29b6843ed39ac491acc3ce25d01e100" type="tarxz">http://download.kde.org/stable/frameworks/5.10/kxmlgui-5.10.0.tar.xz</Archive>
|
||||
<BuildDependencies>
|
||||
<Dependency>qt5-base-devel</Dependency>
|
||||
<Dependency>python3</Dependency>
|
||||
<Dependency>extra-cmake-modules</Dependency>
|
||||
</BuildDependencies>
|
||||
<Patches>
|
||||
<Patch level="1">session-restore.patch</Patch>
|
||||
</Patches>
|
||||
</Source>
|
||||
|
||||
<Package>
|
||||
<Name>kde5-kxmlgui</Name>
|
||||
<RuntimeDependencies>
|
||||
<Dependency>qt5-base</Dependency>
|
||||
<Dependency>kde5-attica</Dependency>
|
||||
<Dependency>kde5-kcoreaddons</Dependency>
|
||||
<Dependency>kde5-kconfig</Dependency>
|
||||
<Dependency>kde5-kconfigwidgets</Dependency>
|
||||
<Dependency>kde5-kglobalaccel</Dependency>
|
||||
<Dependency>kde5-ki18n</Dependency>
|
||||
<Dependency>kde5-kiconthemes</Dependency>
|
||||
<Dependency>kde5-kitemviews</Dependency>
|
||||
<Dependency>kde5-ktextwidgets</Dependency>
|
||||
<Dependency>kde5-kwidgetsaddons</Dependency>
|
||||
<Dependency>kde5-kwindowsystem</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Files>
|
||||
<Path fileType="config">/etc</Path>
|
||||
<Path fileType="data">/usr/share</Path>
|
||||
<Path fileType="localedata">/usr/share/locale</Path>
|
||||
<Path fileType="library">/usr/lib/qt5</Path>
|
||||
<Path fileType="library">/usr/lib</Path>
|
||||
<Path fileType="doc">/usr/share/doc</Path>
|
||||
</Files>
|
||||
</Package>
|
||||
|
||||
<Package>
|
||||
<Name>kde5-kxmlgui-devel</Name>
|
||||
<Summary>Development files for kxmlgui</Summary>
|
||||
<RuntimeDependencies>
|
||||
<Dependency>qt5-base-devel</Dependency>
|
||||
<Dependency release="current">kde5-kxmlgui</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Files>
|
||||
<Path fileType="header">/usr/include</Path>
|
||||
<Path fileType="data">/usr/lib/cmake</Path>
|
||||
<Path fileType="config">/usr/lib/pkgconfig</Path>
|
||||
</Files>
|
||||
</Package>
|
||||
|
||||
<History>
|
||||
<Update release="1">
|
||||
<Date>2015-05-31</Date>
|
||||
<Version>5.10.0</Version>
|
||||
<Comment>First Release.</Comment>
|
||||
<Name>Stefan Gronewold(groni)</Name>
|
||||
<Email>groni@pisilinux.org</Email>
|
||||
</Update>
|
||||
</History>
|
||||
</PISI>
|
||||
Reference in New Issue
Block a user