1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-13 07:47:14 +03:00

112 Commits

Author SHA1 Message Date
Athanasius
89f113e190 Use Preferences Save Serial Number instead of flag
* new class `PrefsVersion` in prefs.py.  A singleton `prefsSaved` (note
   case) is created.
 * When new preferences are added and require defaults on first run the
   code should use:

     `if prefsVersion.shouldSetDefaults(<prior release version>, [<optional old test>]):`

   to check if defaults should be set in preferences.  So if prior release
   was '3.4.6.0' and you've added a new preference with defaults you should
   call this with '3.4.6.0' as the first argument.
   The <optional old test> is really only for historical purposes, as a
   fallback in case no 'PrefsVersion' has yet been set in the user's
   Registry/settings file.
 * Any code that adds such a new preference **MUST** make changes to the
   `versions` dictionary in the PrefsVersion class.
     1. Add the predicted next version to the dictionary, with number one
        higher than 'current'
     2. Set 'current' equal to that new value.
   Obviously if other post-last-release code has already done this then you
   don't need to.

   Failure to update the versions dictionary in this manner will lead to an
   Exception being raised, and the code the preferences are for failing
   (i.e. EDDN means no EDDN tab on Settings).

Closes #407
2020-07-01 15:33:42 +01:00
Athanasius
ecdd65e0ac prefs.py change for that output settings fix
Addresses #407
2020-06-30 15:22:50 +01:00
Athanasius
a40b0e33ca Detect plugins without Python 3.x support and warn user.
To allow users to sort out their plugins before EDMC itself moves to
Python 3.x warn them if any of their enabled, non-stock, plugins do not
have a plugin_start3() method.

  * If any are found without support there's a popup triggered at the
    end of AppWindow initialisation.
  * Then the user can check Settings > Plugins to see a list of the
    plugins without Python 3.x support.
2020-06-21 16:57:37 +01:00
Athanasius
259bb3bbd6 Merge branch 'release-final-python27' into python3 2020-06-21 16:43:02 +01:00
Jonathan Harris
3c46e8d5fa All executable files invoked with #!/usr/bin/env python3 2020-06-21 16:28:30 +01:00
Athanasius
a8c0ec3ab9 Updates prefs.py for "import tkinter.filedialog" 2020-06-21 16:23:01 +01:00
Athanasius
e7545e174f Use .items() instead of .iteritems() 2020-06-21 16:23:00 +01:00
Athanasius
d0ae621387 Running EDMarketConnector.py 'works'.
First pass utilising 'futurize' to do most of the work.

  There's an issue with ur'\"' in l10n.py which I'm not sure how to
properly fix.

  This now has errors when hitting the 'Update' button.
2020-06-21 16:23:00 +01:00
Athanasius
4d5fa590af New option to NOT check for app updates automatically if in-game.
* Stores disable_autoappupdatecheckingame in settings.
  * If 'disable' is active then once you're in-game WinSparkle auto
    check for updates is disabled.
  * Whatever the state of the option WinSparkle auto updates are
    (re-)enabled when you exit the game to Main Menu or fully.
  * Using 'Help' > 'Check for updates' manually will still always work.

It has been difficult to test the code fully because it isn't easy to
get WinSparkle's registry data about last update check time set just right
to not check immediately, but to do so some reasonable time after you're
in-game and have confirmed the new option setting isn't easy.
  Worst case people won't learn about an update until the next time they
run EDMC.
2020-06-20 20:46:05 +01:00
Athanasius
670842e8f6 Adds link to plugin migration guide to Settings > Plugins 2020-06-19 19:43:12 +01:00
Athanasius
d3abb6fa1f Detect plugins without Python 3.x support and warn user.
To allow users to sort out their plugins before EDMC itself moves to
Python 3.x warn them if any of their enabled, non-stock, plugins do not
have a plugin_start3() method.

  * If any are found without support there's a popup triggered at the
    end of AppWindow initialisation.
  * Then the user can check Settings > Plugins to see a list of the
    plugins without Python 3.x support.
