56 Commits

Author SHA1 Message Date
hikerstk
6ac6e76f12 Bugfix: clicking on 'back' in a new addon installation case
crashed stk.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8609 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-05-16 13:13:22 +00:00
hikerstk
3198d8a6b7 Bugfix: don't cancel a download if the user actually only clicked
on 'back' in the uninstall page.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8584 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-05-15 12:54:12 +00:00
auria
0cf4b61e56 Removed some unused strings
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8573 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-05-14 19:40:58 +00:00
auria
209911fa21 Add method beforeAddingWidgets to dialogs too, use it to fix Joerg's problem
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8556 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-05-13 01:02:24 +00:00
hikerstk
5d787ec0cb Try to use bubble widget for the description of addons. Also removed
'Description:' text.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8555 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-05-13 00:51:13 +00:00
hikerstk
498a0a104e 1) Moved news message handling into a separate object.
2) Added prioritised request list to network manager.
3) Fixed ticket 217 (crash at shutdown), which happens if 
   the background thread downloading the icons is still
   active when STK is quit (and then accessing managers
   that have been deleted).
4) Handled partial downloads correctly: files are now
   downloaded with ".part" appended to the filename,
   and only upon a successful download renamed to 
   the original name.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8552 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-05-12 23:51:00 +00:00
