Added LocationDelimiter config file token

This commit is contained in:
Ianos Gnatiuc 2005-10-12 22:11:35 +00:00
parent a31b8b396b
commit 23fa1b6a0d
10 changed files with 24 additions and 1 deletions

View File

@ -248,6 +248,9 @@ DispPmFirst Yes
;DispHdrLocation No ;DispHdrLocation No
DispHdrLocation Yes DispHdrLocation Yes
// This separate sity names in netmail areas
;LocationDelimiter " | "
// Substitutions for the city name retrieved from nodelist to display in // Substitutions for the city name retrieved from nodelist to display in
// message header delimeter line. May be used to show national-language // message header delimeter line. May be used to show national-language
// names of the nodes cities. // names of the nodes cities.

View File

@ -220,6 +220,10 @@ DispPmFirst Yes
;DispHdrLocation No ;DispHdrLocation No
DispHdrLocation Yes DispHdrLocation Yes
// <20>⨬ ¬®¦­® § ¤ âì à §¤¥«¨â¥«ì ¬¥¦¤ã £®à®¤ ¬¨ ®â¯à ¢¨â¥«ï ¨ ¯®«ãç â¥«ï
// ¢ ­¥â¬¥©« ®¡« áâïå.
;LocationDelimiter " | "
// <20>®¤áâ ­®¢ª  ­ §¢ ­¨© £®à®¤®¢ ¤«ï ¯®ª §  ¢ áâப¥-à §¤¥«¨â¥«¥ § £®«®¢ª  // <20>®¤áâ ­®¢ª  ­ §¢ ­¨© £®à®¤®¢ ¤«ï ¯®ª §  ¢ áâப¥-à §¤¥«¨â¥«¥ § £®«®¢ª 
// ¨ ⥫  á®®¡é¥­¨ï. Œ®¦­® ¨á¯®«ì§®¢ âì ¤«ï ¯®ª §  àãááª¨å ­ §¢ ­¨© £®à®¤®¢. // ¨ ⥫  á®®¡é¥­¨ï. Œ®¦­® ¨á¯®«ì§®¢ âì ¤«ï ¯®ª §  àãááª¨å ­ §¢ ­¨© £®à®¤®¢.
// ˆ¬¥¥â á¬ë᫠⮫쪮 ¯à¨ 㪠§ ­¨¨ DispHdrLocation Yes. // ˆ¬¥¥â á¬ë᫠⮫쪮 ¯à¨ 㪠§ ­¨¨ DispHdrLocation Yes.

View File

@ -10,6 +10,9 @@ ______________________________________________________________________
Notes for GoldED+ 1.1.5, /snapshot/ Notes for GoldED+ 1.1.5, /snapshot/
______________________________________________________________________ ______________________________________________________________________
+ Added LocationDelimiter "delim" config file token that separate
city names in netmail areas.
+ LocationAlias is case insensitive now. + LocationAlias is case insensitive now.
+ Macro '@widepid' contains platform ID again. + Macro '@widepid' contains platform ID again.

View File

@ -739,6 +739,7 @@ CfgGed::CfgGed() {
internetviagate = false; internetviagate = false;
keybmode = KEYB_POLL; keybmode = KEYB_POLL;
logformat = 0; logformat = 0;
locationdelimiter = " \x1A ";
menumarked = MODE_DONT; menumarked = MODE_DONT;
menunextarea = YES; menunextarea = YES;
msglistdate = MSGLISTDATE_WRITTEN; msglistdate = MSGLISTDATE_WRITTEN;

View File

@ -240,6 +240,7 @@ const word CRC_KLUDGE = 0xA600;
const word CRC_KLUDGECHRS = 0x0EEF; const word CRC_KLUDGECHRS = 0x0EEF;
const word CRC_LOADLANGUAGE = 0x9F1B; const word CRC_LOADLANGUAGE = 0x9F1B;
const word CRC_LOCATIONALIAS = 0x1B5F; const word CRC_LOCATIONALIAS = 0x1B5F;
const word CRC_LOCATIONDELIMITER= 0x5083;
const word CRC_LOGFILE = 0x8ACE; const word CRC_LOGFILE = 0x8ACE;
const word CRC_LOGFORMAT = 0x9E51; const word CRC_LOGFORMAT = 0x9E51;
const word CRC_LOGLEVEL = 0xCF59; const word CRC_LOGLEVEL = 0xCF59;

View File

@ -412,6 +412,7 @@ SwitchL:
switch(crc) { switch(crc) {
case CRC_LOADLANGUAGE : CfgLoadlanguage (); break; case CRC_LOADLANGUAGE : CfgLoadlanguage (); break;
case CRC_LOCATIONALIAS : CfgLocationalias (); break; case CRC_LOCATIONALIAS : CfgLocationalias (); break;
case CRC_LOCATIONDELIMITER: CfgLocationdelimiter(); break;
case CRC_LOGFILE : CfgLogfile (); break; case CRC_LOGFILE : CfgLogfile (); break;
case CRC_LOGFORMAT : CfgLogformat (); break; case CRC_LOGFORMAT : CfgLogformat (); break;
default : found = false; default : found = false;

View File

@ -331,6 +331,14 @@ void CfgLocationalias()
// ------------------------------------------------------------------ // ------------------------------------------------------------------
void CfgLocationdelimiter()
{
StripQuotes(val);
CFG->locationdelimiter = val;
}
// ------------------------------------------------------------------
void CfgLogfile() { void CfgLogfile() {
strcpy(CFG->logfile, val); strcpy(CFG->logfile, val);

View File

@ -230,6 +230,7 @@ void CfgKludge ();
void CfgKludgechrs (); void CfgKludgechrs ();
void CfgLoadlanguage (); void CfgLoadlanguage ();
void CfgLocationalias (); void CfgLocationalias ();
void CfgLocationdelimiter();
void CfgLogfile (); void CfgLogfile ();
void CfgLogformat (); void CfgLogformat ();
void CfgLookupecho (); void CfgLookupecho ();

View File

@ -256,6 +256,7 @@ public:
gstrarray kludge; gstrarray kludge;
Path loadlanguage; Path loadlanguage;
GStrBag2 locationalias; GStrBag2 locationalias;
std::string locationdelimiter;
Path logfile; // goldedlog; Path logfile; // goldedlog;
int logformat; int logformat;
std::vector<MailList> mailinglist; std::vector<MailList> mailinglist;

View File

@ -335,7 +335,7 @@ void GMsgHeaderView::Paint() {
{ {
std::string loc2; std::string loc2;
LookupNodeLocation(msg, loc2, LOOK_CITY2); LookupNodeLocation(msg, loc2, LOOK_CITY2);
if (loc.length()) loc += " | " + loc2; if (loc.length()) loc += CFG->locationdelimiter + loc2;
} }
if (loc.length()) if (loc.length())