2020-06-18 19:40:46 +01:00
Jonathan Harris
a6ce9edc1d Fix running under Wine 2019-06-19 12:09:26 +01:00
Jonathan Harris
2dd6c4d008 Support not always on top with dark theme on Linux
Fixes #421
2019-05-28 00:06:33 +01:00
Jonathan Harris
aac2f838f3 Fix for preferences windows on macOS Mojave 2019-01-10 00:04:14 +00:00
Jonathan Harris
7cca099699 Remove redundant code 2019-01-05 17:35:16 +00:00
Jonathan Harris
f17f5d3f25 PKCE OAuth2 access to cAPI 2018-12-28 03:32:26 +00:00
Jonathan Harris
cc4390de49 Switch EDDN integration to a plugin 2018-11-18 01:52:05 +00:00
Jonathan Harris
96ffc82ca7 Support accessing Journal on macOS remotely over SMB 2018-10-30 19:33:40 +00:00
Jonathan Harris
b9d77baed9 Ship loadout no longer derived from cAPI 2018-07-03 19:23:39 +01:00
Jonathan Harris
a442d2cd14 Extend localisation support to plugins 2018-05-12 20:50:45 +01:00
Jonathan Harris
3a3827f168 Make system and station links unclickable if URL not available 2018-04-04 19:34:35 +01:00
Jonathan Harris
0eaa61bdd9 Make system and station info websites configurable 2018-04-03 01:03:07 +01:00
Jonathan Harris
e3323f8f6f Drop support for interaction log 2017-11-24 08:59:50 +00:00
Jonathan Harris
2038d2b2cc Fix typo 2017-08-15 09:12:59 +01:00
Jonathan Harris
2c47f96312 Widen folder location fields 2017-07-29 16:22:05 +01:00
Jonathan Harris
758997002c Take into account non-client area when positioning popup window 2017-07-29 16:17:50 +01:00
Jonathan Harris
e810b87dd4 Switch EDSM integration to a plugin 2017-07-29 15:36:44 +01:00
Jonathan Harris
93ff800f90 Update references to EDDN wiki 2017-07-29 15:36:43 +01:00
Jonathan Harris
60ad3b4c09 Inform plugins of Cmdr and Beta status
Notify plugins when Cmdr or Beta status changes while the preferences dialog
is open.

Display a note on the Credentials tab when Cmdr is not set. Addresses #224
2017-07-29 15:36:43 +01:00
Jonathan Harris
084128e797 Add support for internal plugins
Settings tab shows current plugins.
2017-07-29 14:41:59 +01:00
Jonathan Harris
1e51d2f29b Add interaction() plugin callback
Fixes #220
2017-06-18 02:32:25 +01:00
Jonathan Harris
efc1cb33b6 Use new Beta universe Companion API server. 2017-06-16 18:22:00 +01:00
Jonathan Harris
244cd6b05b Make plugins Open button work on macOS 2017-04-25 12:51:04 +01:00
Jonathan Harris
964558a9c8 Add translation help text
Also cosmetic changes.
2017-04-25 12:07:20 +01:00
inb
92fdfa31f3 Put plugin folder path in an entry to allow copying (open button not enabled on mac) 2017-04-25 09:16:26 +01:00
inb
bc657f55fe Add a tab to the Settings dialog. Users can directly open the plugins folder. Can also disable plugins by adding ".disabled" to the end of their folder name. 2017-04-25 08:41:02 +01:00
Jonathan Harris
d4dddb6239 Throttle EDDN output when sending replay 2017-03-11 18:32:12 +00:00
Jonathan Harris
fc45196fd1 Remove pre-migration settings 2017-02-03 15:03:17 +00:00
Jonathan Harris
0022f78e62 Merge branch 'multi_account' 2017-02-03 14:00:39 +00:00
Jonathan Harris
e571e2860d Add Transparent theme on Windows 2017-01-30 15:40:34 +00:00
Jonathan Harris
a3949c17c8 Use keyring for password storage
Fixes #89
2017-01-27 13:38:40 +00:00
Jonathan Harris
aed4680485 Display Beta status in settings even if no Cmdr 2017-01-24 23:07:56 +00:00
Jonathan Harris
94db336aa6 Obtain Cmdr from API for migration 2017-01-23 01:49:30 +00:00
Jonathan Harris
a67eb982d8 Multi-account support
Fixes #121
2017-01-22 20:16:32 +00:00
Jonathan Harris
9d59ef34c7 Ensure popup windows are on-screen on Windows 2017-01-22 00:54:20 +00:00
Jonathan Harris
4dcecc2989 Drop support for Slopey's BPC format 2016-12-19 15:31:28 +00:00
Jonathan Harris
1f6a5883b7 Support Coriolis as an option for Ship link
Also switch to common loadout format with E:D Shipyard.
2016-11-22 00:52:30 +00:00
Jonathan Harris
11b6178eb3 Fix crash on OSX if journal path doesn't exist 2016-11-18 12:06:00 -05:00
Jonathan Harris
3ad8322e70 Plugin enhancements
- New callback notify_prefs_changed
- Plugin can set settings tab name
- Plugin can return a pair of widgets for display in main window - typically (label, status)
2016-11-14 02:07:18 +00:00
Jonathan Harris
26f3f37788 Display localized paths on OSX and Windows 2016-10-29 01:09:46 +01:00