Opened 13 years ago

Closed 6 years ago

#7 closed defect (fixed)

Change text .ini to .cfg files

Reported by: Andreas Schnellbacher Owned by: Andreas Schnellbacher
Priority: major Milestone: 2.0 beta
Component: Other Version: 1.14
Keywords: Cc:

Description

The ini format doesn't allows for spaces left from the equal char.
Therefore the .ini extension should not be used for these files.

Esp. the Colors.ini file needs alignment to keep readability.

Applies to: colors.ini, alias.ini, objects.ini.

In order not to mess up user's config it's important to change it
before an official release.

Change History (8)

comment:1 Changed 12 years ago by Andreas Schnellbacher

Status: newaccepted

comment:2 Changed 10 years ago by Andreas Schnellbacher

In order to lower the number of config files, all these settings will be
combined to one .cfg file called NEPMD.CFG or USER.CFG. The layout will
be changed from text .ini style to settings_path = value style without
.ini sections.

The default values for it can be specified in DEFAULTS.DAT. It will be
renamed to DEFAULTS.CFG.

The contents of these two files were written to NEPMD.INI. Later a user
can add persistant settings to his NEPMD.CFG or USER.CFG that will be
written to NEPMD.INI every startup. The mechanism is similar to Mozilla
apps and prefs.js/user.js.

comment:3 Changed 10 years ago by Andreas Schnellbacher

Status: acceptedassigned

comment:4 Changed 6 years ago by Andreas Schnellbacher

The first step was made with the release of 1.18: The import of %NEPMD_USERDIR%\bin\USER.CFG works and both files DEFAULTS.CFG and USER.CFG were automatically imported on the next EPM start if they were changed.

Adding the content of COLORS.CFG and OBJECTS.CFG to DEFAULTS.CFG also adds another requirement: A possible import process of these settings would only give usable results if settings were deleted before import.

In r2975, a function was added for that. This has to be tested and should be triggered by a pseudo setting in DEFAULTS.CFG, e.g.:

\NEPMD\User = DELETE:

When this works, the color and object settings can be moved to DEFAULTS.CFG.

Last edited 6 years ago by Andreas Schnellbacher (previous) (diff)

comment:5 Changed 6 years ago by Andreas Schnellbacher

In r3008, the last remaining .CFG file, COLORS.CFG, was moved to DEFAULTS.CFG.

Additionally to the delete-before-import option for USER.CFG, a new NEPMD.INI key has to be set on export: Install -> UserCfgJustImported = 1. This is required for the automatic sync. in COLORS.ERX to handle sync. after import different (Cfg. to Pal.) from all other situations (Pal. to Cfg.).

Last edited 6 years ago by Andreas Schnellbacher (previous) (diff)

comment:6 Changed 6 years ago by Andreas Schnellbacher

Install -> UserCfgJustImported = 1 was added with r3010.

comment:7 Changed 6 years ago by Andreas Schnellbacher

The deletion of keys had a severe bug. r3011 fixes that. r3012 adds \NEPMD\User = DELETE: on export.

What remains is to add a menu item for import to the preferences popup menu.

Version 0, edited 6 years ago by Andreas Schnellbacher (next)

comment:8 Changed 6 years ago by Andreas Schnellbacher

Resolution: fixed
Status: assignedclosed

Added with r3026 and before.

Note: See TracTickets for help on using tickets.