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

244 Commits

Author SHA1 Message Date
Athanasius
62e285b52e
themes: Use defined constants for which theme throughout
This has been relying on knowledge of the magic numbers for far too long.

As part of this, remove all the obfuscating "oh, default is 0, and we want
that or any other theme, so treat this like a boolean" nonsense.

Also, stop assuming that "> 1" is a synonym for "transparent theme".  Just
Do The Equality Check.
2022-12-05 15:57:15 +00:00
Athanasius
6070f82c6b
OUT_EDDN_DO_NOT_DELAY should be OUT_EDDN_DELAY
* The old name was OUT_SYS_DELAY.
* Yes, this is the inverse of what we want, which is "should we not delay
  messages", but this is the legacy.
2022-11-22 16:47:17 +00:00
Athanasius
871f50288e
prefs.py: Fix overly long line (config constants renames) 2022-11-22 14:02:22 +00:00
Athanasius
0d35f8874a
config/EDDN: Rename OUT_MKT_EDDN to OUT_EDDN_SEND_STATION_DATA
This flag controls whether commodity, outfitting or shipyard schema messages
are sent.  Thus 'MKT' ('market') is misleading.  Rename it so the intent when
used is clear.
2022-11-22 14:02:15 +00:00
Athanasius
9f02f18408
config/EDDN: Rename OUT_SYS_EDDN to OUT_EDDN_SEND_NON_STATION
* This was perhaps originally meant for what the UI option says, i.e. "send
  system and scan data", but is actually being used for anything that is
  **NOT** 'station data' (even though *that* option has 'MKT' it includes
  outfitting and shipyard as well).

  So, just name this more sanely such that code using it is more obvious as
  to the actual intent.
2022-11-22 14:02:14 +00:00
Athanasius
3a57b53bbd
config/EDDN: Rename OUT_SYS_DELAY to OUT_EDDN_DO_NOT_DELAY
The sense of this `output` flag has been inverted (always?) for a long time.

1. I have the option "Delay sending until docked" showing as *off* in the UI.
2. My config.output value is `100000000001`.
3. The value of this flag is `4096`, which means 12th bit (starting from 1, not
  zero).
4. So I have the bit set, but the option visibly off.

So, rename this both to be more pertinent to its use *and* to be correct as to
what `True` for it means.
2022-11-22 14:02:13 +00:00
A_D
bff6175ee7
Update to use sys.platform over platform 2022-01-26 18:51:49 +02:00
Athanasius
03657092af
systray: Add LANG comment
The original systray work seems to predate the LANG comments, and I
didn't double-check there *was* one.
2021-11-13 12:37:31 +00:00
Athanasius
8af5424f9d
Revert change to PrefsVersion.stringSerial argument name
It's a 'published' interface in that importing PrefsVersion is
documented in PLUGINS.md, even if use of this specific function isn't.
2021-11-12 16:53:13 +00:00
Athanasius
4d069cb406
Attempting to re-enable Windows "minimize to system tray" support
1. It's not actually hiding the task bar icon currently.
2. As this touched prefs.py I've done a flake8 and mypy cleanup pass
   too.  But some of that will want reviewing later as I noqa'd some
   things.
2021-11-12 13:17:27 +00:00
3e38965ef1
Output > 'File Location' should always be available 2021-08-17 18:12:16 +03:00
A_D
a0c1854818
fixed letter transposition
I hate the word captain.
2021-08-07 20:20:48 +02:00
A_D
455250019d
added lang entries 2021-06-28 10:36:37 +02:00
A_D
b42fcf1d4f
added config option and prefs page 2021-06-28 10:28:56 +02:00
Athanasius
a0b310f72e Translations: Amalgamate some LANG comments & en.template updated 2021-06-13 15:49:09 +01:00
Athanasius
3a1af1c2b2 prefs.py: Final additional LANG comments 2021-06-13 12:39:24 +01:00
Athanasius
5c6a4fe68c prefs.py: LANG comments and some slight code re-arrangement
The whole LANG comment thing works best with a single `_(...)` on any
given line, so splitting some of these `thing if X else other` into full
conditionals.
2021-06-13 12:22:01 +01:00
Athanasius
f4af278a80 prefs.py: Contiuning LANG comment pass 2021-06-07 16:00:28 +01:00
Athanasius
1495ba9206 prefs.py: Properly .grid() the 'Plugins folder' label 2021-06-07 15:56:50 +01:00
Athanasius
fc96c6362f prefs.py: Initial LANG comment pass
Pausing for a possible bug fix
2021-06-07 15:54:20 +01:00
Athanasius
e58ee3dbce prefs: Plugins 'open', use config.plugin_dir_path, not the Tk var 2021-05-27 16:35:36 +01:00
A_D
ecd6518730
Fixed showing unset shipyard provider as False
The code around the dropdown menu in prefs for shipyard providers was a
bit too clever for its own good.

