DispHdrLocation settings changed to No/Yes/Right/Center
This commit is contained in:
parent
f97fff8524
commit
58f5e0332f
@ -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
|
||||
|
@ -220,7 +220,7 @@ DispPmFirst Yes
|
||||
// ®¤«¨á⮢/¯®©â«¨á⮢ ®âáãâáâ¢ã¥â, Golded+ ¡ã¤¥â ¯à¨ ¯à®á¬®âॠª ¦¤®£®
|
||||
// á®®¡é¥¨ï ¢ë¢®¤¨âì ¨ä®à¬ æ¨î ®¡ ®âáãâᢨ¨ ®¤«¨áâ .
|
||||
// (‡ 票¥ ¯® 㬮«ç ¨î: No)
|
||||
;DispHdrLocation No
|
||||
;DispHdrLocation No/Yes/Right/Center
|
||||
DispHdrLocation Yes
|
||||
|
||||
// <20>⨬ ¬®¦® § ¤ âì à §¤¥«¨â¥«ì ¬¥¦¤ã £®à®¤ ¬¨ ®â¯à ¢¨â¥«ï ¨ ¯®«ãç ⥫ï
|
||||
|
@ -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
|
||||
|
@ -712,7 +712,7 @@ CfgGed::CfgGed() {
|
||||
ctrlinfonews = 0;
|
||||
dispareano = true;
|
||||
dispattachsize = ATTACH_KBYTES;
|
||||
disphdrlocation = false;
|
||||
disphdrlocation = NO;
|
||||
displistcursor = NO;
|
||||
dispmargin = 0;
|
||||
dispmsgsize = DISPMSGSIZE_BYTES;
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------
|
||||
|
@ -201,7 +201,7 @@ public:
|
||||
int ctrlinfonews;
|
||||
int dispareano;
|
||||
int dispattachsize;
|
||||
bool disphdrlocation;
|
||||
int disphdrlocation;
|
||||
PosLen disphdrdateset;
|
||||
PosLen disphdrnameset;
|
||||
PosLen disphdrnodeset;
|
||||
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user