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