Richard Boegli's CnC_Generals_Zero_Hour Fork WIP
This is documentation of Richard Boegil's Zero Hour Fork
 
Loading...
Searching...
No Matches
TransDB Class Reference

#include <TransDB.h>

Inherits DBAttribs.

Public Member Functions

 TransDB (char *name="no name")
 
 ~TransDB ()
 
void InvalidateDialog (LangID langid)
 
void VerifyDialog (LangID langid, void(*cb)(void)=NULL)
 
int ReportDialog (DLGREPORT *report, LangID langid, void(*print)(const char *)=NULL, PMASK pmask=PMASK_ALL)
 
int ReportTranslations (TRNREPORT *report, LangID langid, void(*print)(const char *)=NULL, PMASK pmask=PMASK_ALL)
 
void ReportDuplicates (CBabylonDlg *dlg=NULL)
 
void AddLabel (BabylonLabel *label)
 
void AddText (BabylonText *text)
 
void AddObsolete (BabylonText *text)
 
void RemoveLabel (BabylonLabel *label)
 
void RemoveText (BabylonText *text)
 
void RemoveObsolete (BabylonText *text)
 
int Errors (CBabylonDlg *dlg=NULL)
 
int HasErrors (void)
 
int Warnings (CBabylonDlg *dlg=NULL)
 
int NumLabelsChanged (void)
 
int NumLabels (void)
 
int NumObsolete (void)
 
BabylonLabelFirstLabel (ListSearch &sh)
 
BabylonLabelNextLabel (ListSearch &sh)
 
BabylonTextFirstObsolete (ListSearch &sh)
 
BabylonTextNextObsolete (ListSearch &sh)
 
BabylonLabelFindLabel (OLECHAR *name)
 
BabylonTextFindText (OLECHAR *text)
 
BabylonTextFindSubText (OLECHAR *text, int item=0)
 
BabylonTextFindText (int id)
 
BabylonTextFindNextText (void)
 
BabylonTextFindObsolete (OLECHAR *text)
 
BabylonTextFindNextObsolete (void)
 
int Clear (void)
 
void ClearChanges (void)
 
void ClearProcessed (void)
 
void ClearMatched (void)
 
TransDBNext (void)
 
void AddToTree (CTreeCtrl *tc, HTREEITEM parent, int changes=FALSE, void(*cb)(void)=NULL)
 
char * Name (void)
 
void EnableIDs (void)
 
int NewID (void)
 
int ID (void)
 
void SetID (int new_id)
 
int IsValid (void)
 
void InValid (void)
 
int DuplicatesAllowed (void)
 
int MultiTextAllowed (void)
 
void AllowDupiclates (int yes=TRUE)
 
void AllowMultiText (int yes=TRUE)
 
- Public Member Functions inherited from DBAttribs
 DBAttribs (void)
 
void SetParent (DBAttribs *new_parent)
 
int IsChanged (void)
 
void Changed (void)
 
void NotChanged (void)
 
char ChangedSymbol (void)
 
int IsProcessed (void)
 
void Processed (void)
 
void NotProcessed (void)
 
void * Matched (void)
 
void Match (void *new_match)
 
void NotMatched (void)
 

Detailed Description

Definition at line 340 of file TransDB.h.

Constructor & Destructor Documentation

◆ TransDB()

TransDB::TransDB ( char * name = "no name")

Definition at line 121 of file TransDB.cpp.

◆ ~TransDB()

TransDB::~TransDB ( )

Definition at line 138 of file TransDB.cpp.

Member Function Documentation

◆ AddLabel()

void TransDB::AddLabel ( BabylonLabel * label)

Definition at line 149 of file TransDB.cpp.

◆ AddObsolete()

void TransDB::AddObsolete ( BabylonText * text)

Definition at line 174 of file TransDB.cpp.

◆ AddText()

void TransDB::AddText ( BabylonText * text)

Definition at line 163 of file TransDB.cpp.

◆ AddToTree()

void TransDB::AddToTree ( CTreeCtrl * tc,
HTREEITEM parent,
int changes = FALSE,
void(* cb )(void) = NULL )

Definition at line 475 of file TransDB.cpp.

◆ AllowDupiclates()

void TransDB::AllowDupiclates ( int yes = TRUE)
inline

Definition at line 406 of file TransDB.h.

◆ AllowMultiText()

void TransDB::AllowMultiText ( int yes = TRUE)
inline

Definition at line 407 of file TransDB.h.

◆ Clear()

int TransDB::Clear ( void )

Definition at line 377 of file TransDB.cpp.

◆ ClearChanges()

void TransDB::ClearChanges ( void )

Definition at line 425 of file TransDB.cpp.

◆ ClearMatched()

void TransDB::ClearMatched ( void )

Definition at line 461 of file TransDB.cpp.

◆ ClearProcessed()

void TransDB::ClearProcessed ( void )

Definition at line 447 of file TransDB.cpp.

◆ DuplicatesAllowed()

