disppmfirst config file token

This commit is contained in:
Ianos Gnatiuc 2005-10-04 20:58:47 +00:00
parent 618d220bb9
commit be049cff10
11 changed files with 31 additions and 5 deletions

View File

@ -239,7 +239,12 @@ DISPATTACHSIZE KBYTES
DISPAREANO YES ; Only shows it if available. DISPAREANO YES ; Only shows it if available.
;DISPAREANO ALWAYS ; Will show 0 if there is no board number. ;DISPAREANO ALWAYS ; Will show 0 if there is no board number.
// // Display personal mail first (Yes)
;DispPmFirst No
DispPmFirst Yes
// Display originator's city in delimiter line
// between header and message body. (No)
;DispHdrLocation No ;DispHdrLocation No
DispHdrLocation Yes DispHdrLocation Yes

View File

@ -210,6 +210,10 @@ DispAreaNo Yes ;
;DispAreaNo Always ; <20>®ª §ë¢ âì 0 ¥á«¨ ­¥â "board number". ;DispAreaNo Always ; <20>®ª §ë¢ âì 0 ¥á«¨ ­¥â "board number".
;DispAreaNo No ; <20>¥ ¢ë¢®¤¨âì. ;DispAreaNo No ; <20>¥ ¢ë¢®¤¨âì.
// <20>®ª §ë¢ âì ¨«¨ ­¥â ¯¥àá®­ «ì­ë¥ ¯¨á쬠 ¯¥à¢ë¬¨.
;DispPmFirst No
DispPmFirst Yes
// ‚뢮¤ ¢ ¯®«®áª¥ ¯®¤ 奤¥à®¬ ¨¬¥­¨ £®à®¤  ¨§ ­®¤- ¨ ¯®©­â«¨á⮢. // ‚뢮¤ ¢ ¯®«®áª¥ ¯®¤ 奤¥à®¬ ¨¬¥­¨ £®à®¤  ¨§ ­®¤- ¨ ¯®©­â«¨á⮢.
// …᫨ ¯®¨­â®¢ë©  ¤à¥á ­¥ ­ ©¤¥­, ¡ã¤¥â ¨á¯®«ì§®¢ ­  ¤à¥á ­®¤ë. // …᫨ ¯®¨­â®¢ë©  ¤à¥á ­¥ ­ ©¤¥­, ¡ã¤¥â ¨á¯®«ì§®¢ ­  ¤à¥á ­®¤ë.
// (¯® 㬮«ç ­¨î: No) // (¯® 㬮«ç ­¨î: No)

View File

@ -10,6 +10,9 @@ ______________________________________________________________________
Notes for GoldED+ 1.1.5, /snapshot/ Notes for GoldED+ 1.1.5, /snapshot/
______________________________________________________________________ ______________________________________________________________________
+ Added DISPPMFIRST (yes/no) config file token that enable/disable
displaying first the personal mail in areas.
+ Stylecodes now may be used in random system groups. + Stylecodes now may be used in random system groups.
+ New color config file item: "COLOR HEADER LOCATION". This is used for define + New color config file item: "COLOR HEADER LOCATION". This is used for define

View File

@ -716,6 +716,7 @@ CfgGed::CfgGed() {
displistcursor = NO; displistcursor = NO;
dispmargin = 0; dispmargin = 0;
dispmsgsize = DISPMSGSIZE_BYTES; dispmsgsize = DISPMSGSIZE_BYTES;
disppmfirst = true;
disptabsize = 8; disptabsize = 8;
encodeemailheaders = true; encodeemailheaders = true;
externoptions = EXTUTIL_CLS | EXTUTIL_CURSOR | EXTUTIL_RELOAD | EXTUTIL_PAUSEONERROR | EXTUTIL_KEEPCTRL; externoptions = EXTUTIL_CLS | EXTUTIL_CURSOR | EXTUTIL_RELOAD | EXTUTIL_PAUSEONERROR | EXTUTIL_KEEPCTRL;

View File

@ -132,6 +132,7 @@ const word CRC_DISPLOCALHIGH = 0x1D8B;
const word CRC_DISPMARGIN = 0xC0EC; const word CRC_DISPMARGIN = 0xC0EC;
const word CRC_DISPMSGSIZE = 0xB0E2; const word CRC_DISPMSGSIZE = 0xB0E2;
const word CRC_DISPPAGEBAR = 0x60A4; const word CRC_DISPPAGEBAR = 0x60A4;
const word CRC_DISPPMFIRST = 0x5DFC;
const word CRC_DISPREALMSGNO = 0xE30F; const word CRC_DISPREALMSGNO = 0xE30F;
const word CRC_DISPREPLIESMODE = 0x0099; const word CRC_DISPREPLIESMODE = 0x0099;
const word CRC_DISPSOFTCR = 0x85E9; const word CRC_DISPSOFTCR = 0x85E9;

View File

@ -283,6 +283,7 @@ SwitchD:
case CRC_DISPLISTCURSOR : CfgDisplistcursor (); break; case CRC_DISPLISTCURSOR : CfgDisplistcursor (); break;
case CRC_DISPMARGIN : CfgDispmargin (); break; case CRC_DISPMARGIN : CfgDispmargin (); break;
case CRC_DISPMSGSIZE : CfgDispmsgsize (); break; case CRC_DISPMSGSIZE : CfgDispmsgsize (); break;
case CRC_DISPPMFIRST : CfgDisppmfirst (); break;
case CRC_DISPTABSIZE : CfgDisptabsize (); break; case CRC_DISPTABSIZE : CfgDisptabsize (); break;
default : found = false; default : found = false;
} }

View File

@ -62,6 +62,13 @@ void CfgDispareano() {
// ------------------------------------------------------------------ // ------------------------------------------------------------------
void CfgDisppmfirst() {
CFG->disppmfirst = GetYesno(val);
}
// ------------------------------------------------------------------
void CfgDisptabsize() { void CfgDisptabsize() {
CFG->disptabsize = atoi(val); CFG->disptabsize = atoi(val);

View File

@ -132,6 +132,7 @@ void CfgDisplocalhigh ();
void CfgDispmargin (); void CfgDispmargin ();
void CfgDispmsgsize (); void CfgDispmsgsize ();
void CfgDisppagebar (); void CfgDisppagebar ();
void CfgDisppmfirst ();
void CfgDisprealmsgno (); void CfgDisprealmsgno ();
void CfgDispsoftcr (); void CfgDispsoftcr ();
void CfgDispstatusline (); void CfgDispstatusline ();

View File

@ -207,6 +207,7 @@ public:
PosLen disphdrnodeset; PosLen disphdrnodeset;
int displistcursor; int displistcursor;
int dispmargin; // rightmargin; int dispmargin; // rightmargin;
bool disppmfirst;
int dispmsgsize; int dispmsgsize;
uint disptabsize; // tabsize; uint disptabsize; // tabsize;
bool encodeemailheaders; bool encodeemailheaders;

View File

@ -236,7 +236,8 @@ void Reader() {
AA->Play().Play(); AA->Play().Play();
// Jump to next message. Go to personal mail if any. // Jump to next message. Go to personal mail if any.
if(AA->PMrk.Tags()) { if (CFG->disppmfirst && AA->PMrk.Tags())
{
AA->SetBookmark(AA->lastread()); AA->SetBookmark(AA->lastread());
AA->isreadpm = false; AA->isreadpm = false;
ToggleMarkRead(); ToggleMarkRead();

View File

@ -388,7 +388,8 @@ void PrevArea() {
AA->Open(); AA->Open();
AA->RandomizeData(); AA->RandomizeData();
AA->SetBookmark(AA->lastread()); AA->SetBookmark(AA->lastread());
if(AA->PMrk.Tags()) { if (CFG->disppmfirst && AA->PMrk.Tags())
{
AA->isreadpm = false; AA->isreadpm = false;
ToggleMarkRead(); ToggleMarkRead();
} }
@ -419,11 +420,11 @@ void NextArea() {
AA->Open(); AA->Open();
AA->RandomizeData(); AA->RandomizeData();
AA->SetBookmark(AA->lastread()); AA->SetBookmark(AA->lastread());
if(AA->PMrk.Tags()) { if (CFG->disppmfirst && AA->PMrk.Tags())
{
AA->isreadpm = false; AA->isreadpm = false;
ToggleMarkRead(); ToggleMarkRead();
} }
} }