DispHdrLocation settings changed to No/Yes/Right/Center

This commit is contained in:
Ianos Gnatiuc 2005-10-26 08:06:02 +00:00
parent f97fff8524
commit 58f5e0332f
7 changed files with 14 additions and 6 deletions

View File

@ -247,7 +247,7 @@ DispPmFirst Yes
// Nodelist is required for this feature. If some nodelist is omitted then
// Golded+ will display warning at reading each message.
// (Default:No)
;DispHdrLocation No
;DispHdrLocation No/Yes/Right/Center
DispHdrLocation Yes
// This separate sity names in netmail areas

View File

@ -220,7 +220,7 @@ DispPmFirst Yes
// ­®¤«¨á⮢/¯®©­â«¨á⮢ ®âáãâáâ¢ã¥â, Golded+ ¡ã¤¥â ¯à¨ ¯à®á¬®âॠª ¦¤®£®
// á®®¡é¥­¨ï ¢ë¢®¤¨âì ¨­ä®à¬ æ¨î ®¡ ®âáãâᢨ¨ ­®¤«¨áâ .
// (‡­ ç¥­¨¥ ¯® 㬮«ç ­¨î: No)
;DispHdrLocation No
;DispHdrLocation No/Yes/Right/Center
DispHdrLocation Yes
// <20>⨬ ¬®¦­® § ¤ âì à §¤¥«¨â¥«ì ¬¥¦¤ã £®à®¤ ¬¨ ®â¯à ¢¨â¥«ï ¨ ¯®«ãç â¥«ï

View File

@ -10,6 +10,8 @@ ______________________________________________________________________
Notes for GoldED+ 1.1.5, /snapshot/
______________________________________________________________________
+ DispHdrLocation settings changed to No/Yes/Right/Center. Right == Yes.
+ Added new macros: @pad{FAN}{T}
Where: F - a fill char, that will be used when length(T) < N

View File

@ -712,7 +712,7 @@ CfgGed::CfgGed() {
ctrlinfonews = 0;
dispareano = true;
dispattachsize = ATTACH_KBYTES;
disphdrlocation = false;
disphdrlocation = NO;
displistcursor = NO;
dispmargin = 0;
dispmsgsize = DISPMSGSIZE_BYTES;

View File

@ -451,7 +451,12 @@ void CfgDisphdrdateset() {
void CfgDisphdrlocation()
{
CFG->disphdrlocation = make_bool(GetYesno(val));
if (strieql("RIGHT", val))
CFG->disphdrlocation = TRIGHT;
else if (strieql("CENTER", val))
CFG->disphdrlocation = TCENTER;
else
CFG->disphdrlocation = GetYesno(val) ? TRIGHT : NO;
}
// ------------------------------------------------------------------

View File

@ -201,7 +201,7 @@ public:
int ctrlinfonews;
int dispareano;
int dispattachsize;
bool disphdrlocation;
int disphdrlocation;
PosLen disphdrdateset;
PosLen disphdrnameset;
PosLen disphdrnodeset;

View File

@ -341,7 +341,8 @@ void GMsgHeaderView::Paint() {
if (loc.length())
{
loc += " ";
int pos = window.width() - loc.length() - 1;
int pos = window.width() - loc.length();
pos = (CFG->disphdrlocation == TCENTER) ? pos/2 : pos-1;
window.prints(5, pos, location_color, loc.c_str());
}
}