This brings it in line with the behaviour of the other two
2021-05-19 18:19:57 +02:00
Athanasius
316201eb77 systray: Disable whilst we figure out py2exe packaging issue 2021-05-01 19:32:53 +01:00
Sayak Mukhopadhyay
b377199119 Changed logic to handle minimize too system tray 2021-04-26 15:36:43 +05:30
Sayak Mukhopadhyay
fa58d2f0c2 Added windows OS checks 2021-04-26 14:23:08 +05:30
Sayak Mukhopadhyay
6c0437642e Formatting fixes 2021-04-26 14:03:22 +05:30
Sayak Mukhopadhyay
df31aed6c5 Added appearance config option and implementation for minimize to tray on close functionality 2021-04-26 01:22:01 +05:30
Athanasius
2f9789afdd Update all code to use config.appversion() as a function
This *also* caught some instances where appversion_nobuild should
already have been used, so those were both changed and updated to a
function call.
2021-04-01 14:45:52 +01:00
Athanasius
ba91aa4733 Two final s/getint/get_int/g instances.
Tested with firing up under debugger, switching to transparent theme,
repeatedly mousing in and out, switching back to Dark theme.
2021-04-01 14:45:50 +01:00
A_D
051245cf90 Renamed various config values to be backwards compatible 2021-04-01 14:45:48 +01:00
A_D
0035f69c18 Missed one _str 2021-04-01 14:45:48 +01:00
A_D
00629b7420 use _str versions of paths for string ops 2021-04-01 14:45:48 +01:00
A_D
4692a98f04 Removed warning from transparency slider 2021-04-01 14:45:47 +01:00
A_D
0258d881ea Localised options 2021-04-01 14:45:47 +01:00
A_D
5235019d2a Added warning
Using transparency options on windows may cause unexpected behaviour
2021-04-01 14:45:47 +01:00
A_D
ed7d79c2f7 Added UI transparency option 2021-04-01 14:45:47 +01:00
A_D
1e56f0046e Empty journal dir workaround 2021-04-01 14:45:46 +01:00
A_D
278480b99f replaced ors with defaults in config usage 2021-04-01 14:45:46 +01:00
Athanasius
25852997c5 Updated all source to use new config methods
# Conflicts:
#	monitor.py
2021-04-01 14:45:46 +01:00
Athanasius
462cd25312 config: Make config.shutting_down() a property, and change 'callers' 2021-01-11 16:54:09 +00:00
Athanasius
4bddc4c0cb prefs: Avoid Tk event_generate() calls during shutdown 2021-01-11 16:43:33 +00:00
Athanasius
5effd044ac try/except ctypes.windll.user32.CalculatePopupWindowPosition
As we can't rely on the is_wine check, use an exception for this.
2020-10-08 14:55:32 +01:00
Athanasius
2b65bbd768 Re-instate the non-tkinter file dialog.
* This will be gated behind win32 *and* not a UTF-8 encoding.  This way
  where we should be able to use tkinter.filedialog, we do.
2020-10-06 15:49:17 +01:00
Athanasius
46e3b3aff8 Implement a TRACE level of logging.
For things that are too spammy for DEBUG, but we might need them
sometimes.
2020-09-23 15:58:19 +01:00
Athanasius
20464b80c7
Merge branch 'develop' into cleanup/prefs 2020-09-22 16:59:44 +01:00
Athanasius
14b8565aff Add 'import logging' (back in?) to prefs.py 2020-09-22 15:50:06 +01:00
Athanasius
a883eb29b2 plug.py, prefs.py: Use get_main_logger() 2020-09-22 15:44:16 +01:00
A_D
9231fe96fc
removed unused configs 2020-09-16 22:26:32 +02:00
A_D
175d171924
replaced wine check, final cleanups 2020-09-16 22:15:40 +02:00
A_D
74372b997d
removed invalid magic import 2020-09-16 20:30:28 +02:00