int TransDB::DuplicatesAllowed ( void )
inline

Definition at line 404 of file TransDB.h.

◆ EnableIDs()

void TransDB::EnableIDs ( void )
inline

Definition at line 398 of file TransDB.h.

◆ Errors()

int TransDB::Errors ( CBabylonDlg * dlg = NULL)

Definition at line 1526 of file TransDB.cpp.

◆ FindLabel()

BabylonLabel * TransDB::FindLabel ( OLECHAR * name)

Definition at line 305 of file TransDB.cpp.

◆ FindNextObsolete()

BabylonText * TransDB::FindNextObsolete ( void )

Definition at line 370 of file TransDB.cpp.

◆ FindNextText()

BabylonText * TransDB::FindNextText ( void )

Definition at line 359 of file TransDB.cpp.

◆ FindObsolete()

BabylonText * TransDB::FindObsolete ( OLECHAR * text)

Definition at line 365 of file TransDB.cpp.

◆ FindSubText()

BabylonText * TransDB::FindSubText ( OLECHAR * text,
int item = 0 )

Definition at line 316 of file TransDB.cpp.

◆ FindText() [1/2]

BabylonText * TransDB::FindText ( int id)

Definition at line 353 of file TransDB.cpp.

◆ FindText() [2/2]

BabylonText * TransDB::FindText ( OLECHAR * text)

Definition at line 310 of file TransDB.cpp.

◆ FirstLabel()

BabylonLabel * TransDB::FirstLabel ( ListSearch & sh)

Definition at line 257 of file TransDB.cpp.

◆ FirstObsolete()

BabylonText * TransDB::FirstObsolete ( ListSearch & sh)

Definition at line 281 of file TransDB.cpp.

◆ HasErrors()

int TransDB::HasErrors ( void )
inline

Definition at line 375 of file TransDB.h.

◆ ID()

int TransDB::ID ( void )
inline

Definition at line 400 of file TransDB.h.

◆ InValid()

void TransDB::InValid ( void )
inline

Definition at line 403 of file TransDB.h.

◆ InvalidateDialog()

void TransDB::InvalidateDialog ( LangID langid)

Definition at line 1684 of file TransDB.cpp.

◆ IsValid()

int TransDB::IsValid ( void )
inline

Definition at line 402 of file TransDB.h.

◆ MultiTextAllowed()

int TransDB::MultiTextAllowed ( void )
inline

Definition at line 405 of file TransDB.h.

◆ Name()

char * TransDB::Name ( void )
inline

Definition at line 397 of file TransDB.h.

◆ NewID()

int TransDB::NewID ( void )
inline

Definition at line 399 of file TransDB.h.

◆ Next()

TransDB * TransDB::Next ( void )

Definition at line 529 of file TransDB.cpp.

◆ NextLabel()

BabylonLabel * TransDB::NextLabel ( ListSearch & sh)

Definition at line 269 of file TransDB.cpp.

◆ NextObsolete()

BabylonText * TransDB::NextObsolete ( ListSearch & sh)

Definition at line 293 of file TransDB.cpp.

◆ NumLabels()

int TransDB::NumLabels ( void )

Definition at line 251 of file TransDB.cpp.

◆ NumLabelsChanged()

int TransDB::NumLabelsChanged ( void )

Definition at line 230 of file TransDB.cpp.

◆ NumObsolete()

int TransDB::NumObsolete ( void )
inline

Definition at line 379 of file TransDB.h.

◆ RemoveLabel()

void TransDB::RemoveLabel ( BabylonLabel * label)

Definition at line 195 of file TransDB.cpp.

◆ RemoveObsolete()

void TransDB::RemoveObsolete ( BabylonText * text)

Definition at line 215 of file TransDB.cpp.

◆ RemoveText()

void TransDB::RemoveText ( BabylonText * text)

Definition at line 209 of file TransDB.cpp.

◆ ReportDialog()

int TransDB::ReportDialog ( DLGREPORT * report,
LangID langid,
void(* print )(const char *) = NULL,
PMASK pmask = PMASK_ALL )

Definition at line 1713 of file TransDB.cpp.

◆ ReportDuplicates()

void TransDB::ReportDuplicates ( CBabylonDlg * dlg = NULL)

◆ ReportTranslations()

int TransDB::ReportTranslations ( TRNREPORT * report,
LangID langid,
void(* print )(const char *) = NULL,
PMASK pmask = PMASK_ALL )

Definition at line 1784 of file TransDB.cpp.

◆ SetID()

void TransDB::SetID ( int new_id)
inline

Definition at line 401 of file TransDB.h.

◆ VerifyDialog()

void TransDB::VerifyDialog ( LangID langid,
void(* cb )(void) = NULL )

Definition at line 1646 of file TransDB.cpp.

◆ Warnings()

int TransDB::Warnings ( CBabylonDlg * dlg = NULL)

Definition at line 1440 of file TransDB.cpp.


The documentation for this class was generated from the following files: