2000-02-25 11:04:07 +00:00
|
|
|
|
|
|
|
// ------------------------------------------------------------------
|
|
|
|
// GoldED+
|
|
|
|
// Copyright (C) 1990-1999 Odinn Sorensen
|
|
|
|
// Copyright (C) 1999-2000 Alexander S. Aganichev
|
|
|
|
// ------------------------------------------------------------------
|
|
|
|
// This program is free software; you can redistribute it and/or
|
|
|
|
// modify it under the terms of the GNU General Public License as
|
|
|
|
// published by the Free Software Foundation; either version 2 of the
|
|
|
|
// License, or (at your option) any later version.
|
|
|
|
//
|
|
|
|
// This program is distributed in the hope that it will be useful,
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
// General Public License for more details.
|
|
|
|
//
|
|
|
|
// You should have received a copy of the GNU General Public License
|
|
|
|
// along with this program; if not, write to the Free Software
|
|
|
|
// Foundation, Inc., 59 Temple Place, Suite 330, Boston,
|
|
|
|
// MA 02111-1307 USA
|
|
|
|
// ------------------------------------------------------------------
|
|
|
|
// $Id$
|
|
|
|
// ------------------------------------------------------------------
|
|
|
|
// The main GoldED configuration structure.
|
|
|
|
// ------------------------------------------------------------------
|
2006-05-13 16:15:35 +00:00
|
|
|
#ifndef __GECFGG__H
|
|
|
|
#define __GECFGG__H
|
2000-02-25 11:04:07 +00:00
|
|
|
|
|
|
|
#include <list>
|
2006-05-13 16:15:35 +00:00
|
|
|
#include <gmo_msg.h>
|
|
|
|
#include <geall.h>
|
2006-05-14 14:33:21 +00:00
|
|
|
#include "gekeys.h"
|
2000-02-25 11:04:07 +00:00
|
|
|
|
2010-03-28 17:22:40 +00:00
|
|
|
#define AREALISTSORTSIZE 20 // Size of the "arealistsort" variable
|
|
|
|
|
2000-02-25 11:04:07 +00:00
|
|
|
// ------------------------------------------------------------------
|
2006-02-04 18:26:29 +00:00
|
|
|
// en_gswitches{} enumeration elements shoulds be complemented with
|
|
|
|
// globalbool[] array elements (see gccfgg0.cpp).
|
2000-02-25 11:04:07 +00:00
|
|
|
enum en_gswitches {
|
|
|
|
internetlookup,
|
|
|
|
kludgechrs,
|
|
|
|
mouse,
|
|
|
|
displocalhigh,
|
|
|
|
arealistgroupid,
|
|
|
|
askdelorig,
|
|
|
|
lookuplocal,
|
|
|
|
dispstatusline,
|
|
|
|
screenusebios,
|
|
|
|
highlightunread,
|
|
|
|
akamatchlocal,
|
|
|
|
fidonullfix,
|
|
|
|
dispautonext,
|
|
|
|
lookupuserbase,
|
|
|
|
areakeeplast,
|
|
|
|
filelistpagebar,
|
|
|
|
printformfeed,
|
|
|
|
arealistnos,
|
|
|
|
disppagebar,
|
|
|
|
internetreply,
|
|
|
|
arealistpagebar,
|
|
|
|
usemsgid,
|
|
|
|
lookupnet,
|
2001-03-29 18:55:31 +00:00
|
|
|
jamsmapihw,
|
2000-02-25 11:04:07 +00:00
|
|
|
squishdirect,
|
|
|
|
fidohwmarks,
|
|
|
|
msglistpagebar,
|
|
|
|
beepnoises,
|
|
|
|
screenshadows,
|
|
|
|
emptytearline,
|
|
|
|
menudropmsg,
|
|
|
|
beeplocalmsg,
|
|
|
|
statuslineclock,
|
|
|
|
twitto,
|
|
|
|
keybdefaults,
|
|
|
|
displistwrap,
|
|
|
|
quotespacing,
|
|
|
|
lookupecho,
|
|
|
|
keybext,
|
|
|
|
beepcomment,
|
|
|
|
rcvdisablescfm,
|
|
|
|
quoteblank,
|
|
|
|
keybclear,
|
|
|
|
dosprompt,
|
|
|
|
areacatchupread,
|
|
|
|
formfeedseparator,
|
|
|
|
useflags,
|
|
|
|
jamharddelete,
|
|
|
|
disprealmsgno,
|
|
|
|
frqwazoo,
|
|
|
|
msglistviewsubj,
|
|
|
|
akamatchecho,
|
|
|
|
areafilegroups,
|
|
|
|
areaautonext,
|
|
|
|
timeoutsavemsg,
|
|
|
|
nodelistwarn,
|
|
|
|
akamatchnet,
|
|
|
|
|
|
|
|
gswitches_last
|
|
|
|
};
|
|
|
|
|
|
|
|
class gswitches {
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
inline bool get(en_gswitches what) { return cfg[what]; }
|
|
|
|
inline void set(en_gswitches what, bool value) { cfg[what] = value; }
|
|
|
|
|
|
|
|
bool handle(word crc, const char* value);
|
|
|
|
|
|
|
|
gswitches() { for(uint i=0; i<gswitches_last; i++) {cfg[i] = false; } };
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
|
|
|
bool cfg[gswitches_last];
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2006-05-13 16:15:35 +00:00
|
|
|
// ------------------------------------------------------------------
|
|
|
|
|
|
|
|
struct Win {
|
|
|
|
int btype; // Border type
|
|
|
|
vattr c[16]; // Colors
|
|
|
|
int w; // Window handle
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
// ------------------------------------------------------------------
|
|
|
|
// Combined name/address structure
|
|
|
|
|
|
|
|
struct Node
|
|
|
|
{
|
|
|
|
Name name;
|
|
|
|
Addr addr;
|
|
|
|
Node &operator=(const Node &a) { strxcpy(name, a.name, ARRAYSIZE(name)); addr=a.addr; return *this; }
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
// ------------------------------------------------------------------
|
|
|
|
// Filename aliases
|
|
|
|
|
|
|
|
struct FileAlias {
|
|
|
|
char alias[9];
|
|
|
|
Path file;
|
|
|
|
FileAlias& operator=(const FileAlias& a) {
|
|
|
|
strxcpy(alias, a.alias, sizeof(alias));
|
|
|
|
strxcpy(file, a.file, sizeof(Path));
|
|
|
|
return *this;
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
// ------------------------------------------------------------------
|
|
|
|
// Template typedefs
|
|
|
|
|
|
|
|
struct Tpl {
|
|
|
|
Path file;
|
|
|
|
Desc name;
|
|
|
|
Addr match;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
// ------------------------------------------------------------------
|
|
|
|
// Address macro record
|
|
|
|
|
|
|
|
struct AddrMacro {
|
|
|
|
char macro[20];
|
|
|
|
IAdr name;
|
|
|
|
Addr addr;
|
|
|
|
Subj subj;
|
|
|
|
Attr attr;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
// ------------------------------------------------------------------
|
|
|
|
|
|
|
|
struct AkaMatchG {
|
|
|
|
Addr mask;
|
|
|
|
Addr aka;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
// ------------------------------------------------------------------
|
|
|
|
|
|
|
|
struct MailList {
|
|
|
|
Echo echoid;
|
|
|
|
IAdr sender;
|
|
|
|
IAdr contribution;
|
|
|
|
bool sender_is_pattern;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
// ------------------------------------------------------------------
|
|
|
|
|
|
|
|
struct FrqNodeMap {
|
|
|
|
Addr from;
|
|
|
|
Addr to;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2000-02-25 11:04:07 +00:00
|
|
|
// ------------------------------------------------------------------
|
|
|
|
|
|
|
|
class CfgGed {
|
|
|
|
|
|
|
|
public:
|
|
|
|
CfgGed();
|
|
|
|
~CfgGed();
|
|
|
|
|
|
|
|
Path goldcfg;
|
|
|
|
Stamp helpcfg;
|
|
|
|
Path helpged;
|
|
|
|
Path keyscfg;
|
|
|
|
Path langcfg;
|
|
|
|
Path xlatged;
|
|
|
|
Path goldlast;
|
|
|
|
Path golduser;
|
|
|
|
|
|
|
|
Grp grp;
|
|
|
|
|
|
|
|
int cfgeditquotemargin;
|
|
|
|
|
2001-07-16 20:35:42 +00:00
|
|
|
std::list<CmdKey> cmdkey;
|
|
|
|
std::vector<Macro> macro;
|
2000-02-25 11:04:07 +00:00
|
|
|
|
|
|
|
int addressbookadd;
|
|
|
|
int addresslookupfirst;
|
2001-07-16 20:35:42 +00:00
|
|
|
std::vector<AddrMacro> addressmacro;
|
2000-02-25 11:04:07 +00:00
|
|
|
Path adeptxbbspath;
|
|
|
|
int adeptxbbsuserno;
|
2001-07-16 20:35:42 +00:00
|
|
|
std::vector<gaka> aka;
|
|
|
|
std::vector<AkaMatchG> akamatch;
|
2005-09-21 10:02:53 +00:00
|
|
|
int akamatchfromto;
|
2005-09-27 18:26:13 +00:00
|
|
|
bool akamatchmanually;
|
2000-02-25 11:04:07 +00:00
|
|
|
int areaautoid;
|
|
|
|
Echo areacfmreplyto;
|
|
|
|
bool areacopydirect;
|
|
|
|
Echo areacopyto;
|
|
|
|
bool areacopyaddid;
|
|
|
|
gstrarray areaexcl;
|
|
|
|
bool areaforwarddirect;
|
|
|
|
int areafilegroups; // areausegroups;
|
|
|
|
bool areafreqdirect;
|
|
|
|
Echo areafreqto;
|
|
|
|
gstrarray areaincl;
|
|
|
|
gstrarray areaisemail;
|
|
|
|
gstrarray areaisnews;
|
|
|
|
int arealistechomax;
|
|
|
|
char arealistformat[80];
|
2001-07-03 04:27:54 +00:00
|
|
|
char arealistgrouporder[256];
|
2010-03-28 17:22:40 +00:00
|
|
|
char arealistsort[AREALISTSORTSIZE];
|
2000-02-25 11:04:07 +00:00
|
|
|
int arealisttype;
|
|
|
|
Path areapath;
|
|
|
|
gstrarray areapmscan;
|
|
|
|
gstrarray areapmscanexcl;
|
|
|
|
gstrarray areapmscanincl;
|
|
|
|
int areareadonly;
|
2005-10-30 02:16:01 +00:00
|
|
|
Echo arearecyclebin;
|
2006-06-15 01:55:34 +00:00
|
|
|
bool arearecyclebinask;
|
2001-07-16 20:35:42 +00:00
|
|
|
std::vector<EchoRen> arearename;
|
2000-02-25 11:04:07 +00:00
|
|
|
bool areareplydirect;
|
|
|
|
Echo areareplyto;
|
|
|
|
gstrarray areascan;
|
|
|
|
gstrarray areascanexcl;
|
|
|
|
gstrarray areascanincl;
|
|
|
|
char areascansort[20];
|
|
|
|
Echo areastart; // startecho;
|
|
|
|
int areatypeorder[17];
|
|
|
|
Echo areayouwroteto;
|
|
|
|
Path attachpath;
|
|
|
|
Attr attribsattach;
|
|
|
|
Attr attribscc; // ccattrib;
|
|
|
|
Attr attribscfm; // cfmattrib;
|
|
|
|
Attr attribsecho; // echoattrib;
|
|
|
|
Attr attribsemail;
|
|
|
|
Attr attribsfrq;
|
|
|
|
Attr attribslocal; // localattrib;
|
|
|
|
Attr attribsnet; // netattrib;
|
|
|
|
Attr attribsnews;
|
|
|
|
int beepfactor;
|
|
|
|
int beepyourmail;
|
|
|
|
int carboncopylist; // cclist;
|
|
|
|
Win color[16];
|
2006-01-13 14:26:31 +00:00
|
|
|
std::vector< std::pair<Node, vattr> > colorname;
|
2000-02-25 11:04:07 +00:00
|
|
|
Path confirmfile; // goldedcfm;
|
|
|
|
int confirmresponse;
|
|
|
|
Path cookiepath;
|
|
|
|
int crosspost;
|
|
|
|
int crosspostlist; // xplist;
|
|
|
|
int ctrlinfoecho;
|
|
|
|
int ctrlinfoemail;
|
|
|
|
int ctrlinfolocal;
|
|
|
|
int ctrlinfonet;
|
|
|
|
int ctrlinfonews;
|
|
|
|
int dispareano;
|
|
|
|
int dispattachsize;
|
2005-10-26 08:06:02 +00:00
|
|
|
int disphdrlocation;
|
2000-02-25 11:04:07 +00:00
|
|
|
PosLen disphdrdateset;
|
|
|
|
PosLen disphdrnameset;
|
|
|
|
PosLen disphdrnodeset;
|
|
|
|
int displistcursor;
|
|
|
|
int dispmargin; // rightmargin;
|
2005-10-04 20:58:47 +00:00
|
|
|
bool disppmfirst;
|
2000-02-25 11:04:07 +00:00
|
|
|
int dispmsgsize;
|
2006-02-04 18:16:51 +00:00
|
|
|
bool dispsoftcr;
|
2000-02-25 11:04:07 +00:00
|
|
|
uint disptabsize; // tabsize;
|
|
|
|
bool encodeemailheaders;
|
2001-07-16 20:35:42 +00:00
|
|
|
std::vector<GEvent> event;
|
2007-01-08 09:48:18 +00:00
|
|
|
uint32_t externoptions;
|
2001-07-16 20:35:42 +00:00
|
|
|
std::vector<ExtUtil> externutil;
|
2000-02-25 11:04:07 +00:00
|
|
|
Ezycom ezycom;
|
|
|
|
int ezycomuserno;
|
|
|
|
Path fidolastread; // lastread;
|
2003-12-10 08:35:16 +00:00
|
|
|
const char *fidomsgtype;
|
2000-02-25 11:04:07 +00:00
|
|
|
Path fidouserlist;
|
|
|
|
int fidouserno; // lastreaduser;
|
2001-07-16 20:35:42 +00:00
|
|
|
std::vector<FileAlias> filealias;
|
2000-02-25 11:04:07 +00:00
|
|
|
bool forcetemplate;
|
|
|
|
gstrarray frqext;
|
2001-07-16 20:35:42 +00:00
|
|
|
std::vector<FrqNodeMap> frqnodemap;
|
2000-02-25 11:04:07 +00:00
|
|
|
int frqoptions;
|
|
|
|
bool gedhandshake;
|
|
|
|
Path goldbasepath;
|
|
|
|
Path goldbasesyspath;
|
|
|
|
int goldbaseuserno;
|
|
|
|
Path goldpath;
|
|
|
|
bool hidestylies;
|
2001-11-06 08:27:18 +00:00
|
|
|
bool highlighturls;
|
2000-02-25 11:04:07 +00:00
|
|
|
Path hudsonpath;
|
|
|
|
long hudsonsizewarn;
|
|
|
|
Path hudsonsyspath;
|
|
|
|
int hudsonuserno;
|
|
|
|
bool ignorecharset;
|
|
|
|
char importbegin[80];
|
|
|
|
char importend[80];
|
|
|
|
Path inboundpath;
|
|
|
|
Path inputfile;
|
|
|
|
bool intensecolors;
|
2007-06-21 19:03:18 +00:00
|
|
|
bool transparentcolors;
|
2000-02-25 11:04:07 +00:00
|
|
|
IAdr internetaddress;
|
|
|
|
char internetdomain[96];
|
|
|
|
Node internetgate;
|
2001-02-24 18:37:28 +00:00
|
|
|
int internetgateexp;
|
2000-02-25 11:04:07 +00:00
|
|
|
bool internetmsgid;
|
2001-11-17 21:28:10 +00:00
|
|
|
int internetrfcbody;
|
2001-11-06 08:27:18 +00:00
|
|
|
bool internetviagate;
|
2000-02-25 11:04:07 +00:00
|
|
|
Invalidate invalidate;
|
|
|
|
Path jampath;
|
|
|
|
int keybmode;
|
|
|
|
char keybstack[80]; // keybuf[80];
|
|
|
|
gstrarray kludge;
|
2005-10-31 11:05:16 +00:00
|
|
|
bool latin2local;
|
|
|
|
char latintolocal[256];
|
2000-02-25 11:04:07 +00:00
|
|
|
Path loadlanguage;
|
2005-10-02 12:17:28 +00:00
|
|
|
GStrBag2 locationalias;
|
2005-10-12 22:11:35 +00:00
|
|
|
std::string locationdelimiter;
|
2000-02-25 11:04:07 +00:00
|
|
|
Path logfile; // goldedlog;
|
|
|
|
int logformat;
|
2001-07-16 20:35:42 +00:00
|
|
|
std::vector<MailList> mailinglist;
|
|
|
|
std::vector< std::pair<std::string, std::string> > mappath;
|
2000-02-25 11:04:07 +00:00
|
|
|
int menumarked;
|
2005-10-05 01:40:16 +00:00
|
|
|
int menunextarea;
|
2000-02-25 11:04:07 +00:00
|
|
|
int msglistdate;
|
|
|
|
bool msglistfast;
|
|
|
|
bool msglistfirst;
|
|
|
|
bool msglistheader;
|
|
|
|
bool msglistwidesubj;
|
|
|
|
Path namesfile;
|
|
|
|
Name nickname;
|
2000-12-19 09:02:51 +00:00
|
|
|
Name netname;
|
2000-02-25 11:04:07 +00:00
|
|
|
Path nodepath;
|
|
|
|
Path nodepathfd;
|
|
|
|
Path nodepathv7;
|
|
|
|
INam organization;
|
|
|
|
gstrarray origin;
|
|
|
|
int originno;
|
|
|
|
Path outboundpath;
|
|
|
|
Path outputfile;
|
|
|
|
Path pathreportfile;
|
|
|
|
Path pcboardpath;
|
|
|
|
int pcboarduserno;
|
2001-11-06 08:27:18 +00:00
|
|
|
int peekurloptions;
|
2000-02-25 11:04:07 +00:00
|
|
|
int personalmail;
|
|
|
|
GPlay play;
|
|
|
|
Path printdevice; // p_device;
|
|
|
|
char printinit[80]; // p_init[80];
|
|
|
|
int printlength; // p_length;
|
|
|
|
int printmargin; // p_margin;
|
|
|
|
char printreset[80]; // p_reset[80];
|
|
|
|
Path quotebuffile;
|
|
|
|
int quotebufmode;
|
|
|
|
char quotechars[11];
|
|
|
|
uint quotectrl;
|
|
|
|
int quotemargin;
|
|
|
|
char quotestring[10];
|
2000-12-22 00:14:04 +00:00
|
|
|
char quotestops[41];
|
2000-02-25 11:04:07 +00:00
|
|
|
bool quotewraphard;
|
2005-10-16 03:41:29 +00:00
|
|
|
bool quoteusenewai;
|
2000-02-25 11:04:07 +00:00
|
|
|
int ra2usersbbs; // RA2;
|
|
|
|
int replylink;
|
2005-09-20 18:57:30 +00:00
|
|
|
bool replylinkfloat;
|
2000-02-25 11:04:07 +00:00
|
|
|
int replylinklist;
|
2005-09-20 18:57:30 +00:00
|
|
|
bool replylinkshowalways;
|
2000-02-25 11:04:07 +00:00
|
|
|
gstrarray robotname;
|
2006-03-11 17:04:06 +00:00
|
|
|
#if defined(GCFG_SPELL_INCLUDED)
|
2005-11-28 20:06:38 +00:00
|
|
|
int scheckerenabled;
|
2006-03-11 17:04:06 +00:00
|
|
|
char scheckerdeflang[100];
|
2005-11-28 20:06:38 +00:00
|
|
|
Path scheckeruserdic;
|
2006-03-11 17:04:06 +00:00
|
|
|
Path scheckerdicpath;
|
2005-11-28 20:06:38 +00:00
|
|
|
#endif
|
2000-02-25 11:04:07 +00:00
|
|
|
int screenblanker; // blanktime;
|
|
|
|
int screenblankertype;
|
|
|
|
int screenmaxcol; // maxcols;
|
|
|
|
int screenmaxrow; // maxrows;
|
|
|
|
int screenpalette[17];
|
|
|
|
int screensize;
|
|
|
|
INam searchfor;
|
|
|
|
Semaphore semaphore;
|
2003-04-03 14:28:59 +00:00
|
|
|
Path seqdir;
|
|
|
|
int seqmsgid;
|
2005-10-20 21:41:32 +00:00
|
|
|
uint32_t seqoutrun;
|
2000-02-25 11:04:07 +00:00
|
|
|
int sharemode; // share;
|
|
|
|
bool showdeleted;
|
|
|
|
Path soundpath;
|
|
|
|
Echo soupbadmsgs;
|
|
|
|
Echo soupemail;
|
|
|
|
int soupexportmargin;
|
|
|
|
Path soupexportpath;
|
|
|
|
Path soupimportpath;
|
|
|
|
Path soupnewsrcfile;
|
|
|
|
Path soupreplylinker;
|
|
|
|
char soupreplyto[60];
|
|
|
|
Path souptosslog;
|
|
|
|
int squishscan;
|
|
|
|
int squishuserno;
|
|
|
|
Path squishuserpath;
|
|
|
|
int statuslinehelp;
|
2003-06-09 05:47:39 +00:00
|
|
|
bool striphtml;
|
2000-02-25 11:04:07 +00:00
|
|
|
char stylecodepunct[41];
|
|
|
|
char stylecodestops[41];
|
|
|
|
gstrarray tagline;
|
|
|
|
int taglineno;
|
|
|
|
char taglinechar;
|
|
|
|
bool taglinesupport;
|
|
|
|
char tasktitle[60];
|
|
|
|
Tear tearline;
|
|
|
|
bool titlestatus;
|
2006-02-21 09:30:48 +00:00
|
|
|
GStrBag2 translate;
|
2001-07-16 20:35:42 +00:00
|
|
|
std::vector<Tpl> tpl;
|
2000-02-25 11:04:07 +00:00
|
|
|
int tplno;
|
|
|
|
bool templatematch;
|
|
|
|
Path templatepath;
|
|
|
|
Path temppath;
|
|
|
|
int timeout;
|
|
|
|
int twitmode; // showtwits;
|
2001-07-16 20:35:42 +00:00
|
|
|
std::vector<Node> twitname;
|
2000-02-25 11:04:07 +00:00
|
|
|
gstrarray twitsubj;
|
2001-12-17 15:44:55 +00:00
|
|
|
std::vector< std::pair<std::string, std::string> > unpacker;
|
2007-01-08 09:48:18 +00:00
|
|
|
std::vector<UrlHandler> urlhandler;
|
2001-10-07 08:24:26 +00:00
|
|
|
bool usearea;
|
2000-02-25 11:04:07 +00:00
|
|
|
bool usecharset;
|
|
|
|
int usefwd;
|
|
|
|
bool useintl;
|
|
|
|
bool usepid;
|
|
|
|
Path userlistfile; // goldedlst;
|
2001-07-16 20:35:42 +00:00
|
|
|
std::vector<Node> username;
|
2000-02-25 11:04:07 +00:00
|
|
|
int usernameno;
|
2005-10-04 22:43:15 +00:00
|
|
|
bool usesoftcrxlat;
|
2000-02-25 11:04:07 +00:00
|
|
|
bool usestylies;
|
|
|
|
bool usetzutc;
|
|
|
|
Path uudecodepath;
|
|
|
|
bool viewhidden;
|
|
|
|
bool viewkludge;
|
|
|
|
bool viewquote;
|
|
|
|
Name whoto;
|
|
|
|
int wildcatuserno;
|
2003-06-09 05:47:39 +00:00
|
|
|
int writeheader;
|
2001-07-16 20:35:42 +00:00
|
|
|
std::string wtpl;
|
|
|
|
std::vector<Map> xlatcharset;
|
|
|
|
std::vector<Map> xlatescset;
|
2005-12-27 13:40:47 +00:00
|
|
|
std::vector< std::pair<std::string, gstrarray> > xlatcharsetalias;
|
2000-02-25 11:04:07 +00:00
|
|
|
char xlatexport[17]; // exportcharset[17];
|
|
|
|
char xlatimport[17]; // localcharset[17];
|
|
|
|
char xlatlocalset[17];
|
|
|
|
Path xlatpath;
|
|
|
|
int zonegating;
|
|
|
|
|
|
|
|
gswitches switches;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// ------------------------------------------------------------------
|
|
|
|
|
|
|
|
class GSaveUtil : public GStrBag2 {
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
void Add(int n, char* s) { GStrBag2::Add((void*)&n, sizeof(n), s); }
|
|
|
|
|
|
|
|
int Number() { return *(int*)Current1(); }
|
|
|
|
const char* Text() { return Current2(); }
|
|
|
|
|
|
|
|
int Number(int i) { return *(int*)Index1(i); }
|
|
|
|
const char* Text(int i) { return Index2(i); }
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
// ------------------------------------------------------------------
|
|
|
|
|
|
|
|
class GEditTrigger : public GStrBag2 {
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
const char* Trigger() { return Current1(); }
|
|
|
|
const char* Text() { return Current2(); }
|
|
|
|
|
|
|
|
const char* Trigger(int i) { return Index1(i); }
|
|
|
|
const char* Text(int i) { return Index2(i); }
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
// ------------------------------------------------------------------
|
|
|
|
|
|
|
|
class GoldedCfgEdit {
|
|
|
|
|
|
|
|
protected:
|
|
|
|
|
|
|
|
// -----------------------------------------------------------------
|
|
|
|
// Configuration data
|
|
|
|
|
|
|
|
struct {
|
|
|
|
|
|
|
|
// Boolean values
|
|
|
|
uint autoattach : 1;
|
|
|
|
uint crlfterm : 1;
|
|
|
|
uint fieldclear : 1;
|
|
|
|
uint hardlines : 1;
|
|
|
|
uint hardterm : 1;
|
|
|
|
uint headerattrs : 1;
|
|
|
|
uint internal : 1;
|
|
|
|
uint menu : 1;
|
|
|
|
uint mixcase : 1;
|
|
|
|
uint savemenu : 1;
|
|
|
|
|
|
|
|
// Multi values
|
|
|
|
uint changedate;
|
|
|
|
int autosave;
|
|
|
|
char charpara;
|
|
|
|
char charspace;
|
|
|
|
int hdrnamepos;
|
|
|
|
int hdrnamelen;
|
|
|
|
int hdrnodepos;
|
|
|
|
int hdrnodelen;
|
|
|
|
int headerfirst;
|
|
|
|
int quotemargin;
|
|
|
|
int replyre;
|
|
|
|
char softcrxlat;
|
|
|
|
int undelete;
|
|
|
|
|
|
|
|
// String handles
|
|
|
|
int external;
|
|
|
|
int file;
|
|
|
|
int hardline;
|
|
|
|
int spellchecker;
|
|
|
|
} cfg;
|
2005-09-19 17:29:29 +00:00
|
|
|
|
2000-02-25 11:04:07 +00:00
|
|
|
// -----------------------------------------------------------------
|
|
|
|
// String bag
|
|
|
|
|
|
|
|
gstrarray str;
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
// -----------------------------------------------------------------
|
|
|
|
// Configuration data
|
|
|
|
|
|
|
|
GEditTrigger Comment;
|
|
|
|
GEditTrigger Completion;
|
|
|
|
GSaveUtil SaveUtil;
|
|
|
|
|
|
|
|
|
|
|
|
// -----------------------------------------------------------------
|
|
|
|
// Constructor/destructor
|
|
|
|
|
|
|
|
GoldedCfgEdit();
|
|
|
|
|
|
|
|
// -----------------------------------------------------------------
|
|
|
|
// Return values
|
|
|
|
|
|
|
|
bool AutoAttach() { return cfg.autoattach; }
|
|
|
|
int AutoSave() { return cfg.autosave; }
|
|
|
|
int ChangeDate() { return cfg.changedate; }
|
|
|
|
char CharPara() { return cfg.charpara; }
|
|
|
|
char CharSpace() { return cfg.charspace; }
|
|
|
|
bool CrLfTerm() { return cfg.crlfterm; }
|
|
|
|
const char* External() { return str[cfg.external].c_str(); }
|
|
|
|
bool FieldClear() { return cfg.fieldclear; }
|
|
|
|
const char* File() { return str[cfg.file].c_str(); }
|
|
|
|
const char* HardLine() { return str[cfg.hardline].c_str(); }
|
|
|
|
bool HardLines() { return cfg.hardlines; }
|
|
|
|
bool HardTerm() { return cfg.hardterm; }
|
|
|
|
int HdrNamePos() { return cfg.hdrnamepos; }
|
|
|
|
int HdrNameLen() { return cfg.hdrnamelen; }
|
|
|
|
int HdrNodePos() { return cfg.hdrnodepos; }
|
|
|
|
int HdrNodeLen() { return cfg.hdrnodelen; }
|
|
|
|
bool HeaderAttrs() { return cfg.headerattrs; }
|
|
|
|
int HeaderFirst() { return cfg.headerfirst; }
|
|
|
|
bool Internal() { return cfg.internal; }
|
|
|
|
bool Menu() { return cfg.menu; }
|
|
|
|
bool MixCase() { return cfg.mixcase; }
|
|
|
|
int QuoteMargin() { return cfg.quotemargin; }
|
|
|
|
int ReplyRe() { return cfg.replyre; }
|
|
|
|
bool SaveMenu() { return cfg.savemenu; }
|
|
|
|
char SoftCrXlat() { return cfg.softcrxlat; }
|
|
|
|
const char* SpellChecker() { return str[cfg.spellchecker].c_str(); }
|
|
|
|
int UnDelete() { return cfg.undelete; }
|
|
|
|
|
|
|
|
// -----------------------------------------------------------------
|
|
|
|
// Set values
|
|
|
|
|
|
|
|
void AutoAttach(bool s) { cfg.autoattach = s; }
|
|
|
|
void AutoSave(int s) { cfg.autosave = s; }
|
|
|
|
void ChangeDate(int s) { cfg.changedate = s; }
|
|
|
|
void CharPara(char s) { cfg.charpara = s; }
|
|
|
|
void CharSpace(char s) { cfg.charspace = s; }
|
|
|
|
void CrLfTerm(bool s) { cfg.crlfterm = s; }
|
|
|
|
void External(char* s) { str[cfg.external] = s; }
|
|
|
|
void FieldClear(bool s) { cfg.fieldclear = s; }
|
|
|
|
void File(char* s) { str[cfg.file] = s; }
|
|
|
|
void HardLine(char* s) { str[cfg.hardline] = s; }
|
|
|
|
void HardLines(bool s) { cfg.hardlines = s; }
|
|
|
|
void HardTerm(bool s) { cfg.hardterm = s; }
|
|
|
|
void HdrNamePos(int p) { cfg.hdrnamepos = p; }
|
|
|
|
void HdrNameLen(int l) { cfg.hdrnamelen = l; }
|
|
|
|
void HdrNodePos(int p) { cfg.hdrnodepos = p; }
|
|
|
|
void HdrNodeLen(int l) { cfg.hdrnodelen = l; }
|
|
|
|
void HeaderAttrs(bool s) { cfg.headerattrs = s; }
|
|
|
|
void HeaderFirst(int s) { cfg.headerfirst = s; }
|
|
|
|
void Internal(bool s) { cfg.internal = s; }
|
|
|
|
void Menu(bool s) { cfg.menu = s; }
|
|
|
|
void MixCase(bool s) { cfg.mixcase = s; }
|
|
|
|
void QuoteMargin(int s) { cfg.quotemargin = s; }
|
|
|
|
void ReplyRe(int s) { cfg.replyre = s; }
|
|
|
|
void SaveMenu(bool s) { cfg.savemenu = s; }
|
|
|
|
void SoftCrXlat(char s) { cfg.softcrxlat = s; }
|
|
|
|
void SpellChecker(char* s) { str[cfg.spellchecker] = s; }
|
|
|
|
void UnDelete(int s) { cfg.undelete = s; }
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
// ------------------------------------------------------------------
|
|
|
|
|
2006-05-13 16:15:35 +00:00
|
|
|
#endif
|