Skip to content

Commit afd13da

Browse files
committed
Mustr 1.0.0 with GUI and icon and stuff
1 parent 0ae8f85 commit afd13da

File tree

17 files changed

+3358
-47
lines changed

17 files changed

+3358
-47
lines changed

COPYING

Lines changed: 674 additions & 0 deletions
Large diffs are not rendered by default.

README

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11

2-
GConf Key used for background:
3-
/desktop/meego/background/portrait/picture_filename
2+
Mustr for MeeGo 1.2 Harmattan
3+
-----------------------------
44

5-
Also useful - the "history" (list of strings):
6-
/desktop/meego/background/portrait/history
5+
This application can be used to download patterns from COLOURlovers.com and
6+
set them as lock screen wallpapers. This is basically a simple version of
7+
Lucas Rocha's "Pattrn" for Android, although I have never used Pattrn myself.
8+
9+
Source: http://github.com/harmattan/mustr
10+
Author: Thomas Perl <thp.io/about>
11+
License: GPLv3 or later
712

debian/changelog

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
mustr (1.0.0) harmattan; urgency=low
2+
3+
* Initial Release.
4+
5+
-- Thomas Perl <[email protected]> Tue, 29 May 2012 16:21:09 +0200

debian/compat

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
7

debian/control

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
Source: mustr
2+
Section: user/graphics
3+
Priority: extra
4+
Maintainer: Thomas Perl <[email protected]>
5+
Build-Depends: debhelper (>= 8.0.0)
6+
Standards-Version: 3.9.2
7+
Homepage: http://github.com/harmattan/mustr
8+
9+
Package: mustr
10+
Architecture: any
11+
Depends: ${shlibs:Depends}, ${misc:Depends}
12+
Description: Download wallpaper patterns from COLOURlovers
13+
Browse wallpaper patterns from COLOURlovers.com and
14+
download them to your device to use as lock screen image.

debian/copyright

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
Format: http://dep.debian.net/deps/dep5
2+
Upstream-Name: mustr
3+
Source: <http://github.com/harmattan/mustr>
4+
5+
Files: *
6+
Copyright: 2012 Thomas Perl <[email protected]>
7+
License: GPL-3.0+
8+
9+
Files: debian/*
10+
Copyright: 2012 Thomas Perl <[email protected]>
11+
License: GPL-3.0+
12+
13+
License: GPL-3.0+
14+
This program is free software: you can redistribute it and/or modify
15+
it under the terms of the GNU General Public License as published by
16+
the Free Software Foundation, either version 3 of the License, or
17+
(at your option) any later version.
18+
.
19+
This package is distributed in the hope that it will be useful,
20+
but WITHOUT ANY WARRANTY; without even the implied warranty of
21+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22+
GNU General Public License for more details.
23+
.
24+
You should have received a copy of the GNU General Public License
25+
along with this program. If not, see <http://www.gnu.org/licenses/>.
26+
.
27+
On Debian systems, the complete text of the GNU General
28+
Public License version 3 can be found in "/usr/share/common-licenses/GPL-3".
29+
30+
# Please also look if there are files or directories which have a
31+
# different copyright/license attached and list them here.

debian/rules

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/usr/bin/make -f
2+
# -*- makefile -*-
3+
# Sample debian/rules that uses debhelper.
4+
# This file was originally written by Joey Hess and Craig Small.
5+
# As a special exception, when this file is copied by dh-make into a
6+
# dh-make output file, you may use that output file without restriction.
7+
# This special exception was added by Craig Small in version 0.37 of dh-make.
8+
9+
# Uncomment this to turn on verbose mode.
10+
#export DH_VERBOSE=1
11+
12+
%:
13+
dh $@

debian/source/format

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.0 (native)

mustr.cpp

Lines changed: 25 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,37 @@
11

2+
/**
3+
* Mustr: Pattern downloader from COLOURlovers.com for MeeGo Harmattan
4+
* Copyright (C) 2012 Thomas Perl
5+
*
6+
* This program is free software: you can redistribute it and/or modify
7+
* it under the terms of the GNU General Public License as published by
8+
* the Free Software Foundation, either version 3 of the License, or
9+
* (at your option) any later version.
10+
11+
* This program is distributed in the hope that it will be useful,
12+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14+
* GNU General Public License for more details.
15+
16+
* You should have received a copy of the GNU General Public License
17+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
18+
**/
19+
220
#include <QtGui>
21+
#include <QtDeclarative>
322

423
#include "wallpaper.h"
524

6-
#define URL \
7-
"http://colourlovers.com.s3.amazonaws.com/images/patterns/582/582552.png"
8-
925
int main(int argc, char *argv[])
1026
{
1127
QApplication app(argc, argv);
1228

13-
Wallpaper wallpaper;
14-
wallpaper.setPattern(URL);
15-
QObject::connect(&wallpaper, SIGNAL(imageSaved()),
16-
&app, SLOT(quit()));
29+
QDeclarativeView view;
30+
31+
Wallpaper *wallpaper = new Wallpaper(&view);
32+
view.rootContext()->setContextProperty("wallpaper", wallpaper);
33+
view.setSource(QUrl("qrc:/mustr.qml"));
34+
view.showFullScreen();
1735

1836
return app.exec();
1937
}

mustr.desktop

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
[Desktop Entry]
2+
Name=Mustr
3+
Exec=invoker --single-instance --type=e /opt/mustr/bin/mustr
4+
Icon=/opt/mustr/mustr.png
5+
Terminal=false
6+
Type=Application
7+
Categories=Graphics;
8+

0 commit comments

Comments
 (0)