usesoftcrxlat config file token
This commit is contained in:
parent
be049cff10
commit
77e4461a7d
@ -550,6 +550,10 @@ EDITUNDELETE 100
|
||||
// Do not forget to set DISPSOFTCR to YES!
|
||||
;EDITSOFTCRXLAT H ; Example for Russians.
|
||||
|
||||
// Enable EditSoftCrxLat (Yes). May be used in random system groups.
|
||||
;UseSoftCrxLat No
|
||||
UseSoftCrxLat Yes
|
||||
|
||||
// Right margin for editing quotes in the internal editor.
|
||||
// EDITQUOTEMARGIN 78
|
||||
|
||||
|
@ -577,6 +577,10 @@ EditUnDelete 50
|
||||
// ᨬ¢®« ASCII 141 ¤à㣮©.
|
||||
EditSoftCrxLat H ; Ž¡ï§ â¥«ì® ¤«ï R50!
|
||||
|
||||
// EditSoftCrxLat ¬®¦¥â ¡ëâì ®âª«î祮 £«®¡ «ì® ¨«¨ ¢ £à㯯 å.
|
||||
;UseSoftCrxLat No
|
||||
UseSoftCrxLat Yes
|
||||
|
||||
// ˜¨à¨ ¯®«ï ¢ë¢®¤ ¤«ï । ªâ¨à®¢ ¨ï æ¨â¨à㥬ëå áâப.
|
||||
EditQuoteMargin 75
|
||||
|
||||
@ -2298,6 +2302,7 @@ EndGroup
|
||||
// TwitMode
|
||||
// UseFwd
|
||||
// UserName
|
||||
// UseSoftCrxLat
|
||||
// ViewHidden
|
||||
// ViewKludge
|
||||
// ViewQuote
|
||||
|
@ -10,6 +10,9 @@ ______________________________________________________________________
|
||||
Notes for GoldED+ 1.1.5, /snapshot/
|
||||
______________________________________________________________________
|
||||
|
||||
+ Added EditSoftCrxLat (yes/no) config file token that enable/disable
|
||||
usage of EditSoftCrxLat. May be used in random system groups.
|
||||
|
||||
+ Added DISPPMFIRST (yes/no) config file token that enable/disable
|
||||
displaying first the personal mail in areas.
|
||||
|
||||
|
@ -787,6 +787,7 @@ CfgGed::CfgGed() {
|
||||
useintl = true;
|
||||
usepid = true;
|
||||
usernameno = 0;
|
||||
usesoftcrxlat = true;
|
||||
usestylies = true;
|
||||
usetzutc = false;
|
||||
viewhidden = false;
|
||||
|
@ -382,6 +382,7 @@ const word CRC_USEPID = 0x2F68;
|
||||
const word CRC_USERLIST = 0xE81A;
|
||||
const word CRC_USERLISTFILE = 0xB749;
|
||||
const word CRC_USERNAME = 0x1161;
|
||||
const word CRC_USESOFTCRXLAT = 0x4285;
|
||||
const word CRC_USETZUTC = 0x27C5;
|
||||
const word CRC_UUDECODEPATH = 0x82A2;
|
||||
const word CRC_VIEWHIDDEN = 0x021D;
|
||||
|
@ -577,6 +577,7 @@ SwitchU:
|
||||
case CRC_USERLIST : CfgUserlist (); break;
|
||||
case CRC_USERLISTFILE : CfgUserlistfile (); break;
|
||||
case CRC_USERNAME : CfgUsername (); break;
|
||||
case CRC_USESOFTCRXLAT : CfgUsesoftcrxlat (); break;
|
||||
case CRC_USETZUTC : CfgUsetzutc (); break;
|
||||
case CRC_UUDECODEPATH : CfgUudecodepath (); break;
|
||||
default : found = false;
|
||||
|
@ -442,6 +442,17 @@ void CfgUsername() {
|
||||
|
||||
// ------------------------------------------------------------------
|
||||
|
||||
void CfgUsesoftcrxlat()
|
||||
{
|
||||
bool flag = GetYesno(val);
|
||||
if (cfgingroup)
|
||||
CFG->grp.AddItm(GRP_USESOFTCRXLAT, flag);
|
||||
else
|
||||
CFG->usesoftcrxlat = flag;
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------
|
||||
|
||||
void CfgUsetzutc() {
|
||||
|
||||
bool flag = GetYesno(val);
|
||||
|
@ -364,6 +364,7 @@ void CfgUsepid ();
|
||||
void CfgUserlist ();
|
||||
void CfgUserlistfile ();
|
||||
void CfgUsername ();
|
||||
void CfgUsesoftcrxlat ();
|
||||
void CfgUsetzutc ();
|
||||
void CfgUudecodepath ();
|
||||
void CfgViewhidden ();
|
||||
|
@ -358,6 +358,7 @@ public:
|
||||
Path userlistfile; // goldedlst;
|
||||
std::vector<Node> username;
|
||||
int usernameno;
|
||||
bool usesoftcrxlat;
|
||||
bool usestylies;
|
||||
bool usetzutc;
|
||||
Path uudecodepath;
|
||||
|
@ -119,7 +119,8 @@ int Area::LoadMsg(GMsg* msg, ulong msgno, int margin, int mode) {
|
||||
void Area::SaveHdr(int mode, GMsg* msg) {
|
||||
|
||||
// Translate softcr to configured char
|
||||
if(EDIT->SoftCrXlat()) {
|
||||
if (adat->usesoftcrxlat && EDIT->SoftCrXlat())
|
||||
{
|
||||
strchg(msg->by, SOFTCR, EDIT->SoftCrXlat());
|
||||
strchg(msg->to, SOFTCR, EDIT->SoftCrXlat());
|
||||
strchg(msg->realby, SOFTCR, EDIT->SoftCrXlat());
|
||||
|
@ -178,6 +178,7 @@ void Area::InitData() {
|
||||
adat->usefwd = CFG->usefwd;
|
||||
strcpy(adat->username.name, CFG->username.empty() ? "" : CFG->username[CFG->usernameno].name);
|
||||
adat->username.addr = adat->aka.addr;
|
||||
adat->usesoftcrxlat = CFG->usesoftcrxlat;
|
||||
adat->usetzutc = CFG->usetzutc;
|
||||
adat->viewhidden = CFG->viewhidden;
|
||||
adat->viewkludge = CFG->viewkludge;
|
||||
@ -405,6 +406,7 @@ void Area::RandomizeData(int mode) {
|
||||
SetAka(tmp);
|
||||
}
|
||||
|
||||
CFG->grp.GetItm(GRP_USESOFTCRXLAT, adat->usesoftcrxlat);
|
||||
CFG->grp.GetItm(GRP_USETZUTC, adat->usetzutc);
|
||||
|
||||
if(not mode) {
|
||||
|
@ -262,7 +262,8 @@ void Area::SaveMsg(int mode, GMsg* msg) {
|
||||
}
|
||||
|
||||
// Translate softcr to configured char
|
||||
if(EDIT->SoftCrXlat()) {
|
||||
if (adat->usesoftcrxlat && EDIT->SoftCrXlat())
|
||||
{
|
||||
strchg(msg->by, SOFTCR, EDIT->SoftCrXlat());
|
||||
strchg(msg->to, SOFTCR, EDIT->SoftCrXlat());
|
||||
strchg(msg->realby, SOFTCR, EDIT->SoftCrXlat());
|
||||
|
@ -311,6 +311,7 @@ struct AreaData {
|
||||
bool usearea;
|
||||
int usefwd;
|
||||
Node username;
|
||||
bool usesoftcrxlat;
|
||||
bool usetzutc;
|
||||
IAdr whoto;
|
||||
Path wtpl;
|
||||
|
@ -99,6 +99,7 @@ enum {
|
||||
GRP_USEAREA,
|
||||
GRP_USEFWD,
|
||||
GRP_USERNAME,
|
||||
GRP_USESOFTCRXLAT,
|
||||
GRP_USETZUTC,
|
||||
GRP_VIEWHIDDEN,
|
||||
GRP_VIEWKLUDGE,
|
||||
|
Reference in New Issue
Block a user