Added ReadForceDeleteMsg (default is #Del) to the goldkeys.cfg used to delete messages without moving them to AreaRecicleBin.

This commit is contained in:
Ianos Gnatiuc 2006-06-16 05:38:24 +00:00
parent 0ec7b867ee
commit dd8361bf25
10 changed files with 20 additions and 9 deletions

View File

@ -304,6 +304,7 @@ M READcopymoveforward
D READdeletemsg D READdeletemsg
@D READdeletemsg @D READdeletemsg
Del READdeletemsg Del READdeletemsg
#Del READforcedeletemsg ; Don't move to AreaRecycleBin.
; READdirquotemsg ; READdirquotemsg
O READdosshell O READdosshell
@O READdosshell @O READdosshell

View File

@ -308,6 +308,7 @@ M READcopymoveforward
@D READdeletemsg @D READdeletemsg
D READdeletemsg D READdeletemsg
Del READdeletemsg Del READdeletemsg
#Del READforcedeletemsg ; “¤ «¨âě ¬¨­ăď AreaRecycleBin.
@O READdosshell @O READdosshell
O READdosshell O READdosshell
^F10 READdosshell ^F10 READdosshell

View File

@ -10,6 +10,8 @@ _____________________________________________________________________________
‡ ¬Ąâި ¤«ď GoldED+ 1.1.5, /snapshot/ ‡ ¬Ąâި ¤«ď GoldED+ 1.1.5, /snapshot/
_____________________________________________________________________________ _____________________________________________________________________________
+ „®ˇ ˘«Ą­ ReadForceDeleteMsg (Ż® 㬮«ç ­¨î #Del) ˘ goldkeys.cfg ¤«ď 㤠«Ą­¨ď
á®®ˇéĄ­¨© ¬¨­ăď AreaRecicleBin.
! <20>§¬Ą­Ą­ë Ż ŕ ¬Ąâŕë AreaRecycleBin ­  AreaRecycleBin <area> [NoAsk/Ask]. ! <20>§¬Ą­Ą­ë Ż ŕ ¬Ąâŕë AreaRecycleBin ­  AreaRecycleBin <area> [NoAsk/Ask].
NoAsk - ­Ą áŻŕ č¨˘ âě (Ż® 㬮«ç ­¨î) NoAsk - ­Ą áŻŕ č¨˘ âě (Ż® 㬮«ç ­¨î)
€áŞ - áŻŕ č¨˘ âě ŕ §ŕĄčĄ­¨Ą 㤠«¨âě €áŞ - áŻŕ č¨˘ âě ŕ §ŕĄčĄ­¨Ą 㤠«¨âě

View File

@ -10,6 +10,9 @@ ______________________________________________________________________
Notes for GoldED+ 1.1.5, /snapshot/ Notes for GoldED+ 1.1.5, /snapshot/
______________________________________________________________________ ______________________________________________________________________
+ Added ReadForceDeleteMsg (default is #Del) to the goldkeys.cfg used to
delete messages without moving them to AreaRecicleBin.
! Token AreaRecycleBin changed to AreaRecycleBin <area> [NoAsk/Ask] ! Token AreaRecycleBin changed to AreaRecycleBin <area> [NoAsk/Ask]
Default is to not ask. Default is to not ask.

View File

@ -227,6 +227,7 @@ CmdKey DefaultKeyset[] = {
{ Key_A_Z , KK_ReadFindHeader , KT_R }, { Key_A_Z , KK_ReadFindHeader , KT_R },
{ Key_F6 , KK_ReadFindHeader , KT_R }, { Key_F6 , KK_ReadFindHeader , KT_R },
{ Key_A_F6 , KK_ReadFindNext , KT_R }, { Key_A_F6 , KK_ReadFindNext , KT_R },
{ Key_S_Del , KK_ReadForceDeleteMsg , KT_R },
{ Key_S_Tab , KK_ReadGotoBookMark , KT_R }, { Key_S_Tab , KK_ReadGotoBookMark , KT_R },
{ Key_BS , KK_ReadGotoBookMark , KT_R }, { Key_BS , KK_ReadGotoBookMark , KT_R },
{ Key_Lsr , KK_ReadGotoFirstMsg , KT_R }, { Key_Lsr , KK_ReadGotoFirstMsg , KT_R },
@ -808,6 +809,7 @@ tglobalkey globalkeys[] = {
{ CRC_EDITTOUPPER , KK_EditToUpper , KT_E }, // 0xD3DD { CRC_EDITTOUPPER , KK_EditToUpper , KT_E }, // 0xD3DD
{ CRC_FILEASKEXIT , KK_FileAskExit , KT_F }, // 0xD40C { CRC_FILEASKEXIT , KK_FileAskExit , KT_F }, // 0xD40C
{ CRC_EDITBLOCKDOWN , KK_EditBlockDown , KT_E }, // 0xD4E4 { CRC_EDITBLOCKDOWN , KK_EditBlockDown , KT_E }, // 0xD4E4
{ CRC_READFORCEDELETEMSG , KK_ReadForceDeleteMsg , KT_R }, // 0xD57A
{ CRC_READMESSAGELIST , KK_ReadMessageList , KT_R }, // 0xD5D8 { CRC_READMESSAGELIST , KK_ReadMessageList , KT_R }, // 0xD5D8
{ CRC_EDITGOUP , KK_EditGoUp , KT_E }, // 0xD6BA { CRC_EDITGOUP , KK_EditGoUp , KT_E }, // 0xD6BA
{ CRC_EDITDOSSHELL , KK_EditDosShell , KT_E }, // 0xD6C5 { CRC_EDITDOSSHELL , KK_EditDosShell , KT_E }, // 0xD6C5

View File

@ -233,6 +233,7 @@ const word CRC_READFILEREQUEST = 0x0A07;
const word CRC_READFINDALL = 0xEF19; const word CRC_READFINDALL = 0xEF19;
const word CRC_READFINDHEADER = 0x6343; const word CRC_READFINDHEADER = 0x6343;
const word CRC_READFINDNEXT = 0x8082; const word CRC_READFINDNEXT = 0x8082;
const word CRC_READFORCEDELETEMSG = 0xD57A;
const word CRC_READGOTOBOOKMARK = 0x4383; const word CRC_READGOTOBOOKMARK = 0x4383;
const word CRC_READGOTOFIRSTMSG = 0x392F; const word CRC_READGOTOFIRSTMSG = 0x392F;
const word CRC_READGOTOLASTMSG = 0x9E72; const word CRC_READGOTOLASTMSG = 0x9E72;

View File

@ -145,12 +145,12 @@ void Area::DeleteMsg(GMsg* msg, int direction) {
// ------------------------------------------------------------------ // ------------------------------------------------------------------
void Area::DelMsgs(GMsg* msg) void Area::DelMsgs(GMsg* msg, bool force)
{ {
GFTRK("DelMsgs"); GFTRK("DelMsgs");
GMenuDelete MenuDelete; GMenuDelete MenuDelete;
if (CFG->arearecyclebin[0]) if (!force && CFG->arearecyclebin[0])
{ {
int areano = AL.AreaEchoToNo(CFG->arearecyclebin); int areano = AL.AreaEchoToNo(CFG->arearecyclebin);
int currno = AL.AreaIdToNo(CurrArea); int currno = AL.AreaIdToNo(CurrArea);
@ -287,10 +287,10 @@ void TwitDeleteMsg(GMsg* msg) {
// ------------------------------------------------------------------ // ------------------------------------------------------------------
void Area::DelMsg() { void Area::DelMsg(bool force)
{
if(Msgn.Count()) if(Msgn.Count())
DelMsgs(reader_msg); DelMsgs(reader_msg, force);
} }

View File

@ -336,7 +336,7 @@ const gkey KK_ReadQuoteMsg = 0xFF8A;
const gkey KK_ReadReplyMsg = 0xFF8B; const gkey KK_ReadReplyMsg = 0xFF8B;
const gkey KK_ReadSearch = 0xFF8C; const gkey KK_ReadSearch = 0xFF8C;
const gkey KK_ReadSoundkill = 0xFF8D; const gkey KK_ReadSoundkill = 0xFF8D;
// = 0xFE8E; const gkey KK_ReadForceDeleteMsg = 0xFF8E;
const gkey KK_ReadThreadtree = 0xFF8F; const gkey KK_ReadThreadtree = 0xFF8F;
const gkey KK_ReadToggleBookMark = 0xFF90; const gkey KK_ReadToggleBookMark = 0xFF90;
const gkey KK_ReadToggleHexdump = 0xFF91; const gkey KK_ReadToggleHexdump = 0xFF91;

View File

@ -884,13 +884,14 @@ void Reader() {
CopyMoveForward(); CopyMoveForward();
break; break;
case KK_ReadForceDeleteMsg:
case KK_ReadDeleteMsg: case KK_ReadDeleteMsg:
if(AA->attr().r_o()) { if(AA->attr().r_o()) {
GMenuReadonly MenuReadonly; GMenuReadonly MenuReadonly;
if(not MenuReadonly.Run()) if(not MenuReadonly.Run())
break; break;
} }
AA->DelMsg(); AA->DelMsg(reader_keycode == KK_ReadForceDeleteMsg);
break; break;
case KK_ReadMakeUserlist: case KK_ReadMakeUserlist:

View File

@ -488,8 +488,8 @@ public:
void SetBookmark(uint __relno); void SetBookmark(uint __relno);
void DeleteMsg(GMsg* msg, int direction); void DeleteMsg(GMsg* msg, int direction);
void DelMsg(); void DelMsg(bool force = false);
void DelMsgs(GMsg* msg); void DelMsgs(GMsg* msg, bool force = false);
void SigExportlistUpdate(); void SigExportlistUpdate();
void UpdateAreadata(); void UpdateAreadata();