Skip to content

Commit 49c26a5

Browse files
committed
use a struct to store new version data
prepare 1.8
1 parent bd9378d commit 49c26a5

14 files changed

+177
-179
lines changed

README.md

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ UMWP Autochanger is a little tool for [UltraMon](http://www.realtimesoft.com/ult
55
* randomly and periodically change the wallpaper of all your monitors,
66
* manage sets of wallpapers, allowing you to quickly change which images are used.
77

8-
Version : 1.7
9-
Release date : 01/08/2014
8+
Version : 1.8
9+
Release date : 10/11/2014
1010
Author : Damien "Mistic" Sorel
1111
Website : http://www.strangeplanet.fr/work/umwp-autochanger
1212
License : GNU General Public License Version 3
@@ -32,19 +32,18 @@ The application is currently available in English and French. [A translation pag
3232

3333

3434
## Configuration
35-
* Double-click on a set to edit it. You can change its name, its style (one image for each monitor or one image for the whole desktop) and the transformation style for images (center, tile or stretch).
35+
* Double-click on a set to edit it. You can change its name, its style (one image for each monitor or one image for the whole desktop), the transformation style for images (center, tile or stretch) and the hotkey.
3636

3737
* On the "Options" dialog you can choose the delay, change the behavior of the tool and configure the hotkeys.
3838
Hotkeys are a way to interact with the application while it is hidden in the system bar. Hotkeys can also be defined for each individual sets.
3939

40+
* On the "Manage monitors" dialog you can disable the wallpaper on specific monitor, as well as choosing their background color.
41+
4042

4143
## Troubleshouting
4244
Q: When I launch UMWP Autochanger, the window doesn't appear.
4345
A: When you have already registered sets, the window automatically minimize to the system bar, double-click on the icon (or right-click => "Show") to open it. This behavior can be changed on the "Options" menu.
4446

45-
Q: Can I edit a set ?
46-
A: Yes. Double-click on it's name, you can set the name, the type and the style of wallpaper and the hotkey of the set.
47-
4847
Q: How hotkeys work ?
4948
A: There are two kind of hotkeys: the ones defined in the "Options" dialog allow to show/hide the application window, refresh the wallpaper and start/pause the timer.
5049
The ones defined in the set edit dialog allow to change the current set. You can assign the same hotkey to multiple sets.
@@ -60,9 +59,9 @@ You will need Qt 4.8.4 and libqxt 0.6.2
6059

6160

6261
## Changelog
63-
* 1.8
64-
* new: disable wallpaper support on specific monitors
65-
* new: choose background of each monitor
62+
* [1.8 (10/11/2014)](http://www.strangeplanet.fr/work/umwp-autochanger/download.php?ver=1.7)
63+
* new: can disable wallpaper support on specific monitors
64+
* new: choose background color of each monitor
6665
* new: "Delete" button on "Active files" dialog
6766
* new: auto-update process
6867
* fixed: crash after changing delay

installer/data/readme.txt

Lines changed: 119 additions & 128 deletions
Original file line numberDiff line numberDiff line change
@@ -1,131 +1,122 @@
11
UltraMon Wallpaper Autochanger
2+
================
23

3-
Version : 1.7
4-
Release date : 01/08/2014
5-
Author : Damien "Mistic" Sorel
6-
Website : http://www.strangeplanet.fr
7-
License : GNU General Public License Version 3
8-
9-
10-
Description
11-
===========
12-
UMWP Autochanger is a little tool for UltraMon users. I has two main features :
13-
- randomly and periodically change the wallpaper of all your monitors,
14-
- manage sets of wallpapers, allowing you to quickly change which images are used.
15-
16-
17-
Requirement
18-
===========
19-
UltraMon 3.2.1 or higher
20-
Windows 7/8 32/64 bits
21-
22-
23-
Installation
24-
============
25-
1. Install and configure UltraMon on your computer.
26-
27-
2. Launch "UMWP Autochanger.exe".
28-
29-
2.1. Depending on your configuration, you might be asked to locate "UltraMonDesktop.exe".
30-
31-
3. Click on the plus button to add a new set. A set is basically a directory
32-
containing JPEG/PNG/BMP files. UMWP Autochanger will browse this directory
33-
recursively up to 3 levels searching for image files.
34-
35-
4. Once you have added your sets, the wallpaper will randomly change
36-
every 60 seconds (default delay).
37-
38-
39-
Configuration
40-
=============
41-
* Double-click on a set to edit it. You can change its name, its style
42-
(one image for each monitor or one image for the whole desktop) and the
43-
transformation style for images (center, tile or stretch).
44-
45-
* On the "Options" dialog you can choose the delay, change the behavior of
46-
the tool and configure the hotkeys.
47-
Hotkeys are a way to interact with the application while it is hidden
48-
in the system bar. Hotkeys can also be defined for each individual sets.
49-
50-
51-
Troubleshouting
52-
===============
53-
Q: When I launch UMWP Autochanger, the window doesn't appear.
54-
A: When you have already registered sets, the window automatically minimize
55-
to the system bar, double-click on the icon (or right-click => "Show")
56-
to open it. This behavior can be changed on the "Options" menu.
57-
58-
Q: Can I edit a set ?
59-
A: Yes. Double-click on it's name, you can set the name, the type and the style of wallpaper.
60-
61-
Q: How hotkeys work ?
62-
A: There are two kind of hotkeys: the ones defined in the "Options" dialog allow
63-
to show/hide the application window, refresh the wallpaper and start/pause the timer.
64-
The ones defined in the set edit dialog allow to change the current set.
65-
You can assign the same hotkey to multiple sets.
66-
In both cases, click on the input box and press the desired keys combinination.
67-
You must at least use one modifier (Ctrl, Shift, Alt, Win) and some keys are
68-
not available (Esc, Tab, Backspace, ...).
69-
70-
Q: Can I reorder sets ?
71-
A: Yes. Simply drag & drop them.
72-
73-
74-
Changelog
75-
=========
76-
77-
--- 1.7 (01/08/2014)
78-
- new: add "Fill" mode
79-
- new: create default.wallpaper file if not present
80-
- change: don't delete missing sets but highlight them
81-
82-
--- 1.6 (08/03/2014)
83-
- change: Alt-F4 effectively closes application without prompt
84-
- fixed: application closes when closing dialog window while main window is hidden
85-
- fixed: delay input with wrong display format
86-
- fixed: set parameters randomly resetted
87-
88-
--- 1.5 (12/02/2014)
89-
- new: export and import XML configuration file
90-
- new: check UltraMon version
91-
- new: add logger for debuging purposes
92-
- new: "Active files" dialog with cliquable thumbnails for direct access to files
93-
- fixed: better detection of UltraMon executable
94-
- fixed: no more freeze when updating wallpaper
95-
96-
--- 1.4 (06/01/2014)
97-
- new: more flexibility for hot keys + new hotkeys for refresh, start/pause, show/hide
98-
- new: permanently save last used directory
99-
100-
--- 1.3 (03/12/2013)
101-
- new: can choose the type of wallpaper ('monitor' or 'desktop') and the style
102-
('center', 'tile', 'stretch', 'stretch proportional')
103-
- new: icons for main buttons (add, [de]activate, delete)
104-
- change: dedicated configuration dialog
105-
- change: use a cache to speed up startup
106-
- change: random images are taken from the same (random too) set if more than one is active
107-
- fixed: refresh issue of the list when deleting sets
4+
UMWP Autochanger is a little tool for [UltraMon](http://www.realtimesoft.com/ultramon/) users. I has two main features :
5+
* randomly and periodically change the wallpaper of all your monitors,
6+
* manage sets of wallpapers, allowing you to quickly change which images are used.
7+
8+
Version : 1.8
9+
Release date : 10/11/2014
10+
Author : Damien "Mistic" Sorel
11+
Website : http://www.strangeplanet.fr/work/umwp-autochanger
12+
License : GNU General Public License Version 3
13+
14+
15+
## Requirement
16+
* UltraMon 3.2.1 or higher
17+
* Windows 7/8 32/64 bits
18+
19+
## Translation
20+
The application is currently available in English and French. [A translation page](https://www.transifex.com/projects/p/umwp-autochanger) has been created on Transifex, feel free to register and contribute.
21+
22+
23+
## Installation
24+
1. Install and configure UltraMon on your computer.
25+
26+
2. Launch "UMWP Autochanger.exe".
27+
* Depending on your configuration, you might be asked to locate "UltraMonDesktop.exe".
28+
29+
3. Click on the plus button to add a new set. A set is basically a directory containing JPEG/PNG/BMP files. UMWP Autochanger will browse this directory recursively up to 3 levels searching for image files.
30+
31+
4. Once you have added your sets, the wallpaper will randomly change every 60 seconds (default delay).
32+
33+
34+
## Configuration
35+
* Double-click on a set to edit it. You can change its name, its style (one image for each monitor or one image for the whole desktop), the transformation style for images (center, tile or stretch) and the hotkey.
36+
37+
* On the "Options" dialog you can choose the delay, change the behavior of the tool and configure the hotkeys.
38+
Hotkeys are a way to interact with the application while it is hidden in the system bar. Hotkeys can also be defined for each individual sets.
39+
40+
* On the "Manage monitors" dialog you can disable the wallpaper on specific monitor, as well as choosing their background color.
41+
42+
43+
## Troubleshouting
44+
Q: When I launch UMWP Autochanger, the window doesn't appear.
45+
A: When you have already registered sets, the window automatically minimize to the system bar, double-click on the icon (or right-click => "Show") to open it. This behavior can be changed on the "Options" menu.
46+
47+
Q: How hotkeys work ?
48+
A: There are two kind of hotkeys: the ones defined in the "Options" dialog allow to show/hide the application window, refresh the wallpaper and start/pause the timer.
49+
The ones defined in the set edit dialog allow to change the current set. You can assign the same hotkey to multiple sets.
50+
In both cases, click on the input box and press the desired keys combinination. You must at least use one modifier (Ctrl, Shift, Alt, Win) and some keys are not available (Esc, Tab, Backspace, ...).
51+
52+
Q: Can I reorder sets ?
53+
A: Yes. Simply drag & drop them.
54+
55+
56+
## Compiling
57+
You can compile the application yourself with Qt Designer.
58+
You will need Qt 4.8.4 and libqxt 0.6.2
59+
60+
61+
## Changelog
62+
* [1.8 (10/11/2014)](http://www.strangeplanet.fr/work/umwp-autochanger/download.php?ver=1.7)
63+
* new: can disable wallpaper support on specific monitors
64+
* new: choose background color of each monitor
65+
* new: "Delete" button on "Active files" dialog
66+
* new: auto-update process
67+
* fixed: crash after changing delay
10868

109-
--- 1.2 (09/09/2013)
110-
- new: system-wide hotkeys for quick change
111-
- new: reorder sets with drag'n'drop
112-
- new: integrated help
113-
114-
--- 1.1 (13/05/2013)
115-
- fixed: use better shuffle
116-
- fixed: remember last used directory
117-
- fixed: accept files with .jpeg extension
118-
- new: add version checker
119-
- new: add quick switch menu in tray con
120-
- code optimizations
121-
122-
--- 1.0 (02/03/2013)
123-
- fixed: multi delete doesn't work correclty
124-
125-
--- 1.0 alpha2 (28/02/2013)
126-
- fixed: autorun shortcut not starting in the good working directory
127-
- fixed: delay spinbox no initialized correctly
128-
- new: multiple selection
129-
130-
--- 1.0 alpha1 (27/02/2013)
131-
- first version
69+
* [1.7 (01/08/2014)](http://www.strangeplanet.fr/work/umwp-autochanger/download.php?ver=1.7)
70+
* new: add "Fill" mode
71+
* new: create default.wallpaper file if not present
72+
* change: don't delete missing sets but highlight them
73+
74+
* [1.6 (08/03/2014)](http://www.strangeplanet.fr/work/umwp-autochanger/download.php?ver=1.6)
75+
* change: Alt-F4 effectively closes application without prompt
76+
* fixed: application closes when closing dialog window while main window is hidden
77+
* fixed: delay input with wrong display format
78+
* fixed: set parameters randomly resetted
79+
80+
* [1.5 (12/02/2014)](http://www.strangeplanet.fr/work/umwp-autochanger/download.php?ver=1.5)
81+
* new: export and import XML configuration file
82+
* new: check UltraMon version
83+
* new: add logger for debuging purposes
84+
* new: "Active files" dialog with cliquable thumbnails for direct access to files
85+
* fixed: better detection of UltraMon executable
86+
* fixed: no more freeze when updating wallpaper
87+
88+
* [1.4 (06/01/2014)](http://www.strangeplanet.fr/work/umwp-autochanger/download.php?ver=1.4)
89+
* new: more flexibility for hot keys + new hotkeys for refresh, start/pause, show/hide
90+
* new: permanently save last used directory
91+
92+
* [1.3 (03/12/2013)](http://www.strangeplanet.fr/work/umwp-autochanger/download.php?ver=1.3)
93+
* new: can choose the type of wallpaper ('monitor' or 'desktop') and the style ('center', 'tile', 'stretch', 'stretch proportional')
94+
* new: icons for main buttons (add, [de]activate, delete)
95+
* change: dedicated configuration dialog
96+
* change: use a cache to speed up startup
97+
* change: random images are taken from the same (random too) set if more than one is active
98+
* fixed: refresh issue of the list when deleting sets
99+
100+
* [1.2 (09/09/2013)](http://www.strangeplanet.fr/work/umwp-autochanger/download.php?ver=1.2)
101+
* new: system-wide hotkeys for quick change
102+
* new: reorder sets with drag'n'drop
103+
* new: integrated help
104+
105+
* [1.1 (13/05/2013)](http://www.strangeplanet.fr/work/umwp-autochanger/download.php?ver=1.1)
106+
* fixed: use better shuffle
107+
* fixed: remember last used directory
108+
* fixed: accept files with .jpeg extension
109+
* new: add version checker
110+
* new: add quick switch menu in tray con
111+
* code optimizations
112+
113+
* [1.0 (02/03/2013)](http://www.strangeplanet.fr/work/umwp-autochanger/download.php?ver=1.0)
114+
* fixed: multi delete doesn't work correclty
115+
116+
* [1.0 alpha2 (28/02/2013)](http://www.strangeplanet.fr/work/umwp-autochanger/download.php?ver=1.0a2)
117+
* fixed: autorun shortcut not starting in the good working directory
118+
* fixed: delay spinbox no initialized correctly
119+
* new: multiple selection
120+
121+
* [1.0 alpha1 (27/02/2013)](http://www.strangeplanet.fr/work/umwp-autochanger/download.php?ver=1.0a1)
122+
* first version

installer/package.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
"C:\Program Files\7-Zip\7z.exe" a UMWP_Autochanger_1.7.zip ./data/* -x!*.ico
1+
"C:\Program Files\7-Zip\7z.exe" a UMWP_Autochanger_1.8.zip ./data/* -x!*.ico

src/constants.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
#define APP_MAX_TRAVERSAL 3
1717

1818
#define APP_HOMEPAGE "http://www.strangeplanet.fr/work/umwp-autochanger"
19-
#define APP_VERSION_URL "http://www.strangeplanet.fr/work/umwp-autochanger/last-version-2.txt"
20-
#define APP_INSTALLER_SIZE 5203022
19+
#define APP_VERSION_URL "http://www.strangeplanet.fr/work/umwp-autochanger/last-version.txt"
20+
#define APP_INSTALLER_SIZE 5228000
2121
#define APP_INSTALLER_FILENAME "installer.exe"
2222

2323
#define APP_MIN_WIDTH 440

src/controller.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,7 @@ void Controller::checkVersion()
3131
if (m_settings->get("check_updates").toBool())
3232
{
3333
VersionChecker* checker = new VersionChecker();
34-
connect(checker, SIGNAL(newVersionAvailable(const QString, const QString)),
35-
this, SLOT(onNewVersion(const QString, const QString)));
34+
connect(checker, SIGNAL(newVersionAvailable(const NewVersion)), this, SLOT(onNewVersion(const NewVersion)));
3635

3736
QThread* thread = new QThread(this);
3837
checker->moveToThread(thread);
@@ -51,9 +50,9 @@ void Controller::checkVersion()
5150
* @param string _version
5251
* @param string _link
5352
*/
54-
void Controller::onNewVersion(const QString &_version, const QString &_link)
53+
void Controller::onNewVersion(const NewVersion _version)
5554
{
56-
m_enviro->setNewVersion(_version, _link);
55+
m_enviro->setNewVersion(_version);
5756
emit newVersionAvailable();
5857
}
5958

src/controller.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public slots:
5656
void onUpdate(bool _forceRefresh=false);
5757

5858
private slots:
59-
void onNewVersion(const QString &_ver, const QString &_link);
59+
void onNewVersion(const NewVersion _version);
6060

6161
signals:
6262
void listChanged(bool); // true to reset QListWidget selection

src/environment.cpp

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ Environment::Environment(Settings* _settings) :
2020
m_env["umversion"] = "";
2121
m_env["startlinkpath"] = QVariant();
2222
m_env["nb_monitors"] = 0;
23+
24+
qRegisterMetaType<NewVersion>("NewVersion");
2325
}
2426

2527
/**
@@ -38,17 +40,6 @@ const bool Environment::isAutostart() const
3840
return QFile::exists(m_env["startlinkpath"].toString());
3941
}
4042

41-
/**
42-
* @brief Save data of the new version available
43-
* @param string _ver
44-
* @param string _link
45-
*/
46-
void Environment::setNewVersion(const QString &_ver, const QString &_link)
47-
{
48-
m_newVersion.first = _ver;
49-
m_newVersion.second = _link;
50-
}
51-
5243
/**
5344
* @brief Dump whole env in the log
5445
*/

0 commit comments

Comments
 (0)