hikerstk
a22b948810 Addons now show the size of the package to download.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8371 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-04-18 07:11:12 +00:00
hikerstk
ab3ba779fc Removed display of "-100%" in the progress bar if an error occurs while downloading.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8298 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-04-12 06:53:13 +00:00
hikerstk
3834b0f15d Added more detailled error message to stdout in case of problems
when removing an addon.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8235 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-04-07 01:31:19 +00:00
hikerstk
ea32a4d52e Started to update addon loader to support new xml structure. It's not expected
to work yet.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8217 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-04-04 23:26:25 +00:00
auria
aba8b2df34 Allow labels to resize up on setText
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8093 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-27 23:07:23 +00:00
hikerstk
b638af4d0e Fixed typo.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7535 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-25 02:24:31 +00:00
auria
009960fc8a Clean up call to fribidi, add capabilities to insert values to the _ macro
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7508 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-23 23:39:10 +00:00
hikerstk
6eddb2baf9 Added proper aborting of curl download threads.
Print warning and progress reports only with
verbosity 3 or above, all addons messages now
start with [addons].


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7503 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-23 04:24:55 +00:00
hikerstk
43af75f8da Better error message in case of uninstalling an addon.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7469 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-17 06:07:49 +00:00
hikerstk
a4ee467c49 Started to add some error handling, fixed handling of zip files
with directories in them.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7467 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-17 05:44:33 +00:00
hikerstk
0fb5f93453 Tried to overlay/replace the install button with the progress bar,
but that doesn't work properly at this stage. Auria, any ideas?


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7414 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-14 06:13:20 +00:00
hikerstk
dbe6395c1e 1) Changed queue and addon vector to use SynchronisedVector in order
to hide more pthread calls.
2) Started to work on screen layout.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7401 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-14 00:58:11 +00:00
hikerstk
9dde70687f Implemented icon caching, and updated to support the future
web page (unfortunately the web server isn't up to that
standard yet, so expect error messages, addons that don't
work etc.).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7367 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-11 22:49:55 +00:00
hikerstk
e7d5b2314a Store icons in addons/icons and zip files in addons/tmp.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7314 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-06 20:50:23 +00:00
xapantu
d6a2eea452 Fix addons path, I removed the 'icon/' +, to have a nicer way to change the path on the server
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7311 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-06 18:33:28 +00:00
hikerstk
002b9b8311 Bugfix: a dismissed dialog was accessed.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7300 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-06 05:36:48 +00:00
hikerstk
a4db783f7e Fixed deleting installed addons.
NOTE: it is still NOT safe to use this, esp. now that there is code to remove a directory :)


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7282 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-05 21:54:12 +00:00
hikerstk
f97067d313 Started work on deleting installed updates; deleted unused variables
and file.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7265 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-05 06:02:17 +00:00
hikerstk
3c729b4b0f 1) Added proper handling and detection of installed addons
2) Moved addon related data files into a separate 'addons' directory.
3) Directory names of addons are now lower case.
(Still addons are not stable enough to be used!)


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7252 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-04 21:49:17 +00:00
hikerstk
7e34b5d970 Further improvements to addons loading. Addons are now downloaded and installed,
but the kart icon display is still messed up (restarting stk solves that)


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7221 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-03 03:34:16 +00:00
hikerstk
6129cfaa39 Made NetworkHttp::downloadFileSynchron to be able to be used from a thread;
fixed addons_loading to display the icon correctly.
Note: addons installing will still crash.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7198 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-12-30 23:05:54 +00:00
hikerstk
cdc1591a11 Some code cleanups, mostly for addons_loading.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7190 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-12-30 05:40:33 +00:00
hikerstk
9097ece07c More cleanup and code simplification for addons_screen.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7188 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-12-30 05:17:10 +00:00
hikerstk
f859156e76 Completely remove used of m_index (i.e. the addons_manager
does not have a concept of a current addon anymore).
Note that downloading addons still crashes.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7186 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-12-29 23:19:26 +00:00
hikerstk
141ae9f5da Moved AddonProp into a separate class Addon with proper
getter; started to remove usage of m_index in addon_manager.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7185 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-12-29 21:52:33 +00:00
hikerstk
ce986d623d Many style changes and code improvements to addons management.
The addons icon is now greyed out in case of an error (and till
the list of addons is downloaded, though usually that is done by
the time the main gui is shown). Moved synchronisations/threading
from addons_manager to network_http. Added 'Synchron' template
to hide usage of mutex to provide synchronised accesses to a variable.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7177 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-12-28 22:48:44 +00:00
hikerstk
588870d9bd Renamed network.?pp to network_http.?pp.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7141 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-12-22 10:37:23 +00:00
hikerstk
29e29c7bb7 Renamed addons.?pp to addons_manager.?pp.
NOTE: make distclean is most likely necessary on linux!!!!


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7138 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-12-22 06:00:58 +00:00
hikerstk
b5837a624b Many more coding style adjustments.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7134 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-12-21 22:06:38 +00:00
hikerstk
f5662118c6 Made addon manager compiler with windows (though not working yet).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7039 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-12-16 21:07:14 +00:00
auria
cb78ded2ed Tidy up logging + other minor fixes
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6647 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-11-19 17:19:13 +00:00
xapantu
16b742358c [Addons] an addon object isn't passed to the dialog anymore, it is stupid since addons_manager is extern.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6484 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-11-09 17:21:58 +00:00
xapantu
23143a4018 Fix addons when we are offline:
- They can't be updated
- It doesn't crash when we uninstall them

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6483 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-11-09 17:04:58 +00:00
xapantu
2fa3c6bf43 The addons icons are now downloaded in a thread, we don't wait anymore that this download end
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6292 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-10-16 13:29:44 +00:00
xapantu
22ef2ccb52 Fix crash when we tried to update an addons from the addons update screen
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6231 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-10-09 16:58:16 +00:00
xapantu
a087e00214 Adding update support for the addons and increase the size of the buttons in the addon dialog
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6230 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-10-09 16:44:12 +00:00
xapantu
ec063ef163 Adding a package-update.png image
Show 'update' instead of uninstall or install for addons which can be updated (maybe we need a third button)
Add a special icon in the addons lists if the addon can be updated

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5926 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-08 18:19:05 +00:00
xapantu
2d17e2c2b8 Change back button id in the addons dialog to have a proper cancel button
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5914 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-07 18:04:22 +00:00
xapantu
6b977c1600 - Center the text which show 'Downloading...' in the addons manager
- Use 'uninstall' instead of 'install' when the addon is installed

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5870 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-02 15:53:10 +00:00
xapantu
53037c25e1 Fix a segfault problem with addons (the buttons are now loaded from a file, and the code still used some button pointer to desactivated them, but they was NULL)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5869 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-02 15:24:56 +00:00
xapantu
9362dc13f4 Convert (partialy) the addons dialog in the new xml system
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5752 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-08-16 09:34:31 +00:00
auria
021dea1829 Reconciliated Screen and ModalDialog by extracting their common funcitonality into a common base class
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5746 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-08-16 00:39:53 +00:00
xapantu
57b5c788ea Adding chinese language in gen-mo (not added yet), tab system in the addons menu and some others very little things
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5709 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-07-28 17:46:48 +00:00
xapantu
ad9eb86671 Adding a progress bar to download addons.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5660 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-07-06 14:39:45 +00:00